Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
35
35
prompt
listlengths
1
1
chosen
listlengths
1
1
rejected
listlengths
1
1
metadata
dict
dpo_code_generation_function_000001
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000002
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000003
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000004
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000005
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000006
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000007
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000008
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000009
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000010
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000011
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000012
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000013
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000014
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000015
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000016
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000017
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000018
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000019
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000020
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000021
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000022
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000023
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000024
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000025
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000026
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000027
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000028
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000029
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000030
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000031
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000032
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000033
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000034
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000035
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000036
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000037
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000038
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000039
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000040
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000041
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000042
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000043
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000044
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000045
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000046
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000047
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000048
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000049
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000050
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000051
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000052
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000053
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000054
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000055
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000056
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000057
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000058
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000059
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000060
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000061
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000062
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000063
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000064
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000065
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000066
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000067
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000068
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000069
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000070
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000071
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000072
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000073
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000074
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000075
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000076
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000077
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000078
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000079
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000080
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000081
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000082
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000083
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000084
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000085
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000086
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000087
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000088
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000089
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000090
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000091
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000092
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000093
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000094
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000095
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000096
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000097
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000098
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef is_even(number):\nRequirement: Return True when a number is even.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def is_even(number):\n return number % 2 == 0" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef is_even(number):\n return number % 2 == 0\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000099
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef last_item(items):\nRequirement: Return the last item in a list.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def last_item(items):\n return items[-1]" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef last_item(items):\n return items[-1]\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
dpo_code_generation_function_000100
[ { "role": "user", "content": "Write a complete Python function with this exact signature.\nSignature:\ndef add_numbers(a, b):\nRequirement: Return the sum of two numbers.\nReturn Python code only. Do not include prose or Markdown fences." } ]
[ { "role": "assistant", "content": "def add_numbers(a, b):\n return a + b" } ]
[ { "role": "assistant", "content": "Here is the function:\n```python\ndef add_numbers(a, b):\n return a + b\n```" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function", "failure_mode": "code_includes_explanation" }
End of preview. Expand in Data Studio

SLM Synthetic DPO — code_generation_function

Summary

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

Dataset

  • Dataset type: preference optimization
  • Total pairs: 6429
  • Signal: code_generation_function
  • Language: English

Signal Metadata

  • Category: code_generation
  • Difficulty: 2
  • Template family: python_function_code_only
  • Eval family: code_generation_function

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
56