hotdogs/Qwen3.8-27B-abliterated-code-analysis-preview
Text Generation • 27B • Updated • 547
id stringlengths 17 28 | kind stringclasses 15
values | lang stringclasses 5
values | messages listlengths 3 3 |
|---|---|---|---|
ca2-go_error_swallow-32098 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this go snippet (deep dive):\n\n```go\n\nfunc load(r *Reader) (string, error) {\n\tdata, _ :=... |
ca2-py_bare_except-12280 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (bug hunt):\n\n```python\ndef fetch(x):\n try:\n return int(x) ... |
ca2-py_bare_except-28893 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (perf + correctness). What is wrong and how would you fix it?\n\n```python\... |
ca2-js_type_coercion-36421 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction resolve()... |
ca2-py_sql_injection-47052 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\ndef parse(conn, state):\n ... |
ca2-c_null_deref-05695 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this c snippet (deep dive). What is wrong and how would you fix it?\n\n```c\n\nint render(char ... |
ca2-rust_borrow-10328 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this rust snippet (perf + correctness):\n\n```rust\n\nfn flush(s: &mut String) {\n\tlet order... |
ca2-js_null_ref-75674 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (correctness check). What is wrong and how would you fix it?\n\n```java... |
ca2-py_bare_except-13238 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (code review):\n\n```python\n\ndef compute(x):\n try:\n return ... |
ca2-js_late_binding-48520 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this javascript snippet. Be specific about line numbers:\n\n```javascript\n\nfunct... |
ca2-py_shadow_var-70010 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (security pass). What is wrong and how would you fix it?\n\n```python\n\n\n... |
ca2-rust_borrow-35382 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This rust code has a subtle problem. Walk me through it:\n\n```rust\n\nfn normalize(s: &mut String) {... |
ca2-c_off_by_one_loop-04207 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this c snippet (code review):\n\n```c\n\nvoid normalize(int a[]) {\n\tfor (int i = 0; i <= 5;... |
ca2-rust_index_panic-27653 | rust_index_panic | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this rust snippet. Be specific about line numbers:\n\n```rust\n\nfn apply(v: &[i32... |
ca2-c_off_by_one_loop-84259 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This c code has a subtle problem. Walk me through it:\n\n```c\n\nvoid apply(int a[]) {\n\tfor (int i ... |
ca2-js_type_coercion-97912 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this javascript code for bugs and explain each one:\n\n```javascript\n\nfunction fetch() {\n ... |
ca2-go_race-28746 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This go code has a subtle problem. Walk me through it:\n\n```go\n\nfunc sync(count int) int {\n\tcoun... |
ca2-py_sql_injection-89192 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\ndef dispatch(conn, value):\n ... |
ca2-js_late_binding-69352 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction compute()... |
ca2-py_int_division-20730 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\ndef process... |
ca2-js_type_coercion-81959 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this javascript code for bugs and explain each one:\n\n```javascript\n\nfunction process() {\n... |
ca2-py_int_division-64042 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (correctness check). What is wrong and how would you fix it?\n\n```python\n... |
ca2-py_off_by_one-74364 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (code review):\n\n```python\n\n\ndef load(lst, n):\n total = 0\n fo... |
ca2-py_mutable_default-72063 | py_mutable_default | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\ndef compute(items, acc=dict()):\... |
ca2-py_sql_injection-93447 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (code review). What is wrong and how would you fix it?\n\n```python\n\n\n\n... |
ca2-py_int_division-08392 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\n\n\n\ndef update():\n total =... |
ca2-py_shadow_var-92778 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (refactor review):\n\n```python\n\ndef process(session):\n session = 0... |
ca2-go_error_swallow-04117 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this go code for bugs and explain each one:\n\n```go\n\nfunc handle(r *Reader) (string, error)... |
ca2-c_null_deref-36500 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this c snippet (code review):\n\n```c\n\nint apply(char *s) {\n\tif (s == NULL) return 0;\n\t... |
ca2-go_error_swallow-94811 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this go code for bugs and explain each one:\n\n```go\n\nfunc dispatch(r *Reader) (string, erro... |
ca2-c_off_by_one_loop-24957 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This c code has a subtle problem. Walk me through it:\n\n```c\n\nvoid dispatch(int a[]) {\n\tfor (int... |
ca2-py_mutable_default-95561 | py_mutable_default | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\n\n\ndef load(items, acc=dict... |
ca2-py_off_by_one-24931 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\n\n\ndef load(lst, n):\n total... |
ca2-js_null_ref-36509 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction flush() {... |
ca2-js_type_coercion-06630 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (refactor review). What is wrong and how would you fix it?\n\n```javasc... |
ca2-go_error_swallow-21798 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this go snippet (code review):\n\n```go\n\nfunc process(r *Reader) (string, error) {\n\tdata,... |
ca2-js_late_binding-07685 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this javascript code for bugs and explain each one:\n\n```javascript\n\nfunction dispatch() {\... |
ca2-py_sql_injection-55444 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\n\n\n\ndef update(conn, user)... |
ca2-rust_borrow-28534 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this rust code for bugs and explain each one:\n\n```rust\n\nfn dispatch(s: &mut String) {\n\tl... |
ca2-py_off_by_one-65909 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (pre-merge review). What is wrong and how would you fix it?\n\n```python\nd... |
ca2-c_off_by_one_loop-24356 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this c snippet (refactor review). What is wrong and how would you fix it?\n\n```c\n\nvoid build... |
ca2-py_mutable_default-75880 | py_mutable_default | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (code review):\n\n```python\n\ndef compute(items, acc=dict()):\n for x... |
ca2-go_race-86163 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this go snippet (perf + correctness):\n\n```go\n\nfunc handle(count int) int {\n\tcounter := ... |
ca2-go_race-31285 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this go code for bugs and explain each one:\n\n```go\n\nfunc apply(count int) int {\n\tcounter... |
ca2-py_int_division-60068 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (bug hunt):\n\n```python\n\n\n\ndef update():\n total = 28 / 4\n pe... |
ca2-go_race-66307 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this go snippet (code review). What is wrong and how would you fix it?\n\n```go\n\nfunc load(co... |
ca2-py_int_division-57433 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\ndef fetch():\... |
ca2-c_null_deref-87538 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this c snippet (bug hunt). What is wrong and how would you fix it?\n\n```c\n\nint transform(cha... |
ca2-c_null_deref-34664 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this c snippet (security pass):\n\n```c\n\nint transform(char *s) {\n\tif (s == NULL) return ... |
ca2-py_mutable_default-94058 | py_mutable_default | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\ndef load(item... |
ca2-py_shadow_var-12097 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\ndef parse(c... |
ca2-go_error_swallow-00464 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this go snippet. Be specific about line numbers:\n\n```go\n\nfunc sync(r *Reader) ... |
ca2-py_shadow_var-73519 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\n\n\ndef fetch(buffer):\n ... |
ca2-py_off_by_one-56333 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\ndef load(lst,... |
ca2-py_sql_injection-89399 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\ndef handle(... |
ca2-py_bare_except-23206 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\n\n\n\ndef load(x):\n try:\n ... |
ca2-c_off_by_one_loop-53964 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this c code for bugs and explain each one:\n\n```c\n\nvoid sync(int a[]) {\n\tfor (int i = 0; ... |
ca2-rust_index_panic-50140 | rust_index_panic | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this rust code for bugs and explain each one:\n\n```rust\n\nfn normalize(v: &[i32]) -> i32 {\n... |
ca2-c_null_deref-26158 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This c code has a subtle problem. Walk me through it:\n\n```c\n\nint handle(char *s) {\n\tif (s == NU... |
ca2-c_null_deref-29831 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this c snippet. Be specific about line numbers:\n\n```c\n\nint flush(char *s) {\n\... |
ca2-py_bare_except-36585 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\n\ndef proce... |
ca2-py_shadow_var-23405 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (deep dive):\n\n```python\n\n\ndef update(cursor):\n cursor = 0\n f... |
ca2-go_race-45309 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this go snippet (perf + correctness):\n\n```go\n\nfunc resolve(count int) int {\n\tcounter :=... |
ca2-rust_borrow-50488 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this rust snippet (refactor review). What is wrong and how would you fix it?\n\n```rust\n\nfn a... |
ca2-c_off_by_one_loop-00221 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this c snippet (perf + correctness):\n\n```c\n\nvoid parse(int a[]) {\n\tfor (int i = 0; i <=... |
ca2-js_null_ref-87062 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction parse() {... |
ca2-c_off_by_one_loop-66469 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this c snippet (deep dive):\n\n```c\n\nvoid apply(int a[]) {\n\tfor (int i = 0; i <= 5; i++) ... |
ca2-py_int_division-87153 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\n\n\ndef sync():\n total = 49 ... |
ca2-js_late_binding-53225 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (deep dive). What is wrong and how would you fix it?\n\n```javascript\n... |
ca2-js_null_ref-56346 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this javascript snippet. Be specific about line numbers:\n\n```javascript\n\nfunct... |
ca2-rust_index_panic-88555 | rust_index_panic | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This rust code has a subtle problem. Walk me through it:\n\n```rust\n\nfn apply(v: &[i32]) -> i32 {\n... |
ca2-py_bare_except-12240 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (correctness check). What is wrong and how would you fix it?\n\n```python\n... |
ca2-c_null_deref-26100 | c_null_deref | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this c snippet. Be specific about line numbers:\n\n```c\n\nint normalize(char *s) ... |
ca2-py_sql_injection-59692 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (refactor review). What is wrong and how would you fix it?\n\n```python\n\n... |
ca2-js_late_binding-52383 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction parse() {... |
ca2-py_bare_except-91214 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\ndef fetch(x):\n try:\n ... |
ca2-js_null_ref-15906 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (code review). What is wrong and how would you fix it?\n\n```javascript... |
ca2-js_type_coercion-98992 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (correctness check). What is wrong and how would you fix it?\n\n```java... |
ca2-c_off_by_one_loop-20861 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This c code has a subtle problem. Walk me through it:\n\n```c\n\nvoid flush(int a[]) {\n\tfor (int i ... |
ca2-rust_borrow-83579 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this rust snippet. Be specific about line numbers:\n\n```rust\n\nfn dispatch(s: &m... |
ca2-py_int_division-35614 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\n\ndef dispa... |
ca2-py_shadow_var-50205 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this python code for bugs and explain each one:\n\n```python\ndef apply(order):\n order = 0... |
ca2-rust_borrow-54377 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this rust code for bugs and explain each one:\n\n```rust\n\nfn fetch(s: &mut String) {\n\tlet ... |
ca2-js_late_binding-08161 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction apply() {... |
ca2-py_bare_except-46105 | py_bare_except | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\ndef sync(x):\n try:\n ... |
ca2-py_int_division-63654 | py_int_division | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\n\n\ndef updat... |
ca2-py_off_by_one-81560 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\n\n\n\ndef update(lst, n):\n ... |
ca2-js_null_ref-11003 | js_null_ref | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this javascript snippet (bug hunt). What is wrong and how would you fix it?\n\n```javascript\n\... |
ca2-go_error_swallow-23819 | go_error_swallow | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this go code for bugs and explain each one:\n\n```go\n\nfunc sync(r *Reader) (string, error) {... |
ca2-py_off_by_one-99775 | py_off_by_one | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this python snippet. Be specific about line numbers:\n\n```python\n\ndef resolve(l... |
ca2-c_off_by_one_loop-10735 | c_off_by_one_loop | c | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This c code has a subtle problem. Walk me through it:\n\n```c\n\nvoid update(int a[]) {\n\tfor (int i... |
ca2-js_type_coercion-85215 | js_type_coercion | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this javascript snippet. Be specific about line numbers:\n\n```javascript\n\nfunct... |
ca2-py_mutable_default-31266 | py_mutable_default | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Analyze this python snippet (security pass):\n\n```python\n\ndef handle(items, acc=dict()):\n for ... |
ca2-py_sql_injection-48351 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\ndef dispatch(conn, cursor):\... |
ca2-py_sql_injection-40888 | py_sql_injection | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this python snippet (bug hunt). What is wrong and how would you fix it?\n\n```python\n\n\ndef l... |
ca2-go_race-77607 | go_race | go | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Review this go code for bugs and explain each one:\n\n```go\n\nfunc update(count int) int {\n\tcounte... |
ca2-rust_borrow-74177 | rust_borrow | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Find the bug(s) in this rust snippet. Be specific about line numbers:\n\n```rust\n\nfn normalize(s: &... |
ca2-rust_index_panic-86706 | rust_index_panic | rust | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "Debug this rust snippet (perf + correctness). What is wrong and how would you fix it?\n\n```rust\n\nf... |
ca2-py_shadow_var-13833 | py_shadow_var | python | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This python code has a subtle problem. Walk me through it:\n\n```python\n\n\ndef compute(account):\n ... |
ca2-js_late_binding-57080 | js_late_binding | javascript | [
{
"role": "system",
"content": "You are an elite code analyst. You read the code, name each real bug with its line number and severity, and give a concrete fix."
},
{
"role": "user",
"content": "This javascript code has a subtle problem. Walk me through it:\n\n```javascript\n\nfunction render() ... |