id stringlengths 40 40 | messages listlengths 2 2 | metadata dict |
|---|---|---|
sft_function_completion_body_only_000001 | [
{
"role": "user",
"content": "Complete the function 'add_numbers' that returns the sum of two numbers. Provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000002 | [
{
"role": "user",
"content": "Complete the function 'is_even' that returns True when a number is even. Provide only the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000003 | [
{
"role": "user",
"content": "Complete the function 'last_item' that returns the last item in a list. Provide only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000004 | [
{
"role": "user",
"content": "Complete the function 'add_numbers' that returns the sum of two numbers. Provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000005 | [
{
"role": "user",
"content": "Complete the Python function is_even. The function should return True when a number is even. Provide only the function body, without the function signature."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000006 | [
{
"role": "user",
"content": "Complete the Python function last_item. It should return the last item in a list. Provide only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000007 | [
{
"role": "user",
"content": "Complete the Python function add_numbers. It should return the sum of two numbers. Provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000008 | [
{
"role": "user",
"content": "Write the body of the function is_even that returns True if a number is even. Output only the body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000009 | [
{
"role": "user",
"content": "Write the function body for `last_item(lst)` that returns the last item in a list. Provide only the body."
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000010 | [
{
"role": "user",
"content": "Complete the Python function `add_numbers(a, b)` that returns the sum of two numbers. Write only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000011 | [
{
"role": "user",
"content": "Provide the function body for `is_even(num)` that returns True when a number is even. Only the body, please."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000012 | [
{
"role": "user",
"content": "Complete the function `last_item(lst)` that returns the last item in a list. Give only the body."
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000013 | [
{
"role": "user",
"content": "Complete the Python function body for 'add_numbers'. The docstring is: 'Return the sum of two numbers.'"
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000014 | [
{
"role": "user",
"content": "Complete the Python function body for 'is_even'. The docstring is: 'Return True when a number is even.'"
},
{
"role": "assistant",
"content": "return number % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000015 | [
{
"role": "user",
"content": "Complete the Python function body for 'last_item'. The docstring is: 'Return the last item in a list.'"
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000016 | [
{
"role": "user",
"content": "Complete the body of the function 'add_numbers'. The docstring is: 'Return the sum of two numbers.'"
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000017 | [
{
"role": "user",
"content": "Complete the Python function 'is_even' that returns True when a number is even. Provide only the function body."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000018 | [
{
"role": "user",
"content": "Complete the Python function 'last_item' that returns the last item in a list. Provide only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000019 | [
{
"role": "user",
"content": "Complete the Python function 'add_numbers' that returns the sum of two numbers. Provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000020 | [
{
"role": "user",
"content": "Please complete the function 'is_even' that returns True when a number is even. Provide the function body only."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000021 | [
{
"role": "user",
"content": "Complete the Python function `last_item`. The function should accept a list and return its last element. Docstring: 'Return the last item in a list.' Provide only the function body, without the function signature or any additional text."
},
{
"role": "assistant",
"c... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000022 | [
{
"role": "user",
"content": "Complete the Python function `add_numbers`. It should accept two numbers and return their sum. Docstring: 'Return the sum of two numbers.' Provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000023 | [
{
"role": "user",
"content": "Complete the Python function `is_even`. It should accept a number and return True if it's even. Docstring: 'Return True when a number is even.' Provide only the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000024 | [
{
"role": "user",
"content": "Complete the Python function `last_item`. The function should accept a list and return its last element. Docstring: 'Return the last item in a list.' Provide only the function body, without the function signature or any additional text."
},
{
"role": "assistant",
"c... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000025 | [
{
"role": "user",
"content": "Complete the Python function add_numbers(a, b) that returns the sum of two numbers. Write only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000026 | [
{
"role": "user",
"content": "Complete the Python function is_even(n) that returns True when a number is even. Write only the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000027 | [
{
"role": "user",
"content": "Complete the Python function last_item(lst) that returns the last item in a list. Write only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000028 | [
{
"role": "user",
"content": "Complete the Python function add_numbers(a, b) that returns the sum of two numbers. Write only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000029 | [
{
"role": "user",
"content": "Write the body of the function 'is_even'. The function should return True when a number is even. Output only the body, not the signature or docstring."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000030 | [
{
"role": "user",
"content": "Complete the function 'last_item'. The docstring is: 'Return the last item in a list.'. Write only the function body, not the signature or docstring."
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000031 | [
{
"role": "user",
"content": "Complete the function 'add_numbers'. The docstring is: 'Return the sum of two numbers.'. Write only the function body, not the signature or docstring."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000032 | [
{
"role": "user",
"content": "Provide the implementation for the function 'is_even'. The docstring is: 'Return True when a number is even.'. Output only the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000033 | [
{
"role": "user",
"content": "Complete the following Python function: def last_item(lst): '''Return the last item in a list.''' pass"
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000034 | [
{
"role": "user",
"content": "Complete the following Python function: def add_numbers(a, b): '''Return the sum of two numbers.''' pass"
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000035 | [
{
"role": "user",
"content": "Complete the following Python function: def is_even(n): '''Return True when a number is even.''' pass"
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000036 | [
{
"role": "user",
"content": "Complete the following Python function: def last_item(lst): '''Return the last item in a list.''' pass"
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000037 | [
{
"role": "user",
"content": "Complete the Python function `add_numbers` that returns the sum of two numbers. Provide only the function body, indented appropriately, without the function signature or any extra text."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000038 | [
{
"role": "user",
"content": "Complete the function `is_even` that returns True if a number is even. Provide only the body of the function, with proper indentation, and no additional text."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000039 | [
{
"role": "user",
"content": "Complete the function `last_item` that returns the last item of a list. Provide only the function body, indented as needed, with no signature or extra text."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000040 | [
{
"role": "user",
"content": "Write the body of the function `add_numbers` which takes two arguments and returns their sum. Output only the function body, without the signature or any extra commentary."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000041 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (no signature, no docstring, no fences). The function signature is already given. Do not include any surrounding text, markdown, whitespace beyond the body itself. Use proper indentation with 4 spaces pe... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000042 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (no signature, no docstring, no fences). The function signature is already given. Do not include any surrounding text, markdown, whitespace beyond the body itself. Use proper indentation with 4 spaces pe... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000043 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (no signature, no docstring, no fences). The function signature is already given. Do not include any surrounding text, markdown, whitespace beyond the body itself. Use proper indentation with 4 spaces pe... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000044 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (no signature, no docstring, no fences). The function signature is already given. Do not include any surrounding text, markdown, whitespace beyond the body itself. Use proper indentation with 4 spaces pe... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000045 | [
{
"role": "user",
"content": "Write the body of the function `last_item` that takes a list and returns its last element."
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000046 | [
{
"role": "user",
"content": "Provide the implementation for the function `add_numbers` that returns the sum of two numbers."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000047 | [
{
"role": "user",
"content": "Complete the function `is_even` that returns True if a number is even."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000048 | [
{
"role": "user",
"content": "Implement the body of `last_item` which returns the last element of a given list."
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000049 | [
{
"role": "user",
"content": "Complete the function add_numbers whose docstring is 'Return the sum of two numbers.' Only provide the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000050 | [
{
"role": "user",
"content": "Complete the function is_even whose docstring is 'Return True when a number is even.' Only provide the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000051 | [
{
"role": "user",
"content": "Complete the function last_item whose docstring is 'Return the last item in a list.' Only provide the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000052 | [
{
"role": "user",
"content": "Complete the function add_numbers whose docstring is 'Return the sum of two numbers.' Only provide the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000053 | [
{
"role": "user",
"content": "Provide the body of the Python function `is_even` that returns True when a number is even. Only output the function body, no signature or docstring."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000054 | [
{
"role": "user",
"content": "Provide the body of the Python function `last_item` that returns the last item in a list. Only output the function body, no signature or docstring."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000055 | [
{
"role": "user",
"content": "Provide the body of the Python function `add_numbers` that returns the sum of two numbers. Only output the function body, no signature or docstring."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000056 | [
{
"role": "user",
"content": "Provide the body of the Python function `is_even` that returns True when a number is even. Only output the function body, no signature or docstring."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000057 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (the indented code inside). Do not repeat the function signature. Function name: last_item. Docstring: Return the last item in a list."
},
{
"role": "assistant",
"content": "return lst[-1]"
... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000058 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (the indented code inside). Do not repeat the function signature. Function name: add_numbers. Docstring: Return the sum of two numbers."
},
{
"role": "assistant",
"content": "return a + b"
... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000059 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (the indented code inside). Do not repeat the function signature. Function name: is_even. Docstring: Return True when a number is even."
},
{
"role": "assistant",
"content": "return n % 2 == ... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000060 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body (the indented code inside). Do not repeat the function signature. Function name: last_item. Docstring: Return the last item in a list."
},
{
"role": "assistant",
"content": "return lst[-1]"
... | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000061 | [
{
"role": "user",
"content": "Provide the function body for the function add_numbers which returns the sum of two numbers. The function signature is: def add_numbers(a, b):. Only output the body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000062 | [
{
"role": "user",
"content": "Provide the function body for the function is_even which returns True when a number is even. The function signature is: def is_even(n):. Only output the body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000063 | [
{
"role": "user",
"content": "Provide the function body for the function last_item which returns the last item in a list. The function signature is: def last_item(lst):. Only output the body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000064 | [
{
"role": "user",
"content": "Provide the function body for the function add_numbers which returns the sum of two numbers. The function signature is: def add_numbers(a, b):. Only output the body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000065 | [
{
"role": "user",
"content": "Complete the Python function `is_even`. The docstring says: 'Return True when a number is even.' Provide only the function body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000066 | [
{
"role": "user",
"content": "Write the body of the function `last_item`. Its docstring: 'Return the last item in a list.' Output only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000067 | [
{
"role": "user",
"content": "Fill in the body of `add_numbers`. Docstring: 'Return the sum of two numbers.' Give only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000068 | [
{
"role": "user",
"content": "Provide the body for the function `is_even` with docstring: 'Return True when a number is even.' Only the body."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000069 | [
{
"role": "user",
"content": "Complete the function `last_item` that returns the last item in a list."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000070 | [
{
"role": "user",
"content": "Complete the function `add_numbers` that returns the sum of two numbers."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000071 | [
{
"role": "user",
"content": "Complete the function `is_even` that returns True when a number is even."
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000072 | [
{
"role": "user",
"content": "Fill in the body of `last_item` to return the last element of a list."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000073 | [
{
"role": "user",
"content": "Complete the Python function `add_numbers` that returns the sum of two numbers."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000074 | [
{
"role": "user",
"content": "Complete the Python function `is_even` that returns True when a number is even."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000075 | [
{
"role": "user",
"content": "Complete the Python function `last_item` that returns the last item in a list."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000076 | [
{
"role": "user",
"content": "Complete the Python function `add_numbers` that returns the sum of two numbers."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000077 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef is_even(n):\n \"\"\"Return True when a number is even.\"\"\""
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000078 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000079 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef add_numbers(a, b):\n \"\"\"Return the sum of two numbers.\"\"\""
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000080 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef is_even(n):\n \"\"\"Return True when a number is even.\"\"\""
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000081 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000082 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef add_numbers(a, b):\n \"\"\"Return the sum of two numbers.\"\"\""
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000083 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef is_even(n):\n \"\"\"Return True when a number is even.\"\"\""
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000084 | [
{
"role": "user",
"content": "Complete the following Python function by providing only the function body.\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1] if lst else None"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000085 | [
{
"role": "user",
"content": "Complete the function 'add_numbers' that returns the sum of two numbers. Provide only the function body, no signature or explanation."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000086 | [
{
"role": "user",
"content": "Write the body of the function 'is_even' that returns True when a number is even. Only the function body."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000087 | [
{
"role": "user",
"content": "Complete the function 'last_item' that returns the last item in a list. Provide only the function body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000088 | [
{
"role": "user",
"content": "Provide the body of the Python function 'add_numbers' which returns the sum of two numbers. Only the body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000089 | [
{
"role": "user",
"content": "Complete the function 'is_even' that returns True when a number is even. Only the body, no signature."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000090 | [
{
"role": "user",
"content": "Write the body of the function 'last_item' that returns the last item in a list. Only the body."
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000091 | [
{
"role": "user",
"content": "For the function 'add_numbers' that returns the sum of two numbers, provide only the function body."
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000092 | [
{
"role": "user",
"content": "Complete the function 'is_even' that returns True when a number is even. Provide only the body."
},
{
"role": "assistant",
"content": "return num % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000093 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000094 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef add_numbers(a, b):\n \"\"\"Return the sum of two numbers.\"\"\""
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000095 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef is_even(n):\n \"\"\"Return True when a number is even.\"\"\""
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000096 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000097 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef add_numbers(a, b):\n \"\"\"Return the sum of two numbers.\"\"\""
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000098 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef is_even(n):\n \"\"\"Return True when a number is even.\"\"\""
},
{
"role": "assistant",
"content": "return n % 2 == 0"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000099 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef last_item(lst):\n \"\"\"Return the last item in a list.\"\"\""
},
{
"role": "assistant",
"content": "return lst[-1]"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
sft_function_completion_body_only_000100 | [
{
"role": "user",
"content": "Complete the following Python function by writing only the function body:\ndef add_numbers(a, b):\n \"\"\"Return the sum of two numbers.\"\"\""
},
{
"role": "assistant",
"content": "return a + b"
}
] | {
"category": "code_generation",
"difficulty": 2,
"template_family": "python_function_body_only",
"eval_family": "function_completion_body_only"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.