Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
40
40
prompt
listlengths
1
1
chosen
listlengths
1
1
rejected
listlengths
1
1
metadata
dict
dpo_function_completion_body_only_000001
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000002
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000003
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000004
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000005
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000006
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000007
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000008
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000009
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000010
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000011
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000012
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000013
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000014
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000015
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000016
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000017
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000018
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000019
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000020
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000021
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000022
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000023
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000024
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000025
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000026
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000027
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000028
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000029
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000030
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000031
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000032
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000033
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000034
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000035
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000036
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000037
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000038
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000039
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000040
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000041
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000042
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000043
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000044
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000045
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000046
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000047
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000048
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000049
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000050
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000051
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000052
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000053
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000054
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000055
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000056
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000057
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000058
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000059
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000060
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000061
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000062
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000063
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000064
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000065
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000066
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000067
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000068
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000069
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000070
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000071
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000072
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000073
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000074
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000075
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000076
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000077
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000078
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000079
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000080
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000081
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000082
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000083
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000084
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000085
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000086
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000087
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000088
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000089
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000090
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000091
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000092
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000093
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000094
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000095
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000096
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000097
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000098
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef is_even(number):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return number % 2 == 0" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000099
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef last_item(items):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return items[-1]" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn items[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
dpo_function_completion_body_only_000100
[ { "role": "user", "content": "Complete this Python function body only.\nSignature:\ndef add_numbers(a, b):\nReturn only the function body. Do not include the signature, prose, or Markdown fences." } ]
[ { "role": "assistant", "content": "return a + b" } ]
[ { "role": "assistant", "content": "# Explanation: implement the requested behavior.\nreturn a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_body_only", "eval_family": "function_completion_body_only", "failure_mode": "code_includes_explanation" }
End of preview. Expand in Data Studio

SLM Synthetic DPO — function_completion_body_only

Summary

Synthetic preference-pair dataset containing chosen and rejected assistant responses for function_completion_body_only.

Dataset

  • Dataset type: preference optimization
  • Total pairs: 6428
  • Signal: function_completion_body_only
  • Language: English

Signal Metadata

  • Category: code_generation
  • Difficulty: 2
  • Template family: python_function_body_only
  • Eval family: function_completion_body_only

Schema

{
  "id": "string",
  "prompt": [
    {"role": "user", "content": "string"}
  ],
  "chosen": [
    {"role": "assistant", "content": "string"}
  ],
  "rejected": [
    {"role": "assistant", "content": "string"}
  ],
  "metadata": {
    "category": "string",
    "difficulty": 1,
    "template_family": "string",
    "eval_family": "string",
    "failure_mode": "string"
  }
}

Intended Use

Use this dataset for DPO-style preference optimization experiments targeting this signal.

Limitations

This dataset is synthetic and encodes targeted preference behavior. Inspect chosen/rejected pairs before training.

Downloads last month
22