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-0060117
<|start|><|user|> A 4-day trip pays $69 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> days = 4 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 696 print(total) Program output...
chat
[ { "role": "user", "content": "A 4-day trip pays $69 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": " days = 4\n meal_rate = 69\n lodging_rate = 140\n nights = days - 1 # 3\n total = days * meal_rate + ni...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "696", "printed": "696", "notation": null}
nlprog_det-setting-0060118
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours? Translated to Python: ```python rate = 22.4 hours = 51 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 369.59999999999997 pay = regular + overtime # 1265.6 print(f"{pay:.2f}") ``` # output: 1265.60 S...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "1265.60", "printed": "1265.60", "notation": null}
nlprog_det-setting-0060119
What is the total rent on a 18-month lease at $1,640 a month? In code: ```python monthly_rent = 1640 months = 18 total = monthly_rent * months # 29520 print(total) ``` It outputs: 29520 In total, $29,520 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "29520", "printed": "29520", "notation": null}
nlprog_det-setting-0060120
Meals are $59 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights? We can compute it in Python. ```python days = 5 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 855 print(total) ``` Run result = 855 That comes to $855.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "855", "printed": "855", "notation": null}
nlprog_det-setting-0060121
<|start|><|user|> Walls total 852 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 852 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Output: 3) Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 852 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 852\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\n(Output: 3)\n\nBuy 3 cans." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0060123
Rent of $2,200 goes up 8%. What is the new rent? As a program: ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` The interpreter prints 2376.00. The new rent is $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0060124
Fixed costs are $6,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even? Break-even is 600 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0060125
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> On...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0060126
<|start|><|user|> Convert 87.8 km to meters.<|eot|> <|assistant|> That is 87,800 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 87.8 km to meters." }, { "role": "assistant", "content": "That is 87,800 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "87800", "printed": "87800", "notation": null}
nlprog_det-setting-0060127
220 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? As a program: total = 220 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Output = 44 each, 0 left over The answer: 44 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "44 each, 0 left over", "printed": "44 each, 0 left over", "notation": null}
nlprog_det-setting-0060128
Divide 210 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Code: ```python total = 210 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # result: 23 each, 3 left over The answer: 23 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "23 each, 3 left over", "printed": "23 each, 3 left over", "notation": null}
nlprog_det-setting-0060129
A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)? The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0060130
A 360-page report must be reviewed in 15 days. How many pages a day is that, evenly? The Python version: ```python pages = 360 days = 15 per_day = pages // days # 24 print(per_day) ``` Run it and it prints: 24 24 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0060131
<|start|><|user|> Nilufar and Dara share $3,115 in the ratio 2:3. How much does Nilufar get?<|eot|> <|assistant|> total = 3115 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1246 print(share_a) Program output — 1246 Nilufar gets $1,246.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nilufar and Dara share $3,115 in the ratio 2:3. How much does Nilufar get?" }, { "role": "assistant", "content": " total = 3115\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 1246\n print(share_a)\nProgram output — 1...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1246", "printed": "1246", "notation": null}
nlprog_det-setting-0060132
At $0.70 per mile, what is the reimbursement for 222 miles? Bruna is owed $155.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "155.40", "printed": "155.40", "notation": null}
nlprog_det-setting-0060133
At $0.65 per mile, what is the reimbursement for 630 miles? One way, in code: ```python miles = 630 rate = 0.65 reimbursement = miles * rate # 409.5 print(f"{reimbursement:.2f}") ``` Shell output: 409.50 The reimbursement is $409.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "409.50", "printed": "409.50", "notation": null}
nlprog_det-setting-0060134
<|start|><|user|> After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 9666.666666666666 print(f"{each:.2f}") ``` stdout = 9666.67 Each installment...
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 2000\ninstallments = 6\neach = (grant - up_front) / installments # 9666.666666666666\n...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "9666.67", "printed": "9666.67", "notation": null}
nlprog_det-setting-0060135
<|start|><|system|> You have access to these functions: [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> At $21.43 an h...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "514.32", "printed": "514.32", "notation": null}
nlprog_det-setting-0060136
Divide 104 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? Here's the code. ```python total = 104 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The printout reads 13 each, 0 left over. The answer: 13...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "13 each, 0 left over", "printed": "13 each, 0 left over", "notation": null}
nlprog_det-setting-0060137
An invoice lists 24 lanyards at $6 each, plus 10% sales tax. What is the invoice total? In Python: ```python quantity = 24 unit_price = 6 subtotal = quantity * unit_price # 144 total = subtotal * (1 + 10 / 100) # 158.4 print(f"{total:.2f}") ``` Output: 158.40 The total with tax is $158.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "158.40", "printed": "158.40", "notation": null}
nlprog_det-setting-0060139
16 of 25 members attended. What percent attended? Let's compute it with Python. present = 16 total = 25 percent = present / total * 100 # 64.0 print(round(percent, 1)) The script prints 64.0. Attendance was 64.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0060141
An attorney bills 8 hours at $180 per hour. What is the bill? We can compute it in Python. ```python hours = 8 rate = 180 bill = hours * rate # 1440 print(f"{bill:.2f}") ``` Result: 1440.00 The bill is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0060142
Straight-line depreciation: cost $18,000, salvage $0, 8 years. How much per year? Coded up: ```python cost = 18000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 2250.0 print(f"{per_year:.2f}") ``` Out = 2250.00 $2,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0060143
A workshop lasted 1 hours and 46 minutes. How many minutes is that? Script: ```python hours = 1 minutes = 46 total_minutes = hours * 60 + minutes # 106 print(total_minutes) ``` (Out: 106) The workshop lasted 106 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "106", "printed": "106", "notation": null}
nlprog_det-setting-0060144
A jacket costs $180. It is 15% off. What is the sale price? ```python price = 180 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 153.0 print(f"{sale_price:.2f}") ``` Shell output — 153.00 The sale price is $153.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "153.00", "printed": "153.00", "notation": null}
nlprog_det-setting-0060145
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Divide 180...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
243
{"gold": "30 each, 0 left over", "printed": "30 each, 0 left over", "notation": null}
nlprog_det-setting-0060146
<|start|><|system|> You can call tools. Available tools: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "Evaluates Python and returns th...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"com...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0060147
A $2,400 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Set it up in Python: ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0060148
Someone works 38 hours at $16.95 per hour. What are the earnings? Let's compute it with Python. ```python rate = 16.95 hours = 38 earnings = rate * hours # 644.1 print(f"{earnings:.2f}") ``` (Run result: 644.10) The pay is $644.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "644.10", "printed": "644.10", "notation": null}
nlprog_det-setting-0060149
A count moves from 1,200 to 1,020. By what percent did it change (use a minus sign for a drop)? Code: ```python old = 1200 new = 1020 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` stdout = -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0060150
Parking is $3 per hour with a daily maximum of $20. What do 8 hours cost? The computation: ```python rate = 3 hours = 8 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` The code prints: 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0060151
<|start|><|user|> A claim accrued on February 10, 2015. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2015, 2, 10) # datetime.date(2015, 2, 10) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019,...
chat
[ { "role": "user", "content": "A claim accrued on February 10, 2015. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2015, 2, 10) # datetime.date(2015, 2, 10)\nyears = 4\nexpires = accrued...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2019-02-10", "printed": "2019-02-10", "notation": null}
nlprog_det-setting-0060152
<|start|><|user|> 78 of 100 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 78 total = 100 percent = present / total * 100 # 78.0 print(round(percent, 1)) ``` (Run result: 78.0) 78.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "78 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 78\ntotal = 100\npercent = present / total * 100 # 78.0\nprint(round(percent, 1))\n```\n(Run result: 78.0)\n\n78.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "78.0", "printed": "78.0", "notation": null}
nlprog_det-setting-0060153
Mei earns a 4% commission on $27,453 of sales. What is the commission? As Python: sales = 27453 rate = 4 / 100 # 0.04 commission = sales * rate # 1098.1200000000001 print(f"{commission:.2f}") # program output: 1098.12 The commission is $1,098.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1098.12", "printed": "1098.12", "notation": null}
nlprog_det-setting-0060154
A meal costs $155.04. How much is a 15% tip? Python, step by step: bill = 155.04 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 23.255999999999997 print(f"{tip:.2f}") The interpreter prints 23.26. Leave $23.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "23.26", "printed": "23.26", "notation": null}
nlprog_det-setting-0060156
<|start|><|user|> To read 532 pages in 19 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 532 days = 19 per_day = pages // days # 28 print(per_day) ``` When run, it prints: 28 28 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 532 pages in 19 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 532\ndays = 19\nper_day = pages // days # 28\nprint(per_day)\n```\nWhen run, it prints: 28\n\n28 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0060157
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Water costs $18 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 4.75 used = 21 free = 3 bill = base + rate * max(0, used - free) # 103.5 print(f"{bill:.2f}") `...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Water costs $18 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 4.75\nused...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0060158
A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 100-page copy cost? Let the code do the arithmetic: ```python pages = 100 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 25.0 print(f"{cost:.2f}") ``` Executed, it shows 25.00. The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "25.00", "printed": "25.00", "notation": null}
nlprog_det-setting-0060159
<|start|><|user|> 16 tape rolls cost $7 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 16 unit_price = 7 subtotal = quantity * unit_price # 112 total = subtotal * (1 + 5 / 100) # 117.60000000000001 print(f"{total:.2f}") ``` (Console output: 117.60) The invoice total is $117.6...
chat
[ { "role": "user", "content": "16 tape rolls cost $7 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 16\nunit_price = 7\nsubtotal = quantity * unit_price # 112\ntotal = subtotal * (1 + 5 / 100) # 117.60000000000001\nprint(f\"{total:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "117.60", "printed": "117.60", "notation": null}
nlprog_det-setting-0060160
<|start|><|user|> How many meters are in 35.7 kilometers?<|eot|> <|assistant|> 35,700 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 35.7 kilometers?" }, { "role": "assistant", "content": "35,700 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "35700", "printed": "35700", "notation": null}
nlprog_det-setting-0060161
What is a 25% tip on a $188.20 bill? Code: ```python bill = 188.2 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 47.05 print(f"{tip:.2f}") ``` Execution prints 47.05, as expected. The tip is $47.05.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "47.05", "printed": "47.05", "notation": null}
nlprog_det-setting-0060162
At $0.65 per mile, what is the reimbursement for 300 miles? Script: ```python miles = 300 rate = 0.65 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Printed result: 195.00 The reimbursement is $195.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "195.00", "printed": "195.00", "notation": null}
nlprog_det-setting-0060163
<|start|><|user|> At 1.5% a month (simple), what interest builds on $1,000 over 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 30.0 print(f"{interest:.2f}") ``` Out — 30.00 $30.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $1,000 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # 30.0\nprint(f\"{interest:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0060164
<|start|><|user|> From 2016 to 2045, how many years is that?<|eot|> <|assistant|> start_year = 2016 end_year = 2045 print(end_year - start_year) Executing it gives: 29 That is 29 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2016 to 2045, how many years is that?" }, { "role": "assistant", "content": " start_year = 2016\n end_year = 2045\n print(end_year - start_year)\nExecuting it gives: 29\n\nThat is 29 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0060165
A 33 lb package ships at $5 base plus $2.00/lb. What is the charge? Translated to Python: ```python base = 5 per_pound = 2.0 weight = 33 cost = base + per_pound * weight # 71.0 print(f"{cost:.2f}") ``` # printed: 71.00 The charge is $71.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "71.00", "printed": "71.00", "notation": null}
nlprog_det-setting-0060166
<|start|><|user|> A storeroom has 641 hard drives. The office uses 6 a day. How many are left after 12 days?<|eot|> <|assistant|> ```python stock = 641 per_day = 6 days = 12 left = stock - per_day * days # 569 print(left) ``` # printed: 569 569 hard drives are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 641 hard drives. The office uses 6 a day. How many are left after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 641\nper_day = 6\ndays = 12\nleft = stock - per_day * days # 569\nprint(left)\n```\n# printed: 569\n\n569 hard drive...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "569", "printed": "569", "notation": null}
nlprog_det-setting-0060167
A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)? It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060168
<|start|><|user|> Counting the first and last day, how many days are there from October 22, 2023 through October 26, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 10, 22) # datetime.date(2023, 10, 22) last = date(2023, 10, 26) # datetime.date(2023, 10, 26) days = (last - first).day...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from October 22, 2023 through October 26, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 10, 22) # datetime.date(2023, 10, 22)\nlast = date(2023, 10, 26)...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060169
<|start|><|user|> A meal costs $121.04. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 121.04 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 26.628800000000002 print(f"{tip:.2f}") ``` It outputs 26.63. The tip is $26.63.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $121.04. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 121.04\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 26.628800000000002\nprint(f\"{tip:.2f}\")\n```\nIt outputs 26.63.\n\nThe tip is $26.63." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "26.63", "printed": "26.63", "notation": null}
nlprog_det-setting-0060170
How many whole days and leftover hours are in 59 hours? One way, in code: ```python hours = 59 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Result: 2 days and 11 hours) That is 2 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2 days and 11 hours", "printed": "2 days and 11 hours", "notation": null}
nlprog_det-setting-0060172
A meeting starts at 12:00 PM and lasts 25 minutes. When does it end? A few lines of Python do it: ```python start = 12 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution result: 12:25 PM The meeting finishes at 12:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "12:25 PM", "printed": "12:25 PM", "notation": null}
nlprog_det-setting-0060173
Convert 63 km to meters. Python version: ```python km = 63 meters = km * 1000 # 63000 print(round(meters)) ``` # result: 63000 That is 63,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "63000", "printed": "63000", "notation": null}
nlprog_det-setting-0060174
At 1% a month (simple), what interest builds on $12,000 over 3 months? $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0060175
At an exchange rate of 0.92 USD per EUR, how many USD is 568 EUR? Python does the arithmetic: ```python amount = 568 rate = 0.92 converted = amount * rate # 522.5600000000001 print(f"{converted:.2f}") ``` Printed result — 522.56 That is 522.56 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "522.56", "printed": "522.56", "notation": null}
nlprog_det-setting-0060176
<|start|><|user|> A meal costs $179.77. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 179.77 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 26.965500000000002 print(f"{tip:.2f}") ``` Running it prints 26.97. The tip is $26.97.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $179.77. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 179.77\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 26.965500000000002\nprint(f\"{tip:.2f}\")\n```\nRunning it prints 26.97.\n\nThe tip is $26.97." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "26.97", "printed": "26.97", "notation": null}
nlprog_det-setting-0060177
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> 8 claimants share a $1,200...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0060178
<|start|><|user|> Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 5333.333333333333 print(f"{per_year:.2f}") ``` # printed re...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years # 5...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "5333.33", "printed": "5333.33", "notation": null}
nlprog_det-setting-0060180
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Find the mean...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0060181
Each storage box holds 24 files. How many boxes are needed for 502 files? Python, step by step: import math files = 502 per_box = 24 boxes = math.ceil(files / per_box) print(boxes) This prints: 21 It takes 21 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0060182
Tobias was born on July 21, 2007. How old is Tobias on February 28, 2022? The age is 14 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0060183
A pack of 5 markers sells for $215. What does each cost? Computing it: ```python total = 215 count = 5 per_item = total // count # 43 print(per_item) ``` Program output: 43 Each one costs $43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0060184
A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Set it up in Python: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "530.00", "printed": "530.00", "notation": null}
nlprog_det-setting-0060185
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Convert 35 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` # output: 95 It equals 95 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "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# output: 95\n\nIt e...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0060186
At $23.72 an hour, what does 40 hours of work pay? The computation: ```python rate = 23.72 hours = 40 earnings = rate * hours # 948.8 print(f"{earnings:.2f}") ``` (Result: 948.80) That earns $948.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "948.80", "printed": "948.80", "notation": null}
nlprog_det-setting-0060187
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A $800 security deposit has deductions of $85 and $150. How much is refunded?<|eot|> <|assistant|> deposit = 800 deductions = [85, 150] refund = deposit - sum(deductions) # 565 print(refund) (Output: 565) The refund is $565.<|e...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A $800 security deposit has deductions of $85 and $150. How much is refunded?" }, { "role": "assistant", "content": " deposit = 800\n deductions = [85, 150]\n refund = de...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "565", "printed": "565", "notation": null}
nlprog_det-setting-0060188
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 55 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 450.0 pay = regular + overtime # 1250.0 print(f"{pay:.2f}") ``` Output — 1250.00 ...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 55\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 450.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0060189
Printing costs 10 cents a page. What does it cost to print 11 copies of a 35-page handout? Python, step by step: ```python pages = 35 copies = 11 cost_per_page = 0.1 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Run result = 38.50 The job costs $38.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "38.50", "printed": "38.50", "notation": null}
nlprog_det-setting-0060190
<|start|><|user|> What does $10,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> It is worth $10,612.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "It is worth $10,612.08." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0060191
A meeting starts at 1:30 PM and lasts 40 minutes. When does it end? Code: ```python start = 13 * 60 + 30 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executed, it shows: 2:10 PM The meeting finishes at 2:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2:10 PM", "printed": "2:10 PM", "notation": null}
nlprog_det-setting-0060192
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months? Python, step by step: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` Output of the run: 225.00 The interest is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0060193
Meals are $69 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights? The Python version: ```python days = 7 meal_rate = 69 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1533 print(total) ``` # printed: 1533 That comes to $1,533.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1533", "printed": "1533", "notation": null}
nlprog_det-setting-0060194
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 41 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 24.0 pay = regular + overtime # 664.0 print(f"{pay:.2f}") ``` Result = 664.00 Ve...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 41\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 24.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "664.00", "printed": "664.00", "notation": null}
nlprog_det-setting-0060195
<|start|><|user|> A class starts at 1:45 PM and lasts 75 minutes. When does it end?<|eot|> <|assistant|> ```python start = 13 * 60 + 45 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 3:00 PM. It ends at 3:00 PM.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A class starts at 1:45 PM and lasts 75 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 45\nend = start + 75\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
[]
[]
127
{"gold": "3:00 PM", "printed": "3:00 PM", "notation": null}
nlprog_det-setting-0060196
Meals are $74 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights? The allowance is $1,358.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1358", "printed": "1358", "notation": null}
nlprog_det-setting-0060197
The landlord deducts $45 from a $2,500 deposit. What is returned to the tenant? deposit = 2500 deductions = [45] refund = deposit - sum(deductions) # 2455 print(refund) stdout: 2455 $2,455 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "2455", "printed": "2455", "notation": null}
nlprog_det-setting-0060199
A board has 41 members. A majority is more than half. How many votes make a majority? The program: ```python members = 41 majority = members // 2 + 1 # 21 print(majority) ``` On running, it outputs 21. 21 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0060200
The landlord deducts $85 and $85 from a $2,500 deposit. What is returned to the tenant? We can compute it in Python. ```python deposit = 2500 deductions = [85, 85] refund = deposit - sum(deductions) # 2330 print(refund) ``` (stdout: 2330) $2,330 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2330", "printed": "2330", "notation": null}
nlprog_det-setting-0060201
Jamal's scores were 76, 100, 78, 76, 67 and 71. What is the average score? A few lines of Python do it: scores = [76, 100, 78, 76, 67, 71] average = sum(scores) // len(scores) # 78 print(average) Run result: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0060202
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> 4 walks at 25...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0060204
<|start|><|user|> An office budget of $12,000 has expenses of $2,820, $1,628. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [2820, 1628] left = budget - sum(expenses) # 7552 print(left) ``` Out: 7552 The remaining budget is $7,552.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $2,820, $1,628. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [2820, 1628]\nleft = budget - sum(expenses) # 7552\nprint(left)\n```\nOut: 7552\n\nThe remaining...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7552", "printed": "7552", "notation": null}
nlprog_det-setting-0060205
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
288
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0060206
Counting the first and last day, how many days are there from April 16, 2020 through May 11, 2020? Python: ```python from datetime import date first = date(2020, 4, 16) # datetime.date(2020, 4, 16) last = date(2020, 5, 11) # datetime.date(2020, 5, 11) days = (last - first).days + 1 # 26 print(days) ``` It prints 26...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0060208
33 flash drives cost $15 apiece. With 7% tax added, what is the total? The program: ```python quantity = 33 unit_price = 15 subtotal = quantity * unit_price # 495 total = subtotal * (1 + 7 / 100) # 529.65 print(f"{total:.2f}") ``` It prints 529.65. The total with tax is $529.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "529.65", "printed": "529.65", "notation": null}
nlprog_det-setting-0060209
<|start|><|user|> 4 calendars cost $9 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 4 unit_price = 9 subtotal = quantity * unit_price # 36 total = subtotal * (1 + 6 / 100) # 38.160000000000004 print(f"{total:.2f}") ``` (Run result: 38.16) The invoice total is $38.16.<|eot|> ...
chat
[ { "role": "user", "content": "4 calendars cost $9 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 4\nunit_price = 9\nsubtotal = quantity * unit_price # 36\ntotal = subtotal * (1 + 6 / 100) # 38.160000000000004\nprint(f\"{total:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "38.16", "printed": "38.16", "notation": null}
nlprog_det-setting-0060210
Uma buys 11 boxes of 12 notebooks each and gives away 14 notebooks. How many notebooks are left? ```python boxes = 11 per_box = 12 given_away = 14 left = boxes * per_box - given_away # 118 print(left) ``` The run gives: 118 That leaves 118 notebooks.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0060212
7 boxes hold 10 sticky pads each. After 12 are handed out, how many are left? Script: ```python boxes = 7 per_box = 10 given_away = 12 left = boxes * per_box - given_away # 58 print(left) ``` Executing it gives 58. 58 sticky pads are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0060213
Tobias was born on November 15, 1978. How old is Tobias on January 23, 2022? The age is 43 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0060214
<|start|><|system|> You are a math tutor.<|eot|> <|user|> The landlord deducts $45, $120 and $150 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> $685 is returned.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "The landlord deducts $45, $120 and $150 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "$685 is returned." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "685", "printed": "685", "notation": null}
nlprog_det-setting-0060215
<|start|><|user|> Prorate $1,200 of monthly rent for 20 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 800.0 print(f"{prorated:.2f}") ``` The run gives: 800.00 The prorated rent is $800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 20 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 800.0\nprint(f\"{prorated:.2f}\")\n```\nThe run gi...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0060216
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 625 print(units) ``` Console output: 625 Break-even is 62...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 40\nvariable = 36\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0060217
A 2% increase is applied to $2,200 monthly rent. What is the new amount? One way, in code: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` What it prints — 2244.00 It rises to $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0060218
A 7 lb package ships at $5 base plus $2.00/lb. What is the charge? Set it up in Python: base = 5 per_pound = 2.0 weight = 7 cost = base + per_pound * weight # 19.0 print(f"{cost:.2f}") Printed = 19.00 Shipping costs $19.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "19.00", "printed": "19.00", "notation": null}
nlprog_det-setting-0060219
174 copies of a 20-page packet are printed at $0.08 per page. What is the cost? Computation in Python: ```python pages = 20 copies = 174 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 278.40000000000003 print(f"{cost:.2f}") ``` stdout: 278.40 Printing costs $278.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "278.40", "printed": "278.40", "notation": null}
nlprog_det-setting-0060220
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Each storage box holds 20 files. How many boxes are needed for 727 files?<|eot|> <|assistant|> import math files = 727 per_box = 20 boxes = math.ceil(files / per_box) # 37 print(boxes) # printed: 37 It takes 37 boxes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Each storage box holds 20 files. How many boxes are needed for 727 files?" }, { "role": "assistant", "content": " import math\n files = 727\n per_box = 20\n boxes = math.ceil(files / p...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0060221
<|start|><|user|> Of a $8,000 budget, $7,400 has been spent. What percent is that?<|eot|> <|assistant|> budget = 8000 spent = 7400 percent = spent / budget * 100 # 92.5 print(round(percent, 1)) Program output: 92.5 92.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $8,000 budget, $7,400 has been spent. What percent is that?" }, { "role": "assistant", "content": " budget = 8000\n spent = 7400\n percent = spent / budget * 100 # 92.5\n print(round(percent, 1))\nProgram output: 92.5\n\n92.5% has been spent." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0060222
<|start|><|user|> What is a 15% tip on a $73.31 bill?<|eot|> <|assistant|> ```python bill = 73.31 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 10.9965 print(f"{tip:.2f}") ``` # out: 11.00 The tip is $11.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 15% tip on a $73.31 bill?" }, { "role": "assistant", "content": "```python\nbill = 73.31\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 10.9965\nprint(f\"{tip:.2f}\")\n```\n# out: 11.00\n\nThe tip is $11.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0060223
<|start|><|system|> You help with homework problems.<|eot|> <|user|> 4 runs at 150 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 150 sessions = 4 total = per_session * sessions print(total) ``` (Out: 600) That burns 600 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "4 runs at 150 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 4\ntotal = per_session * sessions\nprint(tot...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0060224
<|start|><|user|> A 8-day trip pays $59 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 8 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1697 print(total) ``` # result: 1697 That co...
chat
[ { "role": "user", "content": "A 8-day trip pays $59 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1697", "printed": "1697", "notation": null}
nlprog_det-setting-0060226
A 36-month warranty starts on November 17, 2020. On what date does it end? Here is a short program for it. ```python from datetime import date start = date(2020, 11, 17) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-11-17", "printed": "2023-11-17", "notation": null}
nlprog_det-setting-0060227
A pack of 25 lanyards sells for $925. What does each cost? As a program: ```python total = 925 count = 25 per_item = total // count # 37 print(per_item) ``` Execution prints 37, as expected. The unit price is $37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "37", "printed": "37", "notation": null}