diff --git "a/data.json" "b/data.json" new file mode 100644--- /dev/null +++ "b/data.json" @@ -0,0 +1,14002 @@ +[ + { + "id": "AIDBG_00001", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00002", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00003", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00004", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00005", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00006", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00007", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00008", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00009", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00010", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00011", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00012", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00013", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00014", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00015", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00016", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00017", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00018", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00019", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00020", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00021", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00022", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00023", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00024", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00025", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00026", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00027", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00028", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00029", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00030", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00031", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00032", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00033", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00034", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00035", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00036", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00037", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00038", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00039", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00040", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00041", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00042", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00043", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00044", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00045", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00046", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00047", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00048", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00049", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00050", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00051", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00052", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00053", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00054", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00055", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00056", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00057", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00058", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00059", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00060", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00061", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00062", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00063", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00064", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00065", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00066", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00067", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00068", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00069", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00070", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00071", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00072", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00073", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00074", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00075", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00076", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00077", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00078", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00079", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00080", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00081", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00082", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00083", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00084", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00085", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00086", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00087", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00088", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00089", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00090", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00091", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00092", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00093", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00094", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00095", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00096", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00097", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00098", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00099", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00100", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00101", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00102", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Java service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00103", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00104", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00105", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A C++ service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00106", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00107", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A SQL service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00108", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00109", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00110", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00111", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00112", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Go service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00113", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00114", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00115", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Bash service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00116", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00117", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Python service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00118", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00119", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00120", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00121", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00122", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00123", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00124", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00125", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A SQL service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00126", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00127", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00128", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00129", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00130", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00131", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00132", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00133", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00134", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00135", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Python service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00136", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00137", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00138", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00139", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00140", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00141", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00142", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00143", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00144", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Python service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00145", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00146", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00147", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Java service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00148", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00149", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00150", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00151", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00152", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00153", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00154", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00155", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00156", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00157", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Go service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00158", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00159", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00160", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00161", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00162", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Python service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00163", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00164", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00165", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Java service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00166", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00167", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Rust service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00168", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00169", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00170", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00171", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00172", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00173", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00174", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Java service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00175", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Go service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00176", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00177", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A C++ service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00178", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00179", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00180", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00181", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00182", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00183", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00184", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00185", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00186", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00187", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00188", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00189", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00190", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00191", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00192", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00193", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00194", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00195", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00196", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00197", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00198", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00199", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00200", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00201", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00202", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00203", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00204", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00205", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00206", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00207", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00208", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00209", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00210", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00211", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00212", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00213", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00214", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00215", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00216", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00217", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00218", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00219", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00220", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00221", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00222", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00223", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00224", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00225", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00226", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00227", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00228", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00229", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00230", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00231", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00232", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00233", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00234", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00235", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00236", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00237", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00238", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00239", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00240", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00241", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00242", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00243", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00244", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00245", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00246", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00247", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00248", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00249", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00250", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00251", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00252", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00253", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00254", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00255", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00256", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00257", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00258", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00259", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00260", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00261", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00262", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00263", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00264", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00265", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00266", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00267", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00268", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00269", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00270", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00271", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00272", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00273", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00274", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00275", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00276", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00277", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00278", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00279", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00280", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00281", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00282", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Java service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00283", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00284", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00285", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A C++ service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00286", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00287", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A SQL service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00288", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00289", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00290", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00291", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00292", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Go service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00293", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00294", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00295", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Bash service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00296", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00297", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Python service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00298", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00299", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00300", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00301", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00302", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00303", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00304", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00305", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A SQL service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00306", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00307", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00308", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00309", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00310", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00311", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00312", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00313", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00314", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00315", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Python service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00316", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00317", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00318", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00319", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00320", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00321", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00322", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00323", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00324", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Python service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00325", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00326", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00327", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Java service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00328", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00329", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00330", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00331", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00332", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00333", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00334", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00335", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00336", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00337", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Go service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00338", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00339", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00340", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00341", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00342", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Python service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00343", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00344", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00345", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Java service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00346", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00347", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Rust service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00348", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00349", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00350", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00351", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00352", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00353", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00354", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Java service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00355", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Go service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00356", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00357", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A C++ service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00358", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00359", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00360", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00361", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00362", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00363", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00364", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00365", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00366", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00367", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00368", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00369", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00370", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00371", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00372", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00373", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00374", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00375", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00376", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00377", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00378", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00379", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00380", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00381", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00382", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00383", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00384", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00385", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00386", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00387", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00388", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00389", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00390", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00391", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00392", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00393", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00394", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00395", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00396", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00397", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00398", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00399", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00400", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00401", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00402", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00403", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00404", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00405", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00406", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00407", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00408", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00409", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00410", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00411", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00412", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00413", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00414", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00415", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00416", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00417", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00418", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00419", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00420", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00421", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00422", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00423", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00424", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00425", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00426", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00427", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00428", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00429", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00430", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00431", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00432", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00433", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00434", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00435", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00436", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00437", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00438", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00439", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00440", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00441", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00442", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00443", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00444", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00445", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00446", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00447", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00448", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00449", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00450", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00451", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00452", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00453", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00454", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00455", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00456", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00457", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00458", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00459", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00460", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00461", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00462", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Java service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00463", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00464", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00465", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A C++ service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00466", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00467", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A SQL service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00468", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00469", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00470", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00471", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00472", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Go service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00473", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00474", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00475", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Bash service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00476", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00477", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Python service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00478", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00479", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00480", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00481", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00482", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00483", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00484", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00485", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A SQL service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00486", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00487", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00488", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00489", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00490", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00491", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00492", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00493", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00494", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00495", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Python service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00496", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00497", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00498", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00499", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00500", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00501", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00502", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00503", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00504", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Python service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00505", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00506", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00507", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Java service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00508", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00509", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00510", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00511", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00512", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00513", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00514", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00515", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00516", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00517", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Go service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00518", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00519", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00520", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00521", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00522", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Python service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00523", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00524", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00525", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Java service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00526", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00527", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Rust service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00528", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00529", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00530", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00531", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00532", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00533", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00534", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Java service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00535", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Go service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00536", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00537", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A C++ service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00538", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00539", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00540", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00541", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00542", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00543", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00544", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00545", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00546", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00547", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00548", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00549", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00550", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00551", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00552", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00553", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00554", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00555", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00556", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00557", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00558", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00559", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00560", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00561", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00562", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00563", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00564", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00565", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00566", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00567", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00568", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00569", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00570", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00571", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00572", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00573", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00574", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00575", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00576", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00577", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00578", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00579", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00580", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00581", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00582", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00583", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00584", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00585", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00586", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00587", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00588", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00589", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00590", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00591", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00592", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00593", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00594", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00595", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00596", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00597", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00598", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00599", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00600", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00601", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00602", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00603", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00604", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00605", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00606", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00607", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00608", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00609", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00610", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00611", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00612", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00613", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00614", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00615", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00616", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00617", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00618", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00619", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00620", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00621", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00622", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00623", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00624", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00625", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00626", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00627", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00628", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00629", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00630", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00631", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00632", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00633", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00634", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00635", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00636", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00637", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00638", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00639", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00640", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00641", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00642", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Java service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00643", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00644", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00645", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A C++ service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00646", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00647", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A SQL service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00648", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00649", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00650", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00651", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00652", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Go service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00653", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00654", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00655", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Bash service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00656", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00657", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Python service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00658", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00659", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00660", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00661", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00662", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00663", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00664", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00665", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A SQL service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00666", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00667", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00668", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00669", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00670", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00671", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00672", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00673", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00674", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00675", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Python service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00676", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00677", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00678", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00679", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00680", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00681", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00682", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00683", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00684", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Python service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00685", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00686", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00687", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Java service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00688", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00689", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00690", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00691", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00692", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00693", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00694", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00695", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00696", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00697", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Go service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00698", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00699", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00700", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00701", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00702", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Python service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00703", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00704", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00705", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Java service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00706", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00707", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Rust service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00708", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00709", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00710", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00711", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00712", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00713", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00714", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Java service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00715", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Go service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00716", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00717", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A C++ service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00718", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00719", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00720", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00721", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00722", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00723", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00724", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00725", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00726", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00727", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00728", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00729", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00730", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00731", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00732", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00733", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00734", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00735", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00736", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00737", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00738", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00739", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00740", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00741", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00742", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00743", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00744", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00745", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00746", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00747", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00748", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00749", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00750", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00751", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00752", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00753", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00754", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00755", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00756", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00757", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00758", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00759", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00760", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00761", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00762", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00763", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00764", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00765", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00766", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00767", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00768", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00769", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00770", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00771", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00772", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00773", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00774", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00775", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00776", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00777", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00778", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00779", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00780", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00781", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00782", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00783", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00784", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00785", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00786", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00787", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00788", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00789", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00790", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00791", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00792", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00793", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00794", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00795", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00796", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00797", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00798", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00799", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00800", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00801", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00802", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00803", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00804", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00805", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00806", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00807", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00808", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00809", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00810", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00811", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00812", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00813", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00814", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00815", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00816", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00817", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00818", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00819", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00820", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00821", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00822", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Java service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00823", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00824", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00825", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A C++ service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00826", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00827", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A SQL service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00828", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00829", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00830", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00831", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00832", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Go service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00833", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00834", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00835", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Bash service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00836", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00837", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Python service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00838", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00839", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00840", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00841", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00842", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00843", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00844", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00845", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A SQL service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00846", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00847", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00848", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00849", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00850", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00851", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00852", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00853", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00854", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00855", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Python service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00856", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00857", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00858", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00859", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00860", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00861", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00862", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00863", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00864", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Python service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n\nresult = get_pipeline(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_pipeline(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_pipeline(1)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00865", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00866", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00867", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Java service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00868", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00869", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00870", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00871", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00872", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00873", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00874", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cart(value):\n if value > 0:\n return value * 2\n\nresult = get_cart(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cart(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cart(1)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00875", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00876", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00877", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Go service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00878", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00879", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00880", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00881", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the exports domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00882", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Python service in the imports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00883", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the payments domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00884", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the messaging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_task(value):\n if value > 0:\n return value * 2\n\nresult = get_task(1)", + "analysis": "The issue is a missing return problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_task(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_task(1)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00885", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Java service in the admin domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00886", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the dashboard domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00887", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Rust service in the billing domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00888", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the auth domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00889", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the search domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00890", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the analytics domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00891", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the notifications domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00892", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the reports domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00893", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the cache domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00894", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Java service in the scheduler domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n\nresult = get_invoice(1)", + "analysis": "The issue is a missing return problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_invoice(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_invoice(1)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00895", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Go service in the uploads domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00896", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the webhooks domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00897", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A C++ service in the profiles domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00898", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the checkout domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00899", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the inventory domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00900", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the recommendations domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00901", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the audit domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00902", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the logging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00903", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the sync domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00904", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Go service in the streaming domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n\nresult = get_cache_key(1)", + "analysis": "The issue is a missing return problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_cache_key(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_cache_key(1)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00905", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Rust service in the exports domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00906", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the imports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00907", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Bash service in the payments domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00908", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the messaging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00909", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the admin domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00910", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the dashboard domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00911", + "category": "debugging", + "language": "typescript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A TypeScript service in the billing domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00912", + "category": "debugging", + "language": "java", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Java service in the auth domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00913", + "category": "debugging", + "language": "go", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Go service in the search domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00914", + "category": "debugging", + "language": "rust", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Rust service in the analytics domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_service(value):\n if value > 0:\n return value * 2\n\nresult = get_service(1)", + "analysis": "The issue is a missing return problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_service(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_service(1)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00915", + "category": "debugging", + "language": "cpp", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A C++ service in the notifications domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00916", + "category": "debugging", + "language": "bash", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Bash service in the reports domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00917", + "category": "debugging", + "language": "sql", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A SQL service in the cache domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00918", + "category": "debugging", + "language": "python", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Python service in the scheduler domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00919", + "category": "debugging", + "language": "javascript", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A JavaScript service in the uploads domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00920", + "category": "debugging", + "language": "typescript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A TypeScript service in the webhooks domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00921", + "category": "debugging", + "language": "java", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Java service in the profiles domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00922", + "category": "debugging", + "language": "go", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A Go service in the checkout domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00923", + "category": "debugging", + "language": "rust", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Rust service in the inventory domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00924", + "category": "debugging", + "language": "cpp", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A C++ service in the recommendations domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_token(value):\n if value > 0:\n return value * 2\n\nresult = get_token(1)", + "analysis": "The issue is a missing return problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_token(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_token(1)", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00925", + "category": "debugging", + "language": "bash", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Bash service in the audit domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00926", + "category": "debugging", + "language": "sql", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A SQL service in the logging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00927", + "category": "debugging", + "language": "python", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Python service in the sync domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00928", + "category": "debugging", + "language": "javascript", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A JavaScript service in the streaming domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00929", + "category": "debugging", + "language": "typescript", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A TypeScript service in the exports domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00930", + "category": "debugging", + "language": "java", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Java service in the imports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00931", + "category": "debugging", + "language": "go", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A Go service in the payments domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00932", + "category": "debugging", + "language": "rust", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Rust service in the messaging domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00933", + "category": "debugging", + "language": "cpp", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A C++ service in the admin domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00934", + "category": "debugging", + "language": "bash", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Bash service in the dashboard domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_event(value):\n if value > 0:\n return value * 2\n\nresult = get_event(1)", + "analysis": "The issue is a missing return problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_event(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_event(1)", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00935", + "category": "debugging", + "language": "sql", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A SQL service in the billing domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00936", + "category": "debugging", + "language": "python", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Python service in the auth domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00937", + "category": "debugging", + "language": "javascript", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A JavaScript service in the search domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00938", + "category": "debugging", + "language": "typescript", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A TypeScript service in the analytics domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00939", + "category": "debugging", + "language": "java", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Java service in the notifications domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00940", + "category": "debugging", + "language": "go", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Go service in the reports domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00941", + "category": "debugging", + "language": "rust", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Rust service in the cache domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00942", + "category": "debugging", + "language": "cpp", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A C++ service in the scheduler domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00943", + "category": "debugging", + "language": "bash", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Bash service in the uploads domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00944", + "category": "debugging", + "language": "sql", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A SQL service in the webhooks domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_handler(value):\n if value > 0:\n return value * 2\n\nresult = get_handler(1)", + "analysis": "The issue is a missing return problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_handler(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_handler(1)", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00945", + "category": "debugging", + "language": "python", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Python service in the profiles domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00946", + "category": "debugging", + "language": "javascript", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A JavaScript service in the checkout domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00947", + "category": "debugging", + "language": "typescript", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A TypeScript service in the inventory domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00948", + "category": "debugging", + "language": "java", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Java service in the recommendations domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00949", + "category": "debugging", + "language": "go", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Go service in the audit domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00950", + "category": "debugging", + "language": "rust", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Rust service in the logging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00951", + "category": "debugging", + "language": "cpp", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A C++ service in the sync domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00952", + "category": "debugging", + "language": "bash", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Bash service in the streaming domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00953", + "category": "debugging", + "language": "sql", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A SQL service in the exports domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00954", + "category": "debugging", + "language": "python", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Python service in the imports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_worker(value):\n if value > 0:\n return value * 2\n\nresult = get_worker(1)", + "analysis": "The issue is a missing return problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_worker(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_worker(1)", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00955", + "category": "debugging", + "language": "javascript", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A JavaScript service in the payments domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00956", + "category": "debugging", + "language": "typescript", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A TypeScript service in the messaging domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00957", + "category": "debugging", + "language": "java", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Java service in the admin domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00958", + "category": "debugging", + "language": "go", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A Go service in the dashboard domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00959", + "category": "debugging", + "language": "rust", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Rust service in the billing domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00960", + "category": "debugging", + "language": "cpp", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A C++ service in the auth domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00961", + "category": "debugging", + "language": "bash", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Bash service in the search domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00962", + "category": "debugging", + "language": "sql", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A SQL service in the analytics domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00963", + "category": "debugging", + "language": "python", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A Python service in the notifications domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00964", + "category": "debugging", + "language": "javascript", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A JavaScript service in the reports domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_file(value):\n if value > 0:\n return value * 2\n\nresult = get_file(1)", + "analysis": "The issue is a missing return problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_file(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_file(1)", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00965", + "category": "debugging", + "language": "typescript", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A TypeScript service in the cache domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00966", + "category": "debugging", + "language": "java", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Java service in the scheduler domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00967", + "category": "debugging", + "language": "go", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A Go service in the uploads domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00968", + "category": "debugging", + "language": "rust", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Rust service in the webhooks domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00969", + "category": "debugging", + "language": "cpp", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A C++ service in the profiles domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00970", + "category": "debugging", + "language": "bash", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Bash service in the checkout domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00971", + "category": "debugging", + "language": "sql", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A SQL service in the inventory domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00972", + "category": "debugging", + "language": "python", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A Python service in the recommendations domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00973", + "category": "debugging", + "language": "javascript", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A JavaScript service in the audit domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the controller path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00974", + "category": "debugging", + "language": "typescript", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A TypeScript service in the logging domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_repository(value):\n if value > 0:\n return value * 2\n\nresult = get_repository(1)", + "analysis": "The issue is a missing return problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_repository(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_repository(1)", + "explanation": "Use defensive checks and a narrower control flow so the repository path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00975", + "category": "debugging", + "language": "java", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Java service in the sync domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the client path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00976", + "category": "debugging", + "language": "go", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A Go service in the streaming domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the pipeline path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00977", + "category": "debugging", + "language": "rust", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Rust service in the exports domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a exports workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the module path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00978", + "category": "debugging", + "language": "cpp", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A C++ service in the imports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a imports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the invoice path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00979", + "category": "debugging", + "language": "bash", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Bash service in the payments domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a payments workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the session path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00980", + "category": "debugging", + "language": "sql", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A SQL service in the messaging domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a messaging workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the token path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00981", + "category": "debugging", + "language": "python", + "bug_type": "off_by_one", + "severity": "Low", + "error_type": "IndexError: list index out of range", + "prompt": "A Python service in the admin domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a admin workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the queue path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00982", + "category": "debugging", + "language": "javascript", + "bug_type": "null_check", + "severity": "Medium", + "error_type": "AttributeError on None", + "prompt": "A JavaScript service in the dashboard domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a dashboard workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the worker path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00983", + "category": "debugging", + "language": "typescript", + "bug_type": "division_by_zero", + "severity": "High", + "error_type": "ZeroDivisionError", + "prompt": "A TypeScript service in the billing domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a billing workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the parser path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00984", + "category": "debugging", + "language": "java", + "bug_type": "missing_return", + "severity": "Critical", + "error_type": "Unexpected None result", + "prompt": "A Java service in the auth domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_report(value):\n if value > 0:\n return value * 2\n\nresult = get_report(1)", + "analysis": "The issue is a missing return problem in a auth workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_report(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_report(1)", + "explanation": "Use defensive checks and a narrower control flow so the report path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00985", + "category": "debugging", + "language": "go", + "bug_type": "infinite_loop", + "severity": "Low", + "error_type": "Process never terminates", + "prompt": "A Go service in the search domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a search workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the profile path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00986", + "category": "debugging", + "language": "rust", + "bug_type": "async_race", + "severity": "Medium", + "error_type": "Race condition in concurrent update", + "prompt": "A Rust service in the analytics domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a analytics workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the cart path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00987", + "category": "debugging", + "language": "cpp", + "bug_type": "wrong_condition", + "severity": "High", + "error_type": "Branch never executes", + "prompt": "A C++ service in the notifications domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a notifications workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the order path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00988", + "category": "debugging", + "language": "bash", + "bug_type": "type_mismatch", + "severity": "Critical", + "error_type": "TypeError from incompatible types", + "prompt": "A Bash service in the reports domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a reports workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the cache_key path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00989", + "category": "debugging", + "language": "sql", + "bug_type": "key_error", + "severity": "Low", + "error_type": "KeyError on missing dictionary key", + "prompt": "A SQL service in the cache domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a cache workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the job path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00990", + "category": "debugging", + "language": "python", + "bug_type": "scope_bug", + "severity": "Medium", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A Python service in the scheduler domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a scheduler workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the event path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00991", + "category": "debugging", + "language": "javascript", + "bug_type": "off_by_one", + "severity": "High", + "error_type": "IndexError: list index out of range", + "prompt": "A JavaScript service in the uploads domain is failing with IndexError: list index out of range. Diagnose the root cause and provide a clean fix.", + "buggy_code": "items = [1, 2, 3]\nfor i in range(len(items) + 1):\n print(items[i])", + "analysis": "The issue is a off by one problem in a uploads workflow. The code should guard against the error before proceeding.", + "fixed_code": "items = [1, 2, 3]\nfor i in range(len(items)):\n print(items[i])", + "explanation": "Use defensive checks and a narrower control flow so the payload path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00992", + "category": "debugging", + "language": "typescript", + "bug_type": "null_check", + "severity": "Critical", + "error_type": "AttributeError on None", + "prompt": "A TypeScript service in the webhooks domain is failing with AttributeError on None. Diagnose the root cause and provide a clean fix.", + "buggy_code": "user = None\nprint(user.name.strip())", + "analysis": "The issue is a null check problem in a webhooks workflow. The code should guard against the error before proceeding.", + "fixed_code": "user = None\nif user is not None:\n print(user.name.strip())", + "explanation": "Use defensive checks and a narrower control flow so the file path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00993", + "category": "debugging", + "language": "java", + "bug_type": "division_by_zero", + "severity": "Low", + "error_type": "ZeroDivisionError", + "prompt": "A Java service in the profiles domain is failing with ZeroDivisionError. Diagnose the root cause and provide a clean fix.", + "buggy_code": "count = 0\nrate = total / count", + "analysis": "The issue is a division by zero problem in a profiles workflow. The code should guard against the error before proceeding.", + "fixed_code": "count = 0\nrate = total / count if count else 0", + "explanation": "Use defensive checks and a narrower control flow so the record path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00994", + "category": "debugging", + "language": "go", + "bug_type": "missing_return", + "severity": "Medium", + "error_type": "Unexpected None result", + "prompt": "A Go service in the checkout domain is failing with Unexpected None result. Diagnose the root cause and provide a clean fix.", + "buggy_code": "def get_metric(value):\n if value > 0:\n return value * 2\n\nresult = get_metric(1)", + "analysis": "The issue is a missing return problem in a checkout workflow. The code should guard against the error before proceeding.", + "fixed_code": "def get_metric(value):\n if value > 0:\n return value * 2\n return 0\n\nresult = get_metric(1)", + "explanation": "Use defensive checks and a narrower control flow so the metric path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_00995", + "category": "debugging", + "language": "rust", + "bug_type": "infinite_loop", + "severity": "High", + "error_type": "Process never terminates", + "prompt": "A Rust service in the inventory domain is failing with Process never terminates. Diagnose the root cause and provide a clean fix.", + "buggy_code": "i = 0\nwhile i < 5:\n print(i)", + "analysis": "The issue is a infinite loop problem in a inventory workflow. The code should guard against the error before proceeding.", + "fixed_code": "i = 0\nwhile i < 5:\n print(i)\n i += 1", + "explanation": "Use defensive checks and a narrower control flow so the notification path behaves deterministically.", + "difficulty": 5 + }, + { + "id": "AIDBG_00996", + "category": "debugging", + "language": "cpp", + "bug_type": "async_race", + "severity": "Critical", + "error_type": "Race condition in concurrent update", + "prompt": "A C++ service in the recommendations domain is failing with Race condition in concurrent update. Diagnose the root cause and provide a clean fix.", + "buggy_code": "counter = 0\n# two workers update counter without synchronization\ncounter += 1", + "analysis": "The issue is a async race problem in a recommendations workflow. The code should guard against the error before proceeding.", + "fixed_code": "from threading import Lock\ncounter = 0\nlock = Lock()\nwith lock:\n counter += 1", + "explanation": "Use defensive checks and a narrower control flow so the task path behaves deterministically.", + "difficulty": 1 + }, + { + "id": "AIDBG_00997", + "category": "debugging", + "language": "bash", + "bug_type": "wrong_condition", + "severity": "Low", + "error_type": "Branch never executes", + "prompt": "A Bash service in the audit domain is failing with Branch never executes. Diagnose the root cause and provide a clean fix.", + "buggy_code": "enabled = False\nif enabled == True:\n print('ready')", + "analysis": "The issue is a wrong condition problem in a audit workflow. The code should guard against the error before proceeding.", + "fixed_code": "enabled = False\nif enabled:\n print('ready')", + "explanation": "Use defensive checks and a narrower control flow so the route path behaves deterministically.", + "difficulty": 2 + }, + { + "id": "AIDBG_00998", + "category": "debugging", + "language": "sql", + "bug_type": "type_mismatch", + "severity": "Medium", + "error_type": "TypeError from incompatible types", + "prompt": "A SQL service in the logging domain is failing with TypeError from incompatible types. Diagnose the root cause and provide a clean fix.", + "buggy_code": "total = '10'\ncount = 2\nprint(total + count)", + "analysis": "The issue is a type mismatch problem in a logging workflow. The code should guard against the error before proceeding.", + "fixed_code": "total = 10\ncount = 2\nprint(total + count)", + "explanation": "Use defensive checks and a narrower control flow so the service path behaves deterministically.", + "difficulty": 3 + }, + { + "id": "AIDBG_00999", + "category": "debugging", + "language": "python", + "bug_type": "key_error", + "severity": "High", + "error_type": "KeyError on missing dictionary key", + "prompt": "A Python service in the sync domain is failing with KeyError on missing dictionary key. Diagnose the root cause and provide a clean fix.", + "buggy_code": "config = {}\nprint(config['timeout'])", + "analysis": "The issue is a key error problem in a sync workflow. The code should guard against the error before proceeding.", + "fixed_code": "config = {'timeout': 30}\nprint(config.get('timeout', 30))", + "explanation": "Use defensive checks and a narrower control flow so the adapter path behaves deterministically.", + "difficulty": 4 + }, + { + "id": "AIDBG_01000", + "category": "debugging", + "language": "javascript", + "bug_type": "scope_bug", + "severity": "Critical", + "error_type": "UnboundLocalError / variable scope issue", + "prompt": "A JavaScript service in the streaming domain is failing with UnboundLocalError / variable scope issue. Diagnose the root cause and provide a clean fix.", + "buggy_code": "flag = False\ndef toggle():\n print(flag)\n flag = True", + "analysis": "The issue is a scope bug problem in a streaming workflow. The code should guard against the error before proceeding.", + "fixed_code": "flag = False\ndef toggle():\n global flag\n print(flag)\n flag = True", + "explanation": "Use defensive checks and a narrower control flow so the handler path behaves deterministically.", + "difficulty": 5 + } +] \ No newline at end of file