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-0045510
Equal monthly payments repay $6,000 plus 10% simple yearly interest over 36 months. How large is a payment? Python makes this quick: ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + interest) / months # 216.666666666...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "216.67", "printed": "216.67", "notation": null}
nlprog_det-setting-0045511
Filing fees are $125 per document. What do 13 filings cost? Python version: ```python fee = 125 filings = 13 total = fee * filings # 1625 print(total) ``` Printed — 1625 The filings cost $1,625 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1625", "printed": "1625", "notation": null}
nlprog_det-setting-0045512
<|start|><|user|> If a 105-minute meeting begins at 10:45 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 10 * 60 + 45 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It prints 12:30 PM. It ends at 12:30 PM.<|eot|> <|e...
chat
[ { "role": "user", "content": "If a 105-minute meeting begins at 10:45 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 45\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "12:30 PM", "printed": "12:30 PM", "notation": null}
nlprog_det-setting-0045513
Monthly rent is $1,800. A tenant moves in with 25 days left in a 31-day month. What is the prorated rent? Python does the arithmetic: ```python rent = 1800 days_in_month = 31 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1451.6129032258063 print(f"{prorated:.2f}") ``` # console output: 1451.61 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1451.61", "printed": "1451.61", "notation": null}
nlprog_det-setting-0045514
<|start|><|system|> Tools (call with JSON): {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Equipment costs $24,000, has a sal...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0045515
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 34 copies of a 26-page handout?<|eot|> <|assistant|> ```python pages = 26 copies = 34 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The program outputs 44.20. Printing costs $44.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 34 copies of a 26-page handout?" }, { "role": "assistant", "content": "```python\npages = 26\ncopies = 34\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nThe program...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "44.20", "printed": "44.20", "notation": null}
nlprog_det-setting-0045516
A hearing is set for February 27, 1996. What day of the week is that? Let's compute it with Python. ```python from datetime import date hearing = date(1996, 2, 27) # datetime.date(1996, 2, 27) print(hearing.strftime("%A")) ``` stdout — Tuesday February 27, 1996 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0045517
A shift runs from 8:01 AM to 9:41 AM. How long is it in minutes? A short script: ```python start = 8 * 60 + 1 # 481 end = 9 * 60 + 41 # 581 print(end - start) ``` (Console output: 100) 100 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0045518
6 friends split a $150 bill plus a 15% tip evenly. How much does each pay? Here is the program. ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 28.75 print(f"{each:.2f}") ``` Output — 28.75 The share is $28.75 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "28.75", "printed": "28.75", "notation": null}
nlprog_det-setting-0045519
What does $2,000 grow to in 3 years at 2% annual compounding? Python code: ```python principal = 2000 rate = 2 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` The run gives: 2122.42 It is worth $2,122.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2122.42", "printed": "2122.42", "notation": null}
nlprog_det-setting-0045520
At $17.64 an hour, what does 20 hours of work pay? Computation in Python: ```python rate = 17.64 hours = 20 earnings = rate * hours print(f"{earnings:.2f}") ``` # execution result: 352.80 The pay is $352.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "352.80", "printed": "352.80", "notation": null}
nlprog_det-setting-0045521
A storeroom has 1671 notebooks. The office uses 20 a day. How many are left after 9 days? 1491 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1491", "printed": "1491", "notation": null}
nlprog_det-setting-0045522
<|start|><|user|> How many of 287 votes make 67% (round up)?<|eot|> <|assistant|> 193 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 287 votes make 67% (round up)?" }, { "role": "assistant", "content": "193 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0045523
Find the mean of these test scores: 65, 96, 64, 68, 50, 71 and 62. Coded up: scores = [65, 96, 64, 68, 50, 71, 62] average = sum(scores) // len(scores) # 68 print(average) The printout reads 68. The mean is 68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0045524
<|start|><|user|> Emeka buys 11 boxes of 24 badges each and gives away 17 badges. How many badges are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 24 given_away = 17 left = boxes * per_box - given_away # 247 print(left) ``` # stdout: 247 247 badges are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Emeka buys 11 boxes of 24 badges each and gives away 17 badges. How many badges are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 24\ngiven_away = 17\nleft = boxes * per_box - given_away # 247\nprint(left)\n```\n# stdout: 247\n\n247 ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0045525
Of a $8,000 budget, $3,000 has been spent. What percent is that? ```python budget = 8000 spent = 3000 percent = spent / budget * 100 # 37.5 print(round(percent, 1)) ``` # printed result: 37.5 37.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "37.5", "printed": "37.5", "notation": null}
nlprog_det-setting-0045526
A pack of 25 envelopes sells for $1175. What does each cost? Python version: total = 1175 count = 25 per_item = total // count # 47 print(per_item) stdout: 47 The unit price is $47.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0045527
<|start|><|user|> A 12-month warranty starts on December 17, 2023. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2023, 12, 17) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 12-month warranty starts on December 17, 2023. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2023, 12, 17)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2024-12-17", "printed": "2024-12-17", "notation": null}
nlprog_det-setting-0045528
<|start|><|system|> Be concise.<|eot|> <|user|> A 255-mile drive at a steady 60 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 255 speed = 60 minutes = distance / speed * 60 # 255.0 print(round(minutes)) ``` Shell output: 255 255 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A 255-mile drive at a steady 60 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 255\nspeed = 60\nminutes = distance / speed * 60 # 255.0\nprint(round(minutes))\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0045529
Shipping costs $5 plus $1.50 per pound. What does a 23-pound parcel cost to ship? A few lines of Python do it: ```python base = 5 per_pound = 1.5 weight = 23 cost = base + per_pound * weight # 39.5 print(f"{cost:.2f}") ``` The interpreter prints 39.50. The charge is $39.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "39.50", "printed": "39.50", "notation": null}
nlprog_det-setting-0045530
<|start|><|user|> Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Out: 33.3 Profit is 33....
chat
[ { "role": "user", "content": "Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 6000\ncosts = 4000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 33.333333333...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0045531
A count moves from 500 to 400. By what percent did it change (use a minus sign for a drop)? Translated to Python: ```python old = 500 new = 400 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` (Run result: -20) The change is -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0045532
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0045533
Water costs $12 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons? We can compute it in Python. base = 12 rate = 3.5 used = 25 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") It outputs: 99.50 The bill is $99.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "99.50", "printed": "99.50", "notation": null}
nlprog_det-setting-0045534
<|start|><|user|> 4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 4 # 16800.0 print(f"{per_client:.2f}") This p...
chat
[ { "role": "user", "content": "4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 96000\n fee = award * 30 / 100 # 28800.0\n remaining = award - fee # 67200.0\n per_client = remai...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0045535
<|start|><|user|> Express 328 hours in days and hours.<|eot|> <|assistant|> ```python hours = 328 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # console output: 13 days and 16 hours 328 hours is 13 days and 16 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 328 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 328\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# console output: 13 days and 16 hours\n\n328 hours is 13 days and 16 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "13 days and 16 hours", "printed": "13 days and 16 hours", "notation": null}
nlprog_det-setting-0045536
<|start|><|user|> 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` It prints 25...
chat
[ { "role": "user", "content": "2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 30 / 100 # 21600.0\nremaining = award - fee # 50400.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0045537
Which is cheaper per unit: 12 for $10.35 (A) or 30 for $7.41 (B)? Here's the code. ```python pack_a = 10.35 / 12 # 0.8624999999999999 pack_b = 7.41 / 30 # 0.247 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` This prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0045538
<|start|><|user|> A $800 security deposit has deductions of $60 and $150. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [60, 150] refund = deposit - sum(deductions) # 590 print(refund) ``` Out: 590 $590 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $60 and $150. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [60, 150]\nrefund = deposit - sum(deductions) # 590\nprint(refund)\n```\nOut: 590\n\n$590 is returned." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "590", "printed": "590", "notation": null}
nlprog_det-setting-0045539
Prorate $1,500 of monthly rent for 18 days of a 31-day month. Set it up in Python: ```python rent = 1500 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 870.9677419354839 print(f"{prorated:.2f}") ``` Executed, it shows: 870.97 The prorated rent is $870.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "870.97", "printed": "870.97", "notation": null}
nlprog_det-setting-0045540
To read 161 pages in 7 days, how many pages per day are needed? As Python: ```python pages = 161 days = 7 per_day = pages // days # 23 print(per_day) ``` Console output: 23 23 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0045541
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Convert 35 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` # result: 95 It equals 95 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Convert 35 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 35\nfahrenheit = celsius * 9 / 5 + 32 # 95.0\nprint(round(fahrenheit))\n```\n# result: 95\n\nIt eq...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0045542
<|start|><|user|> A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 17-page copy cost?<|eot|> <|assistant|> ```python pages = 17 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 15.0 print(f"{cost:.2f}") ``` Out — 15.00 The copy cos...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 17-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 17\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0045543
Count the days between May 17, 2028 and July 2, 2028. Script: ```python from datetime import date first = date(2028, 5, 17) # datetime.date(2028, 5, 17) second = date(2028, 7, 2) # datetime.date(2028, 7, 2) print((second - first).days) ``` When run, it prints 46, as expected. It is 46 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0045544
<|start|><|user|> Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 15,000 gallons?<|eot|> <|assistant|> The bill is $75.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 15,000 gallons?" }, { "role": "assistant", "content": "The bill is $75.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0045545
With 15% off, what does a $60 backpack cost? In code: ```python price = 60 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 51.0 print(f"{sale_price:.2f}") ``` Run result: 51.00 The sale price is $51.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "51.00", "printed": "51.00", "notation": null}
nlprog_det-setting-0045546
If a 6-year limitations period starts on May 21, 2021, when does it end? A Python solution: from datetime import date accrued = date(2021, 5, 21) # datetime.date(2021, 5, 21) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 5, 21) print(expires.isoformat()) # s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2027-05-21", "printed": "2027-05-21", "notation": null}
nlprog_det-setting-0045547
<|start|><|user|> Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?<|eot|> <|assistant|> ```python days = 3 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 587 print(total) ``` stdout: 587 That comes to $587.<|e...
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?" }, { "role": "assistant", "content": "```python\ndays = 3\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "587", "printed": "587", "notation": null}
nlprog_det-setting-0045548
<|start|><|user|> A 6-month warranty starts on July 11, 2028. On what date does it end?<|eot|> <|assistant|> It expires on January 11, 2029.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6-month warranty starts on July 11, 2028. On what date does it end?" }, { "role": "assistant", "content": "It expires on January 11, 2029." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2029-01-11", "printed": "2029-01-11", "notation": null}
nlprog_det-setting-0045550
6 claimants share a $15,000 settlement equally. What is each share? Code: ```python settlement = 15000 parties = 6 share = settlement // parties # 2500 print(share) ``` The printout reads 2500. Each share is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0045551
<|start|><|user|> Counting the first and last day, how many days are there from May 5, 2021 through May 16, 2021?<|eot|> <|assistant|> That is 12 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 5, 2021 through May 16, 2021?" }, { "role": "assistant", "content": "That is 12 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0045552
<|start|><|user|> Prorate $1,500 of monthly rent for 6 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 30 days_occupied = 6 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` The script prints 300.00. The prorated rent is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,500 of monthly rent for 6 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nThe script prints 300...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0045553
Someone born October 27, 2001 turns how old by October 27, 2024? Give the age in whole years. Let's compute it with Python. from datetime import date born = date(2001, 10, 27) # datetime.date(2001, 10, 27) on = date(2024, 10, 27) # datetime.date(2024, 10, 27) age = on.year - born.year - ((on.month, o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0045554
What simple interest does $8,000 earn at 6% a year over 3 years? Python: ```python principal = 8000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` The run gives 1440.00, as expected. The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0045555
4 walks at 350 calories each burn how many calories in total? Python code: ```python per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) ``` The run gives 1400, as expected. 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0045556
At 2% a month (simple), what interest builds on $1,000 over 2 months? $40.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0045557
Buying 6 rulers at $29 each, 3 ink cartridges at $27 each, 3 paper reams at $8 each, someone hands over $300. What change comes back? Written as code: ```python items = [(6, 29), (3, 27), (3, 8)] total = sum(q * p for q, p in items) # 279 paid = 300 change = paid - total # 21 print(change) ``` The interpreter prints...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0045558
Sales went from 2,000 to 2,300. What is the percent change? Python: ```python old = 2000 new = 2300 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` Out = 15 It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0045559
How many units at $30 each (variable cost $22) cover $6,000 of fixed costs? ```python import math fixed = 6000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Python prints 750. 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0045560
221 files go into boxes of 24. How many boxes does that take? Code: ```python import math files = 221 per_box = 24 boxes = math.ceil(files / per_box) # 10 print(boxes) ``` Run result = 10 It takes 10 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0045561
<|start|><|user|> At 2% a month (simple), what interest builds on $4,000 over 3 months?<|eot|> <|assistant|> balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") # result: 240.00 The interest is $240.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $4,000 over 3 months?" }, { "role": "assistant", "content": " balance = 4000\n monthly_rate = 2 / 100 # 0.02\n months = 3\n interest = balance * monthly_rate * months # 240.0\n print(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0045562
<|start|><|system|> Available functions (JSON Schema): {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Which is cheaper per unit:...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0045563
Liesel earns a 8% commission on $40,906 of sales. What is the commission? Computation in Python: sales = 40906 rate = 8 / 100 # 0.08 commission = sales * rate # 3272.48 print(f"{commission:.2f}") (Printed result: 3272.48) Liesel earns $3,272.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3272.48", "printed": "3272.48", "notation": null}
nlprog_det-setting-0045564
<|start|><|system|> Answer in plain English.<|eot|> <|user|> From 2021 to 2054, how many years is that?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2054 print(end_year - start_year) ``` The program outputs: 33 33 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "From 2021 to 2054, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2054\nprint(end_year - start_year)\n```\nThe program outputs: 33\n\n33...
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0045565
At $0.62 per mile, what is the reimbursement for 457 miles? ```python miles = 457 rate = 0.62 reimbursement = miles * rate # 283.34 print(f"{reimbursement:.2f}") ``` Console output — 283.34 Sofia is owed $283.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "283.34", "printed": "283.34", "notation": null}
nlprog_det-setting-0045566
A meal costs $157.15. How much is a 25% tip? Python version: ```python bill = 157.15 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 39.2875 print(f"{tip:.2f}") ``` stdout: 39.29 The tip is $39.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "39.29", "printed": "39.29", "notation": null}
nlprog_det-setting-0045567
A claim accrued on March 16, 2024. The limitations period is 4 years. On what date does it expire? ```python from datetime import date accrued = date(2024, 3, 16) # datetime.date(2024, 3, 16) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 3, 16) print(expires.isoformat()) ``` Ru...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2028-03-16", "printed": "2028-03-16", "notation": null}
nlprog_det-setting-0045568
A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 66-page copy cost? As a program: ```python pages = 66 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 28.0 print(f"{cost:.2f}") ``` Output — 28.00 The copy costs $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0045569
<|start|><|user|> At a 5% tax rate, what is the tax on $108.43?<|eot|> <|assistant|> The tax is $5.42.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 5% tax rate, what is the tax on $108.43?" }, { "role": "assistant", "content": "The tax is $5.42." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "5.42", "printed": "5.42", "notation": null}
nlprog_det-setting-0045570
<|start|><|user|> Convert 7,682 USD to CAD at 1 USD = 1.31 CAD.<|eot|> <|assistant|> ```python amount = 7682 rate = 1.31 converted = amount * rate # 10063.42 print(f"{converted:.2f}") ``` Program output: 10063.42 That is 10,063.42 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 7,682 USD to CAD at 1 USD = 1.31 CAD." }, { "role": "assistant", "content": "```python\namount = 7682\nrate = 1.31\nconverted = amount * rate # 10063.42\nprint(f\"{converted:.2f}\")\n```\nProgram output: 10063.42\n\nThat is 10,063.42 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "10063.42", "printed": "10063.42", "notation": null}
nlprog_det-setting-0045571
<|start|><|user|> A storeroom has 1184 binders. The office uses 36 a day. How many are left after 19 days?<|eot|> <|assistant|> ```python stock = 1184 per_day = 36 days = 19 left = stock - per_day * days # 500 print(left) ``` stdout: 500 500 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1184 binders. The office uses 36 a day. How many are left after 19 days?" }, { "role": "assistant", "content": "```python\nstock = 1184\nper_day = 36\ndays = 19\nleft = stock - per_day * days # 500\nprint(left)\n```\nstdout: 500\n\n500 remain." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0045572
Convert 6,747 USD to CAD at 1 USD = 1.08 CAD. Set it up in Python: ```python amount = 6747 rate = 1.08 converted = amount * rate # 7286.76 print(f"{converted:.2f}") ``` It outputs 7286.76. That is 7,286.76 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "7286.76", "printed": "7286.76", "notation": null}
nlprog_det-setting-0045574
<|start|><|user|> What does $10,000 grow to in 2 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` Running it prints 10404.00, as expected. It is worth $10,404.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 2 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 10404.0\nprint(f\"{value:.2f}\")\n```\nRunning it prints...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0045575
What day of the week is December 8, 2007? Python version: ```python from datetime import date hearing = date(2007, 12, 8) # datetime.date(2007, 12, 8) print(hearing.strftime("%A")) ``` (Printed: Saturday) It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0045576
What average speed covers 574 miles in 2 hours? The computation: ```python distance = 574 hours = 2 speed = distance / hours # 287.0 print(round(speed)) ``` Console output: 287 It averages 287 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0045577
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> With 30% off, what does a $120 printer cost?<|eot|> <|assistant|> ```python price = 120 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 84.0 print(f"{sale_price:.2f}") ``` Execution result: 84.00 The sale price is $84.00.<|eot|> <|e...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "With 30% off, what does a $120 printer cost?" }, { "role": "assistant", "content": "```python\nprice = 120\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 84.0\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0045578
How many whole days and leftover hours are in 237 hours? Written as code: ```python hours = 237 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` That prints 9 days and 21 hours. That is 9 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "9 days and 21 hours", "printed": "9 days and 21 hours", "notation": null}
nlprog_det-setting-0045579
<|start|><|user|> Someone works 16 hours at $20.97 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 20.97 hours = 16 earnings = rate * hours # 335.52 print(f"{earnings:.2f}") ``` The run gives: 335.52 That earns $335.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 16 hours at $20.97 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 20.97\nhours = 16\nearnings = rate * hours # 335.52\nprint(f\"{earnings:.2f}\")\n```\nThe run gives: 335.52\n\nThat earns $335.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "335.52", "printed": "335.52", "notation": null}
nlprog_det-setting-0045580
A $210 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share? Python version: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 49.559999999999995 print(f"{each:.2f}") ``` When run, it prints 49.56, as expected. Each person pays...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "49.56", "printed": "49.56", "notation": null}
nlprog_det-setting-0045581
A car travels 194 miles in 2 hours. What is its average speed in miles per hour? Set it up in Python: ```python distance = 194 hours = 2 speed = distance / hours # 97.0 print(round(speed)) ``` (stdout: 97) It averages 97 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0045582
818 files go into boxes of 40. How many boxes does that take? 21 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0045583
A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 17 thousand gallons? As a program: ```python base = 15 rate = 4.2 used = 17 free = 0 bill = base + rate * max(0, used - free) # 86.4 print(f"{bill:.2f}") ``` When run, it prints 86.40, as expected. The bill is $86.4...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "86.40", "printed": "86.40", "notation": null}
nlprog_det-setting-0045584
Jamal's scores were 58, 85 and 79. What is the average score? In code: ```python scores = [58, 85, 79] average = sum(scores) // len(scores) print(average) ``` (Printed result: 74) The mean is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0045586
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A library charges $0.15 per book per day late. What is the fine for 4 books that are 16 days late?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 16 books = 4 fine = per_day * days_late * books # 9.6 print(f"{fine:.2f}") ``` stdout = 9.60 The fin...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A library charges $0.15 per book per day late. What is the fine for 4 books that are 16 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 16\nbooks = 4\nf...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0045587
<|start|><|user|> Mei and Mateo share $3,068 in the ratio 1:3. How much does Mei get?<|eot|> <|assistant|> ```python total = 3068 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 767 print(share_a) ``` # printed result: 767 Mei gets $767.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mei and Mateo share $3,068 in the ratio 1:3. How much does Mei get?" }, { "role": "assistant", "content": "```python\ntotal = 3068\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 767\nprint(share_a)\n```\n# printed result: 767\n\nMei g...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "767", "printed": "767", "notation": null}
nlprog_det-setting-0045588
<|start|><|system|> Available functions (JSON Schema): [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A backpack cost...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0045589
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year? A few lines of Python do it: ```python cost = 45000 salvage = 2000 years = 10 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Result: 4300.00 $4,300.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "4300.00", "printed": "4300.00", "notation": null}
nlprog_det-setting-0045590
A client paid a $5,000 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left? Code: ```python retainer = 5000 hours = 7 rate = 150 left = retainer - hours * rate # 3950 print(left) ``` Program output: 3950 The remaining balance is $3,950.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3950", "printed": "3950", "notation": null}
nlprog_det-setting-0045591
A quorum is 2/3 of the 16 members, rounded up. How many members make a quorum? One way, in code: ```python import math members = 16 quorum = math.ceil(members * 2 / 3) # 11 print(quorum) ``` The program outputs: 11 11 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0045592
How many of 88 votes make 67% (round up)? Computation in Python: ```python import math voters = 88 needed = math.ceil(voters * 67 / 100) # 59 print(needed) ``` Execution prints 59. At least 59 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0045593
<|start|><|system|> You can call tools. Available tools: [{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Count the d...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0045594
A 4 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Python version: ```python import math length = 4 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 60 print(tiles) ``` Run result = 60 It takes 60 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0045595
How many units at $40 each (variable cost $35) cover $2,500 of fixed costs? Here is the program. ```python import math fixed = 2500 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` Run result — 500 Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0045596
Convert 2 h 5 min (the length of a training session) to minutes. Code: ```python hours = 2 minutes = 5 total_minutes = hours * 60 + minutes # 125 print(total_minutes) ``` # run result: 125 The training session lasted 125 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0045597
<|start|><|user|> A 18-month warranty starts on February 2, 2019. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2019, 2, 2) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoform...
chat
[ { "role": "user", "content": "A 18-month warranty starts on February 2, 2019. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2019, 2, 2)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start....
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2020-08-02", "printed": "2020-08-02", "notation": null}
nlprog_det-setting-0045598
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0045599
Of a $10,000 budget, $3,400 has been spent. What percent is that? Translated to Python: ```python budget = 10000 spent = 3400 percent = spent / budget * 100 # 34.0 print(round(percent, 1)) ``` Execution prints 34.0, as expected. 34.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "34.0", "printed": "34.0", "notation": null}
nlprog_det-setting-0045600
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 5 rate = 275 left = retainer - hours * rate # 6125 print(left) ``` Run output — 6125 The remaining balance is $6,125.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 5\nrate = 275\nleft = retainer - hours * rate # 6125\nprint(left)\n```\nRun o...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6125", "printed": "6125", "notation": null}
nlprog_det-setting-0045601
How many 1-foot square tiles cover a 5 ft by 14 ft floor (round up)? In Python: import math length = 5 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) Result: 70 It takes 70 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0045602
<|start|><|user|> 3 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 3 # 12000.0 print(f"{per_client:.2f}") ``` It prints: 1...
chat
[ { "role": "user", "content": "3 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 48000\nfee = award * 25 / 100 # 12000.0\nremaining = award - fee # 36000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0045603
<|start|><|user|> A 120-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 120 speed = 30 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Console output — 240 240 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 120-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 120\nspeed = 30\nminutes = distance / speed * 60 # 240.0\nprint(round(minutes))\n```\nConsole output — 240\n\n240 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0045604
Someone works 16 hours at $29.02 per hour. What are the earnings? Set it up in Python: ```python rate = 29.02 hours = 16 earnings = rate * hours # 464.32 print(f"{earnings:.2f}") ``` Printed: 464.32 The pay is $464.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "464.32", "printed": "464.32", "notation": null}
nlprog_det-setting-0045605
How many meters are in 64.2 kilometers? Python, step by step: ```python km = 64.2 meters = km * 1000 # 64200.0 print(round(meters)) ``` The run gives 64200. That is 64,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "64200", "printed": "64200", "notation": null}
nlprog_det-setting-0045606
A lease runs for 24 months at $975 per month. How much rent is paid over the whole term? The Python version: ```python monthly_rent = 975 months = 24 total = monthly_rent * months # 23400 print(total) ``` It prints: 23400 In total, $23,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "23400", "printed": "23400", "notation": null}
nlprog_det-setting-0045607
58 copies of a 51-page packet are printed at $0.08 per page. What is the cost? Python, step by step: ```python pages = 51 copies = 58 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 236.64000000000001 print(f"{cost:.2f}") ``` Result: 236.64 Printing costs $236.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "236.64", "printed": "236.64", "notation": null}
nlprog_det-setting-0045609
A customer buys 5 rulers at $29 each, 5 envelopes at $26 each, 6 headsets at $25 each, 4 headsets at $24 each and pays with $550. How much change is due? A Python solution: items = [(5, 29), (5, 26), (6, 25), (4, 24)] total = sum(q * p for q, p in items) # 521 paid = 550 change = paid - total # 29 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0045610
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Filing fees are $125 per document. What do 19 filings cost?<|eot|> <|assistant|> $2,375 in filing fees.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Filing fees are $125 per document. What do 19 filings cost?" }, { "role": "assistant", "content": "$2,375 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2375", "printed": "2375", "notation": null}
nlprog_det-setting-0045611
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Count 10 days forward from June 20, 2022. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 6, 20) end = start + timedelta(days=10) print(end.isoformat()) ``` Executing it gives 2022-06-30. The period end...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Count 10 days forward from June 20, 2022. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 6, 20)\nend = start + timed...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2022-06-30", "printed": "2022-06-30", "notation": null}
nlprog_det-setting-0045612
One can of paint covers 300 square feet. How many cans are needed for 610 square feet of wall? The program: ```python import math area = 610 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` That prints: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0045613
A meal costs $19.81. How much is a 25% tip? Script: ```python bill = 19.81 tip_rate = 25 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` Run output — 4.95 The tip is $4.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "4.95", "printed": "4.95", "notation": null}