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-0060333
Someone works 24 hours at $25.51 per hour. What are the earnings? Code: ```python rate = 25.51 hours = 24 earnings = rate * hours # 612.24 print(f"{earnings:.2f}") ``` # console output: 612.24 That earns $612.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "612.24", "printed": "612.24", "notation": null}
nlprog_det-setting-0060334
<|start|><|user|> A library charges $0.10 per book per day late. What is the fine for 1 books that are 24 days late?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 24 books = 1 fine = per_day * days_late * books print(f"{fine:.2f}") ``` It prints 2.40, as expected. The fine is $2.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 1 books that are 24 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 24\nbooks = 1\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nIt prints ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0060335
<|start|><|user|> Notice was given on December 6, 2027. The notice period is 60 days. When does it run out?<|eot|> <|assistant|> The period ends on February 4, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Notice was given on December 6, 2027. The notice period is 60 days. When does it run out?" }, { "role": "assistant", "content": "The period ends on February 4, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2028-02-04", "printed": "2028-02-04", "notation": null}
nlprog_det-setting-0060336
Fiona earns a 10% commission on $12,695 of sales. What is the commission? The Python version: ```python sales = 12695 rate = 10 / 100 # 0.1 commission = sales * rate # 1269.5 print(f"{commission:.2f}") ``` The program prints 1269.50, as expected. The commission is $1,269.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1269.50", "printed": "1269.50", "notation": null}
nlprog_det-setting-0060337
A shift runs from 7:17 AM to 10:38 AM. How long is it in minutes? The computation: ```python start = 7 * 60 + 17 # 437 end = 10 * 60 + 38 # 638 print(end - start) ``` It prints 201. 201 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0060338
Attendance was 30 out of 50. Express it as a percent. As Python: ```python present = 30 total = 50 percent = present / total * 100 # 60.0 print(round(percent, 1)) ``` Out: 60.0 Attendance was 60.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0060339
At 1% a month (simple), what interest builds on $2,500 over 3 months? One way, in code: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` Execution prints 75.00, as expected. $75.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0060340
An invoice lists 5 tape rolls at $8 each, plus 6% sales tax. What is the invoice total? A few lines of Python do it: ```python quantity = 5 unit_price = 8 subtotal = quantity * unit_price # 40 total = subtotal * (1 + 6 / 100) # 42.400000000000006 print(f"{total:.2f}") ``` (Output: 42.40) The invoice total is $42.40...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "42.40", "printed": "42.40", "notation": null}
nlprog_det-setting-0060341
<|start|><|system|> You may call the tools below. {"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 customer buys 3 st...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0060342
<|start|><|user|> A $2,400 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 120.0 payment...
chat
[ { "role": "user", "content": "A $2,400 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 5 / 100 # 0.05\nmonths = 12\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0060343
<|start|><|user|> At 2% a month (simple), what interest builds on $1,000 over 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` This prints 40.00. $40.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $1,000 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 40.0\nprint(f\"{interest:.2f}\")\n```\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0060344
<|start|><|system|> You may call the tools below. {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "paramet...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"eval_python\", \"description\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0060345
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A $2,400 loan car...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
260
{"gold": "78.67", "printed": "78.67", "notation": null}
nlprog_det-setting-0060346
Convert 13.3 km to meters. We can compute it in Python. ```python km = 13.3 meters = km * 1000 print(round(meters)) ``` # out: 13300 That is 13,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "13300", "printed": "13300", "notation": null}
nlprog_det-setting-0060347
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "description": "Search case law by k...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}, {\"nam...
nlprog_det
setting
original
null
deterministic
[]
[]
265
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060348
Parking is $4 per hour with a daily maximum of $24. What do 8 hours cost? The computation: rate = 4 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) Executing it gives: 24 Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0060349
<|start|><|user|> Walls total 871 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 871 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` stdout: 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 871 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 871\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nstdout:\n3\n\n3 cans are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0060350
To read 760 pages in 20 days, how many pages per day are needed? A Python solution: ```python pages = 760 days = 20 per_day = pages // days # 38 print(per_day) ``` When run, it prints: 38 That is 38 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0060351
<|start|><|user|> A settlement of $522 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 522 parties = 6 share = settlement // parties # 87 print(share) ``` Output = 87 Each party receives $87.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $522 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 522\nparties = 6\nshare = settlement // parties # 87\nprint(share)\n```\nOutput = 87\n\nEach party receives $87."...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0060352
Split $2,884 between Mateo and Nilufar in the ratio 1 to 3. What is Mateo's share? ```python total = 2884 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 721 print(share_a) ``` Running this gives: 721 Mateo gets $721.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "721", "printed": "721", "notation": null}
nlprog_det-setting-0060353
From a $7,500 retainer, 12 hours at $275/hour have been drawn. What remains? In code: retainer = 7500 hours = 12 rate = 275 left = retainer - hours * rate # 4200 print(left) The script prints 4200. The remaining balance is $4,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "4200", "printed": "4200", "notation": null}
nlprog_det-setting-0060354
What is a 20% tip on a $151.55 bill? We can compute it in Python. bill = 151.55 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 30.310000000000002 print(f"{tip:.2f}") The printout reads: 30.31 The tip is $30.31.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "30.31", "printed": "30.31", "notation": null}
nlprog_det-setting-0060355
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0060356
<|start|><|system|> You may call the tools below. {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Someone works ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "759.62", "printed": "759.62", "notation": null}
nlprog_det-setting-0060357
Prorate $1,500 of monthly rent for 21 days of a 31-day month. Python code: ```python rent = 1500 days_in_month = 31 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1016.1290322580645 print(f"{prorated:.2f}") ``` The program prints 1016.13, as expected. The tenant owes $1,016.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1016.13", "printed": "1016.13", "notation": null}
nlprog_det-setting-0060358
<|start|><|user|> If a 40-minute hearing begins at 8:10 AM, what time does it finish?<|eot|> <|assistant|> The hearing finishes at 8:50 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 40-minute hearing begins at 8:10 AM, what time does it finish?" }, { "role": "assistant", "content": "The hearing finishes at 8:50 AM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "8:50 AM", "printed": "8:50 AM", "notation": null}
nlprog_det-setting-0060359
Walls total 1006 sq ft and each can covers 400 sq ft. How many cans should be bought? Coded up: ```python import math area = 1006 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running it prints 3. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0060360
A shift runs from 8:35 AM to 10:17 AM. How long is it in minutes? ```python start = 8 * 60 + 35 # 515 end = 10 * 60 + 17 # 617 print(end - start) ``` Out = 102 102 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0060361
A meal costs $101.67. How much is a 10% tip? One way, in code: ```python bill = 101.67 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 10.167000000000002 print(f"{tip:.2f}") ``` Execution prints 10.17, as expected. Leave $10.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "10.17", "printed": "10.17", "notation": null}
nlprog_det-setting-0060362
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 12 months. How large is a payment? Computation in Python: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 300.0 payment = (principal + interest) / months # 525.0 print(f"{pa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0060363
How many minutes pass from 7:14 AM to 10:01 AM on the same day? In Python: ```python start = 7 * 60 + 14 # 434 end = 10 * 60 + 1 # 601 print(end - start) ``` It outputs: 167 167 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0060364
Fines run at $25 per day up to a maximum of $5,000. How much after 43 days? One way, in code: ```python per_day = 25 days = 43 cap = 5000 fine = min(per_day * days, cap) # 1075 print(fine) ``` Run output — 1075 The fine is $1,075.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1075", "printed": "1075", "notation": null}
nlprog_det-setting-0060366
A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Program: ```python principal = 3600 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0060367
<|start|><|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> The interest is $240.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "The interest is $240.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0060368
Pack A has 10 items for $7.14. Pack B has 20 items for $24.31. Which has the lower price per item? A few lines of Python do it: ```python pack_a = 7.14 / 10 # 0.714 pack_b = 24.31 / 20 # 1.2155 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Console: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0060369
Fiona was born on May 19, 1954. How old is Fiona on April 2, 2023? Written as code: ```python from datetime import date born = date(1954, 5, 19) # datetime.date(1954, 5, 19) on = date(2023, 4, 2) # datetime.date(2023, 4, 2) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 68 print(age) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0060370
From 2013 to 2028, how many years is that? Here is the program. ```python start_year = 2013 end_year = 2028 print(end_year - start_year) ``` Result = 15 That is 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060371
<|start|><|user|> On which weekday does December 23, 2001 fall?<|eot|> <|assistant|> December 23, 2001 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does December 23, 2001 fall?" }, { "role": "assistant", "content": "December 23, 2001 is a Sunday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0060372
<|start|><|user|> The paralegal logged 2 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> ```python hours = 2 rate = 150 bill = hours * rate # 300 print(f"{bill:.2f}") ``` What it prints: 300.00 That comes to $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 2 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 150\nbill = hours * rate # 300\nprint(f\"{bill:.2f}\")\n```\nWhat it prints: 300.00\n\nThat comes to $300.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0060373
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment? Python: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 payment = (principal + interest) / months # 196.66666666666666 print(f"{pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0060374
Goods bought on June 27, 2021 carry a 12-month warranty. When does it expire? Python code: ```python from datetime import date start = date(2021, 6, 27) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execution ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2022-06-27", "printed": "2022-06-27", "notation": null}
nlprog_det-setting-0060375
Counting the first and last day, how many days are there from March 19, 2028 through April 6, 2028? One way, in code: ```python from datetime import date first = date(2028, 3, 19) # datetime.date(2028, 3, 19) last = date(2028, 4, 6) # datetime.date(2028, 4, 6) days = (last - first).days + 1 # 19 print(days) ``` Res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0060376
Idris earns a 10% commission on $22,724 of sales. What is the commission? The program: ```python sales = 22724 rate = 10 / 100 # 0.1 commission = sales * rate # 2272.4 print(f"{commission:.2f}") ``` Executed, it shows: 2272.40 Idris earns $2,272.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2272.40", "printed": "2272.40", "notation": null}
nlprog_det-setting-0060377
A hearing starts at 4:10 PM and lasts 135 minutes. When does it end? The hearing finishes at 6:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "6:25 PM", "printed": "6:25 PM", "notation": null}
nlprog_det-setting-0060379
Copies cost $5 plus $0.50 for each page beyond 20. How much for 68 pages? Program: ```python pages = 68 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 29.0 print(f"{cost:.2f}") ``` Python prints: 29.00 The copy costs $29.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "29.00", "printed": "29.00", "notation": null}
nlprog_det-setting-0060380
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 57 days?<|eot|> <|assistant|> ```python per_day = 25 days = 57 cap = 5000 fine = min(per_day * days, cap) # 1425 print(fine) ``` It prints 1425, as expected. $1,425 is owed.<|eot|> <|e...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 57 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 57\ncap = 5000\nfine = min(per_day * day...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1425", "printed": "1425", "notation": null}
nlprog_det-setting-0060381
<|start|><|user|> Prorate $2,400 of monthly rent for 6 days of a 31-day month.<|eot|> <|assistant|> The tenant owes $464.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 6 days of a 31-day month." }, { "role": "assistant", "content": "The tenant owes $464.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "464.52", "printed": "464.52", "notation": null}
nlprog_det-setting-0060382
At a 5% tax rate, what is the tax on $890.70? Here is a short program for it. ```python price = 890.7 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 44.535000000000004 print(f"{tax:.2f}") ``` Execution prints 44.54. The tax is $44.54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "44.54", "printed": "44.54", "notation": null}
nlprog_det-setting-0060383
<|start|><|user|> After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> $12,000.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "$12,000.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0060384
A settlement of $18,000 is split equally among 2 parties. How much does each party receive? ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` It outputs 9000. Each party receives $9,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0060385
Filing fees are $75 per document. What do 18 filings cost? ```python fee = 75 filings = 18 total = fee * filings # 1350 print(total) ``` Run it and it prints 1350. $1,350 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0060386
<|start|><|user|> A workshop lasted 3 hours and 46 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 46 total_minutes = hours * 60 + minutes # 226 print(total_minutes) ``` The run gives 226. That is 226 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 3 hours and 46 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 46\ntotal_minutes = hours * 60 + minutes # 226\nprint(total_minutes)\n```\nThe run gives 226.\n\nThat is 226 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "226", "printed": "226", "notation": null}
nlprog_det-setting-0060387
<|start|><|user|> A count moves from 200 to 210. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 200 new = 210 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` On running, it outputs: 5 The change is 5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 200 to 210. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 200\nnew = 210\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nOn running, it outputs: 5\n\nThe c...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060389
Fines run at $25 per day up to a maximum of $5,000. How much after 57 days? Here's the code. ```python per_day = 25 days = 57 cap = 5000 fine = min(per_day * days, cap) print(fine) ``` Shell output: 1425 $1,425 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1425", "printed": "1425", "notation": null}
nlprog_det-setting-0060390
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "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"]}}]<|eot|> <|user|> 101 copies o...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"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\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "186.85", "printed": "186.85", "notation": null}
nlprog_det-setting-0060391
Omar lends $8,000 at 2% simple interest per year for 3 years. How much interest is earned? Set it up in Python: ```python principal = 8000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 480.0 print(f"{interest:.2f}") ``` Run output — 480.00 The interest is $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0060392
<|start|><|system|> You may call the tools below. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters"...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"py_exec\", \"description\": \"Execu...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0060394
<|start|><|user|> One can of paint covers 400 square feet. How many cans are needed for 639 square feet of wall?<|eot|> <|assistant|> ```python import math area = 639 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Execution result: 2 Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 639 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 639\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nExecution result: 2\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0060395
<|start|><|user|> How much is a $79 daily meal allowance over 7 days?<|eot|> <|assistant|> The allowance is $553.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $79 daily meal allowance over 7 days?" }, { "role": "assistant", "content": "The allowance is $553." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0060396
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A garage charges $5 an hour, never more than $24 a day. How much for 2 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 2 daily_max = 24 cost = min(rate * hours, daily_max) # 10 print(cost) ``` The script prints: 10 Parking costs $10.<|eot|> <|...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A garage charges $5 an hour, never more than $24 a day. How much for 2 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 2\ndaily_max = 24\ncost = min(rate * hou...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0060397
Which is cheaper per unit: 10 for $7.45 (A) or 30 for $24.69 (B)? Program: ```python pack_a = 7.45 / 10 # 0.745 pack_b = 24.69 / 30 # 0.8230000000000001 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Execution prints A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0060398
8 boxes hold 25 hard drives each. After 14 are handed out, how many are left? ```python boxes = 8 per_box = 25 given_away = 14 left = boxes * per_box - given_away # 186 print(left) ``` The interpreter prints 186. 186 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "186", "printed": "186", "notation": null}
nlprog_det-setting-0060399
After an initial $2,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part? ```python grant = 60000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 14500.0 print(f"{each:.2f}") ``` It prints 14500.00, as expected. $14,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0060400
Express 121 hours in days and hours. Here is the program. ```python hours = 121 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` That prints: 5 days and 1 hours That is 5 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "5 days and 1 hours", "printed": "5 days and 1 hours", "notation": null}
nlprog_det-setting-0060402
Count 30 days forward from June 25, 2022. What date is that? Coded up: ```python from datetime import date, timedelta start = date(2022, 6, 25) # datetime.date(2022, 6, 25) end = start + timedelta(days=30) # datetime.date(2022, 7, 25) print(end.isoformat()) ``` Shell output — 2022-07-25 That date is July 25, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2022-07-25", "printed": "2022-07-25", "notation": null}
nlprog_det-setting-0060403
<|start|><|system|> You have access to these functions: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Hana l...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0060404
A hearing is set for November 9, 2012. What day of the week is that? Python does the arithmetic: ```python from datetime import date hearing = date(2012, 11, 9) # datetime.date(2012, 11, 9) print(hearing.strftime("%A")) ``` Console output: Friday November 9, 2012 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0060405
An invoice lists 14 paper reams at $12 each, plus 7% sales tax. What is the invoice total? ```python quantity = 14 unit_price = 12 subtotal = quantity * unit_price # 168 total = subtotal * (1 + 7 / 100) # 179.76000000000002 print(f"{total:.2f}") ``` Shell output: 179.76 The total with tax is $179.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "179.76", "printed": "179.76", "notation": null}
nlprog_det-setting-0060406
A measure needs at least 67% of 29 votes. How many votes is that, rounded up? Code: ```python import math voters = 29 needed = math.ceil(voters * 67 / 100) # 20 print(needed) ``` Output: 20 At least 20 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0060407
A quorum is 1/3 of the 37 members, rounded up. How many members make a quorum? Coded up: import math members = 37 quorum = math.ceil(members * 1 / 3) print(quorum) Printed — 13 13 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0060408
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours? In Python: ```python rate = 20.0 hours = 48 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Out: 1040.00 The weekly pay is $1,040.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0060409
<|start|><|user|> $2,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 2080.8 print(f"{value:.2f}") ``` When run, it prints 2080.80, as expected. It is worth $2,080.80.<|eo...
chat
[ { "role": "user", "content": "$2,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 2080.8\nprint(f\"{value:.2f}\")\n```\nWhen r...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2080.80", "printed": "2080.80", "notation": null}
nlprog_det-setting-0060410
3 claimants share a $2,640 settlement equally. What is each share? In Python: settlement = 2640 parties = 3 share = settlement // parties # 880 print(share) # run result: 880 Each party receives $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0060411
<|start|><|system|> Tools (call with JSON): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"fetch_filing\", \"description\": \"Fe...
nlprog_det
setting
original
null
deterministic
[]
[]
351
{"gold": "2350", "printed": "2350", "notation": null}
nlprog_det-setting-0060412
Split $5,327 between Kemal and Sofia in the ratio 2 to 5. What is Kemal's share? The Python version: total = 5327 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1522 print(share_a) The run gives 1522, as expected. Kemal gets $1,522.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1522", "printed": "1522", "notation": null}
nlprog_det-setting-0060413
Convert 750 GBP to USD at 1 GBP = 1.35 USD. Coded up: ```python amount = 750 rate = 1.35 converted = amount * rate # 1012.5000000000001 print(f"{converted:.2f}") ``` Out: 1012.50 That is 1,012.50 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1012.50", "printed": "1012.50", "notation": null}
nlprog_det-setting-0060414
<|start|><|user|> What is 5 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) Result: 41 That is 41 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 5 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": " celsius = 5\n fahrenheit = celsius * 9 / 5 + 32 # 41.0\n print(round(fahrenheit))\nResult: 41\n\nThat is 41 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0060415
460 files go into boxes of 40. How many boxes does that take? Program: ```python import math files = 460 per_box = 40 boxes = math.ceil(files / per_box) # 12 print(boxes) ``` It prints 12, as expected. It takes 12 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0060416
Fines run at $50 per day up to a maximum of $1,000. How much after 35 days? A short script: ```python per_day = 50 days = 35 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` That 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-0060417
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Of a $5,000 budget, $1,200 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 1200 percent = spent / budget * 100 # 24.0 print(round(percent, 1)) ``` Running it prints: 24.0 That is 24.0% of the budget....
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Of a $5,000 budget, $1,200 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 1200\npercent = spent / budget * 100 # ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0060418
<|start|><|user|> Count the days between July 17, 2026 and March 29, 2027.<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 7, 17) # datetime.date(2026, 7, 17) second = date(2027, 3, 29) # datetime.date(2027, 3, 29) print((second - first).days) ``` Console: 255 There are 255 days between t...
chat
[ { "role": "user", "content": "Count the days between July 17, 2026 and March 29, 2027." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 7, 17) # datetime.date(2026, 7, 17)\nsecond = date(2027, 3, 29) # datetime.date(2027, 3, 29)\nprint((second - f...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0060419
How many 2-foot square tiles cover a 8 ft by 4 ft floor (round up)? As Python: ```python import math length = 8 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 8 print(tiles) ``` Shell output: 8 8 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0060421
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 67 copies of a 5-page handout?<|eot|> <|assistant|> ```python pages = 5 copies = 67 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 26.8 print(f"{cost:.2f}") ``` Program output — 26.80 The job costs $26.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 67 copies of a 5-page handout?" }, { "role": "assistant", "content": "```python\npages = 5\ncopies = 67\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 26.8\nprint(f\"{cost:.2f}\")\n```\nProgr...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "26.80", "printed": "26.80", "notation": null}
nlprog_det-setting-0060422
<|start|><|user|> A 2% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1500 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1530.0 print(f"{new_rent:.2f}") ``` Printed — 1530.00 The new rent is $1,530.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $1,500 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1530.0\nprint(f\"{new_rent:.2f}\")\n```\nPrinted — 1530.00\n\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0060423
Lena's scores were 97, 79, 77, 55, 70, 82 and 79. What is the average score? The mean is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0060424
Rent of $1,100 goes up 5%. What is the new rent? In Python: ```python rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") ``` Console output: 1155.00 The new rent is $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0060425
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Filing fees are $25 per document. What do 8 filings cost?<|eot|> <|assistant|> ```python fee = 25 filings = 8 total = fee * filings # 200 print(total) ``` When run, it prints: 200 $200 in filing fees.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Filing fees are $25 per document. What do 8 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 25\nfilings = 8\ntotal = fee * filings # 200\nprint(total)\n```\nWhen run,...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0060426
<|start|><|user|> Someone born April 10, 2008 turns how old by April 19, 2023? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(2008, 4, 10) # datetime.date(2008, 4, 10) on = date(2023, 4, 19) # datetime.date(2023, 4, 19) age = on.year - born.year - ((on.month, o...
chat
[ { "role": "user", "content": "Someone born April 10, 2008 turns how old by April 19, 2023? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(2008, 4, 10) # datetime.date(2008, 4, 10)\n on = date(2023, 4, 19) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060427
<|start|><|user|> Each of Sara's walks burns 350 calories. How many calories over 7 walks?<|eot|> <|assistant|> That burns 2450 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Sara's walks burns 350 calories. How many calories over 7 walks?" }, { "role": "assistant", "content": "That burns 2450 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0060428
A clerk's office charges $25 for each filing. Bilal submits 18 filings. What is the total fee? The total fee is $450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0060429
How many of 238 votes make 67% (round up)? In code: ```python import math voters = 238 needed = math.ceil(voters * 67 / 100) # 160 print(needed) ``` # result: 160 At least 160 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0060431
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Divide 215 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 215 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Divide 215 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 215\n groups = 9\n per_g...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "23 each, 8 left over", "printed": "23 each, 8 left over", "notation": null}
nlprog_det-setting-0060432
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate t...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "2525", "printed": "2525", "notation": null}
nlprog_det-setting-0060433
<|start|><|user|> Someone works 40 hours at $18.23 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 18.23 hours = 40 earnings = rate * hours print(f"{earnings:.2f}") ``` Execution prints 729.20. That earns $729.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 40 hours at $18.23 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 18.23\nhours = 40\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nExecution prints 729.20.\n\nThat earns $729.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "729.20", "printed": "729.20", "notation": null}
nlprog_det-setting-0060434
<|start|><|user|> 4 books come back 14 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.2 days_late = 14 books = 4 fine = per_day * days_late * books # 11.200000000000001 print(f"{fine:.2f}") Execution prints 11.20. $11.20 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 14 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 14\n books = 4\n fine = per_day * days_late * books # 11.200000000000001\n print(f\"{fine:.2f}\")\nExecution pr...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "11.20", "printed": "11.20", "notation": null}
nlprog_det-setting-0060436
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many mete...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "8800", "printed": "8800", "notation": null}
nlprog_det-setting-0060438
A client paid a $5,000 retainer. The firm has billed 3 hours at $275 per hour. How much of the retainer is left? $4,175 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "4175", "printed": "4175", "notation": null}
nlprog_det-setting-0060439
How many days are there from September 9, 2024 to July 22, 2025? from datetime import date first = date(2024, 9, 9) # datetime.date(2024, 9, 9) second = date(2025, 7, 22) # datetime.date(2025, 7, 22) print((second - first).days) Execution prints 316, as expected. There are 316 days between the two d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "316", "printed": "316", "notation": null}
nlprog_det-setting-0060440
<|start|><|user|> A deposition lasted 4 hours and 30 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 30 total_minutes = hours * 60 + minutes # 270 print(total_minutes) ``` Output: 270 That is 270 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 4 hours and 30 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 30\ntotal_minutes = hours * 60 + minutes # 270\nprint(total_minutes)\n```\nOutput: 270\n\nThat is 270 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0060441
Rent of $1,100 goes up 3%. What is the new rent? It rises to $1,133.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1133.00", "printed": "1133.00", "notation": null}