id
stringlengths
35
35
messages
listlengths
2
2
metadata
dict
sft_code_generation_function_000001
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000002
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000003
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000004
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000005
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000006
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000007
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000008
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000009
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000010
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000011
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000012
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000013
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000014
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000015
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000016
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000017
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000018
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000019
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000020
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000021
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000022
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000023
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000024
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000025
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000026
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000027
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000028
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000029
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000030
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000031
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000032
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000033
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000034
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000035
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000036
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000037
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000038
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000039
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000040
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000041
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000042
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000043
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000044
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000045
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000046
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000047
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000048
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000049
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000050
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000051
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000052
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000053
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000054
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000055
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000056
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000057
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000058
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000059
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000060
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000061
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000062
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(n): return n % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000063
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1] if lst else None" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000064
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000065
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000066
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000067
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000068
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000069
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000070
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000071
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000072
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000073
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000074
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000075
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000076
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000077
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000078
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000079
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000080
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000081
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000082
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000083
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000084
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000085
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000086
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000087
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000088
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000089
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000090
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000091
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000092
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000093
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000094
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000095
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000096
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000097
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000098
[ { "role": "user", "content": "Write a Python function named is_even that returns True when a number is even." }, { "role": "assistant", "content": "def is_even(number): return number % 2 == 0" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000099
[ { "role": "user", "content": "Write a Python function named last_item that returns the last item in a list." }, { "role": "assistant", "content": "def last_item(lst): return lst[-1]" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }
sft_code_generation_function_000100
[ { "role": "user", "content": "Write a Python function named add_numbers that returns the sum of two numbers." }, { "role": "assistant", "content": "def add_numbers(a, b): return a + b" } ]
{ "category": "code_generation", "difficulty": 2, "template_family": "python_function_code_only", "eval_family": "code_generation_function" }