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-0044450
What day of the week is December 4, 2027? A few lines of Python do it: ```python from datetime import date hearing = date(2027, 12, 4) # datetime.date(2027, 12, 4) print(hearing.strftime("%A")) ``` Python prints Saturday. December 4, 2027 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0044451
<|start|><|user|> 11 boxes hold 25 headsets each. After 16 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 25 given_away = 16 left = boxes * per_box - given_away # 259 print(left) ``` This prints 259. 259 headsets are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 25 headsets each. After 16 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 25\ngiven_away = 16\nleft = boxes * per_box - given_away # 259\nprint(left)\n```\nThis prints 259.\n\n259 headsets ar...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0044452
A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 120-page copy cost? A Python solution: pages = 120 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 27.0 print(f"{cost:.2f}") Running this gives: 27.00 The tot...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0044453
A $2,400 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? The computation: ```python principal = 2400 annual_rate = 8 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "116.00", "printed": "116.00", "notation": null}
nlprog_det-setting-0044454
<|start|><|system|> Give the answer first.<|eot|> <|user|> Goods bought on September 1, 2020 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 9, 1) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Goods bought on September 1, 2020 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 9, 1)\nmonths = 6\...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "2021-03-01", "printed": "2021-03-01", "notation": null}
nlprog_det-setting-0044455
How many weekdays (Monday to Friday) fall after July 2, 2023 up to and including July 28, 2023? Programmatically: ```python from datetime import date, timedelta start = date(2023, 7, 2) end = date(2023, 7, 28) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0044456
<|start|><|user|> Someone born May 17, 1970 turns how old by January 23, 2024? Give the age in whole years.<|eot|> <|assistant|> Hana is 53.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone born May 17, 1970 turns how old by January 23, 2024? Give the age in whole years." }, { "role": "assistant", "content": "Hana is 53." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0044457
How much sales tax is charged on a $848.64 purchase at 9%? Python makes this quick: ```python price = 848.64 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 76.3776 print(f"{tax:.2f}") ``` (Run result: 76.38) The tax is $76.38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "76.38", "printed": "76.38", "notation": null}
nlprog_det-setting-0044458
<|start|><|user|> What percentage of $2,000 is $1,600?<|eot|> <|assistant|> ```python budget = 2000 spent = 1600 percent = spent / budget * 100 # 80.0 print(round(percent, 1)) ``` The program prints: 80.0 That is 80.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,600?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1600\npercent = spent / budget * 100 # 80.0\nprint(round(percent, 1))\n```\nThe program prints: 80.0\n\nThat is 80.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0044459
A recipe for 4 people uses 240 grams of pasta. How many grams are needed for 8 people? grams = 240 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 480 print(scaled) The run gives 480. Use 480 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0044460
Shipping costs $10 plus $1.20 per pound. What does a 16-pound parcel cost to ship? As Python: base = 10 per_pound = 1.2 weight = 16 cost = base + per_pound * weight # 29.2 print(f"{cost:.2f}") The code prints 29.20. Shipping costs $29.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "29.20", "printed": "29.20", "notation": null}
nlprog_det-setting-0044461
5 friends split a $210 bill plus a 15% tip evenly. How much does each pay? Python: ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 48.3 print(f"{each:.2f}") ``` The interpreter prints: 48.30 Each person pays $48.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0044462
A 18-month warranty starts on October 14, 2026. On what date does it end? Computation in Python: ```python from datetime import date start = date(2026, 10, 14) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-04-14", "printed": "2028-04-14", "notation": null}
nlprog_det-setting-0044463
<|start|><|user|> 3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each client gets $7,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each client gets $7,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0044464
Scale 200 g of flour from 2 servings to 6 servings. Python version: ```python grams = 200 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 600 print(scaled) ``` Output = 600 600 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0044465
A lawyer's fee is 30% of a $25,000 recovery. How large is the fee? One way, in code: ```python recovery = 25000 rate = 30 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` That prints 7500.00. The lawyer's fee comes to $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0044466
Sofia buys 5 boxes of 10 clipboards each and gives away 5 clipboards. How many clipboards are left? A short script: ```python boxes = 5 per_box = 10 given_away = 5 left = boxes * per_box - given_away print(left) ``` Run output — 45 That leaves 45 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0044467
A count moves from 800 to 1,000. By what percent did it change (use a minus sign for a drop)? As Python: ```python old = 800 new = 1000 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` Program output — 25 It changed by 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0044468
A clerk's office charges $50 for each filing. Omar submits 8 filings. What is the total fee? We write it as a program: ```python fee = 50 filings = 8 total = fee * filings # 400 print(total) ``` # printed result: 400 The filings cost $400 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0044469
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A library charges $0.10 per book per day late. What is the fine for 3 books that are 18 days late?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 18 books = 3 fine = per_day * days_late * books # 5.4 print(f"{fine:.2f}") ``` It prints 5.40. Th...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 3 books that are 18 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 18\nbooks = 3...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5.40", "printed": "5.40", "notation": null}
nlprog_det-setting-0044470
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Someone ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0044471
A backpack costs $75. It is 30% off. What is the sale price? Code: price = 75 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 52.5 print(f"{sale_price:.2f}") (Program output: 52.50) It costs $52.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0044472
A meal costs $150.70. How much is a 18% tip? A Python solution: ```python bill = 150.7 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 27.125999999999998 print(f"{tip:.2f}") ``` On running, it outputs: 27.13 The tip is $27.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "27.13", "printed": "27.13", "notation": null}
nlprog_det-setting-0044474
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Convert 60.4 km to m...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
197
{"gold": "60400", "printed": "60400", "notation": null}
nlprog_det-setting-0044477
With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 9000 costs = 8000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Run result: 11.1 Profit is 11.1% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0044478
Filing fees are $75 per document. What do 6 filings cost? A short script: ```python fee = 75 filings = 6 total = fee * filings # 450 print(total) ``` (Result: 450) $450 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0044479
A $2,500 security deposit has deductions of $120, $200 and $60. How much is refunded? Python code: ```python deposit = 2500 deductions = [120, 200, 60] refund = deposit - sum(deductions) # 2120 print(refund) ``` (Program output: 2120) The refund is $2,120.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2120", "printed": "2120", "notation": null}
nlprog_det-setting-0044480
A hearing starts at 4:30 PM and lasts 135 minutes. When does it end? As Python: ```python start = 16 * 60 + 30 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result: 6:45 PM It ends at 6:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "6:45 PM", "printed": "6:45 PM", "notation": null}
nlprog_det-setting-0044481
Scale 450 g of sugar from 2 servings to 8 servings. 1800 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0044482
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? ```python balance = 4000 monthly_rate = 1.5 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` # run result: 360.00 $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0044483
A car travels 285 miles in 1.5 hours. What is its average speed in miles per hour? A Python solution: ```python distance = 285 hours = 1.5 speed = distance / hours print(round(speed)) ``` Result — 190 It averages 190 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "190", "printed": "190", "notation": null}
nlprog_det-setting-0044484
How long, in days, is it from March 14, 2023 until April 9, 2023? Python makes this quick: ```python from datetime import date first = date(2023, 3, 14) second = date(2023, 4, 9) print((second - first).days) ``` Python prints 26. There are 26 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0044485
<|start|><|system|> You can call tools. Available tools: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "define_word", "description": "Return a dictionary definit...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"def...
nlprog_det
setting
original
null
deterministic
[]
[]
360
{"gold": "14.30", "printed": "14.30", "notation": null}
nlprog_det-setting-0044486
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Hana drove 538 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 538 rate = 0.65 reimbursement = miles * rate # 349.7 print(f"{reimbursement:.2f}") ``` Result: 349.70 The...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Hana drove 538 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 538\nrate = 0.65\nreim...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "349.70", "printed": "349.70", "notation": null}
nlprog_det-setting-0044488
3 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Each client gets $7,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0044489
One can of paint covers 400 square feet. How many cans are needed for 695 square feet of wall? Program: ```python import math area = 695 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` # output: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0044490
<|start|><|user|> An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 187.5 print(f"{interest:.2f}") Out — 187.50 $18...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": " balance = 2500\n monthly_rate = 1.5 / 100 # 0.015\n months = 5\n interest = balance * monthly_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0044491
<|start|><|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") ``` The run gives 5788.13, as expected. The balance is $5,788...
chat
[ { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 5788.125000000001\nprint(f\"{value:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0044492
<|start|><|user|> A pack of 24 lanyards sells for $1008. What does each cost?<|eot|> <|assistant|> ```python total = 1008 count = 24 per_item = total // count # 42 print(per_item) ``` Program output: 42 The unit price is $42.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 24 lanyards sells for $1008. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 1008\ncount = 24\nper_item = total // count # 42\nprint(per_item)\n```\nProgram output: 42\n\nThe unit price is $42." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0044493
Starting with 911 hard drives and using 7 per day, how many remain after 11 days? In code: ```python stock = 911 per_day = 7 days = 11 left = stock - per_day * days # 834 print(left) ``` (Console output: 834) 834 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "834", "printed": "834", "notation": null}
nlprog_det-setting-0044494
A penalty of $250 a day accrues, capped at $1,000. What is owed after 52 days? Python does the arithmetic: per_day = 250 days = 52 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) It prints 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0044495
The landlord deducts $45 from a $2,500 deposit. What is returned to the tenant? ```python deposit = 2500 deductions = [45] refund = deposit - sum(deductions) # 2455 print(refund) ``` It outputs: 2455 $2,455 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "2455", "printed": "2455", "notation": null}
nlprog_det-setting-0044496
A hearing is set for October 6, 2013. What day of the week is that? The program: ```python from datetime import date hearing = date(2013, 10, 6) # datetime.date(2013, 10, 6) print(hearing.strftime("%A")) ``` Printed — Sunday October 6, 2013 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0044498
A client paid a $10,000 retainer. The firm has billed 2 hours at $150 per hour. How much of the retainer is left? Script: ```python retainer = 10000 hours = 2 rate = 150 left = retainer - hours * rate print(left) ``` The script prints 9700, as expected. The remaining balance is $9,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9700", "printed": "9700", "notation": null}
nlprog_det-setting-0044499
A hearing is set for January 16, 2023. What day of the week is that? Coded up: ```python from datetime import date hearing = date(2023, 1, 16) # datetime.date(2023, 1, 16) print(hearing.strftime("%A")) ``` That prints Monday. January 16, 2023 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0044500
Printing costs 5 cents a page. What does it cost to print 196 copies of a 30-page handout? Printing costs $294.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "294.00", "printed": "294.00", "notation": null}
nlprog_det-setting-0044501
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 8 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 8 free = 2 bill = base + rate * max(0, used - free) # 45.599999999999994 print(f"{bill:.2f}") ``` (Output: 45.60) $45.6...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 8 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 8\nfree = 2\nbill = base + rate * max(0, used - free) # 45.5999...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "45.60", "printed": "45.60", "notation": null}
nlprog_det-setting-0044503
From 2004 to 2033, how many years is that? The Python version: ```python start_year = 2004 end_year = 2033 print(end_year - start_year) ``` This prints 29. 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0044504
<|start|><|user|> Zainab drove 188 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 188 rate = 0.67 reimbursement = miles * rate # 125.96000000000001 print(f"{reimbursement:.2f}") ``` (Out: 125.96) Zainab is owed $125.96.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zainab drove 188 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 188\nrate = 0.67\nreimbursement = miles * rate # 125.96000000000001\nprint(f\"{reimbursement:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "125.96", "printed": "125.96", "notation": null}
nlprog_det-setting-0044505
Buying 2 hard drives at $19 each, 5 sticky pads at $7 each, someone hands over $100. What change comes back? Code: ```python items = [(2, 19), (5, 7)] total = sum(q * p for q, p in items) # 73 paid = 100 change = paid - total # 27 print(change) ``` Interpreter output: 27 $27 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0044506
Starting with 854 mugs and using 40 per day, how many remain after 14 days? Script: ```python stock = 854 per_day = 40 days = 14 left = stock - per_day * days # 294 print(left) ``` The printout reads: 294 294 mugs are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "294", "printed": "294", "notation": null}
nlprog_det-setting-0044507
A client paid a $10,000 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left? A Python solution: ```python retainer = 10000 hours = 14 rate = 150 left = retainer - hours * rate print(left) ``` The script prints: 7900 The remaining balance is $7,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "7900", "printed": "7900", "notation": null}
nlprog_det-setting-0044508
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Shipping costs $5 plus $1.20 per pound. What does a 24-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.2 weight = 24 cost = base + per_pound * weight # 33.8 print(f"{cost:.2f}") ``` # execution result: 33.80 Shippin...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Shipping costs $5 plus $1.20 per pound. What does a 24-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.2\nweight = 24\ncost = base ...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "33.80", "printed": "33.80", "notation": null}
nlprog_det-setting-0044509
A meeting starts at 8:15 AM and lasts 150 minutes. When does it end? In code: ```python start = 8 * 60 + 15 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # stdout: 10:45 AM It ends at 10:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0044510
<|start|><|user|> On which weekday does March 28, 2024 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2024, 3, 28) # datetime.date(2024, 3, 28) print(hearing.strftime("%A")) ``` The printout reads Thursday. March 28, 2024 is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does March 28, 2024 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2024, 3, 28) # datetime.date(2024, 3, 28)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads Thursday.\n\nMarch 28, 2024 is...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0044511
<|start|><|user|> A claim accrued on June 10, 2021. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2021, 6, 10) # datetime.date(2021, 6, 10) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 6, ...
chat
[ { "role": "user", "content": "A claim accrued on June 10, 2021. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2021, 6, 10) # datetime.date(2021, 6, 10)\nyears = 3\nexpires = accrued.rep...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2024-06-10", "printed": "2024-06-10", "notation": null}
nlprog_det-setting-0044512
A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments? In code: ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` Running this gives 12. The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0044513
<|start|><|system|> Available functions (JSON Schema): {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "translate", "descriptio...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
333
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0044514
Goods bought on March 14, 2023 carry a 24-month warranty. When does it expire? We write it as a program: ```python from datetime import date start = date(2023, 3, 14) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-03-14", "printed": "2025-03-14", "notation": null}
nlprog_det-setting-0044516
<|start|><|system|> Available functions (JSON Schema): {"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What average speed cover...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "159", "printed": "159", "notation": null}
nlprog_det-setting-0044517
Divide 62 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Python makes this quick: ```python total = 62 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # printed result: 12 each, 2 left over 12 each, 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "12 each, 2 left over", "printed": "12 each, 2 left over", "notation": null}
nlprog_det-setting-0044518
<|start|><|system|> Be concise.<|eot|> <|user|> Each storage box holds 12 files. How many boxes are needed for 777 files?<|eot|> <|assistant|> ```python import math files = 777 per_box = 12 boxes = math.ceil(files / per_box) # 65 print(boxes) ``` It outputs 65. 65 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 777 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 777\nper_box = 12\nboxes = math.ceil(files / per_box) # 65\n...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0044519
A $2,000 security deposit has deductions of $200, $200 and $85. How much is refunded? The refund is $1,515.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1515", "printed": "1515", "notation": null}
nlprog_det-setting-0044520
<|start|><|user|> A shift runs from 7:01 AM to 12:52 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 7 * 60 + 1 # 421 end = 12 * 60 + 52 # 772 print(end - start) ``` (Run result: 351) 351 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:01 AM to 12:52 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 1 # 421\nend = 12 * 60 + 52 # 772\nprint(end - start)\n```\n(Run result: 351)\n\n351 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "351", "printed": "351", "notation": null}
nlprog_det-setting-0044521
From 2014 to 2049, how many years is that? As Python: ```python start_year = 2014 end_year = 2049 print(end_year - start_year) ``` (Run result: 35) 35 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0044522
Zoe earns a 4% commission on $61,591 of sales. What is the commission? Python makes this quick: ```python sales = 61591 rate = 4 / 100 # 0.04 commission = sales * rate # 2463.64 print(f"{commission:.2f}") ``` (Program output: 2463.64) Zoe earns $2,463.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2463.64", "printed": "2463.64", "notation": null}
nlprog_det-setting-0044523
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["pr...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "1218.00", "printed": "1218.00", "notation": null}
nlprog_det-setting-0044524
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A $2,500 security deposit has deductions of $200. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [200] refund = deposit - sum(deductions) # 2300 print(refund) ``` Shell output: 2300 $2,300 is returned.<|eot|> <|end...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A $2,500 security deposit has deductions of $200. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [200]\nrefund = deposit - sum(ded...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2300", "printed": "2300", "notation": null}
nlprog_det-setting-0044525
A shift starts at 2:10 PM and lasts 90 minutes. When does it end? Python makes this quick: ```python start = 14 * 60 + 10 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed result — 3:40 PM The shift finishes at 3:40 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "3:40 PM", "printed": "3:40 PM", "notation": null}
nlprog_det-setting-0044528
Zoe lends $1,000 at 4% simple interest per year for 5 years. How much interest is earned? Let the code do the arithmetic: principal = 1000 rate = 4 / 100 # 0.04 years = 5 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") Printed result — 200.00 It earns $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0044529
The statute was enacted in 2004. How many years had passed by 2027? In code: ```python start_year = 2004 end_year = 2027 print(end_year - start_year) ``` Interpreter output: 23 23 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0044530
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A 18 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 18 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 54 print(tiles) ``` That prints 54. ...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A 18 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 18\nwidth = 3\ntile = 1\nt...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0044531
<|start|><|user|> What percentage of $4,000 is $2,500?<|eot|> <|assistant|> ```python budget = 4000 spent = 2500 percent = spent / budget * 100 # 62.5 print(round(percent, 1)) ``` It prints: 62.5 62.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $2,500?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 2500\npercent = spent / budget * 100 # 62.5\nprint(round(percent, 1))\n```\nIt prints: 62.5\n\n62.5% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "62.5", "printed": "62.5", "notation": null}
nlprog_det-setting-0044532
<|start|><|user|> A measure needs at least 67% of 258 votes. How many votes is that, rounded up?<|eot|> <|assistant|> 173 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 258 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "173 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "173", "printed": "173", "notation": null}
nlprog_det-setting-0044533
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1200.0 print(f"{prorated:.2f}") ``` When run, it prints: 1200.00...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1200.0...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0044534
A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? Python does the arithmetic: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 41.3 print(f"{each:.2f}") ``` Python prints 41.30. The share is $41.30 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "41.30", "printed": "41.30", "notation": null}
nlprog_det-setting-0044535
How many weekdays (Monday to Friday) fall after October 4, 2028 up to and including November 7, 2028? There are 24 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044538
Counting only Monday through Friday, how many business days are there after November 25, 2025 through December 23, 2025? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2025, 11, 25) end = date(2025, 12, 23) count = 0 for k in range(1, (end - start).days + 1): if (start ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0044539
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> An attorney bills 4 hours at $300 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 4 rate = 300 bill = hours * rate print(f"{bill:.2f}") ``` Result = 1200.00 The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "An attorney bills 4 hours at $300 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 300\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0044540
<|start|><|user|> Convert 3 h 37 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 37 total_minutes = hours * 60 + minutes # 217 print(total_minutes) ``` Result: 217 That is 217 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 37 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 37\ntotal_minutes = hours * 60 + minutes # 217\nprint(total_minutes)\n```\nResult: 217\n\nThat is 217 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "217", "printed": "217", "notation": null}
nlprog_det-setting-0044541
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Abel's scores were 83, 87, 66 and 56. What is the average score?<|eot|> <|assistant|> The mean is 73.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Abel's scores were 83, 87, 66 and 56. What is the average score?" }, { "role": "assistant", "content": "The mean is 73." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0044542
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A recipe for 8 people uses 240 grams of oats. How many grams are needed for 3 people?<|eot|> <|assistant|> ```python grams = 240 serves = 8 needed_for = 3 scaled = grams * needed_for // serves # 90 print(scaled) ``` It outputs: 90 90 grams of oats are...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A recipe for 8 people uses 240 grams of oats. How many grams are needed for 3 people?" }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 8\nneeded_for = 3\nscaled = g...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0044543
<|start|><|system|> You can call tools. Available tools: {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "get_weather", "descript...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "20.50", "printed": "20.50", "notation": null}
nlprog_det-setting-0044544
A 40 lb package ships at $8 base plus $2.00/lb. What is the charge? Python version: ```python base = 8 per_pound = 2.0 weight = 40 cost = base + per_pound * weight # 88.0 print(f"{cost:.2f}") ``` Shell output — 88.00 Shipping costs $88.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "88.00", "printed": "88.00", "notation": null}
nlprog_det-setting-0044545
Parking is $2 per hour with a daily maximum of $20. What do 8 hours cost? As Python: ```python rate = 2 hours = 8 daily_max = 20 cost = min(rate * hours, daily_max) # 16 print(cost) ``` The program prints 16, as expected. Parking costs $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0044546
A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share? ```python bill = 150 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 44.25 print(f"{each:.2f}") ``` Printed = 44.25 Each person pays $44.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "44.25", "printed": "44.25", "notation": null}
nlprog_det-setting-0044547
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Each of Wen's walks ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0044548
Express 103 hours in days and hours. Python: ```python hours = 103 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Running it prints: 4 days and 7 hours That is 4 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4 days and 7 hours", "printed": "4 days and 7 hours", "notation": null}
nlprog_det-setting-0044549
<|start|><|user|> 118 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> 5 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "118 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "5 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0044551
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons?<|eot|> <|assistant|> ```python base = 18 rate = 5.1 used = 19 free = 2 bill = base + rate * max(0, used - free) # 104.69999999999999 p...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 5...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "104.70", "printed": "104.70", "notation": null}
nlprog_det-setting-0044552
<|start|><|user|> An attorney bills 2 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2 rate = 410 bill = hours * rate # 820 print(f"{bill:.2f}") ``` Running it prints: 820.00 That comes to $820.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 410\nbill = hours * rate # 820\nprint(f\"{bill:.2f}\")\n```\nRunning it prints: 820.00\n\nThat comes to $820.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0044553
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 4 months? The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0044554
A storeroom has 1546 flash drives. The office uses 21 a day. How many are left after 16 days? ```python stock = 1546 per_day = 21 days = 16 left = stock - per_day * days # 1210 print(left) ``` When run, it prints 1210, as expected. 1210 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1210", "printed": "1210", "notation": null}
nlprog_det-setting-0044555
<|start|><|user|> What is the total rent on a 24-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) ``` (Printed result: 20400) The rent over the term is $20,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 24\ntotal = monthly_rent * months # 20400\nprint(total)\n```\n(Printed result: 20400)\n\nThe rent over the term is $20,400." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0044556
<|start|><|user|> A 3% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1287.5 print(f"{new_rent:.2f}") ``` The run gives: 1287.50 The new rent is $1,287.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1287.5\nprint(f\"{new_rent:.2f}\")\n```\nThe run gives: 1287.50\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0044557
<|start|><|user|> Mei has 10 documents to file, and each filing costs $90. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 90 filings = 10 total = fee * filings # 900 print(total) ``` Running this gives: 900 The total fee is $900.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mei has 10 documents to file, and each filing costs $90. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 90\nfilings = 10\ntotal = fee * filings # 900\nprint(total)\n```\nRunning this gives: 900\n\nThe total fee is $90...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0044558
<|start|><|user|> A car travels 508 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 508 hours = 2 speed = distance / hours # 254.0 print(round(speed)) ``` # stdout: 254 The average speed is 254 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 508 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 508\nhours = 2\nspeed = distance / hours # 254.0\nprint(round(speed))\n```\n# stdout: 254\n\nThe average speed is 254 mph."...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0044559
A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons? The bill is $111.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "111.90", "printed": "111.90", "notation": null}
nlprog_det-setting-0044560
<|start|><|user|> Bruna lends $1,000 at 2% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") ``` (Output: 40.00) The interest is $40.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bruna lends $1,000 at 2% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100\nyears = 2\ninterest = principal * rate * years\nprint(f\"{interest:.2f}\")\n```\n(Output: ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0044561
A training session lasted 5 hours and 6 minutes. How many minutes is that? In Python: ```python hours = 5 minutes = 6 total_minutes = hours * 60 + minutes # 306 print(total_minutes) ``` # program output: 306 That is 306 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "306", "printed": "306", "notation": null}