id
stringlengths
23
26
text
stringlengths
20
1.37k
format
stringclasses
2 values
messages
listlengths
2
4
⌀
family
stringclasses
1 value
sub
stringclasses
3 values
variant
stringclasses
1 value
variant_of
stringclasses
0 values
generator
stringclasses
1 value
sources
listlengths
0
0
source_ids
listlengths
0
0
n_tokens_alea
int64
8
494
meta
stringlengths
47
170
nlprog_det-setting-0072382
<|start|><|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Run result: 86 It equals 86 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 30 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nRun result: 86\n\nIt equals 86 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0072383
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "translate", "...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0072384
<|start|><|user|> An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> The interest is $20.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "The interest is $20.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0072385
Oskar earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? ```python rate = 16.0 hours = 54 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 336.0 pay = regular + overtime # 976.0 print(f"{pay:.2f}") ``` Printed: 976.00 Oskar earns $976.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0072386
<|start|><|user|> At 1% a month (simple), what interest builds on $4,000 over 3 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` When run, it prints 120.00, as expected. The interest is $120....
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $4,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 120.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0072387
After an initial $2,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? The computation: grant = 30000 up_front = 2000 installments = 3 each = (grant - up_front) / installments print(f"{each:.2f}") # run result: 9333.33 Each installment is $9,333.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0072388
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? The computation: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 3 # 19200.0 print(f"{per_client:.2f}") ``` It prints: 19200.00 Each share i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "19200.00", "printed": "19200.00", "notation": null}
nlprog_det-setting-0072389
<|start|><|user|> A meal costs $50.11. How much is a 22% tip?<|eot|> <|assistant|> The tip is $11.02.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $50.11. How much is a 22% tip?" }, { "role": "assistant", "content": "The tip is $11.02." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "11.02", "printed": "11.02", "notation": null}
nlprog_det-setting-0072390
<|start|><|user|> What percentage of $5,000 is $2,900?<|eot|> <|assistant|> ```python budget = 5000 spent = 2900 percent = spent / budget * 100 print(round(percent, 1)) ``` The script prints 58.0, as expected. That is 58.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $2,900?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 2900\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nThe script prints 58.0, as expected.\n\nThat is 58.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "58.0", "printed": "58.0", "notation": null}
nlprog_det-setting-0072391
<|start|><|user|> Divide 227 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> The answer: 28 each, 3 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 227 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "The answer: 28 each, 3 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "28 each, 3 left over", "printed": "28 each, 3 left over", "notation": null}
nlprog_det-setting-0072392
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments? One way, in code: ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Printed result — 24 $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072393
After a 40% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Programmatically: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 2 # 28800.0 print(f"{per_client:.2f}") ``` (Program output...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "28800.00", "printed": "28800.00", "notation": null}
nlprog_det-setting-0072394
Attendance was 31 out of 50. Express it as a percent. As a program: ```python present = 31 total = 50 percent = present / total * 100 # 62.0 print(round(percent, 1)) ``` (Program output: 62.0) 62.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "62.0", "printed": "62.0", "notation": null}
nlprog_det-setting-0072395
At $0.65 per mile, what is the reimbursement for 72 miles? Let the code do the arithmetic: ```python miles = 72 rate = 0.65 reimbursement = miles * rate # 46.800000000000004 print(f"{reimbursement:.2f}") ``` Run output: 46.80 Carmen is owed $46.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "46.80", "printed": "46.80", "notation": null}
nlprog_det-setting-0072396
<|start|><|user|> How much is a $74 daily meal allowance over 9 days?<|eot|> <|assistant|> days = 9 meal_rate = 74 total = days * meal_rate # 666 print(total) Printed result: 666 That comes to $666.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $74 daily meal allowance over 9 days?" }, { "role": "assistant", "content": " days = 9\n meal_rate = 74\n total = days * meal_rate # 666\n print(total)\nPrinted result: 666\n\nThat comes to $666." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "666", "printed": "666", "notation": null}
nlprog_det-setting-0072397
<|start|><|user|> A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 49-page copy cost?<|eot|> <|assistant|> ```python pages = 49 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 24.75 print(f"{cost:.2f}") ``` Printed result — 24.75 ...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 49-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 49\nbase = 15\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0072398
<|start|><|user|> Femi drove 22 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 22 rate = 0.7 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Running it prints: 15.40 Femi is owed $15.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Femi drove 22 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 22\nrate = 0.7\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\nRunning it prints: 15...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "15.40", "printed": "15.40", "notation": null}
nlprog_det-setting-0072399
At $25.08 an hour, what does 16 hours of work pay? We write it as a program: ```python rate = 25.08 hours = 16 earnings = rate * hours # 401.28 print(f"{earnings:.2f}") ``` Executed, it shows: 401.28 The pay is $401.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "401.28", "printed": "401.28", "notation": null}
nlprog_det-setting-0072400
<|start|><|system|> Functions: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> What simple interest does $8,000 earn at...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0072401
Printing costs 5 cents a page. What does it cost to print 197 copies of a 41-page handout? Written as code: ```python pages = 41 copies = 197 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 403.85 print(f"{cost:.2f}") ``` It outputs: 403.85 Printing costs $403.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "403.85", "printed": "403.85", "notation": null}
nlprog_det-setting-0072402
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A service c...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072403
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Fines run at $25 per day up to a maximum of $2,500. How much after 5 days?<|eot|> <|assistant|> ```python per_day = 25 days = 5 cap = 2500 fine = min(per_day * days, cap) # 125 print(fine) ``` # console output: 125 The fine is $125.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Fines run at $25 per day up to a maximum of $2,500. How much after 5 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 5\ncap = 2500\nfine = min(per_day * day...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0072405
What is 30 degrees Celsius in Fahrenheit? A few lines of Python do it: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Console output: 86 It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0072406
<|start|><|user|> Convert 18.9 km to meters.<|eot|> <|assistant|> ```python km = 18.9 meters = km * 1000 # 18900.0 print(round(meters)) ``` It outputs: 18900 18,900 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 18.9 km to meters." }, { "role": "assistant", "content": "```python\nkm = 18.9\nmeters = km * 1000 # 18900.0\nprint(round(meters))\n```\nIt outputs: 18900\n\n18,900 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "18900", "printed": "18900", "notation": null}
nlprog_det-setting-0072407
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` Result: 24 The annual plan sav...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 276\ns...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072408
Convert 3,440 GBP to USD at 1 GBP = 0.92 USD. In code: ```python amount = 3440 rate = 0.92 converted = amount * rate # 3164.8 print(f"{converted:.2f}") ``` Out — 3164.80 That is 3,164.80 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3164.80", "printed": "3164.80", "notation": null}
nlprog_det-setting-0072409
How many of 17 members form a majority (more than half)? Here's the code. ```python members = 17 majority = members // 2 + 1 # 9 print(majority) ``` Run it and it prints 9. That is 9 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0072410
<|start|><|user|> Each of Vera's walks burns 400 calories. How many calories over 4 walks?<|eot|> <|assistant|> ```python per_session = 400 sessions = 4 total = per_session * sessions print(total) ``` Execution result — 1600 That burns 1600 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Vera's walks burns 400 calories. How many calories over 4 walks?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions\nprint(total)\n```\nExecution result — 1600\n\nThat burns 1600 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0072411
<|start|><|user|> After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> grant = 24000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 1750.0 print(f"{each:.2f}") Run output: 1750.00 $1,750.00 per in...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": " grant = 24000\n up_front = 3000\n installments = 12\n each = (grant - up_front) / installments # 1750.0\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0072412
A garage charges $5 an hour, never more than $20 a day. How much for 10 hours? The Python version: rate = 5 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) The run gives 20, as expected. Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0072413
What is 0 degrees Celsius in Fahrenheit? Coded up: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Console output — 32 It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0072414
<|start|><|user|> What commission does Sara make on $84,070 in sales at 5%?<|eot|> <|assistant|> ```python sales = 84070 rate = 5 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Output: 4203.50 Sara earns $4,203.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Sara make on $84,070 in sales at 5%?" }, { "role": "assistant", "content": "```python\nsales = 84070\nrate = 5 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nOutput: 4203.50\n\nSara earns $4,203.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4203.50", "printed": "4203.50", "notation": null}
nlprog_det-setting-0072415
What average speed covers 550 miles in 2 hours? Code: ```python distance = 550 hours = 2 speed = distance / hours # 275.0 print(round(speed)) ``` Printed result: 275 The average speed is 275 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0072416
<|start|><|user|> Attendance was 10 out of 20. Express it as a percent.<|eot|> <|assistant|> 50.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 10 out of 20. Express it as a percent." }, { "role": "assistant", "content": "50.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0072417
A quorum is 1/3 of the 31 members, rounded up. How many members make a quorum? Python version: ```python import math members = 31 quorum = math.ceil(members * 1 / 3) # 11 print(quorum) ``` Run output — 11 That is 11 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0072418
<|start|><|system|> You can call tools. Available tools: {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A claim accrued on July 9, ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "2020-07-09", "printed": "2020-07-09", "notation": null}
nlprog_det-setting-0072419
<|start|><|user|> Buying 5 cables at $4 each, 6 notebooks at $10 each, 5 envelopes at $16 each, 4 paper reams at $28 each, someone hands over $300. What change comes back?<|eot|> <|assistant|> ```python items = [(5, 4), (6, 10), (5, 16), (4, 28)] total = sum(q * p for q, p in items) paid = 300 change = paid - total pri...
chat
[ { "role": "user", "content": "Buying 5 cables at $4 each, 6 notebooks at $10 each, 5 envelopes at $16 each, 4 paper reams at $28 each, someone hands over $300. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(5, 4), (6, 10), (5, 16), (4, 28)]\ntotal = sum(q * p...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0072420
Under a 35% contingency agreement, what fee is owed on a $25,000 award? As Python: ```python recovery = 25000 rate = 35 / 100 # 0.35 fee = recovery * rate # 8750.0 print(f"{fee:.2f}") ``` Console output: 8750.00 The fee is $8,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0072422
With 5 rows of 22 chairs and 37 empty chairs, how many chairs are taken? In code: ```python rows = 5 per_row = 22 empty = 37 seated = rows * per_row - empty # 73 print(seated) ``` stdout: 73 73 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0072423
<|start|><|user|> An invoice lists 21 scissors at $3 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 21 unit_price = 3 subtotal = quantity * unit_price # 63 total = subtotal * (1 + 6 / 100) # 66.78 print(f"{total:.2f}") The program outputs: 66.78 The total with...
chat
[ { "role": "user", "content": "An invoice lists 21 scissors at $3 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 21\n unit_price = 3\n subtotal = quantity * unit_price # 63\n total = subtotal * (1 + 6 / 100) # 66.78\n print(...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "66.78", "printed": "66.78", "notation": null}
nlprog_det-setting-0072424
<|start|><|user|> 183 copies of a 48-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 48 copies = 183 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 439.20000000000005 print(f"{cost:.2f}") ``` Output — 439.20 The job costs $439.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "183 copies of a 48-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 48\ncopies = 183\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 439.20000000000005\nprint(f\"{cost:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "439.20", "printed": "439.20", "notation": null}
nlprog_det-setting-0072425
Fuel for 120 miles at 24 mpg, with gas at $4.59/gallon: what is the cost? Fuel costs $22.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "22.95", "printed": "22.95", "notation": null}
nlprog_det-setting-0072426
<|start|><|user|> Each storage box holds 50 files. How many boxes are needed for 827 files?<|eot|> <|assistant|> ```python import math files = 827 per_box = 50 boxes = math.ceil(files / per_box) # 17 print(boxes) ``` Result: 17 It takes 17 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 827 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 827\nper_box = 50\nboxes = math.ceil(files / per_box) # 17\nprint(boxes)\n```\nResult:\n17\n\nIt takes 17 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0072427
<|start|><|user|> Parking is $2 per hour with a daily maximum of $24. What do 7 hours cost?<|eot|> <|assistant|> The charge is $14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $24. What do 7 hours cost?" }, { "role": "assistant", "content": "The charge is $14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0072428
<|start|><|user|> To read 265 pages in 5 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 265 days = 5 per_day = pages // days # 53 print(per_day) ``` Python prints 53. 53 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 265 pages in 5 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 265\ndays = 5\nper_day = pages // days # 53\nprint(per_day)\n```\nPython prints 53.\n\n53 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0072429
A hearing is set for September 21, 2007. What day of the week is that? September 21, 2007 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0072430
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 41 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 30.0 pay = regular + overtime # 830.0 print(f"{pay:.2f}") ``` The printout reads ...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 41\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 30.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "830.00", "printed": "830.00", "notation": null}
nlprog_det-setting-0072431
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> At $0.58 per mile, what is the reimbursement for 565 miles?<|eot|> <|assistant|> Marek is owed $327.70.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 565 miles?" }, { "role": "assistant", "content": "Marek is owed $327.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "327.70", "printed": "327.70", "notation": null}
nlprog_det-setting-0072432
<|start|><|system|> Be concise.<|eot|> <|user|> A library charges $0.50 per book per day late. What is the fine for 1 books that are 11 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 11 books = 1 fine = per_day * days_late * books # 5.5 print(f"{fine:.2f}") ``` The code prints: 5.50 $5.50 is owed...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 1 books that are 11 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 11\nbooks = 1\nfine = per_day ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5.50", "printed": "5.50", "notation": null}
nlprog_det-setting-0072433
<|start|><|user|> At a 4% tax rate, what is the tax on $775.69?<|eot|> <|assistant|> ```python price = 775.69 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 31.027600000000003 print(f"{tax:.2f}") ``` Run output — 31.03 The tax is $31.03.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 4% tax rate, what is the tax on $775.69?" }, { "role": "assistant", "content": "```python\nprice = 775.69\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 31.027600000000003\nprint(f\"{tax:.2f}\")\n```\nRun output — 31.03\n\nThe tax is $31.03." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "31.03", "printed": "31.03", "notation": null}
nlprog_det-setting-0072434
Which is cheaper per unit: 8 for $7.56 (A) or 20 for $30.97 (B)? As Python: ```python pack_a = 7.56 / 8 # 0.945 pack_b = 30.97 / 20 # 1.5485 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` On running, it outputs A. A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0072435
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Monthly: $15. Annual: $162. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 15 yearly = 162 savings = monthly * 12 - yearly print(savings) ``` The code prints: 18 The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Monthly: $15. Annual: $162. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 162\nsavings = monthly * 12 - yearly\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072436
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Beatriz's scores were 87,...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0072437
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A clerk's office charges $35 for each filing. Beatriz submits 14 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 35 filings = 14 total = fee * filings # 490 print(total) ``` Execution prints 490. The total fee is $490....
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A clerk's office charges $35 for each filing. Beatriz submits 14 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 14\ntota...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "490", "printed": "490", "notation": null}
nlprog_det-setting-0072438
<|start|><|user|> Attendance was 144 out of 200. Express it as a percent.<|eot|> <|assistant|> Attendance was 72.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 144 out of 200. Express it as a percent." }, { "role": "assistant", "content": "Attendance was 72.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "72.0", "printed": "72.0", "notation": null}
nlprog_det-setting-0072439
A penalty of $100 a day accrues, capped at $2,500. What is owed after 32 days? per_day = 100 days = 32 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) It prints: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0072441
A party has 21 days to respond to a motion served on February 5, 2021, with 3 days added because service was by mail. When is the response due? Python: ```python from datetime import date, timedelta served = date(2021, 2, 5) # datetime.date(2021, 2, 5) response_days = 21 mail_days = 3 due = served + timedelta(days=re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2021-03-01", "printed": "2021-03-01", "notation": null}
nlprog_det-setting-0072442
<|start|><|user|> A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $10,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $10,200." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0072443
<|start|><|user|> A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 1200 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 180.0 ...
chat
[ { "role": "user", "content": "A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": " principal = 1200\n annual_rate = 5 / 100 # 0.05\n months = 36\n in...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "38.33", "printed": "38.33", "notation": null}
nlprog_det-setting-0072444
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "57.0", "printed": "57.0", "notation": null}
nlprog_det-setting-0072445
Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons? Coded up: ```python base = 20 rate = 3.5 used = 10 free = 0 bill = base + rate * max(0, used - free) # 55.0 print(f"{bill:.2f}") ``` The interpreter prints 55.00. The bill is $55.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "55.00", "printed": "55.00", "notation": null}
nlprog_det-setting-0072446
<|start|><|user|> The statute was enacted in 2016. How many years had passed by 2051?<|eot|> <|assistant|> ```python start_year = 2016 end_year = 2051 print(end_year - start_year) ``` It outputs: 35 35 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2016. How many years had passed by 2051?" }, { "role": "assistant", "content": "```python\nstart_year = 2016\nend_year = 2051\nprint(end_year - start_year)\n```\nIt outputs: 35\n\n35 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0072447
Each storage box holds 50 files. How many boxes are needed for 697 files? The computation: import math files = 697 per_box = 50 boxes = math.ceil(files / per_box) # 14 print(boxes) Printed result — 14 It takes 14 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0072448
An office budget of $5,000 has expenses of $2,127, $1,877. How much of the budget is left? A few lines of Python do it: ```python budget = 5000 expenses = [2127, 1877] left = budget - sum(expenses) # 996 print(left) ``` Output of the run: 996 $996 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "996", "printed": "996", "notation": null}
nlprog_det-setting-0072449
6 claimants share a $960 settlement equally. What is each share? The Python version: ```python settlement = 960 parties = 6 share = settlement // parties # 160 print(share) ``` (stdout: 160) Each share is $160.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0072450
<|start|><|user|> How many meters are in 30.4 kilometers?<|eot|> <|assistant|> ```python km = 30.4 meters = km * 1000 # 30400.0 print(round(meters)) ``` Running this gives: 30400 30,400 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 30.4 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 30.4\nmeters = km * 1000 # 30400.0\nprint(round(meters))\n```\nRunning this gives: 30400\n\n30,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "30400", "printed": "30400", "notation": null}
nlprog_det-setting-0072451
Counting only Monday through Friday, how many business days are there after December 7, 2019 through January 4, 2020? Let's compute it with Python. from datetime import date, timedelta start = date(2019, 12, 7) end = date(2020, 1, 4) count = 0 for k in range(1, (end - start).days + 1): if (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0072452
5 walks at 300 calories each burn how many calories in total? Code: ```python per_session = 300 sessions = 5 total = per_session * sessions # 1500 print(total) ``` (Program output: 1500) 1500 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0072453
A measure needs at least 60% of 51 votes. How many votes is that, rounded up? Python version: ```python import math voters = 51 needed = math.ceil(voters * 60 / 100) # 31 print(needed) ``` The run gives 31. At least 31 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0072454
Convert 5 h 7 min (the length of a training session) to minutes. Code: ```python hours = 5 minutes = 7 total_minutes = hours * 60 + minutes # 307 print(total_minutes) ``` It outputs: 307 That is 307 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0072456
4 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Here is the program. ```python award = 72000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` (Program output: 12600.00) Each share is $12,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "12600.00", "printed": "12600.00", "notation": null}
nlprog_det-setting-0072457
What percentage of $5,000 is $2,600? The program: ```python budget = 5000 spent = 2600 percent = spent / budget * 100 # 52.0 print(round(percent, 1)) ``` Executed, it shows 52.0. That is 52.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0072458
What is 40 degrees Celsius in Fahrenheit? Python, step by step: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Execution result: 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0072459
From a $7,500 retainer, 7 hours at $200/hour have been drawn. What remains? Python: ```python retainer = 7500 hours = 7 rate = 200 left = retainer - hours * rate # 6100 print(left) ``` Interpreter output — 6100 $6,100 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6100", "printed": "6100", "notation": null}
nlprog_det-setting-0072460
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 11 thousand gallons? One way, in code: ```python base = 15 rate = 3.5 used = 11 free = 3 bill = base + rate * max(0, used - free) # 43.0 print(f"{bill:.2f}") ``` When run, it prints 43.00. The bill is $43.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "43.00", "printed": "43.00", "notation": null}
nlprog_det-setting-0072462
Straight-line depreciation: cost $45,000, salvage $2,000, 3 years. How much per year? As a program: ```python cost = 45000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 14333.333333333334 print(f"{per_year:.2f}") ``` Interpreter output: 14333.33 Depreciation is $14,333.33 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "14333.33", "printed": "14333.33", "notation": null}
nlprog_det-setting-0072463
Convert 5.6 km to meters. Python, step by step: ```python km = 5.6 meters = km * 1000 # 5600.0 print(round(meters)) ``` Output — 5600 5,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "5600", "printed": "5600", "notation": null}
nlprog_det-setting-0072464
With 30% off, what does a $45 desk lamp cost? Computing it: ```python price = 45 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 31.499999999999996 print(f"{sale_price:.2f}") ``` When run, it prints 31.50. It costs $31.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0072465
<|start|><|user|> A 3% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1500 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1545.0 print(f"{new_rent:.2f}") ``` # program output: 1545.00 It rises to $1,545.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,500 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1545.0\nprint(f\"{new_rent:.2f}\")\n```\n# program output: 1545.00...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1545.00", "printed": "1545.00", "notation": null}
nlprog_det-setting-0072466
Fines run at $250 per day up to a maximum of $1,000. How much after 57 days? Program: ```python per_day = 250 days = 57 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Execution prints 1000. The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0072467
<|start|><|system|> Tools (call with JSON): [{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetch_filing", "description": "F...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
324
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0072468
<|start|><|user|> 3 runs at 350 calories each burn how many calories in total?<|eot|> <|assistant|> 1050 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 runs at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "1050 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0072469
<|start|><|system|> Functions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "pro...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"compute\", \"description\": \"Executes Python code ...
nlprog_det
setting
original
null
deterministic
[]
[]
346
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0072470
What is 25 degrees Celsius in Fahrenheit? In code: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Output — 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0072471
Monthly: $29. Annual: $300. What is saved per year by paying annually? ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly print(savings) ``` (Printed: 48) $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0072472
<|start|><|user|> Each of Tomas's bike rides burns 250 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) ``` The program prints 1750. That burns 1750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Tomas's bike rides burns 250 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 7\ntotal = per_session * sessions # 1750\nprint(total)\n```\nThe program prints 1750.\n\nThat burns 1...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0072473
<|start|><|user|> 7 bike rides at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Executing it gives 2450. 2450 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 bike rides at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions # 2450\nprint(total)\n```\nExecuting it gives 2450.\n\n2450 calories in total." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0072474
Express 229 hours in days and hours. As Python: ```python hours = 229 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executing it gives: 9 days and 13 hours That is 9 days and 13 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "9 days and 13 hours", "printed": "9 days and 13 hours", "notation": null}
nlprog_det-setting-0072475
$1,000 is invested at 3% compounded yearly. What is it worth after 2 years? As Python: principal = 1000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 1060.8999999999999 print(f"{value:.2f}") Printed: 1060.90 It is worth $1,060.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1060.90", "printed": "1060.90", "notation": null}
nlprog_det-setting-0072476
<|start|><|system|> You have access to these functions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "search_cases", "description": "Search case law by keyword.",...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"searc...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0072477
<|start|><|system|> Be brief and correct.<|eot|> <|user|> 21 of 40 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 21 total = 40 percent = present / total * 100 # 52.5 print(round(percent, 1)) ``` Output: 52.5 52.5% attended.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "21 of 40 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 21\ntotal = 40\npercent = present / total * 100 # 52.5\nprint(round(percent, 1))\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0072478
How many meters are in 67.7 kilometers? A short script: ```python km = 67.7 meters = km * 1000 # 67700.0 print(round(meters)) ``` The run gives 67700. 67,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "67700", "printed": "67700", "notation": null}
nlprog_det-setting-0072479
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> How many units a...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0072480
<|start|><|user|> The paralegal logged 2.5 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> ```python hours = 2.5 rate = 150 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` Program output: 375.00 That comes to $375.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 2.5 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 150\nbill = hours * rate # 375.0\nprint(f\"{bill:.2f}\")\n```\nProgram output: 375.00\n\nThat comes to $375.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0072481
<|start|><|system|> Tools (call with JSON): {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "business_days", "description": "Count business days...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{\"na...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0072482
Papers were served by mail on April 12, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Coded up: ```python from datetime import date, timedelta served = date(2024, 4, 12) # datetime.date(2024, 4, 12) response_days = 14 mail_days = 3 due = served + timedelta(days=re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2024-04-29", "printed": "2024-04-29", "notation": null}
nlprog_det-setting-0072483
<|start|><|user|> What does $1,000 grow to in 3 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` What it prints — 1157.63 It is worth $1,157.63.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 3 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 1157.6250000000002\nprint(f\"{value:.2f}\")\n```\nWhat it ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0072484
<|start|><|user|> If a 75-minute appointment begins at 8:40 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 8 * 60 + 40 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 9:55 AM, as expected. The appointment...
chat
[ { "role": "user", "content": "If a 75-minute appointment begins at 8:40 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 40\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "9:55 AM", "printed": "9:55 AM", "notation": null}
nlprog_det-setting-0072485
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A shift runs from 11:14 AM to 12:33 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 11 * 60 + 14 end = 12 * 60 + 33 print(end - start) ``` It prints 79. 79 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A shift runs from 11:14 AM to 12:33 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 14\nend = 12 * 60 + 33\nprint(end - start)\n```\nIt pr...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0072486
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A 328-page report must be reviewed in 8 days. How many pages a day is that, evenly?<|eot|> <|assistant|> 41 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A 328-page report must be reviewed in 8 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "41 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "41", "printed": "41", "notation": null}