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-0080218
Each of Yusuf's runs burns 300 calories. How many calories over 7 runs? Here's the code. ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` The program prints: 2100 That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0080219
Papers were served by mail on December 12, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? ```python from datetime import date, timedelta served = date(2027, 12, 12) # datetime.date(2027, 12, 12) response_days = 21 mail_days = 3 due = served + timedelta(days=respons...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2028-01-05", "printed": "2028-01-05", "notation": null}
nlprog_det-setting-0080220
<|start|><|user|> At 1% a month (simple), what interest builds on $12,000 over 4 months?<|eot|> <|assistant|> balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") (Run result: 480.00) The interest is $480.00.<|eot|> <...
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $12,000 over 4 months?" }, { "role": "assistant", "content": " balance = 12000\n monthly_rate = 1 / 100 # 0.01\n months = 4\n interest = balance * monthly_rate * months # 480.0\n print(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0080221
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "2 days and 6 hours", "printed": "2 days and 6 hours", "notation": null}
nlprog_det-setting-0080223
<|start|><|user|> After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` Output — 4000.00 $4,000.00 per installment.<|eot|...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 4000.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0080224
A trial runs from May 5, 2018 to May 19, 2018, counting both days. How many calendar days is that? Here's the code. ```python from datetime import date first = date(2018, 5, 5) # datetime.date(2018, 5, 5) last = date(2018, 5, 19) # datetime.date(2018, 5, 19) days = (last - first).days + 1 # 15 print(days) ``` Runni...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0080226
<|start|><|system|> Tools you may use: {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Prorate $900 of monthly rent for 20 day...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0080227
A settlement of $84,000 is split equally among 6 parties. How much does each party receive? Each share is $14,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0080228
<|start|><|user|> What is a 18% tip on a $17.01 bill?<|eot|> <|assistant|> ```python bill = 17.01 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 3.0618000000000003 print(f"{tip:.2f}") ``` The program prints 3.06. The tip is $3.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 18% tip on a $17.01 bill?" }, { "role": "assistant", "content": "```python\nbill = 17.01\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 3.0618000000000003\nprint(f\"{tip:.2f}\")\n```\nThe program prints 3.06.\n\nThe tip is $3.06." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3.06", "printed": "3.06", "notation": null}
nlprog_det-setting-0080229
Meals are $74 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights? The program: ```python days = 7 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1358 print(total) ``` (Run result: 1358) That comes to $1,358.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1358", "printed": "1358", "notation": null}
nlprog_det-setting-0080230
<|start|><|user|> 3 friends split a $150 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> bill = 150 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 60.0 print(f"{each:.2f}") Result — 60.00 Each person pays $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $150 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": " bill = 150\n tip_rate = 20 / 100 # 0.2\n people = 3\n each = bill * (1 + tip_rate) / people # 60.0\n print(f\"{each:.2f}\")\nResult — ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0080231
Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Python makes this quick: ```python revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) ``` It prints 2.4, as expected. Prof...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0080232
<|start|><|user|> A 3% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> The new rent is $1,287.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "The new rent is $1,287.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0080233
A $96 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share? Code: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 23.04 print(f"{each:.2f}") ``` The interpreter prints 23.04. Each person pays $23.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "23.04", "printed": "23.04", "notation": null}
nlprog_det-setting-0080234
<|start|><|user|> A recipe for 6 people uses 240 grams of oats. How many grams are needed for 3 people?<|eot|> <|assistant|> ```python grams = 240 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 120 print(scaled) ``` The run gives 120. 120 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 6 people uses 240 grams of oats. How many grams are needed for 3 people?" }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 6\nneeded_for = 3\nscaled = grams * needed_for // serves # 120\nprint(scaled)\n```\nThe run gives 120.\n\n1...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0080235
Sales went from 500 to 250. What is the percent change? Code: ```python old = 500 new = 250 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` What it prints — -50 It changed by -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0080236
Buying 5 labels at $20 each, 4 paper reams at $25 each, someone hands over $250. What change comes back? We can compute it in Python. items = [(5, 20), (4, 25)] total = sum(q * p for q, p in items) # 200 paid = 250 change = paid - total # 50 print(change) It outputs: 50 The change is $50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0080237
<|start|><|user|> From 2008 to 2030, how many years is that?<|eot|> <|assistant|> That is 22 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2008 to 2030, how many years is that?" }, { "role": "assistant", "content": "That is 22 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0080238
An attorney bills 2.5 hours at $410 per hour. What is the bill? We can compute it in Python. ```python hours = 2.5 rate = 410 bill = hours * rate print(f"{bill:.2f}") ``` It prints: 1025.00 The bill is $1,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1025.00", "printed": "1025.00", "notation": null}
nlprog_det-setting-0080239
Amir earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week? A few lines of Python do it: ```python rate = 18.5 hours = 48 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 222.0 pay = regular + overtime # 962.0 print(f"{pay:.2f}") ``` Execution prints 962.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "962.00", "printed": "962.00", "notation": null}
nlprog_det-setting-0080240
Pack A has 12 items for $8.92. Pack B has 30 items for $18.79. Which has the lower price per item? A few lines of Python do it: ```python pack_a = 8.92 / 12 # 0.7433333333333333 pack_b = 18.79 / 30 # 0.6263333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # output: B Pack B is cheaper...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0080241
3 claimants share a $1,200 settlement equally. What is each share? In code: ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` # result: 400 Each share is $400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0080242
<|start|><|user|> Rania has 8 documents to file, and each filing costs $350. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 350 filings = 8 total = fee * filings # 2800 print(total) ``` Output = 2800 The filings cost $2,800 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania has 8 documents to file, and each filing costs $350. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 8\ntotal = fee * filings # 2800\nprint(total)\n```\nOutput = 2800\n\nThe filings cost $2,800 in ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0080243
<|start|><|user|> Counting the first and last day, how many days are there from May 25, 2020 through May 29, 2020?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 5, 25) # datetime.date(2020, 5, 25) last = date(2020, 5, 29) # datetime.date(2020, 5, 29) days = (last - first).days + 1 # 5 p...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 25, 2020 through May 29, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 5, 25) # datetime.date(2020, 5, 25)\nlast = date(2020, 5, 29) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0080245
Convert 5 h 7 min (the length of a hearing) to minutes. Python code: hours = 5 minutes = 7 total_minutes = hours * 60 + minutes # 307 print(total_minutes) Output = 307 The hearing lasted 307 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0080247
<|start|><|user|> Pack A has 6 items for $8.31. Pack B has 30 items for $18.32. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 8.31 / 6 # 1.385 pack_b = 18.32 / 30 # 0.6106666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # printed: B Pack B is cheaper per ...
chat
[ { "role": "user", "content": "Pack A has 6 items for $8.31. Pack B has 30 items for $18.32. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 8.31 / 6 # 1.385\npack_b = 18.32 / 30 # 0.6106666666666667\ncheaper = \"A\" if pack_a < pack_b else \"B\" ...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0080248
<|start|><|user|> A meeting lasted 5 hours and 38 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 5 minutes = 38 total_minutes = hours * 60 + minutes # 338 print(total_minutes) # console output: 338 The meeting lasted 338 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 5 hours and 38 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 5\n minutes = 38\n total_minutes = hours * 60 + minutes # 338\n print(total_minutes)\n# console output: 338\n\nThe meeting lasted 338 minu...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "338", "printed": "338", "notation": null}
nlprog_det-setting-0080249
3 books come back 3 days late, at $0.25 a day each. What is the fine? The computation: ```python per_day = 0.25 days_late = 3 books = 3 fine = per_day * days_late * books # 2.25 print(f"{fine:.2f}") ``` Execution prints 2.25, as expected. $2.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2.25", "printed": "2.25", "notation": null}
nlprog_det-setting-0080250
<|start|><|user|> A hall has 15 rows of 8 seats, and 33 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 15 per_row = 8 empty = 33 seated = rows * per_row - empty # 87 print(seated) ``` (stdout: 87) 87 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 15 rows of 8 seats, and 33 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 15\nper_row = 8\nempty = 33\nseated = rows * per_row - empty # 87\nprint(seated)\n```\n(stdout: 87)\n\n87 seats are taken." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0080251
<|start|><|user|> 3 books come back 7 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.1 days_late = 7 books = 3 fine = per_day * days_late * books # 2.1 print(f"{fine:.2f}") On running, it outputs: 2.10 The fine is $2.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 books come back 7 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.1\n days_late = 7\n books = 3\n fine = per_day * days_late * books # 2.1\n print(f\"{fine:.2f}\")\nOn running, it outputs: 2.10\...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2.10", "printed": "2.10", "notation": null}
nlprog_det-setting-0080253
Counting only Monday through Friday, how many business days are there after August 13, 2025 through September 8, 2025? Here's the code. ```python from datetime import date, timedelta start = date(2025, 8, 13) end = date(2025, 9, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080254
To read 217 pages in 7 days, how many pages per day are needed? In code: ```python pages = 217 days = 7 per_day = pages // days # 31 print(per_day) ``` The interpreter prints: 31 31 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0080255
Tomas's scores were 98, 71, 90, 74, 95, 79 and 67. What is the average score? As Python: ```python scores = [98, 71, 90, 74, 95, 79, 67] average = sum(scores) // len(scores) print(average) ``` (Console output: 82) The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0080256
A $1,500 security deposit has deductions of $60. How much is refunded? Programmatically: ```python deposit = 1500 deductions = [60] refund = deposit - sum(deductions) # 1440 print(refund) ``` Interpreter output: 1440 $1,440 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0080257
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 30-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.2 weight = 30 cost = base + per_pound * weight # 48.0 print(f"{cost:.2f}") ``` When run, it prints 48.00, as expected. Shipping costs $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 30-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.2\nweight = 30\ncost = base + per_pound * weight # 48.0\nprint(f\"{cost:.2f}\")\n```\nWhen run, it prints 4...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0080258
At an exchange rate of 1.35 USD per GBP, how many USD is 5,080 GBP? Python makes this quick: ```python amount = 5080 rate = 1.35 converted = amount * rate # 6858.0 print(f"{converted:.2f}") ``` stdout — 6858.00 That is 6,858.00 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "6858.00", "printed": "6858.00", "notation": null}
nlprog_det-setting-0080259
<|start|><|user|> A penalty of $100 a day accrues, capped at $2,500. What is owed after 20 days?<|eot|> <|assistant|> ```python per_day = 100 days = 20 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` (Output: 2000) $2,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 20 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 20\ncap = 2500\nfine = min(per_day * days, cap)\nprint(fine)\n```\n(Output: 2000)\n\n$2,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0080260
<|start|><|user|> Convert 19.5 km to meters.<|eot|> <|assistant|> ```python km = 19.5 meters = km * 1000 # 19500.0 print(round(meters)) ``` Output of the run — 19500 That is 19,500 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 19.5 km to meters." }, { "role": "assistant", "content": "```python\nkm = 19.5\nmeters = km * 1000 # 19500.0\nprint(round(meters))\n```\nOutput of the run — 19500\n\nThat is 19,500 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0080261
Papers were served by mail on June 25, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Coded up: ```python from datetime import date, timedelta served = date(2022, 6, 25) # datetime.date(2022, 6, 25) response_days = 14 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2022-07-12", "printed": "2022-07-12", "notation": null}
nlprog_det-setting-0080263
Each storage box holds 20 files. How many boxes are needed for 643 files? The program: import math files = 643 per_box = 20 boxes = math.ceil(files / per_box) # 33 print(boxes) Printed: 33 33 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0080264
Papers were served by mail on June 2, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Python does the arithmetic: ```python from datetime import date, timedelta served = date(2022, 6, 2) # datetime.date(2022, 6, 2) response_days = 28 mail_days = 3 due = served + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2022-07-03", "printed": "2022-07-03", "notation": null}
nlprog_det-setting-0080265
A chair costs $250. It is 25% off. What is the sale price? The sale price is $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0080266
4 friends split a $240 bill plus a 20% tip evenly. How much does each pay? Written as code: bill = 240 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") Result: 72.00 Each person pays $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0080267
Convert 5 h 14 min (the length of a film) to minutes. Python: ```python hours = 5 minutes = 14 total_minutes = hours * 60 + minutes # 314 print(total_minutes) ``` Output of the run — 314 That is 314 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0080268
How many of 31 members form a majority (more than half)? Python: members = 31 majority = members // 2 + 1 # 16 print(majority) The script prints 16, as expected. 16 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0080269
After an initial $0, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part? Python: ```python grant = 12000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 3000.0 print(f"{each:.2f}") ``` Executed, it shows 3000.00. $3,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080270
Each of Tomas's walks burns 300 calories. How many calories over 7 walks? Let the code do the arithmetic: ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` The program prints 2100. 2100 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0080271
A $1,000 security deposit has deductions of $45, $75 and $120. How much is refunded? Here is a short program for it. ```python deposit = 1000 deductions = [45, 75, 120] refund = deposit - sum(deductions) # 760 print(refund) ``` Printed result — 760 The refund is $760.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "760", "printed": "760", "notation": null}
nlprog_det-setting-0080272
Someone born March 10, 1986 turns how old by May 28, 2027? Give the age in whole years. Set it up in Python: from datetime import date born = date(1986, 3, 10) # datetime.date(1986, 3, 10) on = date(2027, 5, 28) # datetime.date(2027, 5, 28) age = on.year - born.year - ((on.month, on.day) < (born.mont...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0080273
<|start|><|user|> The statute was enacted in 1990. How many years had passed by 2001?<|eot|> <|assistant|> start_year = 1990 end_year = 2001 print(end_year - start_year) Shell output: 11 That is 11 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 1990. How many years had passed by 2001?" }, { "role": "assistant", "content": " start_year = 1990\n end_year = 2001\n print(end_year - start_year)\nShell output: 11\n\nThat is 11 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0080274
The meal allowance is $69 per day. What is it for 3 days? That comes to $207.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0080275
Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? The computation: ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` The program outputs 23.8. The margin is 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0080276
<|start|><|user|> 8 hours of work at $150 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 8 rate = 150 bill = hours * rate print(f"{bill:.2f}") ``` Program output: 1200.00 The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 hours of work at $150 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nProgram output: 1200.00\n\nThe bill is $1,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0080277
Flooring at $6/sq ft for a 11 ft × 11 ft room costs how much? It costs $726.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "726", "printed": "726", "notation": null}
nlprog_det-setting-0080279
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> After an initial $6,000, ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0080280
3 friends split a $180 bill plus a 15% tip evenly. How much does each pay? Computation in Python: ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 68.99999999999999 print(f"{each:.2f}") ``` # execution result: 69.00 Each person pays $69.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0080281
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A quorum is 2/3 of the 60 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 60 quorum = math.ceil(members * 2 / 3) # 40 print(quorum) ``` That prints: 40 40 members are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A quorum is 2/3 of the 60 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 60\nquorum = math.ceil(members * 2 / 3) # ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0080282
A 14-day notice period begins on July 9, 2022. On what date does it end? ```python from datetime import date, timedelta start = date(2022, 7, 9) # datetime.date(2022, 7, 9) end = start + timedelta(days=14) # datetime.date(2022, 7, 23) print(end.isoformat()) ``` The code prints: 2022-07-23 The period ends on July 23...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2022-07-23", "printed": "2022-07-23", "notation": null}
nlprog_det-setting-0080284
<|start|><|user|> A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $15,300.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 18 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $15,300." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0080285
Of a $10,000 budget, $800 has been spent. What percent is that? That is 8.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "8.0", "printed": "8.0", "notation": null}
nlprog_det-setting-0080287
A trial runs from May 18, 2019 to June 4, 2019, counting both days. How many calendar days is that? Computation in Python: ```python from datetime import date first = date(2019, 5, 18) # datetime.date(2019, 5, 18) last = date(2019, 6, 4) # datetime.date(2019, 6, 4) days = (last - first).days + 1 # 18 print(days) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080288
<|start|><|user|> What simple interest does $8,000 earn at 8% a year over 2 years?<|eot|> <|assistant|> It earns $1,280.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $8,000 earn at 8% a year over 2 years?" }, { "role": "assistant", "content": "It earns $1,280.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1280.00", "printed": "1280.00", "notation": null}
nlprog_det-setting-0080289
<|start|><|user|> Pack A has 6 items for $8.04. Pack B has 18 items for $6.10. Which has the lower price per item?<|eot|> <|assistant|> Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 6 items for $8.04. Pack B has 18 items for $6.10. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack B is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0080290
A claim accrued on February 17, 2020. The limitations period is 2 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2020, 2, 17) # datetime.date(2020, 2, 17) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 2, 17) print(ex...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2022-02-17", "printed": "2022-02-17", "notation": null}
nlprog_det-setting-0080291
A 7 lb package ships at $5 base plus $2.50/lb. What is the charge? The computation: base = 5 per_pound = 2.5 weight = 7 cost = base + per_pound * weight # 22.5 print(f"{cost:.2f}") Run it and it prints: 22.50 Shipping costs $22.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "22.50", "printed": "22.50", "notation": null}
nlprog_det-setting-0080293
How long, in days, is it from June 13, 2021 until October 6, 2021? ```python from datetime import date first = date(2021, 6, 13) second = date(2021, 10, 6) print((second - first).days) ``` Output: 115 There are 115 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "115", "printed": "115", "notation": null}
nlprog_det-setting-0080294
<|start|><|user|> The landlord deducts $200 and $150 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> The refund is $2,150.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $200 and $150 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "The refund is $2,150." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2150", "printed": "2150", "notation": null}
nlprog_det-setting-0080295
From a $5,000 retainer, 9 hours at $250/hour have been drawn. What remains? In Python: ```python retainer = 5000 hours = 9 rate = 250 left = retainer - hours * rate # 2750 print(left) ``` The program prints 2750, as expected. $2,750 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2750", "printed": "2750", "notation": null}
nlprog_det-setting-0080296
Starting from $5,000, the team spends $2,564, $3,792. What remains? Python code: ```python budget = 5000 expenses = [2564, 3792] left = budget - sum(expenses) # -1356 print(left) ``` (Out: -1356) -$1,356 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "-1356", "printed": "-1356", "notation": null}
nlprog_det-setting-0080297
<|start|><|user|> A pack of 6 paper reams sells for $342. What does each cost?<|eot|> <|assistant|> The unit price is $57.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 6 paper reams sells for $342. What does each cost?" }, { "role": "assistant", "content": "The unit price is $57." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0080298
Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Computation in Python: ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Executed, it shows: 23.8 The margin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0080300
<|start|><|user|> An office budget of $5,000 has expenses of $2,482, $2,687, $3,159. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [2482, 2687, 3159] left = budget - sum(expenses) # -3328 print(left) ``` Executing it gives: -3328 The remaining budget is -$3,328.<|eot|> <|end|...
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $2,482, $2,687, $3,159. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [2482, 2687, 3159]\nleft = budget - sum(expenses) # -3328\nprint(left)\n```\nExecuting it ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "-3328", "printed": "-3328", "notation": null}
nlprog_det-setting-0080301
5 bike rides at 300 calories each burn how many calories in total? Translated to Python: ```python per_session = 300 sessions = 5 total = per_session * sessions # 1500 print(total) ``` Run result: 1500 1500 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0080302
<|start|><|user|> A 12-month warranty starts on February 26, 2019. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2019, 2, 26) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
chat
[ { "role": "user", "content": "A 12-month warranty starts on February 26, 2019. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2019, 2, 26)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2020-02-26", "printed": "2020-02-26", "notation": null}
nlprog_det-setting-0080303
Express 105 hours in days and hours. Written as code: ```python hours = 105 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` stdout: 4 days and 9 hours 105 hours is 4 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4 days and 9 hours", "printed": "4 days and 9 hours", "notation": null}
nlprog_det-setting-0080304
An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 3 months? Computing it: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Result: 150.00 $150.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0080305
At 1% a month (simple), what interest builds on $2,500 over 4 months? As a program: balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") Program output: 100.00 $100.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0080306
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 4 months? ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 320.0 print(f"{interest:.2f}") ``` Out: 320.00 $320.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0080307
<|start|><|user|> 3 walks at 300 calories each burn how many calories in total?<|eot|> <|assistant|> That burns 900 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 walks at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "That burns 900 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0080308
<|start|><|user|> Starting with 1984 rulers and using 30 per day, how many remain after 12 days?<|eot|> <|assistant|> ```python stock = 1984 per_day = 30 days = 12 left = stock - per_day * days # 1624 print(left) ``` Output of the run — 1624 1624 rulers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1984 rulers and using 30 per day, how many remain after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 1984\nper_day = 30\ndays = 12\nleft = stock - per_day * days # 1624\nprint(left)\n```\nOutput of the run — 1624\n\n1624 rulers a...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1624", "printed": "1624", "notation": null}
nlprog_det-setting-0080309
A customer buys 1 ink cartridges at $18 each, 6 cables at $10 each, 5 chairs at $20 each and pays with $200. How much change is due? We can compute it in Python. ```python items = [(1, 18), (6, 10), (5, 20)] total = sum(q * p for q, p in items) paid = 200 change = paid - total print(change) ``` Python prints 22. The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0080310
<|start|><|system|> You are a math tutor.<|eot|> <|user|> What is 40 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` # run result: 104 That is 104 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "What is 40 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\n# run result: 1...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0080311
<|start|><|user|> At an exchange rate of 0.74 USD per EUR, how many USD is 6,147 EUR?<|eot|> <|assistant|> ```python amount = 6147 rate = 0.74 converted = amount * rate # 4548.78 print(f"{converted:.2f}") ``` Execution prints: 4548.78 That is 4,548.78 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.74 USD per EUR, how many USD is 6,147 EUR?" }, { "role": "assistant", "content": "```python\namount = 6147\nrate = 0.74\nconverted = amount * rate # 4548.78\nprint(f\"{converted:.2f}\")\n```\nExecution prints: 4548.78\n\nThat is 4,548.78 US...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4548.78", "printed": "4548.78", "notation": null}
nlprog_det-setting-0080312
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 587 square feet of wall?<|eot|> <|assistant|> ```python import math area = 587 coverage = 250 cans = math.ceil(area / coverage) print(cans) ``` Output — 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 587 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 587\ncoverage = 250\ncans = math.ceil(area / coverage)\nprint(cans)\n```\nOutput — 3\n\n3 cans are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080313
To read 51 pages in 3 days, how many pages per day are needed? Python version: ```python pages = 51 days = 3 per_day = pages // days # 17 print(per_day) ``` Interpreter output: 17 That is 17 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0080315
<|start|><|system|> Tools (call with JSON): {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A clerk's office charge...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "5600", "printed": "5600", "notation": null}
nlprog_det-setting-0080316
Equal monthly payments repay $3,600 plus 5% simple yearly interest over 12 months. How large is a payment? Script: ```python principal = 3600 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 180.0 payment = (principal + interest) / months # 315.0 print(f"{payment:.2f}") ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "315.00", "printed": "315.00", "notation": null}
nlprog_det-setting-0080317
<|start|><|system|> You may call the tools below. [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Walls total 123 sq ft and e...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0080318
A 270-page report must be reviewed in 15 days. How many pages a day is that, evenly? The program: ```python pages = 270 days = 15 per_day = pages // days # 18 print(per_day) ``` The program prints 18. 18 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080319
Paula earns a 6% commission on $110,258 of sales. What is the commission? ```python sales = 110258 rate = 6 / 100 # 0.06 commission = sales * rate # 6615.48 print(f"{commission:.2f}") ``` Execution prints: 6615.48 Paula earns $6,615.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "6615.48", "printed": "6615.48", "notation": null}
nlprog_det-setting-0080320
<|start|><|user|> A measure needs at least 75% of 235 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 235 needed = math.ceil(voters * 75 / 100) # 177 print(needed) ``` When run, it prints: 177 177 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 235 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 235\nneeded = math.ceil(voters * 75 / 100) # 177\nprint(needed)\n```\nWhen run, it prints: 177\n\n177 votes are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "177", "printed": "177", "notation": null}
nlprog_det-setting-0080321
<|start|><|user|> An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> The interest is $720.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "The interest is $720.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0080322
Copies cost $5 plus $0.10 for each page beyond 20. How much for 52 pages? Computation in Python: ```python pages = 52 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 8.2 print(f"{cost:.2f}") ``` Program output — 8.20 The total is $8.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "8.20", "printed": "8.20", "notation": null}
nlprog_det-setting-0080323
<|start|><|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 22 days?<|eot|> <|assistant|> ```python per_day = 100 days = 22 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Console output — 1000 The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $1,000. How much after 22 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 22\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nConsole output — 1000\n\nThe fine is $1,00...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0080324
140 files go into boxes of 50. How many boxes does that take? Let the code do the arithmetic: ```python import math files = 140 per_box = 50 boxes = math.ceil(files / per_box) # 3 print(boxes) ``` Out: 3 It takes 3 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080325
<|start|><|user|> How many units at $30 each (variable cost $26) cover $2,500 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 625 print(units) ``` Running this gives 625. Break-even is 625 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $26) cover $2,500 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 26\nunits = math.ceil(fixed / (price - variable)) # 625\nprint(units)\n```\nRunning this ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0080326
A settlement of $7,350 is split equally among 6 parties. How much does each party receive? Translated to Python: settlement = 7350 parties = 6 share = settlement // parties # 1225 print(share) # result: 1225 Each share is $1,225.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1225", "printed": "1225", "notation": null}
nlprog_det-setting-0080327
How many units at $20 each (variable cost $12) cover $2,500 of fixed costs? ```python import math fixed = 2500 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` # output: 313 Break-even is 313 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0080328
A 33 lb package ships at $12 base plus $1.20/lb. What is the charge? The charge is $51.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "51.60", "printed": "51.60", "notation": null}
nlprog_det-setting-0080329
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Oskar drove 159 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 159 rate = 0.65 reimbursement = miles * rate # 103.35000000000001 print(f"{reimbursement:.2f}") ``` Output...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Oskar drove 159 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 159\nrate = 0.65\nreim...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "103.35", "printed": "103.35", "notation": null}