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-0071106
<|start|><|user|> Bilal earns a 2% commission on $65,924 of sales. What is the commission?<|eot|> <|assistant|> sales = 65924 rate = 2 / 100 # 0.02 commission = sales * rate # 1318.48 print(f"{commission:.2f}") On running, it outputs 1318.48. Bilal earns $1,318.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bilal earns a 2% commission on $65,924 of sales. What is the commission?" }, { "role": "assistant", "content": " sales = 65924\n rate = 2 / 100 # 0.02\n commission = sales * rate # 1318.48\n print(f\"{commission:.2f}\")\nOn running, it outputs 1318.48....
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1318.48", "printed": "1318.48", "notation": null}
nlprog_det-setting-0071107
<|start|><|system|> You have access to these functions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "translate", "description": "Translate text into another lang...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"trans...
nlprog_det
setting
original
null
deterministic
[]
[]
395
{"gold": "4750", "printed": "4750", "notation": null}
nlprog_det-setting-0071108
Straight-line depreciation: cost $30,000, salvage $6,000, 4 years. How much per year? Coded up: ```python cost = 30000 salvage = 6000 years = 4 per_year = (cost - salvage) / years # 6000.0 print(f"{per_year:.2f}") ``` (Printed: 6000.00) $6,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0071109
What is a 15% tip on a $235.75 bill? ```python bill = 235.75 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 35.3625 print(f"{tip:.2f}") ``` The run gives 35.36, as expected. Leave $35.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "35.36", "printed": "35.36", "notation": null}
nlprog_det-setting-0071110
<|start|><|user|> Each of Vera's bike rides burns 400 calories. How many calories over 5 bike rides?<|eot|> <|assistant|> per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) Result: 2000 That burns 2000 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Vera's bike rides burns 400 calories. How many calories over 5 bike rides?" }, { "role": "assistant", "content": " per_session = 400\n sessions = 5\n total = per_session * sessions # 2000\n print(total)\nResult:\n2000\n\nThat burns 2000 calories...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0071111
What commission does Carmen make on $53,088 in sales at 2%? We write it as a program: ```python sales = 53088 rate = 2 / 100 commission = sales * rate print(f"{commission:.2f}") ``` The script prints 1061.76, as expected. The commission is $1,061.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1061.76", "printed": "1061.76", "notation": null}
nlprog_det-setting-0071112
A workshop lasted 2 hours and 18 minutes. How many minutes is that? Coded up: ```python hours = 2 minutes = 18 total_minutes = hours * 60 + minutes # 138 print(total_minutes) ``` (Execution result: 138) That is 138 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0071113
<|start|><|user|> A count moves from 2,000 to 1,500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 1500 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` stdout = -25 The change is -25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 1,500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1500\nchange = (new - old) / old * 100 # -25.0\nprint(round(change))\n```\nstdout = -25\n\nThe change...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0071114
<|start|><|user|> Parking is $5 per hour with a daily maximum of $18. What do 7 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` (Execution result: 18) The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $18. What do 7 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\n(Execution result: 18)\n\nThe charge is $18....
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0071115
A garage charges $4 an hour, never more than $15 a day. How much for 7 hours? Python does the arithmetic: rate = 4 hours = 7 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) This prints 15, as expected. Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0071116
Cyrus and Reza share $4,000 in the ratio 2:3. How much does Cyrus get? We can compute it in Python. ```python total = 4000 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` Execution result: 1600 Cyrus gets $1,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0071117
<|start|><|user|> What is the total rent on a 6-month lease at $1,200 a month?<|eot|> <|assistant|> In total, $7,200 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $1,200 a month?" }, { "role": "assistant", "content": "In total, $7,200 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0071118
<|start|><|user|> Of a $8,000 budget, $6,200 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 8000 spent = 6200 percent = spent / budget * 100 # 77.5 print(round(percent, 1)) ``` Out — 77.5 77.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $8,000 budget, $6,200 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 6200\npercent = spent / budget * 100 # 77.5\nprint(round(percent, 1))\n```\nOut — 77.5\n\n77.5% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0071119
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months? Code: ```python balance = 2500 monthly_rate = 1.5 / 100 months = 3 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` (Program output: 112.50) The interest is $112.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0071121
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons?<|eot|> <|assistant|> ```python base = 20 rate = 5.1 used = 10 free = 3 bill = base + rate * max(0, used - free) # 55.699999999999996 print(f"{bill:.2f}") ```...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 10,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 20\nrate = 5.1\nused = 10\nfree = 3...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "55.70", "printed": "55.70", "notation": null}
nlprog_det-setting-0071122
<|start|><|user|> Goods bought on December 9, 2028 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 12, 9) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end...
chat
[ { "role": "user", "content": "Goods bought on December 9, 2028 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 12, 9)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2029-12-09", "printed": "2029-12-09", "notation": null}
nlprog_det-setting-0071123
<|start|><|user|> A $1,200 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $43.33.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,200 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $43.33." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "43.33", "printed": "43.33", "notation": null}
nlprog_det-setting-0071124
How many 1-foot square tiles cover a 13 ft by 14 ft floor (round up)? import math length = 13 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 182 print(tiles) # result: 182 182 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0071125
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A library charges $0.50 per book per day late. What is the fine for 1 books that are 6 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 6 books = 1 fine = per_day * days_late * books # 3.0 print(f"{fine:.2f}") ``` (Execut...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 1 books that are 6 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0071126
Of a $10,000 budget, $3,400 has been spent. What percent is that? As Python: ```python budget = 10000 spent = 3400 percent = spent / budget * 100 # 34.0 print(round(percent, 1)) ``` That prints: 34.0 34.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "34.0", "printed": "34.0", "notation": null}
nlprog_det-setting-0071127
<|start|><|user|> Hana lends $2,500 at 3% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 450.0 print(f"{interest:.2f}") ``` The interpreter prints: 450.00 The interest is $450.00....
chat
[ { "role": "user", "content": "Hana lends $2,500 at 3% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 3 / 100 # 0.03\nyears = 6\ninterest = principal * rate * years # 450.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0071128
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 5 months? ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 50.0 print(f"{interest:.2f}") ``` Execution result — 50.00 $50.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0071129
Someone works 30 hours at $25.86 per hour. What are the earnings? A short script: ```python rate = 25.86 hours = 30 earnings = rate * hours # 775.8 print(f"{earnings:.2f}") ``` # out: 775.80 That earns $775.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "775.80", "printed": "775.80", "notation": null}
nlprog_det-setting-0071130
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Of a $2,000 budget, $300 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 2000 spent = 300 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) ``` stdout: 15.0 That is 15.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Of a $2,000 budget, $300 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 300\npercent = spent / budget * 100 # 15.0\nprint(round...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0071131
What commission does Yoko make on $117,650 in sales at 3%? Written as code: ```python sales = 117650 rate = 3 / 100 # 0.03 commission = sales * rate # 3529.5 print(f"{commission:.2f}") ``` (Execution result: 3529.50) The commission is $3,529.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3529.50", "printed": "3529.50", "notation": null}
nlprog_det-setting-0071132
<|start|><|system|> Tool definitions: {"name": "eval_python", "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 457 sq ft and each can...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"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
[]
[]
220
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0071133
A penalty of $50 a day accrues, capped at $5,000. What is owed after 42 days? Programmatically: ```python per_day = 50 days = 42 cap = 5000 fine = min(per_day * days, cap) # 2100 print(fine) ``` Executing it gives 2100, as expected. The fine is $2,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0071134
697 files go into boxes of 15. How many boxes does that take? The program: ```python import math files = 697 per_box = 15 boxes = math.ceil(files / per_box) # 47 print(boxes) ``` The script prints: 47 47 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0071135
Walls total 1160 sq ft and each can covers 300 sq ft. How many cans should be bought? Here's the code. import math area = 1160 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) Output: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0071136
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> What is a 22% tip on a $36.53 bill?<|eot|> <|assistant|> The tip is $8.04.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "What is a 22% tip on a $36.53 bill?" }, { "role": "assistant", "content": "The tip is $8.04." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "8.04", "printed": "8.04", "notation": null}
nlprog_det-setting-0071137
What does $1,000 grow to in 2 years at 4% annual compounding? Let the code do the arithmetic: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 1081.6000000000001 print(f"{value:.2f}") ``` # execution result: 1081.60 The balance is $1,081.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1081.60", "printed": "1081.60", "notation": null}
nlprog_det-setting-0071138
<|start|><|user|> Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Running this gives 2000...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 6000\nyears = 3\nper_year = (cost - salvage) / years # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0071139
Count 21 days forward from May 16, 2021. What date is that? Here is a short program for it. ```python from datetime import date, timedelta start = date(2021, 5, 16) # datetime.date(2021, 5, 16) end = start + timedelta(days=21) # datetime.date(2021, 6, 6) print(end.isoformat()) ``` Run it and it prints: 2021-06-06 I...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2021-06-06", "printed": "2021-06-06", "notation": null}
nlprog_det-setting-0071140
What is 20 degrees Celsius in Fahrenheit? It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0071141
A lease runs for 6 months at $975 per month. How much rent is paid over the whole term? Written as code: ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` Result = 5850 In total, $5,850 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0071142
A 260-page report must be reviewed in 13 days. How many pages a day is that, evenly? Python code: ```python pages = 260 days = 13 per_day = pages // days print(per_day) ``` Running this gives 20. That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0071143
<|start|><|user|> A count moves from 400 to 500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by 25%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0071144
<|start|><|user|> Shipping costs $5 plus $2.50 per pound. What does a 29-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.5 weight = 29 cost = base + per_pound * weight # 77.5 print(f"{cost:.2f}") ``` stdout = 77.50 Shipping costs $77.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.50 per pound. What does a 29-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.5\nweight = 29\ncost = base + per_pound * weight # 77.5\nprint(f\"{cost:.2f}\")\n```\nstdout = 77.50\n\nShipp...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "77.50", "printed": "77.50", "notation": null}
nlprog_det-setting-0071145
<|start|><|user|> A $1,000 security deposit has deductions of $75, $150 and $45. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [75, 150, 45] refund = deposit - sum(deductions) # 730 print(refund) ``` Executing it gives 730. The refund is $730.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $75, $150 and $45. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [75, 150, 45]\nrefund = deposit - sum(deductions) # 730\nprint(refund)\n```\nExecuting it gives 730.\...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "730", "printed": "730", "notation": null}
nlprog_det-setting-0071146
At a 6% tax rate, what is the tax on $240.30? In Python: price = 240.3 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 14.418 print(f"{tax:.2f}") That prints: 14.42 $14.42 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "14.42", "printed": "14.42", "notation": null}
nlprog_det-setting-0071147
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 56-page copy cost?<|eot|> <|assistant|> ```python pages = 56 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 24.0 p...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 56-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 56\nbase = 15\nper_pa...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0071148
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Buying 5 ink cartridges at $27 each, 6 tape rolls at $4 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> items = [(5, 27), (6, 4)] total = sum(q * p for q, p in items) # 159 paid = 200 change = paid - ...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Buying 5 ink cartridges at $27 each, 6 tape rolls at $4 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": " items = [(5, 27), (6, 4)]...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0071149
<|start|><|user|> A recipe for 2 people uses 300 grams of oats. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 300 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 900 print(scaled) ``` This prints 900. Use 900 g of oats.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 300 grams of oats. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 2\nneeded_for = 6\nscaled = grams * needed_for // serves # 900\nprint(scaled)\n```\nThis prints 900.\n\nUse...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0071150
<|start|><|system|> Functions: {"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> What is the total rent on a 12-month lea...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0071151
What day of the week is June 7, 2030? June 7, 2030 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0071152
What does $10,000 grow to in 2 years at 2% annual compounding? Here is a short program for it. ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` Output of the run — 10404.00 The balance is $10,404.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0071153
<|start|><|user|> A storeroom has 1252 labels. The office uses 16 a day. How many are left after 9 days?<|eot|> <|assistant|> 1108 labels are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1252 labels. The office uses 16 a day. How many are left after 9 days?" }, { "role": "assistant", "content": "1108 labels are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1108", "printed": "1108", "notation": null}
nlprog_det-setting-0071154
Noor lends $5,000 at 8% simple interest per year for 3 years. How much interest is earned? ```python principal = 5000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` It prints 1200.00, as expected. The interest is $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0071155
<|start|><|user|> What does $5,000 grow to in 2 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 5304.5 print(f"{value:.2f}") ``` On running, it outputs: 5304.50 It is worth $5,304.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 2\nvalue = principal * (1 + rate) ** years # 5304.5\nprint(f\"{value:.2f}\")\n```\nOn running, it outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0071156
From a $10,000 retainer, 8 hours at $150/hour have been drawn. What remains? Python code: retainer = 10000 hours = 8 rate = 150 left = retainer - hours * rate print(left) # output: 8800 The remaining balance is $8,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "8800", "printed": "8800", "notation": null}
nlprog_det-setting-0071157
What is -20 degrees Celsius in Fahrenheit? It equals -4 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0071160
An attorney bills 2.5 hours at $410 per hour. What is the bill? Written as code: ```python hours = 2.5 rate = 410 bill = hours * rate # 1025.0 print(f"{bill:.2f}") ``` The printout reads: 1025.00 The bill is $1,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1025.00", "printed": "1025.00", "notation": null}
nlprog_det-setting-0071161
<|start|><|user|> A customer buys 3 sticky pads at $22 each, 1 calendars at $23 each, 2 sticky pads at $19 each, 1 labels at $15 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(3, 22), (1, 23), (2, 19), (1, 15)] total = sum(q * p for q, p in items) # 142 paid = 150 change = pa...
chat
[ { "role": "user", "content": "A customer buys 3 sticky pads at $22 each, 1 calendars at $23 each, 2 sticky pads at $19 each, 1 labels at $15 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(3, 22), (1, 23), (2, 19), (1, 15)]\ntotal = su...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0071162
Notice was given on July 25, 2021. The notice period is 14 days. When does it run out? We can compute it in Python. ```python from datetime import date, timedelta start = date(2021, 7, 25) # datetime.date(2021, 7, 25) end = start + timedelta(days=14) # datetime.date(2021, 8, 8) print(end.isoformat()) ``` # result: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2021-08-08", "printed": "2021-08-08", "notation": null}
nlprog_det-setting-0071164
<|start|><|user|> A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) stdout: 39360 In total, $39,360 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 1640\n months = 24\n total = monthly_rent * months # 39360\n print(total)\nstdout:\n39360\n\nIn total, $39,...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0071165
An attorney bills 8 hours at $350 per hour. What is the bill? The bill is $2,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0071166
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0071167
<|start|><|system|> Functions: {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A jacket costs $180. ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "162.00", "printed": "162.00", "notation": null}
nlprog_det-setting-0071168
Convert 2 h 48 min (the length of a deposition) to minutes. A short script: hours = 2 minutes = 48 total_minutes = hours * 60 + minutes # 168 print(total_minutes) What it prints: 168 That is 168 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "168", "printed": "168", "notation": null}
nlprog_det-setting-0071169
<|start|><|user|> Split $511 between Yoko and Noor in the ratio 2 to 5. What is Yoko's share?<|eot|> <|assistant|> ```python total = 511 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 146 print(share_a) ``` Printed: 146 Yoko's share is $146.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $511 between Yoko and Noor in the ratio 2 to 5. What is Yoko's share?" }, { "role": "assistant", "content": "```python\ntotal = 511\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 146\nprint(share_a)\n```\nPrinted:\n146\n\nYoko's...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0071170
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|u...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
288
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0071171
<|start|><|system|> Tools you may use: [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Printing costs...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0071172
Filing fees are $90 per document. What do 18 filings cost? ```python fee = 90 filings = 18 total = fee * filings # 1620 print(total) ``` # printed result: 1620 The filings cost $1,620 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1620", "printed": "1620", "notation": null}
nlprog_det-setting-0071173
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A client paid a $5,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 13 rate = 200 left = retainer - hours * rate # 2400 print(left) ``` (Output: 2400...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhour...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0071174
A car travels 542 miles in 2 hours. What is its average speed in miles per hour? Script: ```python distance = 542 hours = 2 speed = distance / hours # 271.0 print(round(speed)) ``` What it prints — 271 The average speed is 271 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "271", "printed": "271", "notation": null}
nlprog_det-setting-0071175
Convert 60.4 km to meters. One way, in code: ```python km = 60.4 meters = km * 1000 # 60400.0 print(round(meters)) ``` The run gives 60400. 60,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "60400", "printed": "60400", "notation": null}
nlprog_det-setting-0071176
Split $1,608 between Mateo and Bilal in the ratio 1 to 2. What is Mateo's share? Mateo's share is $536.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "536", "printed": "536", "notation": null}
nlprog_det-setting-0071178
4 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 4 # 9000.0 print(f"{per_client:.2f}") ``` The run gives: 9000.00 Each client gets $9,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0071179
<|start|><|user|> If a 3-year limitations period starts on November 21, 2024, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2024, 11, 21) # datetime.date(2024, 11, 21) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 11, 21) print(expires...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on November 21, 2024, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2024, 11, 21) # datetime.date(2024, 11, 21)\nyears = 3\nexpires = accrued.replace(year=accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2027-11-21", "printed": "2027-11-21", "notation": null}
nlprog_det-setting-0071180
Printing costs 8 cents a page. What does it cost to print 123 copies of a 5-page handout? We write it as a program: ```python pages = 5 copies = 123 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 49.2 print(f"{cost:.2f}") ``` Shell output: 49.20 The job costs $49.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "49.20", "printed": "49.20", "notation": null}
nlprog_det-setting-0071181
Which is cheaper per unit: 10 for $3.71 (A) or 15 for $18.34 (B)? One way, in code: ```python pack_a = 3.71 / 10 # 0.371 pack_b = 18.34 / 15 # 1.2226666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Python prints: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0071182
A 36 lb package ships at $5 base plus $2.00/lb. What is the charge? A Python solution: ```python base = 5 per_pound = 2.0 weight = 36 cost = base + per_pound * weight # 77.0 print(f"{cost:.2f}") ``` Output of the run: 77.00 The charge is $77.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "77.00", "printed": "77.00", "notation": null}
nlprog_det-setting-0071183
If a 4-year limitations period starts on November 17, 2016, when does it end? Python code: from datetime import date accrued = date(2016, 11, 17) # datetime.date(2016, 11, 17) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 11, 17) print(expires.isoformat()) O...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2020-11-17", "printed": "2020-11-17", "notation": null}
nlprog_det-setting-0071184
<|start|><|user|> At 1.5% a month (simple), what interest builds on $7,500 over 2 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` Executing it gives 225.00, as expected. The interest is $...
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $7,500 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # 225.0\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0071185
<|start|><|user|> With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 8000 costs = 4000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 50.0 print(round(margin, 1)) ``` Console: 50.0 The margin is 50.0%.<|eot|...
chat
[ { "role": "user", "content": "With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 8000\ncosts = 4000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 50.0\nprint(roun...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0071186
3 walks at 400 calories each burn how many calories in total? The program: ```python per_session = 400 sessions = 3 total = per_session * sessions # 1200 print(total) ``` The script prints 1200, as expected. That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0071190
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> What day of the week is January 8, 2012?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2012, 1, 8) # datetime.date(2012, 1, 8) print(hearing.strftime("%A")) ``` It prints Sunday. January 8, 2012 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "What day of the week is January 8, 2012?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2012, 1, 8) # datetime.date(2012, 1, 8)\nprint(hearin...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0071191
23 ink cartridges cost $5 apiece. With 10% tax added, what is the total? In Python: ```python quantity = 23 unit_price = 5 subtotal = quantity * unit_price # 115 total = subtotal * (1 + 10 / 100) # 126.50000000000001 print(f"{total:.2f}") ``` Run it and it prints 126.50. The invoice total is $126.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "126.50", "printed": "126.50", "notation": null}
nlprog_det-setting-0071192
Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? A Python solution: ```python revenue = 5000 costs = 4000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Program output — 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0071193
Count the days between June 24, 2023 and May 8, 2024. Coded up: from datetime import date first = date(2023, 6, 24) # datetime.date(2023, 6, 24) second = date(2024, 5, 8) # datetime.date(2024, 5, 8) print((second - first).days) Out — 319 There are 319 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "319", "printed": "319", "notation": null}
nlprog_det-setting-0071194
A 8-day trip pays $69 a day for meals and $140 a night for lodging (7 nights). What is the total allowance? As a program: ```python days = 8 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1532 print(total) ``` That prints 1532. That comes to $1,532.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1532", "printed": "1532", "notation": null}
nlprog_det-setting-0071195
Convert 3 h 47 min (the length of a workshop) to minutes. As Python: ```python hours = 3 minutes = 47 total_minutes = hours * 60 + minutes # 227 print(total_minutes) ``` The program prints: 227 The workshop lasted 227 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "227", "printed": "227", "notation": null}
nlprog_det-setting-0071196
<|start|><|user|> A measure needs at least 67% of 110 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 74 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 110 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 74 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0071197
<|start|><|system|> Tool definitions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calc\", \"description\": \"Runs a short Py...
nlprog_det
setting
original
null
deterministic
[]
[]
353
{"gold": "277", "printed": "277", "notation": null}
nlprog_det-setting-0071198
At 2% a month (simple), what interest builds on $4,000 over 4 months? Python version: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 320.0 print(f"{interest:.2f}") ``` Output: 320.00 $320.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0071199
Nikhil lends $12,000 at 3% simple interest per year for 2 years. How much interest is earned? We can compute it in Python. ```python principal = 12000 rate = 3 / 100 # 0.03 years = 2 interest = principal * rate * years # 720.0 print(f"{interest:.2f}") ``` Run it and it prints: 720.00 The interest is $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0071200
<|start|><|user|> Kofi has 14 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 35 filings = 14 total = fee * filings print(total) ``` The run gives: 490 The filings cost $490 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kofi has 14 documents to file, and each filing costs $35. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 14\ntotal = fee * filings\nprint(total)\n```\nThe run gives: 490\n\nThe filings cost $490 in all." ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "490", "printed": "490", "notation": null}
nlprog_det-setting-0071201
A 4% increase is applied to $1,100 monthly rent. What is the new amount? Programmatically: ```python rent = 1100 increase = 4 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` Execution prints 1144.00, as expected. It rises to $1,144.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1144.00", "printed": "1144.00", "notation": null}
nlprog_det-setting-0071202
Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons? Computation in Python: base = 15 rate = 5.1 used = 12 free = 0 bill = base + rate * max(0, used - free) # 76.19999999999999 print(f"{bill:.2f}") What it prints: 76.20 The bill is $76.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "76.20", "printed": "76.20", "notation": null}
nlprog_det-setting-0071203
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A customer buys 4 staplers at $15 each, 3 notebooks at $13 each, 4 labels at $24 each and pays with $200. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 15), (3, 13), (4, 24)] total = sum(q * p for q, p in items) # 195 paid = 200 change ...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A customer buys 4 staplers at $15 each, 3 notebooks at $13 each, 4 labels at $24 each and pays with $200. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0071204
An office budget of $20,000 has expenses of $3,218, $3,967, $1,297. How much of the budget is left? The computation: ```python budget = 20000 expenses = [3218, 3967, 1297] left = budget - sum(expenses) # 11518 print(left) ``` This prints 11518, as expected. $11,518 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11518", "printed": "11518", "notation": null}
nlprog_det-setting-0071205
A client paid a $10,000 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left? retainer = 10000 hours = 14 rate = 150 left = retainer - hours * rate # 7900 print(left) Printed result: 7900 $7,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "7900", "printed": "7900", "notation": null}
nlprog_det-setting-0071206
A clerk's office charges $90 for each filing. Nadia submits 12 filings. What is the total fee? ```python fee = 90 filings = 12 total = fee * filings # 1080 print(total) ``` The code prints 1080. The total fee is $1,080.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1080", "printed": "1080", "notation": null}
nlprog_det-setting-0071207
<|start|><|user|> An office budget of $25,000 has expenses of $3,127, $2,963, $1,002, $1,621. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3127, 2963, 1002, 1621] left = budget - sum(expenses) # 16287 print(left) ``` It prints 16287, as expected. $16,287 is left.<|eot|> <|...
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $3,127, $2,963, $1,002, $1,621. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3127, 2963, 1002, 1621]\nleft = budget - sum(expenses) # 16287\nprint(left)\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "16287", "printed": "16287", "notation": null}
nlprog_det-setting-0071208
2 books come back 13 days late, at $0.50 a day each. What is the fine? ```python per_day = 0.5 days_late = 13 books = 2 fine = per_day * days_late * books # 13.0 print(f"{fine:.2f}") ``` Result — 13.00 $13.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "13.00", "printed": "13.00", "notation": null}
nlprog_det-setting-0071209
One can of paint covers 400 square feet. How many cans are needed for 799 square feet of wall? Programmatically: ```python import math area = 799 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Execution prints 2. 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0071210
<|start|><|system|> Tools you may use: {"name": "eval_python", "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|> At 50 mile...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"eval_python\", \"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\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0071211
Of a $4,000 budget, $3,600 has been spent. What percent is that? Python does the arithmetic: ```python budget = 4000 spent = 3600 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) ``` Execution prints 90.0, as expected. That is 90.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0071212
<|start|><|user|> Chen has 5 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|> <|assistant|> $625 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Chen has 5 documents to file, and each filing costs $125. How much are the filing fees in total?" }, { "role": "assistant", "content": "$625 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0071213
A 16 lb package ships at $8 base plus $1.20/lb. What is the charge? Here is the program. ```python base = 8 per_pound = 1.2 weight = 16 cost = base + per_pound * weight # 27.2 print(f"{cost:.2f}") ``` On running, it outputs: 27.20 The charge is $27.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "27.20", "printed": "27.20", "notation": null}