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-0080660
Straight-line depreciation: cost $12,000, salvage $0, 6 years. How much per year? As Python: ```python cost = 12000 salvage = 0 years = 6 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` (Execution result: 2000.00) $2,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0080661
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 1166 square feet of wall?<|eot|> <|assistant|> import math area = 1166 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) Out — 5 Buy 5 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 1166 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 1166\n coverage = 250\n cans = math.ceil(area / coverage) # 5\n print(cans)\nOut — 5\n\nBuy 5...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0080662
What average speed covers 376 miles in 2 hours? Program: ```python distance = 376 hours = 2 speed = distance / hours # 188.0 print(round(speed)) ``` The interpreter prints 188. The average speed is 188 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "188", "printed": "188", "notation": null}
nlprog_det-setting-0080663
Uma has 15 documents to file, and each filing costs $150. How much are the filing fees in total? The total fee is $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0080664
A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 6 thousand gallons? $26.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "26.25", "printed": "26.25", "notation": null}
nlprog_det-setting-0080665
<|start|><|user|> What is a 20% tip on a $156.71 bill?<|eot|> <|assistant|> ```python bill = 156.71 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 31.342000000000002 print(f"{tip:.2f}") ``` Program output — 31.34 The tip is $31.34.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $156.71 bill?" }, { "role": "assistant", "content": "```python\nbill = 156.71\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 31.342000000000002\nprint(f\"{tip:.2f}\")\n```\nProgram output — 31.34\n\nThe tip is $31.34." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "31.34", "printed": "31.34", "notation": null}
nlprog_det-setting-0080666
<|start|><|user|> Of a $4,000 budget, $1,800 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 1800 percent = spent / budget * 100 # 45.0 print(round(percent, 1)) ``` Python prints 45.0. That is 45.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $4,000 budget, $1,800 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 1800\npercent = spent / budget * 100 # 45.0\nprint(round(percent, 1))\n```\nPython prints 45.0.\n\nThat is 45.0% of the budget....
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "45.0", "printed": "45.0", "notation": null}
nlprog_det-setting-0080667
<|start|><|user|> Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?<|eot|> <|assistant|> cost = 24000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 3600.0 print(f"{per_year:.2f}") Running it prints: 3600.00 $3,600.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?" }, { "role": "assistant", "content": " cost = 24000\n salvage = 6000\n years = 5\n per_year = (cost - salvage) / years # 3600.0\n print(f\"{per_year:.2f}\")\nRunni...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0080668
<|start|><|user|> With 20% off, what does a $80 backpack cost?<|eot|> <|assistant|> It costs $64.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $80 backpack cost?" }, { "role": "assistant", "content": "It costs $64.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0080670
<|start|><|user|> From a $2,500 retainer, 3 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 3 rate = 200 left = retainer - hours * rate # 1900 print(left) ``` Out: 1900 $1,900 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 3 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 3\nrate = 200\nleft = retainer - hours * rate # 1900\nprint(left)\n```\nOut:\n1900\n\n$1,900 of the retainer is le...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1900", "printed": "1900", "notation": null}
nlprog_det-setting-0080671
Scale 240 g of rice from 8 servings to 2 servings. Script: ```python grams = 240 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 60 print(scaled) ``` Printed = 60 60 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0080672
From 2012 to 2052, how many years is that? ```python start_year = 2012 end_year = 2052 print(end_year - start_year) ``` # stdout: 40 40 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0080674
What does $10,000 grow to in 2 years at 4% annual compounding? Written as code: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 10816.000000000002 print(f"{value:.2f}") ``` When run, it prints 10816.00, as expected. The balance is $10,816.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10816.00", "printed": "10816.00", "notation": null}
nlprog_det-setting-0080675
A meal costs $139.48. How much is a 20% tip? Leave $27.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "27.90", "printed": "27.90", "notation": null}
nlprog_det-setting-0080676
A quorum is 1/3 of the 49 members, rounded up. How many members make a quorum? Programmatically: ```python import math members = 49 quorum = math.ceil(members * 1 / 3) # 17 print(quorum) ``` (Out: 17) That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0080677
Sami earns a 4% commission on $26,834 of sales. What is the commission? Python, step by step: ```python sales = 26834 rate = 4 / 100 # 0.04 commission = sales * rate # 1073.3600000000001 print(f"{commission:.2f}") ``` Interpreter output — 1073.36 Sami earns $1,073.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1073.36", "printed": "1073.36", "notation": null}
nlprog_det-setting-0080678
Convert 5,308 GBP to USD at 1 GBP = 0.92 USD. As Python: ```python amount = 5308 rate = 0.92 converted = amount * rate # 4883.360000000001 print(f"{converted:.2f}") ``` Running this gives 4883.36. It converts to 4,883.36 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4883.36", "printed": "4883.36", "notation": null}
nlprog_det-setting-0080679
A library charges $0.10 per book per day late. What is the fine for 4 books that are 15 days late? Coded up: ```python per_day = 0.1 days_late = 15 books = 4 fine = per_day * days_late * books # 6.0 print(f"{fine:.2f}") ``` Execution result — 6.00 The fine is $6.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "6.00", "printed": "6.00", "notation": null}
nlprog_det-setting-0080680
15 lanyards cost $24 apiece. With 5% tax added, what is the total? Python, step by step: ```python quantity = 15 unit_price = 24 subtotal = quantity * unit_price # 360 total = subtotal * (1 + 5 / 100) # 378.0 print(f"{total:.2f}") ``` Execution prints 378.00. The invoice total is $378.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "378.00", "printed": "378.00", "notation": null}
nlprog_det-setting-0080681
Pack A has 12 items for $3.97. Pack B has 24 items for $24.88. Which has the lower price per item? Script: pack_a = 3.97 / 12 # 0.33083333333333337 pack_b = 24.88 / 24 # 1.0366666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) Program output — A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0080682
A customer buys 2 envelopes at $14 each, 4 pens at $14 each and pays with $100. How much change is due? In Python: ```python items = [(2, 14), (4, 14)] total = sum(q * p for q, p in items) # 84 paid = 100 change = paid - total # 16 print(change) ``` The run gives 16. $16 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0080683
Counting the first and last day, how many days are there from December 27, 2025 through January 20, 2026? Python does the arithmetic: ```python from datetime import date first = date(2025, 12, 27) # datetime.date(2025, 12, 27) last = date(2026, 1, 20) # datetime.date(2026, 1, 20) days = (last - first).days + 1 # 25...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0080684
<|start|><|user|> How many meters are in 58.4 kilometers?<|eot|> <|assistant|> km = 58.4 meters = km * 1000 # 58400.0 print(round(meters)) Output = 58400 That is 58,400 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 58.4 kilometers?" }, { "role": "assistant", "content": " km = 58.4\n meters = km * 1000 # 58400.0\n print(round(meters))\nOutput = 58400\n\nThat is 58,400 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "58400", "printed": "58400", "notation": null}
nlprog_det-setting-0080685
<|start|><|user|> Each storage box holds 50 files. How many boxes are needed for 52 files?<|eot|> <|assistant|> It takes 2 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 52 files?" }, { "role": "assistant", "content": "It takes 2 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0080686
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Convert 60.4 km to meters.<|eot|> <|assistant|> km = 60.4 meters = km * 1000 # 60400.0 print(round(meters)) That prints: 60400 That is 60,400 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Convert 60.4 km to meters." }, { "role": "assistant", "content": " km = 60.4\n meters = km * 1000 # 60400.0\n print(round(meters))\nThat prints: 60400\n\nThat is 60,400 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "60400", "printed": "60400", "notation": null}
nlprog_det-setting-0080687
A 30 lb package ships at $8 base plus $0.75/lb. What is the charge? Python code: ```python base = 8 per_pound = 0.75 weight = 30 cost = base + per_pound * weight # 30.5 print(f"{cost:.2f}") ``` The script prints 30.50, as expected. The charge is $30.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "30.50", "printed": "30.50", "notation": null}
nlprog_det-setting-0080688
6 claimants share a $18,000 settlement equally. What is each share? Let's compute it with Python. ```python settlement = 18000 parties = 6 share = settlement // parties # 3000 print(share) ``` What it prints — 3000 Each share is $3,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0080689
Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Computing it: ```python revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) ``` (Execution result: 2.4) The margin is 2.4%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0080690
Buying 3 markers at $12 each, 3 lanyards at $3 each, 1 calendars at $5 each, 4 tape rolls at $8 each, someone hands over $100. What change comes back? A few lines of Python do it: items = [(3, 12), (3, 3), (1, 5), (4, 8)] total = sum(q * p for q, p in items) # 82 paid = 100 change = paid - total # 18...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080691
12 copies of a 39-page packet are printed at $0.10 per page. What is the cost? Let the code do the arithmetic: ```python pages = 39 copies = 12 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 46.800000000000004 print(f"{cost:.2f}") ``` The run gives 46.80, as expected. The job costs $46.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "46.80", "printed": "46.80", "notation": null}
nlprog_det-setting-0080692
<|start|><|user|> A 4% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> 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": "The new rent is $936.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0080693
<|start|><|user|> How many meters are in 29.7 kilometers?<|eot|> <|assistant|> ```python km = 29.7 meters = km * 1000 # 29700.0 print(round(meters)) ``` Python prints: 29700 29,700 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 29.7 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 29.7\nmeters = km * 1000 # 29700.0\nprint(round(meters))\n```\nPython prints: 29700\n\n29,700 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "29700", "printed": "29700", "notation": null}
nlprog_det-setting-0080694
<|start|><|system|> Functions: {"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> With 30% off, what does a $250 printer cost?<...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0080695
Someone born March 24, 1985 turns how old by September 21, 2030? Give the age in whole years. Computing it: ```python from datetime import date born = date(1985, 3, 24) # datetime.date(1985, 3, 24) on = date(2030, 9, 21) # datetime.date(2030, 9, 21) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0080696
Notice was given on March 26, 2022. The notice period is 14 days. When does it run out? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2022, 3, 26) # datetime.date(2022, 3, 26) end = start + timedelta(days=14) # datetime.date(2022, 4, 9) print(end.isoformat()) ``` The pro...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-04-09", "printed": "2022-04-09", "notation": null}
nlprog_det-setting-0080698
12 boxes hold 25 cables each. After 20 are handed out, how many are left? The program: ```python boxes = 12 per_box = 25 given_away = 20 left = boxes * per_box - given_away # 280 print(left) ``` When run, it prints: 280 280 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0080699
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A client paid a $7,500 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 7500 hours = 7 rate = 150 left = retainer - hours * rate # 6450 print(left) The r...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 7500\n hour...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "6450", "printed": "6450", "notation": null}
nlprog_det-setting-0080700
How many days are there from May 5, 2025 to January 8, 2026? Computing it: ```python from datetime import date first = date(2025, 5, 5) second = date(2026, 1, 8) print((second - first).days) ``` The program outputs: 248 There are 248 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "248", "printed": "248", "notation": null}
nlprog_det-setting-0080701
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 49 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 216.0 pay = regular + overtime # 856.0 print(f"{pay:.2f}") ``` Executing it gives...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 49\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 216.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "856.00", "printed": "856.00", "notation": null}
nlprog_det-setting-0080702
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Walls total 366 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 366 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` This prints 2. 2 cans are needed.<|...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Walls total 366 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 366\ncoverage = 250\ncan...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0080703
A lawyer's fee is 35% of a $25,000 recovery. How large is the fee? Computation in Python: ```python recovery = 25000 rate = 35 / 100 # 0.35 fee = recovery * rate # 8750.0 print(f"{fee:.2f}") ``` # printed: 8750.00 The fee is $8,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0080704
Yoko was born on November 11, 1981. How old is Yoko on September 17, 2025? ```python from datetime import date born = date(1981, 11, 11) # datetime.date(1981, 11, 11) on = date(2025, 9, 17) # datetime.date(2025, 9, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 43 print(age) ``` It ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0080705
<|start|><|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` When run, it prints 600.00...
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 600...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0080706
<|start|><|user|> How long, in days, is it from May 6, 2026 until August 13, 2026?<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 5, 6) # datetime.date(2026, 5, 6) second = date(2026, 8, 13) # datetime.date(2026, 8, 13) print((second - first).days) ``` Printed result: 99 It is 99 days.<|...
chat
[ { "role": "user", "content": "How long, in days, is it from May 6, 2026 until August 13, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 5, 6) # datetime.date(2026, 5, 6)\nsecond = date(2026, 8, 13) # datetime.date(2026, 8, 13)\nprint((seco...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "99", "printed": "99", "notation": null}
nlprog_det-setting-0080707
A $6,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The program: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 900.0 payment = (principal + interest)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "191.67", "printed": "191.67", "notation": null}
nlprog_det-setting-0080708
If a 50-minute hearing begins at 4:00 PM, what time does it finish? Code: ```python start = 16 * 60 + 0 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Program output — 4:50 PM The hearing finishes at 4:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4:50 PM", "printed": "4:50 PM", "notation": null}
nlprog_det-setting-0080709
Cyrus buys 8 boxes of 12 staplers each and gives away 16 staplers. How many staplers are left? As Python: ```python boxes = 8 per_box = 12 given_away = 16 left = boxes * per_box - given_away # 80 print(left) ``` (Run result: 80) That leaves 80 staplers.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0080710
<|start|><|user|> Kaito lends $5,000 at 3% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 900.0 print(f"{interest:.2f}") ``` (Result: 900.00) The interest is $900.00.<|eot|> <|end...
chat
[ { "role": "user", "content": "Kaito lends $5,000 at 3% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 6\ninterest = principal * rate * years # 900.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0080711
<|start|><|user|> After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` Executed, it shows 5000.00. Each installment is $...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 5000.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0080712
<|start|><|system|> Tool definitions: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A $800 security deposit has deductions ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"run_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
[]
[]
218
{"gold": "605", "printed": "605", "notation": null}
nlprog_det-setting-0080713
Noor earns a 2% commission on $80,404 of sales. What is the commission? The program: ```python sales = 80404 rate = 2 / 100 # 0.02 commission = sales * rate # 1608.08 print(f"{commission:.2f}") ``` stdout: 1608.08 Noor earns $1,608.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1608.08", "printed": "1608.08", "notation": null}
nlprog_det-setting-0080714
Someone works 36 hours at $17.38 per hour. What are the earnings? In Python: ```python rate = 17.38 hours = 36 earnings = rate * hours print(f"{earnings:.2f}") ``` Running this gives 625.68. The pay is $625.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "625.68", "printed": "625.68", "notation": null}
nlprog_det-setting-0080715
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "business_days", "description": ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
450
{"gold": "2021-07-07", "printed": "2021-07-07", "notation": null}
nlprog_det-setting-0080716
A claim accrued on May 2, 2012. The limitations period is 6 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2012, 5, 2) # datetime.date(2012, 5, 2) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 5, 2) print(expires.iso...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2018-05-02", "printed": "2018-05-02", "notation": null}
nlprog_det-setting-0080717
A party has 21 days to respond to a motion served on April 3, 2020, with 3 days added because service was by mail. When is the response due? Here is a short program for it. ```python from datetime import date, timedelta served = date(2020, 4, 3) # datetime.date(2020, 4, 3) response_days = 21 mail_days = 3 due = serve...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2020-04-27", "printed": "2020-04-27", "notation": null}
nlprog_det-setting-0080718
Tariq lends $2,500 at 8% simple interest per year for 2 years. How much interest is earned? In code: ```python principal = 2500 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 400.0 print(f"{interest:.2f}") ``` This prints 400.00, as expected. The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0080719
A hearing is set for November 18, 2028. What day of the week is that? In Python: ```python from datetime import date hearing = date(2028, 11, 18) # datetime.date(2028, 11, 18) print(hearing.strftime("%A")) ``` The program prints: Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0080720
If a 40-minute shift begins at 1:40 PM, what time does it finish? As a program: ```python start = 13 * 60 + 40 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It prints 2:20 PM, as expected. It ends at 2:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2:20 PM", "printed": "2:20 PM", "notation": null}
nlprog_det-setting-0080721
With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal. Computation in Python: revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) It outputs 16.7. The margin is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0080722
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Meals are $64 p...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0080723
Walls total 870 sq ft and each can covers 250 sq ft. How many cans should be bought? Script: ```python import math area = 870 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` # result: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0080724
<|start|><|user|> A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 12000 rate = 35 / 100 # 0.35 fee = recovery * rate # 4200.0 print(f"{fee:.2f}") # execution result: 4200.00 The fee is $4,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 12000\n rate = 35 / 100 # 0.35\n fee = recovery * rate # 4200.0\n print(f\"{fee:.2f}\")\n# execution result: 4200.00\n\nThe fee is $4,...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0080725
2 friends split a $240 bill plus a 18% tip evenly. How much does each pay? We write it as a program: ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 141.6 print(f"{each:.2f}") ``` The script prints 141.60, as expected. Each person pays $141.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "141.60", "printed": "141.60", "notation": null}
nlprog_det-setting-0080726
What does $1,000 grow to in 3 years at 2% annual compounding? Programmatically: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") ``` Python prints 1061.21. The balance is $1,061.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0080727
<|start|><|user|> An attorney bills 7 hours at $250 per hour. What is the bill?<|eot|> <|assistant|> hours = 7 rate = 250 bill = hours * rate print(f"{bill:.2f}") On running, it outputs: 1750.00 The bill is $1,750.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 7 hours at $250 per hour. What is the bill?" }, { "role": "assistant", "content": " hours = 7\n rate = 250\n bill = hours * rate\n print(f\"{bill:.2f}\")\nOn running, it outputs: 1750.00\n\nThe bill is $1,750.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0080728
Counting the first and last day, how many days are there from July 14, 2021 through July 22, 2021? One way, in code: ```python from datetime import date first = date(2021, 7, 14) # datetime.date(2021, 7, 14) last = date(2021, 7, 22) # datetime.date(2021, 7, 22) days = (last - first).days + 1 # 9 print(days) ``` Out...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0080729
<|start|><|user|> A $150 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 20 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The script prints 45.00. Each person pays $45.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $150 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 20 / 100\npeople = 4\neach = bill * (1 + tip_rate) / people\nprint(f\"{each:.2f}\")\n```\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0080730
A 25 lb package ships at $8 base plus $2.00/lb. What is the charge? As Python: ```python base = 8 per_pound = 2.0 weight = 25 cost = base + per_pound * weight # 58.0 print(f"{cost:.2f}") ``` The program outputs 58.00. The charge is $58.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "58.00", "printed": "58.00", "notation": null}
nlprog_det-setting-0080731
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") ``` The code prints 29700.00. The lawyer's fee comes to $29,70...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 90000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 2970...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0080732
What simple interest does $12,000 earn at 2% a year over 5 years? Here's the code. ```python principal = 12000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` Executing it gives: 1200.00 The interest is $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0080733
A 10 lb package ships at $5 base plus $0.75/lb. What is the charge? In code: ```python base = 5 per_pound = 0.75 weight = 10 cost = base + per_pound * weight # 12.5 print(f"{cost:.2f}") ``` (Console output: 12.50) The charge is $12.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0080734
A 5% increase is applied to $1,100 monthly rent. What is the new amount? Computing it: rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") The interpreter prints 1155.00. The new rent is $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0080735
If a 6-year limitations period starts on June 8, 2023, when does it end? Here is a short program for it. ```python from datetime import date accrued = date(2023, 6, 8) # datetime.date(2023, 6, 8) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 6, 8) print(expires.isoformat()) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2029-06-08", "printed": "2029-06-08", "notation": null}
nlprog_det-setting-0080736
A $12,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment? Each installment is $1,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0080737
Counting the first and last day, how many days are there from February 23, 2021 through March 16, 2021? Script: from datetime import date first = date(2021, 2, 23) # datetime.date(2021, 2, 23) last = date(2021, 3, 16) # datetime.date(2021, 3, 16) days = (last - first).days + 1 # 22 print(days) (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0080739
Sami has 19 documents to file, and each filing costs $50. How much are the filing fees in total? Set it up in Python: fee = 50 filings = 19 total = fee * filings # 950 print(total) Result: 950 $950 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "950", "printed": "950", "notation": null}
nlprog_det-setting-0080740
<|start|><|user|> 2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 2 # 11250.0 print(f"{per_client:.2f}") ``` # result: 112...
chat
[ { "role": "user", "content": "2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_client = remaining /...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0080741
<|start|><|user|> Count 120 days forward from February 23, 2028. What date is that?<|eot|> <|assistant|> It ends on June 22, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 120 days forward from February 23, 2028. What date is that?" }, { "role": "assistant", "content": "It ends on June 22, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2028-06-22", "printed": "2028-06-22", "notation": null}
nlprog_det-setting-0080742
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 356 miles?<|eot|> <|assistant|> ```python miles = 356 rate = 0.62 reimbursement = miles * rate # 220.72 print(f"{reimbursement:.2f}") ``` Result: 220.72 Rania is owed $220.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 356 miles?" }, { "role": "assistant", "content": "```python\nmiles = 356\nrate = 0.62\nreimbursement = miles * rate # 220.72\nprint(f\"{reimbursement:.2f}\")\n```\nResult: 220.72\n\nRania is owed $220.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "220.72", "printed": "220.72", "notation": null}
nlprog_det-setting-0080743
A lawyer's fee is 33% of a $12,000 recovery. How large is the fee? The fee is $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0080744
A 200-mile drive at a steady 50 mph takes how many minutes? The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0080745
<|start|><|system|> Tool definitions: [{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Find the mean ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0080746
One can of paint covers 400 square feet. How many cans are needed for 812 square feet of wall? Python, step by step: ```python import math area = 812 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running it prints 3. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080747
A hearing is set for March 21, 1992. What day of the week is that? Here's the code. ```python from datetime import date hearing = date(1992, 3, 21) # datetime.date(1992, 3, 21) print(hearing.strftime("%A")) ``` Executing it gives: Saturday March 21, 1992 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0080748
How many units at $20 each (variable cost $12) cover $1,200 of fixed costs? Programmatically: ```python import math fixed = 1200 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` Result: 150 150 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0080749
What is a 22% tip on a $249.91 bill? One way, in code: ```python bill = 249.91 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 54.980199999999996 print(f"{tip:.2f}") ``` Interpreter output: 54.98 The tip is $54.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "54.98", "printed": "54.98", "notation": null}
nlprog_det-setting-0080750
<|start|><|user|> A $84 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 84 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 33.6 print(f"{each:.2f}") Output: 33.60 The share is $33.60 each.<|eot|...
chat
[ { "role": "user", "content": "A $84 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 84\n tip_rate = 20 / 100 # 0.2\n people = 3\n each = bill * (1 + tip_rate) / people # 33.6\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "33.60", "printed": "33.60", "notation": null}
nlprog_det-setting-0080751
<|start|><|user|> After a 40% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 2 # 21600.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "21600.00", "printed": "21600.00", "notation": null}
nlprog_det-setting-0080753
<|start|><|user|> A $96 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> Each person pays $55.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "Each person pays $55.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "55.20", "printed": "55.20", "notation": null}
nlprog_det-setting-0080754
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 13 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 13 rate = 250 left = retainer - hours * rate # 1750 print(left) ``` When run, it prints 1750, as expected. The remaining balance is...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 13 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 13\nrate = 250\nleft = retainer - hours * rate # 1750\nprint(left)\n```\nWhe...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0080755
A library charges $0.15 per book per day late. What is the fine for 2 books that are 27 days late? A Python solution: ```python per_day = 0.15 days_late = 27 books = 2 fine = per_day * days_late * books # 8.1 print(f"{fine:.2f}") ``` Output — 8.10 The fine is $8.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "8.10", "printed": "8.10", "notation": null}
nlprog_det-setting-0080756
33 batteries cost $8 apiece. With 10% tax added, what is the total? Here is the program. ```python quantity = 33 unit_price = 8 subtotal = quantity * unit_price # 264 total = subtotal * (1 + 10 / 100) # 290.40000000000003 print(f"{total:.2f}") ``` Python prints 290.40. The total with tax is $290.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "290.40", "printed": "290.40", "notation": null}
nlprog_det-setting-0080757
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> How many meters are in 84.6 kilometers?<|eot|> <|assistant|> ```python km = 84.6 meters = km * 1000 # 84600.0 print(round(meters)) ``` Python prints: 84600 That is 84,600 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "How many meters are in 84.6 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 84.6\nmeters = km * 1000 # 84600.0\nprint(round(meters))\n```\nPython prints: 84600\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "84600", "printed": "84600", "notation": null}
nlprog_det-setting-0080758
Monthly: $19. Annual: $192. What is saved per year by paying annually? A short script: ```python monthly = 19 yearly = 192 savings = monthly * 12 - yearly # 36 print(savings) ``` Python prints 36. $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0080759
A water bill is $12 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons? Python code: ```python base = 12 rate = 5.1 used = 20 free = 3 bill = base + rate * max(0, used - free) # 98.69999999999999 print(f"{bill:.2f}") ``` Output of the run — 98.70 $98.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "98.70", "printed": "98.70", "notation": null}
nlprog_det-setting-0080762
<|start|><|user|> 108 copies of a 32-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 32 copies = 108 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 276.48 print(f"{cost:.2f}") ``` stdout: 276.48 Printing costs $276.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "108 copies of a 32-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 32\ncopies = 108\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 276.48\nprint(f\"{cost:.2f}\")\n```\nstdout:\n2...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "276.48", "printed": "276.48", "notation": null}
nlprog_det-setting-0080763
Lena earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? Here is a short program for it. ```python rate = 18.5 hours = 54 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 388.5 pay = regular + overtime # 1128.5 print(f"{pay:.2f}") ``` (Out: 1128.50) Len...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1128.50", "printed": "1128.50", "notation": null}
nlprog_det-setting-0080764
A garage charges $2 an hour, never more than $15 a day. How much for 1 hours? Written as code: ```python rate = 2 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 2 print(cost) ``` It outputs 2. The charge is $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0080765
<|start|><|user|> A 680-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 680 days = 20 per_day = pages // days # 34 print(per_day) ``` When run, it prints 34, as expected. 34 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 680-page report must be reviewed in 20 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 680\ndays = 20\nper_day = pages // days # 34\nprint(per_day)\n```\nWhen run, it prints 34, as expected.\n\n34 pages a day....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0080767
<|start|><|user|> Convert 538 EUR to USD at 1 EUR = 1.35 USD.<|eot|> <|assistant|> ```python amount = 538 rate = 1.35 converted = amount * rate # 726.3000000000001 print(f"{converted:.2f}") ``` # printed: 726.30 That is 726.30 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 538 EUR to USD at 1 EUR = 1.35 USD." }, { "role": "assistant", "content": "```python\namount = 538\nrate = 1.35\nconverted = amount * rate # 726.3000000000001\nprint(f\"{converted:.2f}\")\n```\n# printed: 726.30\n\nThat is 726.30 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "726.30", "printed": "726.30", "notation": null}