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-0081614
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> 10 cables cost $6 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 10 unit_price = 6 subtotal = quantity * unit_price # 60 total = subtotal * (1 + 8 / 100) # 64.80000000000001 print(f"{total:.2f}") ``` # ...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "10 cables cost $6 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 10\nunit_price = 6\nsubtotal = quantity * unit_price ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "64.80", "printed": "64.80", "notation": null}
nlprog_det-setting-0081615
What is 10 degrees Celsius in Fahrenheit? ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` Run it and it prints: 50 That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081616
Walls total 1345 sq ft and each can covers 350 sq ft. How many cans should be bought? Let's compute it with Python. ```python import math area = 1345 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Printed: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081617
A service costs $12 a month or $96 a year. How much does the yearly plan save over 12 monthly payments? ```python monthly = 12 yearly = 96 savings = monthly * 12 - yearly # 48 print(savings) ``` The program outputs: 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0081618
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
353
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081619
A $1,500 security deposit has deductions of $75. How much is refunded? Let's compute it with Python. ```python deposit = 1500 deductions = [75] refund = deposit - sum(deductions) # 1425 print(refund) ``` Execution prints 1425. The refund is $1,425.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1425", "printed": "1425", "notation": null}
nlprog_det-setting-0081620
<|start|><|user|> What is 10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` (Result: 50) It equals 50 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\n(Result: 50)\n\nIt equals 50 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081621
What commission does Amir make on $96,479 in sales at 6%? We write it as a program: sales = 96479 rate = 6 / 100 # 0.06 commission = sales * rate # 5788.74 print(f"{commission:.2f}") Execution prints 5788.74, as expected. The commission is $5,788.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5788.74", "printed": "5788.74", "notation": null}
nlprog_det-setting-0081622
Wen drove 504 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? ```python miles = 504 rate = 0.58 reimbursement = miles * rate # 292.32 print(f"{reimbursement:.2f}") ``` Run result: 292.32 The reimbursement is $292.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "292.32", "printed": "292.32", "notation": null}
nlprog_det-setting-0081623
Prorate $1,500 of monthly rent for 7 days of a 30-day month. Set it up in Python: ```python rent = 1500 days_in_month = 30 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 350.0 print(f"{prorated:.2f}") ``` Executed, it shows 350.00. The prorated rent is $350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "350.00", "printed": "350.00", "notation": null}
nlprog_det-setting-0081624
<|start|><|user|> 39 batteries cost $6 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 39 unit_price = 6 subtotal = quantity * unit_price # 234 total = subtotal * (1 + 10 / 100) # 257.40000000000003 print(f"{total:.2f}") ``` Console output: 257.40 The total with tax is $257.4...
chat
[ { "role": "user", "content": "39 batteries cost $6 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 39\nunit_price = 6\nsubtotal = quantity * unit_price # 234\ntotal = subtotal * (1 + 10 / 100) # 257.40000000000003\nprint(f\"{total:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "257.40", "printed": "257.40", "notation": null}
nlprog_det-setting-0081625
Tariq was born on June 21, 1994. How old is Tariq on June 13, 2022? Python version: ```python from datetime import date born = date(1994, 6, 21) # datetime.date(1994, 6, 21) on = date(2022, 6, 13) # datetime.date(2022, 6, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 27 print(age) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0081626
<|start|><|user|> A car travels 464 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 464 hours = 0.5 speed = distance / hours # 928.0 print(round(speed)) ``` stdout: 928 It averages 928 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 464 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 464\nhours = 0.5\nspeed = distance / hours # 928.0\nprint(round(speed))\n```\nstdout:\n928\n\nIt averages 928 miles per h...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "928", "printed": "928", "notation": null}
nlprog_det-setting-0081627
Pack A has 10 items for $5.82. Pack B has 24 items for $21.26. Which has the lower price per item? Code: ```python pack_a = 5.82 / 10 # 0.5820000000000001 pack_b = 21.26 / 24 # 0.8858333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Execution prints A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0081628
Cyrus lends $5,000 at 5% simple interest per year for 2 years. How much interest is earned? Python: principal = 5000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") The code prints: 500.00 It earns $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0081629
<|start|><|user|> Farah lends $5,000 at 8% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 5000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 1600.0 print(f"{interest:.2f}") ``` Running this gives: 1600.00 It earns $1,600.00.<|eot|...
chat
[ { "role": "user", "content": "Farah lends $5,000 at 8% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 8 / 100 # 0.08\nyears = 4\ninterest = principal * rate * years # 1600.0\nprint(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0081630
Fines run at $25 per day up to a maximum of $1,000. How much after 47 days? Here is the program. ```python per_day = 25 days = 47 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` stdout — 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081631
<|start|><|user|> Someone works 12 hours at $31.80 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 31.8 hours = 12 earnings = rate * hours # 381.6 print(f"{earnings:.2f}") ``` # console output: 381.60 That earns $381.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $31.80 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 31.8\nhours = 12\nearnings = rate * hours # 381.6\nprint(f\"{earnings:.2f}\")\n```\n# console output: 381.60\n\nThat earns $381.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "381.60", "printed": "381.60", "notation": null}
nlprog_det-setting-0081632
How many meters are in 67.5 kilometers? 67,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "67500", "printed": "67500", "notation": null}
nlprog_det-setting-0081633
A water bill is $18 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons? $49.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "49.50", "printed": "49.50", "notation": null}
nlprog_det-setting-0081634
<|start|><|user|> A pack of 5 lanyards sells for $150. What does each cost?<|eot|> <|assistant|> ```python total = 150 count = 5 per_item = total // count # 30 print(per_item) ``` That prints 30. The unit price is $30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 lanyards sells for $150. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 150\ncount = 5\nper_item = total // count # 30\nprint(per_item)\n```\nThat prints 30.\n\nThe unit price is $30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0081635
A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 49-page copy cost? Translated to Python: pages = 49 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") (Run result: 19.50) The total is $19.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0081636
<|start|><|system|> Be brief and correct.<|eot|> <|user|> After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 19333.333333333332 print(f"{each:.2f}...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 2000\ninstallment...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "19333.33", "printed": "19333.33", "notation": null}
nlprog_det-setting-0081637
The landlord deducts $45, $120 and $75 from a $1,500 deposit. What is returned to the tenant? ```python deposit = 1500 deductions = [45, 120, 75] refund = deposit - sum(deductions) # 1260 print(refund) ``` Python prints 1260, as expected. The refund is $1,260.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1260", "printed": "1260", "notation": null}
nlprog_det-setting-0081638
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> At an exchange rate of 1.35 EUR per USD, how many EUR is 8,371 USD?<|eot|> <|assistant|> ```python amount = 8371 rate = 1.35 converted = amount * rate # 11300.85 print(f"{converted:.2f}") ``` Interpreter output — 11300.85 It converts to 11,300.85 EUR.<|...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "At an exchange rate of 1.35 EUR per USD, how many EUR is 8,371 USD?" }, { "role": "assistant", "content": "```python\namount = 8371\nrate = 1.35\nconverted = amount * rate # 11300.85\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "11300.85", "printed": "11300.85", "notation": null}
nlprog_det-setting-0081639
<|start|><|system|> Be concise.<|eot|> <|user|> A shift runs from 8:11 AM to 10:34 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 11 # 491 end = 10 * 60 + 34 # 634 print(end - start) ``` Console output — 143 143 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A shift runs from 8:11 AM to 10:34 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 11 # 491\nend = 10 * 60 + 34 # 634\nprint(end - start)\n```\nConsole ou...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0081640
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> 5 boxes hold 10 sticky pads each. After 11 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 10 given_away = 11 left = boxes * per_box - given_away # 39 print(left) ``` Execution result — 39 That leaves 39 sticky pads...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "5 boxes hold 10 sticky pads each. After 11 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 10\ngiven_away = 11\nleft = boxes * per_...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0081641
39 copies of a 4-page packet are printed at $0.08 per page. What is the cost? The job costs $12.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "12.48", "printed": "12.48", "notation": null}
nlprog_det-setting-0081642
Of a $8,000 budget, $2,800 has been spent. What percent is that? Script: ```python budget = 8000 spent = 2800 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) ``` On running, it outputs: 35.0 That is 35.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0081643
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment? Translated to Python: ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 435.0 print(f"{pa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "435.00", "printed": "435.00", "notation": null}
nlprog_det-setting-0081644
An invoice lists 5 file boxes at $4 each, plus 7% sales tax. What is the invoice total? ```python quantity = 5 unit_price = 4 subtotal = quantity * unit_price # 20 total = subtotal * (1 + 7 / 100) # 21.400000000000002 print(f"{total:.2f}") ``` Shell output — 21.40 The total with tax is $21.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "21.40", "printed": "21.40", "notation": null}
nlprog_det-setting-0081645
A lawyer's fee is 40% of a $90,000 recovery. How large is the fee? Program: ```python recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") ``` Out: 36000.00 The lawyer's fee comes to $36,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0081646
After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? A Python solution: award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 3 # 22400.0 print(f"{per_client:.2f}") Executio...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "22400.00", "printed": "22400.00", "notation": null}
nlprog_det-setting-0081647
A 5% increase is applied to $1,500 monthly rent. What is the new amount? Here's the code. rent = 1500 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1575.0 print(f"{new_rent:.2f}") Executing it gives 1575.00. It rises to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0081648
How many of 219 votes make 67% (round up)? Computing it: ```python import math voters = 219 needed = math.ceil(voters * 67 / 100) # 147 print(needed) ``` Output: 147 At least 147 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0081649
<|start|><|user|> After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 3 # 12000.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 40 / 100 # 24000.0\nremaining = award - fee # 36000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0081650
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> 6 runs at 250 calories each burn how many calories in total?<|eot|> <|assistant|> That burns 1500 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "6 runs at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "That burns 1500 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0081651
Meals are $64 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights? In code: ```python days = 9 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1976 print(total) ``` # stdout: 1976 The allowance is $1,976.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0081652
<|start|><|user|> Pilar earns a 6% commission on $74,687 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 74687 rate = 6 / 100 # 0.06 commission = sales * rate # 4481.22 print(f"{commission:.2f}") ``` Executed, it shows: 4481.22 The commission is $4,481.22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pilar earns a 6% commission on $74,687 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 74687\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 4481.22\nprint(f\"{commission:.2f}\")\n```\nExecuted, it shows: 4481.22\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4481.22", "printed": "4481.22", "notation": null}
nlprog_det-setting-0081653
How many days are there from January 20, 2021 to December 5, 2021? Computing it: ```python from datetime import date first = date(2021, 1, 20) # datetime.date(2021, 1, 20) second = date(2021, 12, 5) # datetime.date(2021, 12, 5) print((second - first).days) ``` Execution result — 319 It is 319 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "319", "printed": "319", "notation": null}
nlprog_det-setting-0081654
With 22 rows of 10 chairs and 13 empty chairs, how many chairs are taken? In Python: ```python rows = 22 per_row = 10 empty = 13 seated = rows * per_row - empty # 207 print(seated) ``` The program outputs 207. 207 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0081655
<|start|><|user|> A $24,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 5500.0 print(f"{each:.2f}") ``` # printed result: 5500.00 $5,500.00 per i...
chat
[ { "role": "user", "content": "A $24,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 2000\ninstallments = 4\neach = (grant - up_front) / installments # 5500.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5500.00", "printed": "5500.00", "notation": null}
nlprog_det-setting-0081656
<|start|><|user|> Equipment costs $18,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 0 years = 10 per_year = (cost - salvage) / years # 1800.0 print(f"{per_year:.2f}") ``` Out = 1800.00 Depreciation ...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 0\nyears = 10\nper_year = (cost - salvage) / years # 1800.0...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0081657
An office budget of $5,000 has expenses of $1,616, $1,540, $396, $2,663. How much of the budget is left? Code: ```python budget = 5000 expenses = [1616, 1540, 396, 2663] left = budget - sum(expenses) # -1215 print(left) ``` Console output — -1215 The remaining budget is -$1,215.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "-1215", "printed": "-1215", "notation": null}
nlprog_det-setting-0081658
Counting the first and last day, how many days are there from October 17, 2028 through October 27, 2028? As Python: from datetime import date first = date(2028, 10, 17) last = date(2028, 10, 27) days = (last - first).days + 1 print(days) Running it prints 11, as expected. That is 11 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0081659
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year? Python, step by step: ```python cost = 12000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 1000.0 print(f"{per_year:.2f}") ``` (Out: 1000.00) Depreciation is $1,000....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0081660
<|start|><|user|> Divide 246 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 246 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints 35 each, 1 left over, a...
chat
[ { "role": "user", "content": "Divide 246 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 246\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "35 each, 1 left over", "printed": "35 each, 1 left over", "notation": null}
nlprog_det-setting-0081661
After an initial $0, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part? ```python grant = 24000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") ``` Executing it gives: 6000.00 Each installment is $6,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0081663
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Parking is $5 per hour with a daily maximum of $24. What do 11 hours cost?<|eot|> <|assistant|> The charge is $24.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $24. What do 11 hours cost?" }, { "role": "assistant", "content": "The charge is $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0081664
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A recipe for 4 people uses 100 grams of sugar. How many grams are needed for 12 people?<|eot|> <|assistant|> ```python grams = 100 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 300 print(scaled) ``` On running, it outpu...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A recipe for 4 people uses 100 grams of sugar. How many grams are needed for 12 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 4\nneeded_for =...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0081665
A 4 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Code: import math length = 4 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 14 print(tiles) Console output — 14 14 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0081666
<|start|><|system|> Functions: {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Walls total 239 sq ft and each can covers...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0081667
<|start|><|user|> After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` # printed: 18000.00 Each sh...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 40 / 100\nremaining = award - fee\nper_client = remaining / 2\n...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0081668
A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment? The Python version: ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` Run result = 2000.00 Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0081669
<|start|><|system|> Functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "1880", "printed": "1880", "notation": null}
nlprog_det-setting-0081670
14 copies of a 31-page packet are printed at $0.15 per page. What is the cost? Let the code do the arithmetic: ```python pages = 31 copies = 14 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 65.1 print(f"{cost:.2f}") ``` Printed: 65.10 Printing costs $65.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "65.10", "printed": "65.10", "notation": null}
nlprog_det-setting-0081671
<|start|><|user|> Wen earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?<|eot|> <|assistant|> The weekly pay is $976.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Wen earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?" }, { "role": "assistant", "content": "The weekly pay is $976.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0081672
After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? We write it as a program: award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 3 # 15000.0 print(f"{per_client:.2f}") O...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0081673
At $0.70 per mile, what is the reimbursement for 539 miles? Translated to Python: miles = 539 rate = 0.7 reimbursement = miles * rate # 377.29999999999995 print(f"{reimbursement:.2f}") Printed: 377.30 The reimbursement is $377.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "377.30", "printed": "377.30", "notation": null}
nlprog_det-setting-0081674
A 287-page report must be reviewed in 7 days. How many pages a day is that, evenly? That is 41 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0081675
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
402
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0081676
Joelle was born on September 9, 2005. How old is Joelle on August 2, 2023? The age is 17 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0081677
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months? Here is a short program for it. ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Execution prints 450.00, as expect...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0081678
<|start|><|user|> 3 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> Each party receives $2,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each party receives $2,450." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0081679
Parking is $5 per hour with a daily maximum of $24. What do 2 hours cost? Parking costs $10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0081680
A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? Python version: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 41.3 print(f"{each:.2f}") ``` Console: 41.30 The share is $41.30 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "41.30", "printed": "41.30", "notation": null}
nlprog_det-setting-0081681
<|start|><|user|> A penalty of $50 a day accrues, capped at $1,000. What is owed after 48 days?<|eot|> <|assistant|> ```python per_day = 50 days = 48 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Program output: 1000) $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 48 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 48\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Program output: 1000)\n\n$1,000 is owed."...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081683
A penalty of $50 a day accrues, capped at $1,000. What is owed after 23 days? ```python per_day = 50 days = 23 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` stdout: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081684
A trial runs from May 24, 2021 to June 14, 2021, counting both days. How many calendar days is that? Let the code do the arithmetic: ```python from datetime import date first = date(2021, 5, 24) # datetime.date(2021, 5, 24) last = date(2021, 6, 14) # datetime.date(2021, 6, 14) days = (last - first).days + 1 # 22 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0081686
Walls total 1046 sq ft and each can covers 300 sq ft. How many cans should be bought? ```python import math area = 1046 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` Output of the run — 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081687
<|start|><|user|> A car travels 330 miles in 5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 330 hours = 5 speed = distance / hours # 66.0 print(round(speed)) ``` Output of the run: 66 It averages 66 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 330 miles in 5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 330\nhours = 5\nspeed = distance / hours # 66.0\nprint(round(speed))\n```\nOutput of the run: 66\n\nIt averages 66 miles pe...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0081688
4 books come back 30 days late, at $0.15 a day each. What is the fine? In Python: ```python per_day = 0.15 days_late = 30 books = 4 fine = per_day * days_late * books # 18.0 print(f"{fine:.2f}") ``` What it prints: 18.00 $18.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0081689
Uma earns a 2% commission on $103,991 of sales. What is the commission? Here is a short program for it. ```python sales = 103991 rate = 2 / 100 # 0.02 commission = sales * rate # 2079.82 print(f"{commission:.2f}") ``` Printed result — 2079.82 Uma earns $2,079.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2079.82", "printed": "2079.82", "notation": null}
nlprog_det-setting-0081690
The landlord deducts $85 and $45 from a $800 deposit. What is returned to the tenant? Written as code: ```python deposit = 800 deductions = [85, 45] refund = deposit - sum(deductions) # 670 print(refund) ``` The run gives 670, as expected. The refund is $670.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "670", "printed": "670", "notation": null}
nlprog_det-setting-0081691
<|start|><|user|> A hall has 5 rows of 24 seats, and 6 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 5 per_row = 24 empty = 6 seated = rows * per_row - empty # 114 print(seated) ``` What it prints — 114 114 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 5 rows of 24 seats, and 6 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 5\nper_row = 24\nempty = 6\nseated = rows * per_row - empty # 114\nprint(seated)\n```\nWhat it prints — 114\n\n114 seats are t...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0081692
What is a 10% tip on a $28.12 bill? A Python solution: ```python bill = 28.12 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 2.8120000000000003 print(f"{tip:.2f}") ``` Output of the run — 2.81 The tip is $2.81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2.81", "printed": "2.81", "notation": null}
nlprog_det-setting-0081693
<|start|><|user|> A 192-page report must be reviewed in 4 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 192 days = 4 per_day = pages // days # 48 print(per_day) ``` The program prints: 48 That is 48 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 192-page report must be reviewed in 4 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 192\ndays = 4\nper_day = pages // days # 48\nprint(per_day)\n```\nThe program prints: 48\n\nThat is 48 pages per day." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0081694
<|start|><|user|> 93 copies of a 50-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 50 copies = 93 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 372.0 print(f"{cost:.2f}") ``` The code prints 372.00. Printing costs $372.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "93 copies of a 50-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 50\ncopies = 93\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 372.0\nprint(f\"{cost:.2f}\")\n```\nThe code prin...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "372.00", "printed": "372.00", "notation": null}
nlprog_det-setting-0081695
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> An invoice lists 36 chairs at $12 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 12 subtotal = quantity * unit_price # 432 total = subtotal * (1 + 10 / 100) # 475.20000000000005 pri...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "An invoice lists 36 chairs at $12 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 12\nsubtotal = q...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "475.20", "printed": "475.20", "notation": null}
nlprog_det-setting-0081696
What is 0 degrees Celsius in Fahrenheit? Programmatically: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` What it prints: 32 That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0081697
A deposition lasted 2 hours and 5 minutes. How many minutes is that? The computation: ```python hours = 2 minutes = 5 total_minutes = hours * 60 + minutes # 125 print(total_minutes) ``` That prints 125. The deposition lasted 125 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0081698
Straight-line depreciation: cost $12,000, salvage $0, 8 years. How much per year? Translated to Python: ```python cost = 12000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 1500.0 print(f"{per_year:.2f}") ``` Execution prints 1500.00, as expected. Depreciation is $1,500.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0081700
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 6 rate = 200 left = retainer - hours * rate # 3800 print(left) ``` That prints: 3800 The remaining balance is $3,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 6\nrate = 200\nleft = retainer - hours * rate # 3800\nprint(left)\n```\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3800", "printed": "3800", "notation": null}
nlprog_det-setting-0081701
A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term? Python: ```python monthly_rent = 3250 months = 18 total = monthly_rent * months # 58500 print(total) ``` Console: 58500 The rent over the term is $58,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "58500", "printed": "58500", "notation": null}
nlprog_det-setting-0081703
<|start|><|system|> Available functions (JSON Schema): [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "description...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
280
{"gold": "336", "printed": "336", "notation": null}
nlprog_det-setting-0081704
12 boxes hold 8 paper reams each. After 15 are handed out, how many are left? Here is the program. ```python boxes = 12 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 81 print(left) ``` The code prints: 81 That leaves 81 paper reams.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0081706
Monthly: $19. Annual: $192. What is saved per year by paying annually? Computing it: ```python monthly = 19 yearly = 192 savings = monthly * 12 - yearly # 36 print(savings) ``` Interpreter output — 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0081707
One can of paint covers 250 square feet. How many cans are needed for 929 square feet of wall? A few lines of Python do it: ```python import math area = 929 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Running it prints: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081708
<|start|><|user|> A 34 lb package ships at $8 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 1.2 weight = 34 cost = base + per_pound * weight # 48.8 print(f"{cost:.2f}") ``` What it prints — 48.80 The charge is $48.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 34 lb package ships at $8 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 1.2\nweight = 34\ncost = base + per_pound * weight # 48.8\nprint(f\"{cost:.2f}\")\n```\nWhat it prints — 48.80\n\nThe charge ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "48.80", "printed": "48.80", "notation": null}
nlprog_det-setting-0081709
<|start|><|user|> Kaito was born on November 26, 1977. How old is Kaito on November 8, 2022?<|eot|> <|assistant|> ```python from datetime import date born = date(1977, 11, 26) # datetime.date(1977, 11, 26) on = date(2022, 11, 8) # datetime.date(2022, 11, 8) age = on.year - born.year - ((on.month, on.day) < (born.mont...
chat
[ { "role": "user", "content": "Kaito was born on November 26, 1977. How old is Kaito on November 8, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1977, 11, 26) # datetime.date(1977, 11, 26)\non = date(2022, 11, 8) # datetime.date(2022, 11, 8)\nag...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0081710
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"py_exec\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
273
{"gold": "449", "printed": "449", "notation": null}
nlprog_det-setting-0081711
<|start|><|user|> 36 copies of a 30-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> pages = 30 copies = 36 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 108.0 print(f"{cost:.2f}") Execution prints 108.00. Printing costs $108.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "36 copies of a 30-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": " pages = 30\n copies = 36\n cost_per_page = 0.1\n cost = pages * copies * cost_per_page # 108.0\n print(f\"{cost:.2f}\")\nExecution ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0081712
<|start|><|user|> 25 envelopes cost $4 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 25 unit_price = 4 subtotal = quantity * unit_price # 100 total = subtotal * (1 + 10 / 100) # 110.00000000000001 print(f"{total:.2f}") ``` # printed result: 110.00 The total with tax is $110...
chat
[ { "role": "user", "content": "25 envelopes cost $4 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 25\nunit_price = 4\nsubtotal = quantity * unit_price # 100\ntotal = subtotal * (1 + 10 / 100) # 110.00000000000001\nprint(f\"{total:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0081713
2 hours of work at $250 an hour: what is the total charge? In code: ```python hours = 2 rate = 250 bill = hours * rate # 500 print(f"{bill:.2f}") ``` Out: 500.00 That comes to $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0081714
A car travels 572 miles in 1 hours. What is its average speed in miles per hour? Here's the code. distance = 572 hours = 1 speed = distance / hours # 572.0 print(round(speed)) Out: 572 It averages 572 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "572", "printed": "572", "notation": null}
nlprog_det-setting-0081715
On which weekday does November 4, 2002 fall? The computation: ```python from datetime import date hearing = date(2002, 11, 4) # datetime.date(2002, 11, 4) print(hearing.strftime("%A")) ``` It prints Monday. It is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0081716
What is a 18% tip on a $93.43 bill? A Python solution: ```python bill = 93.43 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 16.8174 print(f"{tip:.2f}") ``` This prints: 16.82 The tip is $16.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "16.82", "printed": "16.82", "notation": null}
nlprog_det-setting-0081717
Flooring at $5/sq ft for a 19 ft × 18 ft room costs how much? It costs $1,710.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "1710", "printed": "1710", "notation": null}
nlprog_det-setting-0081718
<|start|><|user|> How many of 131 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 131 needed = math.ceil(voters * 60 / 100) # 79 print(needed) ``` Output: 79 At least 79 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 131 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 131\nneeded = math.ceil(voters * 60 / 100) # 79\nprint(needed)\n```\nOutput:\n79\n\nAt least 79 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0081719
A hearing is set for August 9, 1997. What day of the week is that? Computing it: ```python from datetime import date hearing = date(1997, 8, 9) # datetime.date(1997, 8, 9) print(hearing.strftime("%A")) ``` Interpreter output: Saturday August 9, 1997 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Saturday", "printed": "Saturday", "notation": null}