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-0063302
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?<|eot|> <|assistant|> rate = 16.0 hours = 49 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 216.0 pay = regular + overti...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?" }, { "role": "assistant", "content": " rate = 16.0\n hours = 49\n regular = 40 * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "856.00", "printed": "856.00", "notation": null}
nlprog_det-setting-0063303
Grace drove 82 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? ```python miles = 82 rate = 0.65 reimbursement = miles * rate # 53.300000000000004 print(f"{reimbursement:.2f}") ``` Run output — 53.30 Grace is owed $53.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "53.30", "printed": "53.30", "notation": null}
nlprog_det-setting-0063304
176 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? The computation: ```python total = 176 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It outputs: 29 each, 2 left over 29 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "29 each, 2 left over", "printed": "29 each, 2 left over", "notation": null}
nlprog_det-setting-0063305
A 8% increase is applied to $2,200 monthly rent. What is the new amount? Written as code: ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` Output: 2376.00 The new rent is $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0063306
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0063307
If a 135-minute meeting begins at 10:30 AM, what time does it finish? We write it as a program: start = 10 * 60 + 30 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Run result: 12:45 PM It ends at 12:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12:45 PM", "printed": "12:45 PM", "notation": null}
nlprog_det-setting-0063308
Convert 449 USD to CAD at 1 USD = 1.08 CAD. Computation in Python: ```python amount = 449 rate = 1.08 converted = amount * rate # 484.92 print(f"{converted:.2f}") ``` Result: 484.92 That is 484.92 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "484.92", "printed": "484.92", "notation": null}
nlprog_det-setting-0063309
A settlement of $7,348 is split equally among 4 parties. How much does each party receive? One way, in code: ```python settlement = 7348 parties = 4 share = settlement // parties # 1837 print(share) ``` Out: 1837 Each party receives $1,837.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1837", "printed": "1837", "notation": null}
nlprog_det-setting-0063310
Dara lends $12,000 at 6% simple interest per year for 3 years. How much interest is earned? Coded up: ```python principal = 12000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 2160.0 print(f"{interest:.2f}") ``` That prints 2160.00. It earns $2,160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2160.00", "printed": "2160.00", "notation": null}
nlprog_det-setting-0063311
<|start|><|user|> Someone works 12 hours at $15.19 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 15.19 hours = 12 earnings = rate * hours # 182.28 print(f"{earnings:.2f}") ``` Shell output: 182.28 The pay is $182.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $15.19 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 15.19\nhours = 12\nearnings = rate * hours # 182.28\nprint(f\"{earnings:.2f}\")\n```\nShell output: 182.28\n\nThe pay is $182.28." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "182.28", "printed": "182.28", "notation": null}
nlprog_det-setting-0063312
<|start|><|user|> A hall has 16 rows of 9 seats, and 7 seats are empty. How many people are seated?<|eot|> <|assistant|> 137 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 16 rows of 9 seats, and 7 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "137 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "137", "printed": "137", "notation": null}
nlprog_det-setting-0063313
A 4-day trip pays $59 a day for meals and $175 a night for lodging (3 nights). What is the total allowance? The allowance is $761.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "761", "printed": "761", "notation": null}
nlprog_det-setting-0063314
<|start|><|user|> Convert 72.8 km to meters.<|eot|> <|assistant|> ```python km = 72.8 meters = km * 1000 print(round(meters)) ``` Printed: 72800 72,800 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 72.8 km to meters." }, { "role": "assistant", "content": "```python\nkm = 72.8\nmeters = km * 1000\nprint(round(meters))\n```\nPrinted: 72800\n\n72,800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "72800", "printed": "72800", "notation": null}
nlprog_det-setting-0063315
Pack A has 8 items for $10.26. Pack B has 30 items for $22.05. Which has the lower price per item? ```python pack_a = 10.26 / 8 # 1.2825 pack_b = 22.05 / 30 # 0.735 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Output: B) Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0063316
<|start|><|user|> To read 176 pages in 11 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 176 days = 11 per_day = pages // days # 16 print(per_day) ``` Result = 16 16 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 176 pages in 11 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 176\ndays = 11\nper_day = pages // days # 16\nprint(per_day)\n```\nResult = 16\n\n16 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0063317
Counting only Monday through Friday, how many business days are there after January 19, 2023 through February 16, 2023? ```python from datetime import date, timedelta start = date(2023, 1, 19) end = date(2023, 2, 16) 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
[]
[]
149
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0063318
A service costs $25 a month or $270 a year. How much does the yearly plan save over 12 monthly payments? The Python version: monthly = 25 yearly = 270 savings = monthly * 12 - yearly # 30 print(savings) Executing it gives: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0063319
<|start|><|user|> A meal costs $225.72. How much is a 20% tip?<|eot|> <|assistant|> bill = 225.72 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 45.144000000000005 print(f"{tip:.2f}") Executed, it shows 45.14. The tip is $45.14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $225.72. How much is a 20% tip?" }, { "role": "assistant", "content": " bill = 225.72\n tip_rate = 20 / 100 # 0.2\n tip = bill * tip_rate # 45.144000000000005\n print(f\"{tip:.2f}\")\nExecuted, it shows 45.14.\n\nThe tip is $45.14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "45.14", "printed": "45.14", "notation": null}
nlprog_det-setting-0063320
At a 8% tax rate, what is the tax on $430.04? As Python: ```python price = 430.04 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 34.403200000000005 print(f"{tax:.2f}") ``` That prints: 34.40 The tax is $34.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "34.40", "printed": "34.40", "notation": null}
nlprog_det-setting-0063321
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> With 40% off, what ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0063322
A $6,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? One way, in code: ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + int...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "206.67", "printed": "206.67", "notation": null}
nlprog_det-setting-0063324
A $24,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment? Python code: ```python grant = 24000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 5250.0 print(f"{each:.2f}") ``` Result — 5250.00 Each installment is $5,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0063325
What day of the week is September 25, 2000? As a program: ```python from datetime import date hearing = date(2000, 9, 25) # datetime.date(2000, 9, 25) print(hearing.strftime("%A")) ``` Running this gives Monday. September 25, 2000 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0063326
A hall has 16 rows of 22 seats, and 5 seats are empty. How many people are seated? One way, in code: ```python rows = 16 per_row = 22 empty = 5 seated = rows * per_row - empty # 347 print(seated) ``` The run gives 347. 347 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "347", "printed": "347", "notation": null}
nlprog_det-setting-0063327
A court charges $10 per request plus $0.50 per page after the first 10 pages. What does a 72-page copy cost? ```python pages = 72 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 41.0 print(f"{cost:.2f}") ``` stdout: 41.00 The copy costs $41.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "41.00", "printed": "41.00", "notation": null}
nlprog_det-setting-0063328
3 boxes hold 8 badges each. After 17 are handed out, how many are left? Coded up: ```python boxes = 3 per_box = 8 given_away = 17 left = boxes * per_box - given_away # 7 print(left) ``` It prints: 7 That leaves 7 badges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0063329
179 files go into boxes of 50. How many boxes does that take? Coded up: import math files = 179 per_box = 50 boxes = math.ceil(files / per_box) # 4 print(boxes) Output — 4 It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0063330
Which is cheaper per unit: 10 for $3.11 (A) or 30 for $16.43 (B)? Let's compute it with Python. ```python pack_a = 3.11 / 10 # 0.311 pack_b = 16.43 / 30 # 0.5476666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Console output — A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0063331
<|start|><|user|> How many of 215 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 215 needed = math.ceil(voters * 75 / 100) # 162 print(needed) ``` Output — 162 162 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 215 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 215\nneeded = math.ceil(voters * 75 / 100) # 162\nprint(needed)\n```\nOutput — 162\n\n162 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0063332
Scale 200 g of lentils from 8 servings to 10 servings. In code: ```python grams = 200 serves = 8 needed_for = 10 scaled = grams * needed_for // serves # 250 print(scaled) ``` # run result: 250 250 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0063333
<|start|><|system|> You may call the tools below. [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0063337
<|start|><|user|> Walls total 1317 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1317 coverage = 250 cans = math.ceil(area / coverage) # 6 print(cans) ``` Interpreter output: 6 6 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1317 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1317\ncoverage = 250\ncans = math.ceil(area / coverage) # 6\nprint(cans)\n```\nInterpreter output: 6\n\n6 can...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0063338
<|start|><|user|> Someone works 30 hours at $27.58 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 27.58 hours = 30 earnings = rate * hours # 827.4 print(f"{earnings:.2f}") ``` Output of the run: 827.40 That earns $827.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $27.58 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 27.58\nhours = 30\nearnings = rate * hours # 827.4\nprint(f\"{earnings:.2f}\")\n```\nOutput of the run: 827.40\n\nThat earns $827.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "827.40", "printed": "827.40", "notation": null}
nlprog_det-setting-0063339
Express 41 hours in days and hours. Here is the program. ```python hours = 41 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The code prints: 1 days and 17 hours 41 hours is 1 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1 days and 17 hours", "printed": "1 days and 17 hours", "notation": null}
nlprog_det-setting-0063340
<|start|><|user|> Prorate $2,400 of monthly rent for 22 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 1760.0 print(f"{prorated:.2f}") ``` The code prints 1760.00. The prorated rent is $1,760.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 22 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 1760.0\nprint(f\"{prorated:.2f}\")\n```\nThe code ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1760.00", "printed": "1760.00", "notation": null}
nlprog_det-setting-0063341
Papers were served by mail on June 17, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Written as code: ```python from datetime import date, timedelta served = date(2018, 6, 17) # datetime.date(2018, 6, 17) response_days = 14 mail_days = 3 due = served + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2018-07-04", "printed": "2018-07-04", "notation": null}
nlprog_det-setting-0063342
Scale 150 g of oats from 2 servings to 3 servings. As Python: ```python grams = 150 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 225 print(scaled) ``` Output of the run: 225 225 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0063343
<|start|><|user|> If a 90-minute class begins at 8:00 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 8 * 60 + 0 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed: 9:30 AM The class finishes at 9:30 AM.<|eot|> <|e...
chat
[ { "role": "user", "content": "If a 90-minute class begins at 8:00 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 0\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9:30 AM", "printed": "9:30 AM", "notation": null}
nlprog_det-setting-0063344
A storeroom has 722 chairs. The office uses 36 a day. How many are left after 18 days? 74 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0063345
<|start|><|system|> Tools (call with JSON): [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters":...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"code_runner\", \"description\": \"Evalua...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0063346
<|start|><|user|> With 25% off, what does a $40 backpack cost?<|eot|> <|assistant|> ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` Printed — 30.00 The sale price is $30.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $40 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 30.0\nprint(f\"{sale_price:.2f}\")\n```\nPrinted — 30.00\n\nThe sale price is $30.00." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0063347
6 boxes hold 8 pens each. After 5 are handed out, how many are left? As Python: ```python boxes = 6 per_box = 8 given_away = 5 left = boxes * per_box - given_away # 43 print(left) ``` The program prints: 43 That leaves 43 pens.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0063348
<|start|><|user|> A lawyer's fee is 30% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 90000 rate = 30 / 100 fee = recovery * rate print(f"{fee:.2f}") The program outputs: 27000.00 The lawyer's fee comes to $27,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 90000\n rate = 30 / 100\n fee = recovery * rate\n print(f\"{fee:.2f}\")\nThe program outputs: 27000.00\n\nThe lawyer's fee comes to $27,...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0063349
<|start|><|user|> Rent of $1,800 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") ``` Execution prints 1944.00. The new rent is $1,944.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,800 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1944.0000000000002\nprint(f\"{new_rent:.2f}\")\n```\nExecution prints 1944.00.\n\nThe new ...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0063350
A lease runs for 12 months at $975 per month. How much rent is paid over the whole term? A few lines of Python do it: ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` Shell output — 11700 The rent over the term is $11,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0063352
<|start|><|system|> You can call tools. Available tools: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Signe earns a 3% commission o...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "2740.95", "printed": "2740.95", "notation": null}
nlprog_det-setting-0063353
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 86-page copy cost? The total is $53.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "53.00", "printed": "53.00", "notation": null}
nlprog_det-setting-0063354
<|start|><|user|> What simple interest does $5,000 earn at 3% a year over 3 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 3 interest = principal * rate * years # 450.0 print(f"{interest:.2f}") ``` Run it and it prints 450.00. The interest is $450.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 3% a year over 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 3\ninterest = principal * rate * years # 450.0\nprint(f\"{interest:.2f}\")\n```\nRun it and it print...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0063355
Pack A has 8 items for $8.44. Pack B has 18 items for $19.18. Which has the lower price per item? ```python pack_a = 8.44 / 8 # 1.055 pack_b = 19.18 / 18 # 1.0655555555555556 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Shell output: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0063356
<|start|><|user|> Attendance was 25 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 25 total = 25 percent = present / total * 100 # 100.0 print(round(percent, 1)) ``` The program prints 100.0, as expected. Attendance was 100.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 25 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 25\ntotal = 25\npercent = present / total * 100 # 100.0\nprint(round(percent, 1))\n```\nThe program prints 100.0, as expected.\n\nAttendance was 100.0%...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0063358
Counting the first and last day, how many days are there from October 18, 2027 through October 23, 2027? Here's the code. ```python from datetime import date first = date(2027, 10, 18) last = date(2027, 10, 23) days = (last - first).days + 1 print(days) ``` Running it prints 6. 6 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0063359
<|start|><|user|> Convert 2 h 41 min (the length of a training session) to minutes.<|eot|> <|assistant|> ```python hours = 2 minutes = 41 total_minutes = hours * 60 + minutes # 161 print(total_minutes) ``` On running, it outputs: 161 That is 161 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2 h 41 min (the length of a training session) to minutes." }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 41\ntotal_minutes = hours * 60 + minutes # 161\nprint(total_minutes)\n```\nOn running, it outputs: 161\n\nThat is 161 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0063360
The landlord deducts $120 from a $2,500 deposit. What is returned to the tenant? We write it as a program: ```python deposit = 2500 deductions = [120] refund = deposit - sum(deductions) # 2380 print(refund) ``` The program prints: 2380 $2,380 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2380", "printed": "2380", "notation": null}
nlprog_det-setting-0063361
With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal. Profit is 5.9% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "5.9", "printed": "5.9", "notation": null}
nlprog_det-setting-0063362
Goods bought on October 20, 2018 carry a 12-month warranty. When does it expire? Here's the code. ```python from datetime import date start = date(2018, 10, 20) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Ex...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2019-10-20", "printed": "2019-10-20", "notation": null}
nlprog_det-setting-0063363
The statute was enacted in 2006. How many years had passed by 2017? A short script: ```python start_year = 2006 end_year = 2017 print(end_year - start_year) ``` When run, it prints: 11 That is 11 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0063364
<|start|><|user|> A clerk's office charges $50 for each filing. Liesel submits 7 filings. What is the total fee?<|eot|> <|assistant|> The total fee is $350.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $50 for each filing. Liesel submits 7 filings. What is the total fee?" }, { "role": "assistant", "content": "The total fee is $350." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0063366
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_word", "descripti...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0063367
<|start|><|user|> How many meters are in 55.8 kilometers?<|eot|> <|assistant|> 55,800 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 55.8 kilometers?" }, { "role": "assistant", "content": "55,800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "55800", "printed": "55800", "notation": null}
nlprog_det-setting-0063368
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|use...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0063369
A library charges $0.20 per book per day late. What is the fine for 3 books that are 3 days late? Python makes this quick: ```python per_day = 0.2 days_late = 3 books = 3 fine = per_day * days_late * books # 1.8000000000000003 print(f"{fine:.2f}") ``` On running, it outputs: 1.80 The fine is $1.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1.80", "printed": "1.80", "notation": null}
nlprog_det-setting-0063370
What simple interest does $1,000 earn at 8% a year over 5 years? The Python version: ```python principal = 1000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 400.0 print(f"{interest:.2f}") ``` What it prints — 400.00 The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0063371
<|start|><|user|> Notice was given on January 8, 2028. The notice period is 10 days. When does it run out?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2028, 1, 8) # datetime.date(2028, 1, 8) end = start + timedelta(days=10) # datetime.date(2028, 1, 18) print(end.isoformat())...
chat
[ { "role": "user", "content": "Notice was given on January 8, 2028. The notice period is 10 days. When does it run out?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2028, 1, 8) # datetime.date(2028, 1, 8)\n end = start + timedelta(days=10) ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2028-01-18", "printed": "2028-01-18", "notation": null}
nlprog_det-setting-0063372
At 2% a month (simple), what interest builds on $2,500 over 4 months? Python does the arithmetic: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` Printed: 200.00 The interest is $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0063373
A 4 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Here is the program. ```python import math length = 4 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 12 print(tiles) ``` Run it and it prints 12. It takes 12 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063374
<|start|><|system|> Tool definitions: {"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Counting the first and las...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0063375
3 books come back 11 days late, at $0.15 a day each. What is the fine? Python: ```python per_day = 0.15 days_late = 11 books = 3 fine = per_day * days_late * books # 4.949999999999999 print(f"{fine:.2f}") ``` Console: 4.95 The fine is $4.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4.95", "printed": "4.95", "notation": null}
nlprog_det-setting-0063376
A client paid a $2,500 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left? Script: retainer = 2500 hours = 10 rate = 200 left = retainer - hours * rate # 500 print(left) The program prints: 500 $500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0063377
Sales went from 200 to 280. What is the percent change? Script: old = 200 new = 280 change = (new - old) / old * 100 print(round(change)) On running, it outputs 40. It changed by 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0063378
<|start|><|system|> You may call the tools below. {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A service costs ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063379
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A filing cabinet costs $90. It is 30%...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0063380
The firm was founded in 2023. How many years had passed by 2038? That is 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0063382
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` stdout = 13200.00 The fee is $13,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 33 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\nstdout = 13200.00\n\nThe fee is $13,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0063383
At an exchange rate of 1.35 USD per EUR, how many USD is 5,144 EUR? Here is the program. amount = 5144 rate = 1.35 converted = amount * rate # 6944.400000000001 print(f"{converted:.2f}") Execution result: 6944.40 That is 6,944.40 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "6944.40", "printed": "6944.40", "notation": null}
nlprog_det-setting-0063384
An invoice lists 19 labels at $12 each, plus 6% sales tax. What is the invoice total? Written as code: ```python quantity = 19 unit_price = 12 subtotal = quantity * unit_price # 228 total = subtotal * (1 + 6 / 100) # 241.68 print(f"{total:.2f}") ``` Result — 241.68 The total with tax is $241.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "241.68", "printed": "241.68", "notation": null}
nlprog_det-setting-0063385
Find the mean of these test scores: 66, 95, 55, 63, 95 and 88. We can compute it in Python. ```python scores = [66, 95, 55, 63, 95, 88] average = sum(scores) // len(scores) # 77 print(average) ``` Execution result — 77 The mean is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0063386
3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Computation in Python: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` The program outputs 9600.00....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0063387
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "business_days", "description": "Count business days betwe...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"bu...
nlprog_det
setting
original
null
deterministic
[]
[]
404
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0063388
The firm was founded in 2018. How many years had passed by 2031? Python makes this quick: ```python start_year = 2018 end_year = 2031 print(end_year - start_year) ``` The interpreter prints 13. That is 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0063389
<|start|><|system|> Tools you may use: {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "lookup_statute", "description":...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
400
{"gold": "55.70", "printed": "55.70", "notation": null}
nlprog_det-setting-0063390
A 23 lb package ships at $5 base plus $0.75/lb. What is the charge? In Python: ```python base = 5 per_pound = 0.75 weight = 23 cost = base + per_pound * weight # 22.25 print(f"{cost:.2f}") ``` # printed result: 22.25 Shipping costs $22.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "22.25", "printed": "22.25", "notation": null}
nlprog_det-setting-0063391
Each storage box holds 15 files. How many boxes are needed for 844 files? ```python import math files = 844 per_box = 15 boxes = math.ceil(files / per_box) print(boxes) ``` Running this gives 57. 57 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0063392
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> An invoice lists 7 tape rolls at $12 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 7 unit_price = 12 subtotal = quantity * unit_price # 84 total = subtotal * (1 + 6 / 100) # 89.04 print(f"{total:.2...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "An invoice lists 7 tape rolls at $12 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 7\nunit_price = 12\nsubtotal = ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "89.04", "printed": "89.04", "notation": null}
nlprog_det-setting-0063393
<|start|><|user|> Xavier and Bilal share $3,801 in the ratio 3:4. How much does Xavier get?<|eot|> <|assistant|> ```python total = 3801 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1629 print(share_a) ``` It outputs: 1629 Xavier gets $1,629.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Xavier and Bilal share $3,801 in the ratio 3:4. How much does Xavier get?" }, { "role": "assistant", "content": "```python\ntotal = 3801\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1629\nprint(share_a)\n```\nIt outputs: 1629\n\nXav...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1629", "printed": "1629", "notation": null}
nlprog_det-setting-0063394
<|start|><|user|> A $6,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 900.0 payment...
chat
[ { "role": "user", "content": "A $6,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 5 / 100 # 0.05\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "191.67", "printed": "191.67", "notation": null}
nlprog_det-setting-0063395
The landlord deducts $120, $150 and $200 from a $2,000 deposit. What is returned to the tenant? Here is a short program for it. ```python deposit = 2000 deductions = [120, 150, 200] refund = deposit - sum(deductions) # 1530 print(refund) ``` Execution prints 1530, as expected. $1,530 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1530", "printed": "1530", "notation": null}
nlprog_det-setting-0063396
With 20% off, what does a $80 backpack cost? We write it as a program: ```python price = 80 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 64.0 print(f"{sale_price:.2f}") ``` Run it and it prints 64.00. The sale price is $64.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0063397
How many weekdays (Monday to Friday) fall after March 28, 2018 up to and including April 29, 2018? Translated to Python: ```python from datetime import date, timedelta start = date(2018, 3, 28) end = date(2018, 4, 29) 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
[]
[]
159
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0063398
<|start|><|user|> Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 6,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.75 used = 6 free = 3 bill = base + rate * max(0, used - free) # 29.25 print(f"{bill:.2f}") ``` The printout reads: 29.25 The bill is $29.25.<|eot|> ...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 6,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.75\nused = 6\nfree = 3\nbill = base + rate * max(0, used - free) # 29.25\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "29.25", "printed": "29.25", "notation": null}
nlprog_det-setting-0063399
How many meters are in 22.2 kilometers? Python: ```python km = 22.2 meters = km * 1000 # 22200.0 print(round(meters)) ``` Printed result: 22200 22,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "22200", "printed": "22200", "notation": null}
nlprog_det-setting-0063400
Noor earns a 6% commission on $104,620 of sales. What is the commission? Python: ```python sales = 104620 rate = 6 / 100 # 0.06 commission = sales * rate # 6277.2 print(f"{commission:.2f}") ``` Executing it gives 6277.20. Noor earns $6,277.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "6277.20", "printed": "6277.20", "notation": null}
nlprog_det-setting-0063401
226 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? We can compute it in Python. ```python total = 226 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (stdout: 56 each, 2 left over) The answer: 56 each, 2 lef...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "56 each, 2 left over", "printed": "56 each, 2 left over", "notation": null}
nlprog_det-setting-0063402
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Kofi buys 4 boxes of 12 batteries each and gives away 15 batteries. How many batteries are left?<|eot|> <|assistant|> 33 batteries are left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Kofi buys 4 boxes of 12 batteries each and gives away 15 batteries. How many batteries are left?" }, { "role": "assistant", "content": "33 batteries are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0063403
Buying 1 desk lamps at $23 each, 2 ink cartridges at $28 each, 6 batteries at $25 each, someone hands over $250. What change comes back? The computation: ```python items = [(1, 23), (2, 28), (6, 25)] total = sum(q * p for q, p in items) # 229 paid = 250 change = paid - total # 21 print(change) ``` Executing it gives...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0063404
<|start|><|user|> A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 27.599999999999998 print(f"{each:.2f}") ``` It prints: 27.60 The share is $27.60...
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 15 / 100 # 0.15\npeople = 4\neach = bill * (1 + tip_rate) / people # 27.599999999999998\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0063405
Scale 200 g of flour from 2 servings to 12 servings. Programmatically: grams = 200 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 1200 print(scaled) Out: 1200 Use 1200 g of flour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0063406
Express 104 hours in days and hours. ```python hours = 104 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executed, it shows 4 days and 8 hours. That is 4 days and 8 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "4 days and 8 hours", "printed": "4 days and 8 hours", "notation": null}
nlprog_det-setting-0063407
A garage charges $4 an hour, never more than $24 a day. How much for 7 hours? Python version: ```python rate = 4 hours = 7 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Executing it gives: 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063408
A garage charges $3 an hour, never more than $24 a day. How much for 8 hours? The computation: ```python rate = 3 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Execution result — 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063409
<|start|><|user|> What does $10,000 grow to in 4 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 3 / 100 years = 4 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` (Out: 11255.09) The balance is $11,255.09.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 4 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 3 / 100\nyears = 4\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\n(Out: 11255.09)\n\nThe balance is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "11255.09", "printed": "11255.09", "notation": null}