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-0059151
A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments? A few lines of Python do it: ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` Output — 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0059152
830 files go into boxes of 40. How many boxes does that take? Let the code do the arithmetic: ```python import math files = 830 per_box = 40 boxes = math.ceil(files / per_box) # 21 print(boxes) ``` (stdout: 21) It takes 21 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0059153
<|start|><|user|> Express 61 hours in days and hours.<|eot|> <|assistant|> ```python hours = 61 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` What it prints: 2 days and 13 hours 61 hours is 2 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 61 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 61\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhat it prints: 2 days and 13 hours\n\n61 hours is 2 days and 13 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2 days and 13 hours", "printed": "2 days and 13 hours", "notation": null}
nlprog_det-setting-0059154
Split $525 between Emeka and Helga in the ratio 2 to 3. What is Emeka's share? The program: total = 525 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 210 print(share_a) (Output: 210) Emeka's share is $210.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0059156
<|start|><|user|> A car travels 454 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 227 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 454 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 227 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "227", "printed": "227", "notation": null}
nlprog_det-setting-0059157
A customer buys 6 ink cartridges at $20 each, 1 keyboards at $20 each, 2 cables at $8 each and pays with $200. How much change is due? items = [(6, 20), (1, 20), (2, 8)] total = sum(q * p for q, p in items) # 156 paid = 200 change = paid - total # 44 print(change) On running, it outputs 44. The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0059158
Starting from $12,000, the team spends $2,793, $1,635, $2,663. What remains? Program: ```python budget = 12000 expenses = [2793, 1635, 2663] left = budget - sum(expenses) # 4909 print(left) ``` That prints 4909. The remaining budget is $4,909.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "4909", "printed": "4909", "notation": null}
nlprog_det-setting-0059159
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Fixed costs are $4,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 800 print(units) `...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0059160
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A shift runs from 10:20 AM to 11:18 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 10 * 60 + 20 end = 11 * 60 + 18 print(end - start) ``` This prints: 58 It is 58 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A shift runs from 10:20 AM to 11:18 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 20\nend = 11 * 60 + 18\nprint(end - start)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0059161
Reza buys 11 boxes of 12 folders each and gives away 2 folders. How many folders are left? As Python: ```python boxes = 11 per_box = 12 given_away = 2 left = boxes * per_box - given_away # 130 print(left) ``` Console: 130 That leaves 130 folders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "130", "printed": "130", "notation": null}
nlprog_det-setting-0059162
<|start|><|system|> Give the answer first.<|eot|> <|user|> Papers were served by mail on January 11, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on January 28, 2023.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Papers were served by mail on January 11, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response i...
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "2023-01-28", "printed": "2023-01-28", "notation": null}
nlprog_det-setting-0059163
What is 30 degrees Celsius in Fahrenheit? In Python: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Execution result: 86 It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0059164
How many meters are in 60.5 kilometers? ```python km = 60.5 meters = km * 1000 # 60500.0 print(round(meters)) ``` (Run result: 60500) 60,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "60500", "printed": "60500", "notation": null}
nlprog_det-setting-0059165
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(r...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 24000\ncosts = 20000\nprofit ...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0059166
Buying 5 mugs at $11 each, 4 notebooks at $27 each, someone hands over $200. What change comes back? A Python solution: ```python items = [(5, 11), (4, 27)] total = sum(q * p for q, p in items) # 163 paid = 200 change = paid - total # 37 print(change) ``` stdout: 37 The change is $37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0059167
A recipe for 8 people uses 150 grams of pasta. How many grams are needed for 4 people? As Python: ```python grams = 150 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 75 print(scaled) ``` Output = 75 Use 75 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0059169
Parking is $5 per hour with a daily maximum of $15. What do 6 hours cost? The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059170
<|start|><|user|> A storeroom has 1512 hard drives. The office uses 25 a day. How many are left after 17 days?<|eot|> <|assistant|> ```python stock = 1512 per_day = 25 days = 17 left = stock - per_day * days # 1087 print(left) ``` Run it and it prints 1087. 1087 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1512 hard drives. The office uses 25 a day. How many are left after 17 days?" }, { "role": "assistant", "content": "```python\nstock = 1512\nper_day = 25\ndays = 17\nleft = stock - per_day * days # 1087\nprint(left)\n```\nRun it and it prints 1087.\...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1087", "printed": "1087", "notation": null}
nlprog_det-setting-0059171
<|start|><|user|> A 14 lb package ships at $10 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> base = 10 per_pound = 2.5 weight = 14 cost = base + per_pound * weight # 45.0 print(f"{cost:.2f}") Result — 45.00 Shipping costs $45.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 14 lb package ships at $10 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": " base = 10\n per_pound = 2.5\n weight = 14\n cost = base + per_pound * weight # 45.0\n print(f\"{cost:.2f}\")\nResult — 45.00\n\nShipping cost...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0059172
A trial runs from September 9, 2023 to September 28, 2023, counting both days. How many calendar days is that? Coded up: ```python from datetime import date first = date(2023, 9, 9) # datetime.date(2023, 9, 9) last = date(2023, 9, 28) # datetime.date(2023, 9, 28) days = (last - first).days + 1 # 20 print(days) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0059173
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year? $10,750.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "10750.00", "printed": "10750.00", "notation": null}
nlprog_det-setting-0059174
<|start|><|user|> Express 82 hours in days and hours.<|eot|> <|assistant|> ```python hours = 82 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result = 3 days and 10 hours That is 3 days and 10 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 82 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 82\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nResult = 3 days and 10 hours\n\nThat is 3 days and 10 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "3 days and 10 hours", "printed": "3 days and 10 hours", "notation": null}
nlprog_det-setting-0059175
To read 782 pages in 17 days, how many pages per day are needed? ```python pages = 782 days = 17 per_day = pages // days # 46 print(per_day) ``` Output of the run — 46 46 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0059176
<|start|><|user|> On which weekday does February 1, 2009 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2009, 2, 1) # datetime.date(2009, 2, 1) print(hearing.strftime("%A")) ``` The printout reads Sunday. February 1, 2009 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does February 1, 2009 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2009, 2, 1) # datetime.date(2009, 2, 1)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads Sunday.\n\nFebruary 1, 2009 is...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0059177
<|start|><|user|> Rosa drove 357 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 357 rate = 0.58 reimbursement = miles * rate # 207.05999999999997 print(f"{reimbursement:.2f}") ``` (Console output: 207.06) Rosa is owed $207.06.<|eot|> <|e...
chat
[ { "role": "user", "content": "Rosa drove 357 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 357\nrate = 0.58\nreimbursement = miles * rate # 207.05999999999997\nprint(f\"{reimbursement:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "207.06", "printed": "207.06", "notation": null}
nlprog_det-setting-0059178
The paralegal logged 7 hours at a rate of $300. How much is billed? Python, step by step: ```python hours = 7 rate = 300 bill = hours * rate # 2100 print(f"{bill:.2f}") ``` Run result: 2100.00 That comes to $2,100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2100.00", "printed": "2100.00", "notation": null}
nlprog_det-setting-0059179
At a 9% tax rate, what is the tax on $760.13? The Python version: ```python price = 760.13 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 68.4117 print(f"{tax:.2f}") ``` It outputs: 68.41 The tax is $68.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "68.41", "printed": "68.41", "notation": null}
nlprog_det-setting-0059180
<|start|><|user|> After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> grant = 48000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 12000.0 print(f"{each:.2f}") The program outputs: 12000.00 Each installme...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": " grant = 48000\n up_front = 0\n installments = 4\n each = (grant - up_front) / installments # 12000.0\n print(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0059181
How many days are there from February 6, 2019 to January 31, 2020? Let's compute it with Python. ```python from datetime import date first = date(2019, 2, 6) # datetime.date(2019, 2, 6) second = date(2020, 1, 31) # datetime.date(2020, 1, 31) print((second - first).days) ``` The script prints: 359 It is 359 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "359", "printed": "359", "notation": null}
nlprog_det-setting-0059182
Scale 240 g of oats from 8 servings to 2 servings. Python: ```python grams = 240 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 60 print(scaled) ``` Run output — 60 60 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0059183
4 walks at 150 calories each burn how many calories in total? As Python: ```python per_session = 150 sessions = 4 total = per_session * sessions # 600 print(total) ``` Run result — 600 That burns 600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0059184
A claim accrued on April 10, 2016. The limitations period is 5 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2016, 4, 10) # datetime.date(2016, 4, 10) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 4, 10) print(expir...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2021-04-10", "printed": "2021-04-10", "notation": null}
nlprog_det-setting-0059186
Divide 218 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? The Python version: ```python total = 218 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Interpreter output: 72 each, 2 left over 72 each, 2 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "72 each, 2 left over", "printed": "72 each, 2 left over", "notation": null}
nlprog_det-setting-0059187
Straight-line depreciation: cost $24,000, salvage $2,000, 6 years. How much per year? Python code: ```python cost = 24000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 3666.6666666666665 print(f"{per_year:.2f}") ``` When run, it prints: 3666.67 $3,666.67 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0059188
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> The meal allowance is $59 per day. What is it for 8 days?<|eot|> <|assistant|> ```python days = 8 meal_rate = 59 total = days * meal_rate # 472 print(total) ``` (Printed: 472) The allowance is $472.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "The meal allowance is $59 per day. What is it for 8 days?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 59\ntotal = days * meal_rate # 472\nprint(total)\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0059189
How many meters are in 26.1 kilometers? 26,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "26100", "printed": "26100", "notation": null}
nlprog_det-setting-0059190
Find the mean of these test scores: 50, 62 and 65. The Python version: ```python scores = [50, 62, 65] average = sum(scores) // len(scores) # 59 print(average) ``` # execution result: 59 The average score is 59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0059192
<|start|><|user|> Which is cheaper per unit: 10 for $4.53 (A) or 15 for $23.69 (B)?<|eot|> <|assistant|> ```python pack_a = 4.53 / 10 # 0.453 pack_b = 23.69 / 15 # 1.5793333333333335 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The program prints A, as expected. A has the lower unit price.<|eo...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $4.53 (A) or 15 for $23.69 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 4.53 / 10 # 0.453\npack_b = 23.69 / 15 # 1.5793333333333335\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0059193
<|start|><|user|> A car travels 577 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> It averages 1154 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 577 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "It averages 1154 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1154", "printed": "1154", "notation": null}
nlprog_det-setting-0059194
A library charges $0.50 per book per day late. What is the fine for 4 books that are 25 days late? Set it up in Python: ```python per_day = 0.5 days_late = 25 books = 4 fine = per_day * days_late * books # 50.0 print(f"{fine:.2f}") ``` stdout: 50.00 $50.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0059195
Omar buys 5 boxes of 12 pens each and gives away 19 pens. How many pens are left? A Python solution: boxes = 5 per_box = 12 given_away = 19 left = boxes * per_box - given_away # 41 print(left) The run gives: 41 That leaves 41 pens.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0059196
A 4-day trip pays $69 a day for meals and $110 a night for lodging (3 nights). What is the total allowance? Here is the program. ```python days = 4 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 606 print(total) ``` The run gives 606. That comes to $606.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "606", "printed": "606", "notation": null}
nlprog_det-setting-0059197
7 runs at 250 calories each burn how many calories in total? Code: ```python per_session = 250 sessions = 7 total = per_session * sessions print(total) ``` It outputs 1750. 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0059198
11 boxes hold 24 scissors each. After 7 are handed out, how many are left? 257 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "257", "printed": "257", "notation": null}
nlprog_det-setting-0059199
Ana buys 11 boxes of 24 mugs each and gives away 5 mugs. How many mugs are left? Program: ```python boxes = 11 per_box = 24 given_away = 5 left = boxes * per_box - given_away # 259 print(left) ``` stdout = 259 That leaves 259 mugs.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0059200
<|start|><|user|> To read 275 pages in 11 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 275 days = 11 per_day = pages // days # 25 print(per_day) ``` This prints: 25 That is 25 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 275 pages in 11 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 275\ndays = 11\nper_day = pages // days # 25\nprint(per_day)\n```\nThis prints: 25\n\nThat is 25 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0059201
A library charges $0.50 per book per day late. What is the fine for 4 books that are 25 days late? The program: ```python per_day = 0.5 days_late = 25 books = 4 fine = per_day * days_late * books # 50.0 print(f"{fine:.2f}") ``` On running, it outputs: 50.00 $50.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0059202
An office budget of $12,000 has expenses of $3,355, $2,160. How much of the budget is left? The computation: ```python budget = 12000 expenses = [3355, 2160] left = budget - sum(expenses) # 6485 print(left) ``` The interpreter prints 6485. The remaining budget is $6,485.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6485", "printed": "6485", "notation": null}
nlprog_det-setting-0059203
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Equal monthly pay...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0059204
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal. Python does the arithmetic: ```python revenue = 4500 costs = 4000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Console output — 11.1 Profit is 11.1% ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0059205
<|start|><|user|> How long, in days, is it from December 7, 2022 until December 17, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 12, 7) # datetime.date(2022, 12, 7) second = date(2023, 12, 17) # datetime.date(2023, 12, 17) print((second - first).days) ``` The program outputs: 375 ...
chat
[ { "role": "user", "content": "How long, in days, is it from December 7, 2022 until December 17, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 12, 7) # datetime.date(2022, 12, 7)\nsecond = date(2023, 12, 17) # datetime.date(2023, 12, 17)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0059206
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> How many meters are in 17.4 kilometers?<|eot|> <|assistant|> ```python km = 17.4 meters = km * 1000 # 17400.0 print(round(meters)) ``` stdout: 17400 17,400 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "How many meters are in 17.4 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 17.4\nmeters = km * 1000 # 17400.0\nprint(round(meters))\n```\nstdout: 17400\n\n17...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "17400", "printed": "17400", "notation": null}
nlprog_det-setting-0059207
<|start|><|user|> A party has 21 days to respond to a motion served on April 2, 2018, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2018, 4, 2) response_days = 21 mail_days = 3 due = served + timedelta(days=resp...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on April 2, 2018, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2018, 4, 2)\nresponse_d...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2018-04-26", "printed": "2018-04-26", "notation": null}
nlprog_det-setting-0059208
At an exchange rate of 1.12 USD per GBP, how many USD is 1,865 GBP? Here is a short program for it. ```python amount = 1865 rate = 1.12 converted = amount * rate # 2088.8 print(f"{converted:.2f}") ``` # printed result: 2088.80 It converts to 2,088.80 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2088.80", "printed": "2088.80", "notation": null}
nlprog_det-setting-0059209
Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` Printed — 16.7 The margin is 16.7%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0059211
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
263
{"gold": "1548.39", "printed": "1548.39", "notation": null}
nlprog_det-setting-0059212
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A 24-month warranty starts on February 24, 2025. On what date does it end?<|eot|> <|assistant|> The warranty ends on February 24, 2027.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A 24-month warranty starts on February 24, 2025. On what date does it end?" }, { "role": "assistant", "content": "The warranty ends on February 24, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2027-02-24", "printed": "2027-02-24", "notation": null}
nlprog_det-setting-0059213
<|start|><|user|> Filing fees are $50 per document. What do 3 filings cost?<|eot|> <|assistant|> fee = 50 filings = 3 total = fee * filings # 150 print(total) (Out: 150) The filings cost $150 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $50 per document. What do 3 filings cost?" }, { "role": "assistant", "content": " fee = 50\n filings = 3\n total = fee * filings # 150\n print(total)\n(Out: 150)\n\nThe filings cost $150 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0059214
<|start|><|user|> How many whole days and leftover hours are in 376 hours?<|eot|> <|assistant|> ```python hours = 376 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Program output: 15 days and 16 hours) That is 15 days and 16 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 376 hours?" }, { "role": "assistant", "content": "```python\nhours = 376\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Program output: 15 days and 16 hours)\n\nThat is 15 days and 16 ho...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "15 days and 16 hours", "printed": "15 days and 16 hours", "notation": null}
nlprog_det-setting-0059215
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 12 months. How large is a payment? A Python solution: ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 810.0 print(f"{paymen...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "810.00", "printed": "810.00", "notation": null}
nlprog_det-setting-0059217
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 56-page copy cost?<|eot|> <|assistant|> ```python pages = 56 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") `...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 56-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 56\nbase = 5\nper_page = 0.5\nf...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0059218
<|start|><|user|> 2 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 36000 parties = 2 share = settlement // parties print(share) ``` # result: 18000 Each share is $18,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 2\nshare = settlement // parties\nprint(share)\n```\n# result: 18000\n\nEach share is $18,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0059219
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment? Translated to Python: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 280.0 print(f"{pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0059220
<|start|><|user|> Count the days between February 8, 2022 and February 17, 2022.<|eot|> <|assistant|> from datetime import date first = date(2022, 2, 8) # datetime.date(2022, 2, 8) second = date(2022, 2, 17) # datetime.date(2022, 2, 17) print((second - first).days) (Run result: 9) There are 9 days be...
chat
[ { "role": "user", "content": "Count the days between February 8, 2022 and February 17, 2022." }, { "role": "assistant", "content": " from datetime import date\n first = date(2022, 2, 8) # datetime.date(2022, 2, 8)\n second = date(2022, 2, 17) # datetime.date(2022, 2, 17)\n print((s...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0059221
<|start|><|user|> A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> $2,250.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": "$2,250.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0059222
At 1% a month (simple), what interest builds on $4,000 over 5 months? A Python solution: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` Output: 200.00 $200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0059223
Under a 30% contingency agreement, what fee is owed on a $25,000 award? Script: ```python recovery = 25000 rate = 30 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` # stdout: 7500.00 The lawyer's fee comes to $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0059224
<|start|><|user|> 11 boxes hold 25 flash drives each. After 1 are handed out, how many are left?<|eot|> <|assistant|> That leaves 274 flash drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 25 flash drives each. After 1 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 274 flash drives." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "274", "printed": "274", "notation": null}
nlprog_det-setting-0059225
The paralegal logged 2.5 hours at a rate of $225. How much is billed? Here is a short program for it. ```python hours = 2.5 rate = 225 bill = hours * rate print(f"{bill:.2f}") ``` Printed = 562.50 The bill is $562.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0059226
<|start|><|system|> Functions: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "eval_python", "description": "Python sandbox for calculation...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"name\":...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "15.23", "printed": "15.23", "notation": null}
nlprog_det-setting-0059227
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0059229
8 boxes hold 25 markers each. After 19 are handed out, how many are left? Let's compute it with Python. ```python boxes = 8 per_box = 25 given_away = 19 left = boxes * per_box - given_away # 181 print(left) ``` Out: 181 181 markers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "181", "printed": "181", "notation": null}
nlprog_det-setting-0059230
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 47 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 262.5 pay = regular + o...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 47\nregula...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "1262.50", "printed": "1262.50", "notation": null}
nlprog_det-setting-0059231
<|start|><|system|> Tools you may use: [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> At $0.67 per mi...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "14.07", "printed": "14.07", "notation": null}
nlprog_det-setting-0059232
Pack A has 6 items for $11.73. Pack B has 24 items for $21.45. Which has the lower price per item? Python version: ```python pack_a = 11.73 / 6 # 1.955 pack_b = 21.45 / 24 # 0.8937499999999999 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` That prints: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0059233
Convert 3,104 USD to EUR at 1 USD = 1.12 EUR. Python: amount = 3104 rate = 1.12 converted = amount * rate # 3476.4800000000005 print(f"{converted:.2f}") Executing it gives 3476.48, as expected. That is 3,476.48 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3476.48", "printed": "3476.48", "notation": null}
nlprog_det-setting-0059234
Express 364 hours in days and hours. ```python hours = 364 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` stdout — 15 days and 4 hours 364 hours is 15 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "15 days and 4 hours", "printed": "15 days and 4 hours", "notation": null}
nlprog_det-setting-0059235
A storeroom has 1824 paper reams. The office uses 18 a day. How many are left after 10 days? A few lines of Python do it: ```python stock = 1824 per_day = 18 days = 10 left = stock - per_day * days # 1644 print(left) ``` The program prints: 1644 1644 paper reams are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1644", "printed": "1644", "notation": null}
nlprog_det-setting-0059236
Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year? ```python cost = 18000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Execution prints 2000.00. Depreciation is $2,000.00 per year...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0059237
Find the mean of these test scores: 87, 74, 71 and 68. Here is a short program for it. ```python scores = [87, 74, 71, 68] average = sum(scores) // len(scores) # 75 print(average) ``` That prints: 75 The mean is 75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0059238
The statute was enacted in 2017. How many years had passed by 2041? That is 24 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059239
6 boxes hold 12 badges each. After 18 are handed out, how many are left? The program: ```python boxes = 6 per_box = 12 given_away = 18 left = boxes * per_box - given_away print(left) ``` Executing it gives 54. 54 badges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0059240
The bridge was finished in 2005. How many years had passed by 2011? ```python start_year = 2005 end_year = 2011 print(end_year - start_year) ``` What it prints: 6 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0059241
Someone works 24 hours at $23.96 per hour. What are the earnings? The Python version: ```python rate = 23.96 hours = 24 earnings = rate * hours # 575.04 print(f"{earnings:.2f}") ``` (stdout: 575.04) That earns $575.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "575.04", "printed": "575.04", "notation": null}
nlprog_det-setting-0059242
<|start|><|user|> 2 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 2 share = settlement // parties # 600 print(share) ``` Running it prints 600, as expected. Each share is $600.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 2\nshare = settlement // parties # 600\nprint(share)\n```\nRunning it prints 600, as expected.\n\nEach share is $600." ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0059243
<|start|><|user|> A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 6 total = monthly_rent * months # 5100 print(total) ``` When run, it prints: 5100 The rent over the term is $5,100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 6\ntotal = monthly_rent * months # 5100\nprint(total)\n```\nWhen run, it prints: 5100\n\nThe rent ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0059244
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> What average speed covers 512 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 512 hours = 2 speed = distance / hours # 256.0 print(round(speed)) ``` stdout: 256 It averages 256 miles per hour.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What average speed covers 512 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 512\nhours = 2\nspeed = distance / hours # 256.0\nprint(round(speed))\n```\nstd...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0059245
<|start|><|user|> A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> The change is -10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "The change is -10%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0059246
<|start|><|user|> Copies cost $15 plus $0.25 for each page beyond 20. How much for 47 pages?<|eot|> <|assistant|> ```python pages = 47 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 21.75 print(f"{cost:.2f}") ``` Run result: 21.75 The total is $21.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 20. How much for 47 pages?" }, { "role": "assistant", "content": "```python\npages = 47\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 21.75\nprint(f\"{cost:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "21.75", "printed": "21.75", "notation": null}
nlprog_det-setting-0059247
Prorate $1,200 of monthly rent for 25 days of a 31-day month. As a program: ```python rent = 1200 days_in_month = 31 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 967.741935483871 print(f"{prorated:.2f}") ``` On running, it outputs 967.74. The tenant owes $967.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "967.74", "printed": "967.74", "notation": null}
nlprog_det-setting-0059248
Each of Femi's runs burns 150 calories. How many calories over 6 runs? Python code: ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` Result — 900 That burns 900 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0059249
<|start|><|user|> 16 copies of a 25-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 25 copies = 16 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 48.0 print(f"{cost:.2f}") ``` Output: 48.00 The job costs $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "16 copies of a 25-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 25\ncopies = 16\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 48.0\nprint(f\"{cost:.2f}\")\n```\nOutput:\n48.00...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0059250
<|start|><|user|> Counting only Monday through Friday, how many business days are there after July 6, 2021 through July 27, 2021?<|eot|> <|assistant|> 15 weekdays.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after July 6, 2021 through July 27, 2021?" }, { "role": "assistant", "content": "15 weekdays." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0059251
3 friends split a $210 bill plus a 20% tip evenly. How much does each pay? ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 84.0 print(f"{each:.2f}") ``` The run gives 84.00, as expected. The share is $84.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0059252
A penalty of $250 a day accrues, capped at $1,000. What is owed after 49 days? Programmatically: ```python per_day = 250 days = 49 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Executing it gives: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0059253
<|start|><|system|> Tools you may use: [{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Fines run at $25 per day up to a...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0059254
A storeroom has 709 clipboards. The office uses 28 a day. How many are left after 5 days? We can compute it in Python. ```python stock = 709 per_day = 28 days = 5 left = stock - per_day * days # 569 print(left) ``` (Program output: 569) 569 clipboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "569", "printed": "569", "notation": null}
nlprog_det-setting-0059255
Starting from $25,000, the team spends $549, $1,868, $3,615. What remains? Set it up in Python: ```python budget = 25000 expenses = [549, 1868, 3615] left = budget - sum(expenses) # 18968 print(left) ``` Executing it gives 18968. The remaining budget is $18,968.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "18968", "printed": "18968", "notation": null}
nlprog_det-setting-0059256
$1,000 is invested at 2% compounded yearly. What is it worth after 5 years? Written as code: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 1104.0808032 print(f"{value:.2f}") ``` # run result: 1104.08 The balance is $1,104.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0059257
Monthly rent is $1,500. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent? Here's the code. ```python rent = 1500 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1050.0 print(f"{prorated:.2f}") ``` Result — 1050.00 The prorated rent is $1,050.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1050.00", "printed": "1050.00", "notation": null}