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-0059045
<|start|><|user|> Omar earns a 3% commission on $50,492 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 50492 rate = 3 / 100 # 0.03 commission = sales * rate # 1514.76 print(f"{commission:.2f}") ``` Run it and it prints: 1514.76 Omar earns $1,514.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Omar earns a 3% commission on $50,492 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 50492\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1514.76\nprint(f\"{commission:.2f}\")\n```\nRun it and it prints: 1514.76\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1514.76", "printed": "1514.76", "notation": null}
nlprog_det-setting-0059046
What average speed covers 466 miles in 0.5 hours? Script: ```python distance = 466 hours = 0.5 speed = distance / hours # 932.0 print(round(speed)) ``` Running it prints: 932 The average speed is 932 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "932", "printed": "932", "notation": null}
nlprog_det-setting-0059047
Starting from $25,000, the team spends $1,505, $1,345, $3,962. What remains? $18,188 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "18188", "printed": "18188", "notation": null}
nlprog_det-setting-0059048
Filing fees are $35 per document. What do 14 filings cost? ```python fee = 35 filings = 14 total = fee * filings # 490 print(total) ``` Program output: 490 The filings cost $490 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "490", "printed": "490", "notation": null}
nlprog_det-setting-0059049
<|start|><|user|> A 4% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") stdout: 936.00 The new rent is $936.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 900\n increase = 4 / 100 # 0.04\n new_rent = rent * (1 + increase) # 936.0\n print(f\"{new_rent:.2f}\")\nstdout:\n936.00\n\nThe new re...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0059050
Equipment costs $24,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year? Set it up in Python: ```python cost = 24000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` The program outputs: 4000.00 Depreciation is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0059052
Fixed costs are $1,200. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even? A few lines of Python do it: ```python import math fixed = 1200 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` The interpreter prints 300. 300 units are nee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0059053
<|start|><|user|> Lena was born on December 12, 2006. How old is Lena on July 5, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(2006, 12, 12) # datetime.date(2006, 12, 12) on = date(2023, 7, 5) # datetime.date(2023, 7, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born....
chat
[ { "role": "user", "content": "Lena was born on December 12, 2006. How old is Lena on July 5, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2006, 12, 12) # datetime.date(2006, 12, 12)\non = date(2023, 7, 5) # datetime.date(2023, 7, 5)\nage = on.y...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0059054
<|start|><|user|> If a 2-year limitations period starts on May 11, 2019, when does it end?<|eot|> <|assistant|> from datetime import date accrued = date(2019, 5, 11) # datetime.date(2019, 5, 11) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 5, 11) print(expir...
chat
[ { "role": "user", "content": "If a 2-year limitations period starts on May 11, 2019, when does it end?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2019, 5, 11) # datetime.date(2019, 5, 11)\n years = 2\n expires = accrued.replace(year=accrued.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2021-05-11", "printed": "2021-05-11", "notation": null}
nlprog_det-setting-0059056
<|start|><|user|> Shipping costs $5 plus $0.75 per pound. What does a 24-pound parcel cost to ship?<|eot|> <|assistant|> Shipping costs $23.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $0.75 per pound. What does a 24-pound parcel cost to ship?" }, { "role": "assistant", "content": "Shipping costs $23.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0059057
<|start|><|user|> A car travels 468 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 234 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 468 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 234 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "234", "printed": "234", "notation": null}
nlprog_det-setting-0059058
<|start|><|user|> Goods bought on January 23, 2018 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 1, 23) months = 24 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 January 23, 2018 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 1, 23)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2020-01-23", "printed": "2020-01-23", "notation": null}
nlprog_det-setting-0059059
<|start|><|user|> Rent of $2,200 goes up 8%. What is the new rent?<|eot|> <|assistant|> It rises to $2,376.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $2,200 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $2,376.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0059060
Scale 450 g of lentils from 4 servings to 12 servings. Use 1350 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0059061
A $800 security deposit has deductions of $75 and $75. How much is refunded? Let the code do the arithmetic: ```python deposit = 800 deductions = [75, 75] refund = deposit - sum(deductions) print(refund) ``` stdout: 650 $650 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "650", "printed": "650", "notation": null}
nlprog_det-setting-0059062
A meal costs $61.00. How much is a 25% tip? Program: ```python bill = 61.0 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 15.25 print(f"{tip:.2f}") ``` # program output: 15.25 Leave $15.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "15.25", "printed": "15.25", "notation": null}
nlprog_det-setting-0059063
7 binders cost $6 apiece. With 8% tax added, what is the total? Program: ```python quantity = 7 unit_price = 6 subtotal = quantity * unit_price # 42 total = subtotal * (1 + 8 / 100) # 45.36 print(f"{total:.2f}") ``` # run result: 45.36 The total with tax is $45.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "45.36", "printed": "45.36", "notation": null}
nlprog_det-setting-0059064
<|start|><|user|> How many whole days and leftover hours are in 85 hours?<|eot|> <|assistant|> ```python hours = 85 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The code prints: 3 days and 13 hours 85 hours is 3 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 85 hours?" }, { "role": "assistant", "content": "```python\nhours = 85\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe code prints: 3 days and 13 hours\n\n85 hours is 3 days and 13 hou...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "3 days and 13 hours", "printed": "3 days and 13 hours", "notation": null}
nlprog_det-setting-0059065
<|start|><|user|> Helga and Ines share $2,980 in the ratio 1:3. How much does Helga get?<|eot|> <|assistant|> ```python total = 2980 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 745 print(share_a) ``` The program outputs: 745 Helga gets $745.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Helga and Ines share $2,980 in the ratio 1:3. How much does Helga get?" }, { "role": "assistant", "content": "```python\ntotal = 2980\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 745\nprint(share_a)\n```\nThe program outputs: 745\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "745", "printed": "745", "notation": null}
nlprog_det-setting-0059066
739 files go into boxes of 25. How many boxes does that take? Python does the arithmetic: ```python import math files = 739 per_box = 25 boxes = math.ceil(files / per_box) # 30 print(boxes) ``` The program prints 30, as expected. 30 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0059067
Attendance was 59 out of 80. Express it as a percent. Python, step by step: ```python present = 59 total = 80 percent = present / total * 100 # 73.75 print(round(percent, 1)) ``` The script prints: 73.8 Attendance was 73.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "73.8", "printed": "73.8", "notation": null}
nlprog_det-setting-0059068
At an exchange rate of 0.74 CAD per USD, how many CAD is 6,440 USD? Translated to Python: ```python amount = 6440 rate = 0.74 converted = amount * rate # 4765.6 print(f"{converted:.2f}") ``` On running, it outputs: 4765.60 It converts to 4,765.60 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "4765.60", "printed": "4765.60", "notation": null}
nlprog_det-setting-0059069
<|start|><|user|> Goods bought on October 26, 2021 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> It expires on October 26, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goods bought on October 26, 2021 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "It expires on October 26, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2024-10-26", "printed": "2024-10-26", "notation": null}
nlprog_det-setting-0059070
What is a 15% tip on a $164.67 bill? bill = 164.67 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 24.700499999999998 print(f"{tip:.2f}") The program outputs 24.70. The tip is $24.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "24.70", "printed": "24.70", "notation": null}
nlprog_det-setting-0059071
An office budget of $8,000 has expenses of $2,549, $2,885. How much of the budget is left? A short script: ```python budget = 8000 expenses = [2549, 2885] left = budget - sum(expenses) # 2566 print(left) ``` Execution prints: 2566 $2,566 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2566", "printed": "2566", "notation": null}
nlprog_det-setting-0059072
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "Python sandbox for c...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"na...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "74.60", "printed": "74.60", "notation": null}
nlprog_det-setting-0059073
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 7 runs at 250 calories ea...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0059074
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "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|> <...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0059075
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Buying 4 staplers at $5 each, 6 ink cartridges at $20 each, 6 paper reams at $27 each, 3 tape rolls at $22 each, someone hands over $400. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 5), (6, 20), (6, 27), (3, 22)] total = sum(q * p for q, ...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Buying 4 staplers at $5 each, 6 ink cartridges at $20 each, 6 paper reams at $27 each, 3 tape rolls at $22 each, someone hands over $400. What change comes back?" }, { "role": "assistant", "conten...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0059076
Someone born October 13, 1966 turns how old by March 24, 2020? Give the age in whole years. We can compute it in Python. ```python from datetime import date born = date(1966, 10, 13) on = date(2020, 3, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` (stdout: 53) Nadia is 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0059077
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Convert 7,322 USD to EUR at 1 USD = 1.08 EUR.<|eot|> <|assistant|> ```python amount = 7322 rate = 1.08 converted = amount * rate # 7907.76 print(f"{converted:.2f}") ``` What it prints: 7907.76 It converts to 7,907.76 EUR.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Convert 7,322 USD to EUR at 1 USD = 1.08 EUR." }, { "role": "assistant", "content": "```python\namount = 7322\nrate = 1.08\nconverted = amount * rate # 7907.76\nprint(f\"{converted:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "7907.76", "printed": "7907.76", "notation": null}
nlprog_det-setting-0059078
A count moves from 2,500 to 3,750. By what percent did it change (use a minus sign for a drop)? The computation: ```python old = 2500 new = 3750 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` (Console output: 50) It changed by 50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0059079
<|start|><|user|> What percentage of $10,000 is $700?<|eot|> <|assistant|> ```python budget = 10000 spent = 700 percent = spent / budget * 100 # 7.000000000000001 print(round(percent, 1)) ``` The code prints 7.0. That is 7.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $700?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 700\npercent = spent / budget * 100 # 7.000000000000001\nprint(round(percent, 1))\n```\nThe code prints 7.0.\n\nThat is 7.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "7.0", "printed": "7.0", "notation": null}
nlprog_det-setting-0059080
<|start|><|user|> A quorum is 1/3 of the 20 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 20 quorum = math.ceil(members * 1 / 3) # 7 print(quorum) ``` The program prints 7, as expected. That is 7 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 20 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 20\nquorum = math.ceil(members * 1 / 3) # 7\nprint(quorum)\n```\nThe program prints 7, as expected.\n\nThat is 7 ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0059082
A 450-page report must be reviewed in 10 days. How many pages a day is that, evenly? Script: ```python pages = 450 days = 10 per_day = pages // days # 45 print(per_day) ``` On running, it outputs 45. That is 45 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0059083
Parking is $3 per hour with a daily maximum of $24. What do 12 hours cost? Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059084
A $9,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Each payment is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0059085
A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons? $99.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "99.60", "printed": "99.60", "notation": null}
nlprog_det-setting-0059086
A penalty of $50 a day accrues, capped at $2,500. What is owed after 3 days? Python does the arithmetic: ```python per_day = 50 days = 3 cap = 2500 fine = min(per_day * days, cap) # 150 print(fine) ``` Printed result: 150 The fine is $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0059087
6 bike rides at 200 calories each burn how many calories in total? Python: ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` What it prints — 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0059088
A shift runs from 7:11 AM to 11:30 AM. How long is it in minutes? Python: ```python start = 7 * 60 + 11 end = 11 * 60 + 30 print(end - start) ``` (Program output: 259) It is 259 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0059089
Notice was given on February 26, 2025. The notice period is 10 days. When does it run out? Coded up: ```python from datetime import date, timedelta start = date(2025, 2, 26) # datetime.date(2025, 2, 26) end = start + timedelta(days=10) # datetime.date(2025, 3, 8) print(end.isoformat()) ``` # printed result: 2025-03-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2025-03-08", "printed": "2025-03-08", "notation": null}
nlprog_det-setting-0059090
What simple interest does $5,000 earn at 3% a year over 3 years? Python: ```python principal = 5000 rate = 3 / 100 # 0.03 years = 3 interest = principal * rate * years # 450.0 print(f"{interest:.2f}") ``` Console output — 450.00 The interest is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0059091
How many whole days and leftover hours are in 369 hours? 369 hours is 15 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "15 days and 9 hours", "printed": "15 days and 9 hours", "notation": null}
nlprog_det-setting-0059092
A recipe for 6 people uses 200 grams of sugar. How many grams are needed for 12 people? 400 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0059093
A $2,000 security deposit has deductions of $150 and $85. How much is refunded? Programmatically: ```python deposit = 2000 deductions = [150, 85] refund = deposit - sum(deductions) print(refund) ``` The code prints 1765. $1,765 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1765", "printed": "1765", "notation": null}
nlprog_det-setting-0059094
21 batteries cost $6 apiece. With 8% tax added, what is the total? ```python quantity = 21 unit_price = 6 subtotal = quantity * unit_price # 126 total = subtotal * (1 + 8 / 100) # 136.08 print(f"{total:.2f}") ``` What it prints: 136.08 The invoice total is $136.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "136.08", "printed": "136.08", "notation": null}
nlprog_det-setting-0059095
<|start|><|system|> Tools you may use: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0059096
<|start|><|user|> 11 clipboards cost $6 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> The total with tax is $72.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 clipboards cost $6 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "The total with tax is $72.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "72.60", "printed": "72.60", "notation": null}
nlprog_det-setting-0059097
Sales went from 1,200 to 1,380. What is the percent change? Set it up in Python: ```python old = 1200 new = 1380 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` (Printed result: 15) The change is 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059098
Someone born April 12, 1994 turns how old by October 11, 2022? Give the age in whole years. A short script: ```python from datetime import date born = date(1994, 4, 12) # datetime.date(1994, 4, 12) on = date(2022, 10, 11) # datetime.date(2022, 10, 11) age = on.year - born.year - ((on.month, on.day) < (born.month, bo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0059099
74 of 100 members attended. What percent attended? As Python: ```python present = 74 total = 100 percent = present / total * 100 # 74.0 print(round(percent, 1)) ``` Out = 74.0 74.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0059101
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Starting from $12,000, the team spends $2,883, $401, $3,666. What remains?<|eot|> <|assistant|> budget = 12000 expenses = [2883, 401, 3666] left = budget - sum(expenses) # 5050 print(left) Printed: 5050 $5,050 is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Starting from $12,000, the team spends $2,883, $401, $3,666. What remains?" }, { "role": "assistant", "content": " budget = 12000\n expenses = [2883, 401, 3666]\n left = budget - sum(expe...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5050", "printed": "5050", "notation": null}
nlprog_det-setting-0059102
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A c...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0059103
A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments? Python, step by step: ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` Executed, it shows: 12 The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0059104
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> What ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "1934.92", "printed": "1934.92", "notation": null}
nlprog_det-setting-0059105
A water bill is $18 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons? We can compute it in Python. ```python base = 18 rate = 4.2 used = 14 free = 0 bill = base + rate * max(0, used - free) # 76.80000000000001 print(f"{bill:.2f}") ``` Run it and it prints 76.80. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "76.80", "printed": "76.80", "notation": null}
nlprog_det-setting-0059106
<|start|><|user|> A 4 lb package ships at $12 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.0 weight = 4 cost = base + per_pound * weight # 20.0 print(f"{cost:.2f}") ``` # out: 20.00 Shipping costs $20.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4 lb package ships at $12 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.0\nweight = 4\ncost = base + per_pound * weight # 20.0\nprint(f\"{cost:.2f}\")\n```\n# out: 20.00\n\nShipping costs $20.00...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0059107
Shipping costs $12 plus $1.20 per pound. What does a 25-pound parcel cost to ship? The charge is $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0059108
<|start|><|user|> 194 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 194 per_box = 40 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` The interpreter prints: 5 5 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "194 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 194\nper_box = 40\nboxes = math.ceil(files / per_box) # 5\nprint(boxes)\n```\nThe interpreter prints: 5\n\n5 boxes are needed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0059109
4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? A Python solution: award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") When run, it prints: 4500....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0059111
<|start|><|user|> How much sales tax is charged on a $49.44 purchase at 7%?<|eot|> <|assistant|> The tax is $3.46.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $49.44 purchase at 7%?" }, { "role": "assistant", "content": "The tax is $3.46." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "3.46", "printed": "3.46", "notation": null}
nlprog_det-setting-0059112
723 files go into boxes of 25. How many boxes does that take? Python makes this quick: ```python import math files = 723 per_box = 25 boxes = math.ceil(files / per_box) print(boxes) ``` Run it and it prints 29. 29 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0059113
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Meals are $79 per ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "1393", "printed": "1393", "notation": null}
nlprog_det-setting-0059114
A 6% increase is applied to $2,200 monthly rent. What is the new amount? Here is a short program for it. ```python rent = 2200 increase = 6 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` It prints 2332.00. It rises to $2,332.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2332.00", "printed": "2332.00", "notation": null}
nlprog_det-setting-0059115
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours? Here's the code. ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` It prints: 760.00 Pilar earns $760.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0059116
<|start|><|user|> How many minutes pass from 7:13 AM to 10:17 AM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 13 end = 10 * 60 + 17 print(end - start) ``` Running it prints 184, as expected. It is 184 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:13 AM to 10:17 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 13\nend = 10 * 60 + 17\nprint(end - start)\n```\nRunning it prints 184, as expected.\n\nIt is 184 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "184", "printed": "184", "notation": null}
nlprog_det-setting-0059117
At a 9% tax rate, what is the tax on $231.03? Code: ```python price = 231.03 tax_rate = 9 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Printed = 20.79 The tax is $20.79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "20.79", "printed": "20.79", "notation": null}
nlprog_det-setting-0059119
<|start|><|user|> Dara earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|> <|assistant|> ```python rate = 20.0 hours = 45 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 150.0 pay = regular + overtime # 950.0 print(f"{pay:.2f}") ``` Run result — 9...
chat
[ { "role": "user", "content": "Dara earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 45\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 150.0\npay = regular...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "950.00", "printed": "950.00", "notation": null}
nlprog_det-setting-0059120
<|start|><|user|> A 2% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1275.0 print(f"{new_rent:.2f}") ``` Run output: 1275.00 The new rent is $1,275.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1275.0\nprint(f\"{new_rent:.2f}\")\n```\nRun output: 1275.00\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0059121
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The Python version: ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Execution result — 20.0 Profit is 20.0% of revenue...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0059122
Convert 20 °C to Fahrenheit. ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Run output — 68 That is 68 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0059123
Starting with 617 lanyards and using 20 per day, how many remain after 5 days? We can compute it in Python. ```python stock = 617 per_day = 20 days = 5 left = stock - per_day * days # 517 print(left) ``` Shell output: 517 517 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "517", "printed": "517", "notation": null}
nlprog_det-setting-0059124
The bridge was finished in 2006. How many years had passed by 2046? ```python start_year = 2006 end_year = 2046 print(end_year - start_year) ``` When run, it prints 40, as expected. 40 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0059125
<|start|><|user|> How many 2-foot square tiles cover a 8 ft by 14 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 8 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` That prints 28. It takes 28 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 8 ft by 14 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 8\nwidth = 14\ntile = 2\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nThat prints 28.\n\nIt takes 28...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0059126
Straight-line depreciation: cost $45,000, salvage $6,000, 6 years. How much per year? $6,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6500.00", "printed": "6500.00", "notation": null}
nlprog_det-setting-0059127
A car travels 528 miles in 2 hours. What is its average speed in miles per hour? The program: distance = 528 hours = 2 speed = distance / hours # 264.0 print(round(speed)) # console output: 264 It averages 264 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0059128
<|start|><|user|> At a 6% tax rate, what is the tax on $514.39?<|eot|> <|assistant|> ```python price = 514.39 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 30.8634 print(f"{tax:.2f}") ``` Out: 30.86 The tax is $30.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $514.39?" }, { "role": "assistant", "content": "```python\nprice = 514.39\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 30.8634\nprint(f\"{tax:.2f}\")\n```\nOut:\n30.86\n\nThe tax is $30.86." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "30.86", "printed": "30.86", "notation": null}
nlprog_det-setting-0059129
Meals are $59 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights? Python version: days = 4 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 656 print(total) On running, it outputs: 656 That comes to $656...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "656", "printed": "656", "notation": null}
nlprog_det-setting-0059130
A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term? Written as code: ```python monthly_rent = 1200 months = 18 total = monthly_rent * months # 21600 print(total) ``` Execution prints: 21600 In total, $21,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0059131
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours? ```python rate = 20.0 hours = 55 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Result — 1250.00 Paula earns $1,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0059132
What is -10 degrees Celsius in Fahrenheit? Python version: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` The printout reads 14. That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0059133
Counting only Monday through Friday, how many business days are there after October 16, 2022 through November 13, 2022? We write it as a program: from datetime import date, timedelta start = date(2022, 10, 16) end = date(2022, 11, 13) count = 0 for k in range(1, (end - start).days + 1): if ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0059134
A settlement of $960 is split equally among 8 parties. How much does each party receive? Code: ```python settlement = 960 parties = 8 share = settlement // parties # 120 print(share) ``` stdout — 120 Each party receives $120.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0059135
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Joe...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0059136
<|start|><|user|> A meal costs $52.36. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 52.36 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 11.5192 print(f"{tip:.2f}") ``` # console output: 11.52 The tip is $11.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $52.36. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 52.36\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 11.5192\nprint(f\"{tip:.2f}\")\n```\n# console output: 11.52\n\nThe tip is $11.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11.52", "printed": "11.52", "notation": null}
nlprog_det-setting-0059137
A hearing lasted 1 hours and 34 minutes. How many minutes is that? Translated to Python: ```python hours = 1 minutes = 34 total_minutes = hours * 60 + minutes print(total_minutes) ``` Printed: 94 That is 94 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0059138
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Convert 5,155 EUR to USD at 1 EUR = 1.12 USD.<|eot|> <|assistant|> ```python amount = 5155 rate = 1.12 converted = amount * rate # 5773.6 print(f"{converted:.2f}") ``` # result: 5773.60 It converts to 5,773.60 USD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Convert 5,155 EUR to USD at 1 EUR = 1.12 USD." }, { "role": "assistant", "content": "```python\namount = 5155\nrate = 1.12\nconverted = amount * rate # 5773.6\nprint(f\"{converte...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5773.60", "printed": "5773.60", "notation": null}
nlprog_det-setting-0059139
Carmen buys 4 boxes of 10 toner kits each and gives away 2 toner kits. How many toner kits are left? Python version: ```python boxes = 4 per_box = 10 given_away = 2 left = boxes * per_box - given_away # 38 print(left) ``` This prints: 38 That leaves 38 toner kits.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0059140
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 630 miles?<|eot|> <|assistant|> ```python miles = 630 rate = 0.58 reimbursement = miles * rate # 365.4 print(f"{reimbursement:.2f}") ``` The printout reads 365.40. The reimbursement is $365.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 630 miles?" }, { "role": "assistant", "content": "```python\nmiles = 630\nrate = 0.58\nreimbursement = miles * rate # 365.4\nprint(f\"{reimbursement:.2f}\")\n```\nThe printout reads 365.40.\n\nThe reimbursement is $3...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "365.40", "printed": "365.40", "notation": null}
nlprog_det-setting-0059141
Starting with 253 binders and using 31 per day, how many remain after 4 days? The computation: ```python stock = 253 per_day = 31 days = 4 left = stock - per_day * days # 129 print(left) ``` Python prints 129, as expected. 129 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0059142
Someone born October 6, 1980 turns how old by March 2, 2029? Give the age in whole years. Coded up: from datetime import date born = date(1980, 10, 6) # datetime.date(1980, 10, 6) on = date(2029, 3, 2) # datetime.date(2029, 3, 2) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0059143
<|start|><|user|> Nadia's scores were 76, 64, 91 and 97. What is the average score?<|eot|> <|assistant|> ```python scores = [76, 64, 91, 97] average = sum(scores) // len(scores) # 82 print(average) ``` (stdout: 82) The average score is 82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nadia's scores were 76, 64, 91 and 97. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [76, 64, 91, 97]\naverage = sum(scores) // len(scores) # 82\nprint(average)\n```\n(stdout: 82)\n\nThe average score is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0059144
<|start|><|user|> A lawyer's fee is 33% of a $25,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 25000 rate = 33 / 100 # 0.33 fee = recovery * rate # 8250.0 print(f"{fee:.2f}") ``` Printed result — 8250.00 The lawyer's fee comes to $8,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $25,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 8250.0\nprint(f\"{fee:.2f}\")\n```\nPrinted result — 8250.00\n\nThe lawyer's fee ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0059145
4 claimants share a $2,640 settlement equally. What is each share? Code: settlement = 2640 parties = 4 share = settlement // parties # 660 print(share) The run gives: 660 Each party receives $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0059146
A meal costs $188.22. How much is a 10% tip? In Python: ```python bill = 188.22 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 18.822 print(f"{tip:.2f}") ``` (Program output: 18.82) Leave $18.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "18.82", "printed": "18.82", "notation": null}
nlprog_det-setting-0059147
A recipe for 8 people uses 300 grams of lentils. How many grams are needed for 4 people? The program: ```python grams = 300 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 150 print(scaled) ``` Shell output — 150 150 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0059148
From a $2,500 retainer, 11 hours at $200/hour have been drawn. What remains? Programmatically: ```python retainer = 2500 hours = 11 rate = 200 left = retainer - hours * rate # 300 print(left) ``` Run result = 300 The remaining balance is $300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0059149
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $150,000 award?<|eot|> <|assistant|> ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` (Printed result: 60000.00) The fee is $60,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $150,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 60000.0\nprint(f\"{fee:.2f}\")\n```\n(Printed result: 60000.00)\n\nThe fee ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0059150
<|start|><|user|> Sara buys 9 boxes of 12 paper reams each and gives away 4 paper reams. How many paper reams are left?<|eot|> <|assistant|> boxes = 9 per_box = 12 given_away = 4 left = boxes * per_box - given_away # 104 print(left) (Printed: 104) That leaves 104 paper reams.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sara buys 9 boxes of 12 paper reams each and gives away 4 paper reams. How many paper reams are left?" }, { "role": "assistant", "content": " boxes = 9\n per_box = 12\n given_away = 4\n left = boxes * per_box - given_away # 104\n print(left)\n(Printe...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "104", "printed": "104", "notation": null}