Dataset Viewer
Auto-converted to Parquet Duplicate
problem_id
int64
0
49
trajectory_id
int64
0
31
question
stringclasses
50 values
messages
stringlengths
10.2k
247k
num_turns
int64
2
10
final_reward
float64
0
1
terminated
bool
1 class
truncated
bool
2 classes
interactions
stringlengths
2
204k
tests
stringclasses
50 values
is_successful
bool
2 classes
interaction_timeout_count
int64
0
10
eval_timeout_count
int64
0
11
rendered
stringlengths
8.49k
413k
0
0
Petya learned a new programming language CALPAS. A program in this language always takes one non-negative integer and returns one non-negative integer as well. In the language, there are only three commands: apply a bitwise operation AND, OR or XOR with a given constant to the current integer. A program can contain an...
[{"role": "system", "content": "You are a helpful coding assistant.\n\nYou have access to a Python interpreter.\nTo execute code, wrap it inside <interact></interact>. I will run it and return stdout/stderr in a subsequent turn.\n\nIMPORTANT CONTEXT:\n- This is a multi-turn conversation.\n- The Python interpreter is a ...
2
0.466667
true
false
[{"code": "def simulate_operations(operations, x):\n result = x\n for op, const in operations:\n if op == '&':\n result &= const\n elif op == '|':\n result |= const\n elif op == '^':\n result ^= const\n return result\n\ndef compress_operations(operations):\...
{"inputs": ["3\n| 3\n^ 2\n| 1\n", "3\n& 1\n& 3\n& 5\n", "3\n^ 1\n^ 2\n^ 3\n", "2\n| 999\n^ 689\n", "3\n& 242\n^ 506\n^ 522\n", "2\n| 56\n^ 875\n", "3\n^ 125\n^ 377\n& 1019\n", "1\n& 123\n", "1\n| 123\n", "1\n^ 123\n", "10\n^ 218\n& 150\n| 935\n& 61\n| 588\n& 897\n| 411\n| 584\n^ 800\n| 704\n", "10\n^ 160\n& 1021\n& 510...
true
0
0
================================================================================ Question: Petya learned a new programming language CALPAS. A... Reward: 0.47 | Turns: 2 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
1
Petya learned a new programming language CALPAS. A program in this language always takes one non-negative integer and returns one non-negative integer as well. In the language, there are only three commands: apply a bitwise operation AND, OR or XOR with a given constant to the current integer. A program can contain an...
[{"role": "system", "content": "You are a helpful coding assistant.\n\nYou have access to a Python interpreter.\nTo execute code, wrap it inside <interact></interact>. I will run it and return stdout/stderr in a subsequent turn.\n\nIMPORTANT CONTEXT:\n- This is a multi-turn conversation.\n- The Python interpreter is a ...
2
0.666667
true
false
[{"code": "# Test the approach on the examples\ndef apply_program(x, commands):\n result = x\n for op, const in commands:\n if op == '&':\n result &= const\n elif op == '|':\n result |= const\n elif op == '^':\n result ^= const\n return result\n\n# Example ...
{"inputs": ["3\n| 3\n^ 2\n| 1\n", "3\n& 1\n& 3\n& 5\n", "3\n^ 1\n^ 2\n^ 3\n", "2\n| 999\n^ 689\n", "3\n& 242\n^ 506\n^ 522\n", "2\n| 56\n^ 875\n", "3\n^ 125\n^ 377\n& 1019\n", "1\n& 123\n", "1\n| 123\n", "1\n^ 123\n", "10\n^ 218\n& 150\n| 935\n& 61\n| 588\n& 897\n| 411\n| 584\n^ 800\n| 704\n", "10\n^ 160\n& 1021\n& 510...
true
0
0
================================================================================ Question: Petya learned a new programming language CALPAS. A... Reward: 0.67 | Turns: 2 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
2
Petya learned a new programming language CALPAS. A program in this language always takes one non-negative integer and returns one non-negative integer as well. In the language, there are only three commands: apply a bitwise operation AND, OR or XOR with a given constant to the current integer. A program can contain an...
[{"role": "system", "content": "You are a helpful coding assistant.\n\nYou have access to a Python interpreter.\nTo execute code, wrap it inside <interact></interact>. I will run it and return stdout/stderr in a subsequent turn.\n\nIMPORTANT CONTEXT:\n- This is a multi-turn conversation.\n- The Python interpreter is a ...
3
0.6
true
false
[{"code": "# Test case 1: Example 1 from the problem\n# Input: | 3, ^ 2, | 1\n# Expected output: | 3, ^ 2\n\n# Let me simulate this program on all inputs from 0 to 1023\n# and see if (x | 3) ^ 2 | 1 is equivalent to (x | 3) ^ 2\n\ndef simulate_program(commands, x):\n result = x\n for op, const in commands:\n ...
{"inputs": ["3\n| 3\n^ 2\n| 1\n", "3\n& 1\n& 3\n& 5\n", "3\n^ 1\n^ 2\n^ 3\n", "2\n| 999\n^ 689\n", "3\n& 242\n^ 506\n^ 522\n", "2\n| 56\n^ 875\n", "3\n^ 125\n^ 377\n& 1019\n", "1\n& 123\n", "1\n| 123\n", "1\n^ 123\n", "10\n^ 218\n& 150\n| 935\n& 61\n| 588\n& 897\n| 411\n| 584\n^ 800\n| 704\n", "10\n^ 160\n& 1021\n& 510...
true
0
0
================================================================================ Question: Petya learned a new programming language CALPAS. A... Reward: 0.60 | Turns: 3 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
3
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0
true
false
"[{\"code\": \"# Test case 1: | 3, ^ 2, | 1\\nn = 3\\ncommands = [('|', 3), ('^', 2), ('|', 1)]\\n\\(...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
false
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
4
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.733333
true
false
"[{\"code\": \"```python\\ndef simulate_sequence(operations):\\n # operations: list of (op, const(...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
5
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.733333
true
false
"[{\"code\": \"# Test with example 1: | 3, ^ 2, | 1\\ncommands = [('|', 3), ('^', 2), ('|', 1)]\\n# (...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
6
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.666667
true
false
"[{\"code\": \"print(\\\"Testing simplification hypothesis:\\\")\\nprint(\\\"Example 1: | 3, ^ 2, | (...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
7
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
4
0.666667
true
false
"[{\"code\": \"# Test the hypothesis on the provided examples\\ndef test_simplification():\\n # E(...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
8
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
4
0.733333
true
false
"[{\"code\": \"# Test case 1\\nn = 3\\noperations = [('|', 3), ('^', 2), ('|', 1)]\\n\\n# Group oper(...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
0
9
"Petya learned a new programming language CALPAS. A program in this language always takes one non-ne(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
5
0.666667
true
false
"[{\"code\": \"# Test the properties of bitwise operations\\ndef test_bitwise_properties():\\n # (...TRUNCATED)
"{\"inputs\": [\"3\\n| 3\\n^ 2\\n| 1\\n\", \"3\\n& 1\\n& 3\\n& 5\\n\", \"3\\n^ 1\\n^ 2\\n^ 3\\n\", \(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: Petya l(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
19