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-0071001
Notice was given on September 24, 2026. The notice period is 10 days. When does it run out? That date is October 4, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2026-10-04", "printed": "2026-10-04", "notation": null}
nlprog_det-setting-0071002
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Profit is 11.1% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0071003
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 55 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Python prints: 1000.00 The weekly pay is $1,...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 55\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0071004
Convert 25 °C to Fahrenheit. ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Interpreter output — 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0071005
Attendance was 16 out of 25. Express it as a percent. Computing it: ```python present = 16 total = 25 percent = present / total * 100 # 64.0 print(round(percent, 1)) ``` Console output — 64.0 64.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0071007
From 2012 to 2041, how many years is that? The Python version: ```python start_year = 2012 end_year = 2041 print(end_year - start_year) ``` On running, it outputs 29. That is 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0071008
7 boxes hold 25 water bottles each. After 9 are handed out, how many are left? Python makes this quick: ```python boxes = 7 per_box = 25 given_away = 9 left = boxes * per_box - given_away # 166 print(left) ``` # stdout: 166 166 water bottles are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0071009
<|start|><|system|> Functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parame...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0071010
How much sales tax is charged on a $114.21 purchase at 4%? Computing it: ```python price = 114.21 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 4.5684 print(f"{tax:.2f}") ``` # printed: 4.57 The tax is $4.57.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4.57", "printed": "4.57", "notation": null}
nlprog_det-setting-0071012
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080.0 print(f"{interest:.2f}") (stdout: 1080.00) $1,080.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0071013
Kofi buys 5 boxes of 24 keyboards each and gives away 13 keyboards. How many keyboards are left? 107 keyboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0071014
Liesel earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 51-hour week? A Python solution: ```python rate = 22.4 hours = 51 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` The script prints 1265.60. Liesel earns $1,265.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1265.60", "printed": "1265.60", "notation": null}
nlprog_det-setting-0071015
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Convert 35 °C to Fahrenheit.<|eot|> <|assistant|> celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) Run it and it prints 95. That is 95 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Convert 35 °C to Fahrenheit." }, { "role": "assistant", "content": " celsius = 35\n fahrenheit = celsius * 9 / 5 + 32 # 95.0\n print(round(fahrenheit))\nRun it and it prints 95.\n\nThat...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0071016
Meals are $64 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights? Set it up in Python: ```python days = 8 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1492 print(total) ``` The script prints 1492. The allowance is $1,492.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1492", "printed": "1492", "notation": null}
nlprog_det-setting-0071017
A party has 30 days to respond to a motion served on January 3, 2026, with 3 days added because service was by mail. When is the response due? The Python version: ```python from datetime import date, timedelta served = date(2026, 1, 3) # datetime.date(2026, 1, 3) response_days = 30 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2026-02-05", "printed": "2026-02-05", "notation": null}
nlprog_det-setting-0071018
Copies cost $5 plus $0.25 for each page beyond 0. How much for 115 pages? ```python pages = 115 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 33.75 print(f"{cost:.2f}") ``` The program prints 33.75, as expected. The total is $33.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0071019
Ana has 14 documents to file, and each filing costs $45. How much are the filing fees in total? Set it up in Python: ```python fee = 45 filings = 14 total = fee * filings # 630 print(total) ``` Execution result: 630 $630 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "630", "printed": "630", "notation": null}
nlprog_det-setting-0071020
A garage charges $2 an hour, never more than $15 a day. How much for 1 hours? The Python version: ```python rate = 2 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` The script prints 2. Parking costs $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0071021
With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal. Here is a short program for it. ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` (Output: 1.4) The margin is 1.4...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0071022
A claim accrued on October 21, 2016. The limitations period is 2 years. On what date does it expire? Program: ```python from datetime import date accrued = date(2016, 10, 21) # datetime.date(2016, 10, 21) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 10, 21) print(expires.isofo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2018-10-21", "printed": "2018-10-21", "notation": null}
nlprog_det-setting-0071023
Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons? A few lines of Python do it: ```python base = 15 rate = 4.75 used = 6 free = 0 bill = base + rate * max(0, used - free) # 43.5 print(f"{bill:.2f}") ``` # output: 43.50 $43.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "43.50", "printed": "43.50", "notation": null}
nlprog_det-setting-0071024
How many minutes pass from 9:14 AM to 2:44 PM on the same day? Let's compute it with Python. ```python start = 9 * 60 + 14 # 554 end = 14 * 60 + 44 # 884 print(end - start) ``` What it prints: 330 330 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0071025
Which is cheaper per unit: 6 for $13.80 (A) or 30 for $26.04 (B)? Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0071026
To read 320 pages in 20 days, how many pages per day are needed? The program: ```python pages = 320 days = 20 per_day = pages // days print(per_day) ``` The script prints: 16 16 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0071027
A pack of 12 chairs sells for $528. What does each cost? We write it as a program: ```python total = 528 count = 12 per_item = total // count # 44 print(per_item) ``` The program prints: 44 The unit price is $44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0071028
After an initial $6,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Python: ```python grant = 30000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") ``` Running it prints 8000.00. Each installment is $8,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0071029
<|start|><|user|> Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 8 free = 0 bill = base + rate * max(0, used - free) # 43.0 print(f"{bill:.2f}") ``` It outputs 43.00. The bill is $43.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 8\nfree = 0\nbill = base + rate * max(0, used - free) # 43.0\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "43.00", "printed": "43.00", "notation": null}
nlprog_det-setting-0071031
Prorate $1,200 of monthly rent for 13 days of a 31-day month. We can compute it in Python. ```python rent = 1200 days_in_month = 31 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 503.2258064516129 print(f"{prorated:.2f}") ``` Running this gives: 503.23 The prorated rent is $503.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "503.23", "printed": "503.23", "notation": null}
nlprog_det-setting-0071032
Pack A has 8 items for $7.34. Pack B has 20 items for $26.39. Which has the lower price per item? Program: pack_a = 7.34 / 8 # 0.9175 pack_b = 26.39 / 20 # 1.3195000000000001 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) It outputs A. A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0071033
<|start|><|user|> Counting the first and last day, how many days are there from October 14, 2018 through October 17, 2018?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 10, 14) # datetime.date(2018, 10, 14) last = date(2018, 10, 17) # datetime.date(2018, 10, 17) days = (last - first).day...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from October 14, 2018 through October 17, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 10, 14) # datetime.date(2018, 10, 14)\nlast = date(2018, 10, 17)...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0071034
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "641", "printed": "641", "notation": null}
nlprog_det-setting-0071035
<|start|><|user|> A trial runs from February 24, 2027 to March 14, 2027, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 19 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from February 24, 2027 to March 14, 2027, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 19 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0071036
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0071037
A 300-mile drive at a steady 50 mph takes how many minutes? Coded up: ```python distance = 300 speed = 50 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` # program output: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0071038
A meal costs $19.21. How much is a 22% tip? Python, step by step: ```python bill = 19.21 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 4.2262 print(f"{tip:.2f}") ``` On running, it outputs 4.23. Leave $4.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4.23", "printed": "4.23", "notation": null}
nlprog_det-setting-0071039
At $0.58 per mile, what is the reimbursement for 357 miles? Zainab is owed $207.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "207.06", "printed": "207.06", "notation": null}
nlprog_det-setting-0071040
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> How many whole days and leftover hours are in 298 hours?<|eot|> <|assistant|> ```python hours = 298 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out: 12 days and 10 hours 298 hours is 12 days and 10 hours.<|eot|> <|en...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "How many whole days and leftover hours are in 298 hours?" }, { "role": "assistant", "content": "```python\nhours = 298\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {res...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "12 days and 10 hours", "printed": "12 days and 10 hours", "notation": null}
nlprog_det-setting-0071041
<|start|><|user|> A $2,000 security deposit has deductions of $60. How much is refunded?<|eot|> <|assistant|> The refund is $1,940.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $60. How much is refunded?" }, { "role": "assistant", "content": "The refund is $1,940." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1940", "printed": "1940", "notation": null}
nlprog_det-setting-0071042
A count moves from 2,000 to 1,900. By what percent did it change (use a minus sign for a drop)? Python code: ```python old = 2000 new = 1900 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` Execution prints -5. The change is -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0071043
<|start|><|user|> The firm was founded in 2004. How many years had passed by 2012?<|eot|> <|assistant|> start_year = 2004 end_year = 2012 print(end_year - start_year) Executing it gives 8, as expected. 8 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 2004. How many years had passed by 2012?" }, { "role": "assistant", "content": " start_year = 2004\n end_year = 2012\n print(end_year - start_year)\nExecuting it gives 8, as expected.\n\n8 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0071044
Each of Olga's bike rides burns 350 calories. How many calories over 7 bike rides? ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Output — 2450 That burns 2450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0071045
<|start|><|user|> A $24,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` # run result: 2000.00 Each installment is $2,0...
chat
[ { "role": "user", "content": "A $24,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 2000.0\nprint(f\"{eac...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0071046
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 5 months? In code: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 375.0 print(f"{interest:.2f}") ``` Result: 375.00 $375.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0071047
A 120-day notice period begins on April 2, 2028. On what date does it end? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2028, 4, 2) # datetime.date(2028, 4, 2) end = start + timedelta(days=120) # datetime.date(2028, 7, 31) print(end.isoformat()) ``` Running this gives 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2028-07-31", "printed": "2028-07-31", "notation": null}
nlprog_det-setting-0071048
Straight-line depreciation: cost $30,000, salvage $3,000, 10 years. How much per year? ```python cost = 30000 salvage = 3000 years = 10 per_year = (cost - salvage) / years # 2700.0 print(f"{per_year:.2f}") ``` Python prints 2700.00, as expected. Depreciation is $2,700.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0071049
<|start|><|system|> You have access to these functions: {"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute",...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
310
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0071050
<|start|><|system|> You have access to these functions: [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Water costs $20 a mont...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0071051
With 17 rows of 11 chairs and 2 empty chairs, how many chairs are taken? The program: ```python rows = 17 per_row = 11 empty = 2 seated = rows * per_row - empty print(seated) ``` Output — 185 185 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "185", "printed": "185", "notation": null}
nlprog_det-setting-0071052
10.5 hours of work at $150 an hour: what is the total charge? Code: ```python hours = 10.5 rate = 150 bill = hours * rate # 1575.0 print(f"{bill:.2f}") ``` Running it prints 1575.00, as expected. The bill is $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0071053
<|start|><|user|> Convert 6.1 km to meters.<|eot|> <|assistant|> ```python km = 6.1 meters = km * 1000 # 6100.0 print(round(meters)) ``` This prints: 6100 6,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 6.1 km to meters." }, { "role": "assistant", "content": "```python\nkm = 6.1\nmeters = km * 1000 # 6100.0\nprint(round(meters))\n```\nThis prints: 6100\n\n6,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "6100", "printed": "6100", "notation": null}
nlprog_det-setting-0071054
Sales went from 400 to 560. What is the percent change? The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0071055
39 pens cost $15 apiece. With 8% tax added, what is the total? Python code: ```python quantity = 39 unit_price = 15 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` # stdout: 631.80 The invoice total is $631.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "631.80", "printed": "631.80", "notation": null}
nlprog_det-setting-0071056
A customer buys 6 badges at $10 each, 4 tape rolls at $17 each, 6 keyboards at $20 each, 1 chairs at $3 each and pays with $300. How much change is due? Python version: ```python items = [(6, 10), (4, 17), (6, 20), (1, 3)] total = sum(q * p for q, p in items) # 251 paid = 300 change = paid - total # 49 print(change)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0071057
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Equal month...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
264
{"gold": "325.00", "printed": "325.00", "notation": null}
nlprog_det-setting-0071058
A 36-month warranty starts on September 9, 2021. On what date does it end? It expires on September 9, 2024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2024-09-09", "printed": "2024-09-09", "notation": null}
nlprog_det-setting-0071059
A client paid a $5,000 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left? $4,450 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "4450", "printed": "4450", "notation": null}
nlprog_det-setting-0071060
Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even? One way, in code: ```python import math fixed = 1200 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) # 200 print(units) ``` Out = 200 Break-even is 200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0071061
<|start|><|user|> From a $10,000 retainer, 11 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 11 rate = 200 left = retainer - hours * rate # 7800 print(left) ``` (Printed result: 7800) The remaining balance is $7,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 11 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 11\nrate = 200\nleft = retainer - hours * rate # 7800\nprint(left)\n```\n(Printed result: 7800)\n\nThe remainin...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "7800", "printed": "7800", "notation": null}
nlprog_det-setting-0071062
Abel has 11 documents to file, and each filing costs $125. How much are the filing fees in total? Python: ```python fee = 125 filings = 11 total = fee * filings # 1375 print(total) ``` Execution prints 1375. The total fee is $1,375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1375", "printed": "1375", "notation": null}
nlprog_det-setting-0071063
2 friends split a $210 bill plus a 18% tip evenly. How much does each pay? Set it up in Python: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 123.89999999999999 print(f"{each:.2f}") ``` Output = 123.90 The share is $123.90 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "123.90", "printed": "123.90", "notation": null}
nlprog_det-setting-0071064
A library charges $0.10 per book per day late. What is the fine for 4 books that are 11 days late? Here is the program. per_day = 0.1 days_late = 11 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") What it prints — 4.40 $4.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4.40", "printed": "4.40", "notation": null}
nlprog_det-setting-0071065
Count 45 days forward from May 8, 2025. What date is that? Computing it: ```python from datetime import date, timedelta start = date(2025, 5, 8) # datetime.date(2025, 5, 8) end = start + timedelta(days=45) # datetime.date(2025, 6, 22) print(end.isoformat()) ``` (Output: 2025-06-22) The period ends on June 22, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2025-06-22", "printed": "2025-06-22", "notation": null}
nlprog_det-setting-0071066
A $2,400 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here is the program. ```python principal = 2400 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 432.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "78.67", "printed": "78.67", "notation": null}
nlprog_det-setting-0071067
A measure needs at least 75% of 215 votes. How many votes is that, rounded up? One way, in code: import math voters = 215 needed = math.ceil(voters * 75 / 100) # 162 print(needed) (Run result: 162) 162 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0071068
How many weekdays (Monday to Friday) fall after April 18, 2020 up to and including April 23, 2020? Code: ```python from datetime import date, timedelta start = date(2020, 4, 18) end = date(2020, 4, 23) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0071070
<|start|><|system|> You can call tools. Available tools: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Water cost...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0071071
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year? Python code: ```python cost = 45000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 10750.0 print(f"{per_year:.2f}") ``` (Execution result: 10750.00) Depreciation is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "10750.00", "printed": "10750.00", "notation": null}
nlprog_det-setting-0071072
Pilar earns a 4% commission on $45,500 of sales. What is the commission? As a program: ```python sales = 45500 rate = 4 / 100 # 0.04 commission = sales * rate # 1820.0 print(f"{commission:.2f}") ``` Program output: 1820.00 The commission is $1,820.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1820.00", "printed": "1820.00", "notation": null}
nlprog_det-setting-0071073
<|start|><|user|> A 780-page report must be reviewed in 15 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 780 days = 15 per_day = pages // days # 52 print(per_day) ``` Result = 52 That is 52 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 780-page report must be reviewed in 15 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 780\ndays = 15\nper_day = pages // days # 52\nprint(per_day)\n```\nResult = 52\n\nThat is 52 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0071074
Find the mean of these test scores: 71, 97, 88, 69 and 50. Python does the arithmetic: ```python scores = [71, 97, 88, 69, 50] average = sum(scores) // len(scores) # 75 print(average) ``` # printed result: 75 The mean is 75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0071075
<|start|><|user|> With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) # result: 33.3 Prof...
chat
[ { "role": "user", "content": "With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 12000\n costs = 8000\n profit = revenue - costs # 4000\n margin = profit / revenue * 100 # 33.333333...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0071076
On which weekday does August 26, 2022 fall? Programmatically: ```python from datetime import date hearing = date(2022, 8, 26) # datetime.date(2022, 8, 26) print(hearing.strftime("%A")) ``` Output — Friday August 26, 2022 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0071077
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"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...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0071078
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> The landlord deducts $120, $60 and $120 from a $1,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [120, 60, 120] refund = deposit - sum(deductions) # 1200 print(refund) ``` The program outputs: 1200 The ...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "The landlord deducts $120, $60 and $120 from a $1,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [120, 60, 120]\nrefun...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0071080
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> What aver...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "464", "printed": "464", "notation": null}
nlprog_det-setting-0071081
A library charges $0.20 per book per day late. What is the fine for 4 books that are 19 days late? ```python per_day = 0.2 days_late = 19 books = 4 fine = per_day * days_late * books # 15.200000000000001 print(f"{fine:.2f}") ``` Executed, it shows 15.20. The fine is $15.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "15.20", "printed": "15.20", "notation": null}
nlprog_det-setting-0071082
At 45 miles per hour, how many minutes does a 270-mile trip take? The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0071083
Each storage box holds 15 files. How many boxes are needed for 326 files? The computation: ```python import math files = 326 per_box = 15 boxes = math.ceil(files / per_box) # 22 print(boxes) ``` Out: 22 It takes 22 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0071084
From a $10,000 retainer, 12 hours at $275/hour have been drawn. What remains? We write it as a program: retainer = 10000 hours = 12 rate = 275 left = retainer - hours * rate # 6700 print(left) Executing it gives 6700. The remaining balance is $6,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6700", "printed": "6700", "notation": null}
nlprog_det-setting-0071085
How many units at $15 each (variable cost $7) cover $9,000 of fixed costs? Program: ```python import math fixed = 9000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` The script prints: 1125 1125 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0071086
Copies cost $15 plus $0.25 for each page beyond 20. How much for 33 pages? The Python version: ```python pages = 33 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 18.25 print(f"{cost:.2f}") ``` The interpreter prints: 18.25 The total is $18.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "18.25", "printed": "18.25", "notation": null}
nlprog_det-setting-0071087
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee? Let the code do the arithmetic: ```python recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") ``` Running it prints 45000.00. The fee is $45,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0071088
How many meters are in 58.7 kilometers? Python version: ```python km = 58.7 meters = km * 1000 # 58700.0 print(round(meters)) ``` Run result: 58700 58,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "58700", "printed": "58700", "notation": null}
nlprog_det-setting-0071089
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> How many 1-foot square tiles cover a 9 ft by 8 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 9 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 72 print(tiles) ``` Executing it gives 72, as e...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "How many 1-foot square tiles cover a 9 ft by 8 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 9\nwidth = 8\ntile = 1\ntiles = mat...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0071090
How many of 273 votes make 60% (round up)? Coded up: ```python import math voters = 273 needed = math.ceil(voters * 60 / 100) # 164 print(needed) ``` stdout: 164 At least 164 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0071091
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many days are there from March 16, 2019 to July 2, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 3, 16) # datetime.date(2019, 3, 16) second = date(2019, 7, 2) # datetime.date(2019, 7, 2) print((second - first).days) ...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many days are there from March 16, 2019 to July 2, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 3, 16) # datetime.date(2019, 3, 16...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0071092
Fines run at $50 per day up to a maximum of $1,000. How much after 55 days? Python makes this quick: per_day = 50 days = 55 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) # printed result: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0071093
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 15000.0 print(f"{...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0071094
<|start|><|user|> An attorney bills 7 hours at $180 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 7 rate = 180 bill = hours * rate # 1260 print(f"{bill:.2f}") ``` That prints: 1260.00 That comes to $1,260.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 7 hours at $180 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 7\nrate = 180\nbill = hours * rate # 1260\nprint(f\"{bill:.2f}\")\n```\nThat prints: 1260.00\n\nThat comes to $1,260.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0071095
<|start|><|system|> Be brief and correct.<|eot|> <|user|> An office budget of $20,000 has expenses of $1,312, $594, $3,750. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [1312, 594, 3750] left = budget - sum(expenses) # 14344 print(left) ``` Execution prints 14344, as expecte...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "An office budget of $20,000 has expenses of $1,312, $594, $3,750. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [1312, 594, 3750]\nle...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "14344", "printed": "14344", "notation": null}
nlprog_det-setting-0071096
A garage charges $3 an hour, never more than $24 a day. How much for 7 hours? Programmatically: ```python rate = 3 hours = 7 daily_max = 24 cost = min(rate * hours, daily_max) # 21 print(cost) ``` On running, it outputs 21. Parking costs $21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0071097
Goods bought on September 16, 2024 carry a 6-month warranty. When does it expire? Let the code do the arithmetic: ```python from datetime import date start = date(2024, 9, 16) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2025-03-16", "printed": "2025-03-16", "notation": null}
nlprog_det-setting-0071098
<|start|><|user|> A 21 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> Shipping costs $64.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 21 lb package ships at $12 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "Shipping costs $64.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "64.50", "printed": "64.50", "notation": null}
nlprog_det-setting-0071099
<|start|><|user|> Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 2...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0071100
<|start|><|user|> Xavier has 5 documents to file, and each filing costs $50. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 50 filings = 5 total = fee * filings # 250 print(total) ``` When run, it prints 250. $250 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Xavier has 5 documents to file, and each filing costs $50. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 5\ntotal = fee * filings # 250\nprint(total)\n```\nWhen run, it prints 250.\n\n$250 in filing fee...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0071101
At 50 miles per hour, how many minutes does a 300-mile trip take? Python: ```python distance = 300 speed = 50 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Shell output: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0071102
A appointment starts at 4:20 PM and lasts 50 minutes. When does it end? Written as code: ```python start = 16 * 60 + 20 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # output: 5:10 PM It ends at 5:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "5:10 PM", "printed": "5:10 PM", "notation": null}
nlprog_det-setting-0071103
<|start|><|user|> Divide 74 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 74 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running it prints: 14 each, 4 left ov...
chat
[ { "role": "user", "content": "Divide 74 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 74\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "14 each, 4 left over", "printed": "14 each, 4 left over", "notation": null}
nlprog_det-setting-0071104
<|start|><|user|> Rent of $1,100 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1100 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1188.0 print(f"{new_rent:.2f}") ``` Execution prints 1188.00, as expected. It rises to $1,188.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,100 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1188.0\nprint(f\"{new_rent:.2f}\")\n```\nExecution prints 1188.00, as expected.\n\nIt rise...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0071105
<|start|><|user|> With 15% off, what does a $45 bicycle helmet cost?<|eot|> <|assistant|> ```python price = 45 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 38.25 print(f"{sale_price:.2f}") ``` The interpreter prints: 38.25 The sale price is $38.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 15% off, what does a $45 bicycle helmet cost?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 38.25\nprint(f\"{sale_price:.2f}\")\n```\nThe interpreter prints: 38.25\n\nThe sale p...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "38.25", "printed": "38.25", "notation": null}