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-0078281
Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even? Computation in Python: ```python import math fixed = 2500 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) print(units) ``` (Output: 500) Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0078282
<|start|><|user|> Parking is $3 per hour with a daily maximum of $24. What do 2 hours cost?<|eot|> <|assistant|> The charge is $6.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $24. What do 2 hours cost?" }, { "role": "assistant", "content": "The charge is $6." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078283
7 paper reams cost $12 apiece. With 5% tax added, what is the total? Python does the arithmetic: ```python quantity = 7 unit_price = 12 subtotal = quantity * unit_price # 84 total = subtotal * (1 + 5 / 100) # 88.2 print(f"{total:.2f}") ``` (Program output: 88.20) The total with tax is $88.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "88.20", "printed": "88.20", "notation": null}
nlprog_det-setting-0078284
Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment? Each payment is $76.67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0078285
Printing costs 12 cents a page. What does it cost to print 57 copies of a 52-page handout? Set it up in Python: ```python pages = 52 copies = 57 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 355.68 print(f"{cost:.2f}") ``` (Printed: 355.68) The job costs $355.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "355.68", "printed": "355.68", "notation": null}
nlprog_det-setting-0078286
28 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? We can compute it in Python. ```python total = 28 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # run result: 5 each, 3 left over 5 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5 each, 3 left over", "printed": "5 each, 3 left over", "notation": null}
nlprog_det-setting-0078287
<|start|><|user|> A storeroom has 716 cables. The office uses 7 a day. How many are left after 5 days?<|eot|> <|assistant|> ```python stock = 716 per_day = 7 days = 5 left = stock - per_day * days print(left) ``` Executing it gives 681, as expected. 681 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 716 cables. The office uses 7 a day. How many are left after 5 days?" }, { "role": "assistant", "content": "```python\nstock = 716\nper_day = 7\ndays = 5\nleft = stock - per_day * days\nprint(left)\n```\nExecuting it gives 681, as expected.\n\n681 re...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "681", "printed": "681", "notation": null}
nlprog_det-setting-0078288
<|start|><|user|> Convert 4 h 27 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 27 total_minutes = hours * 60 + minutes # 267 print(total_minutes) ``` Out: 267 That is 267 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 27 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 27\ntotal_minutes = hours * 60 + minutes # 267\nprint(total_minutes)\n```\nOut: 267\n\nThat is 267 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "267", "printed": "267", "notation": null}
nlprog_det-setting-0078289
A customer buys 6 tape rolls at $18 each, 2 ink cartridges at $17 each and pays with $150. How much change is due? We can compute it in Python. ```python items = [(6, 18), (2, 17)] total = sum(q * p for q, p in items) # 142 paid = 150 change = paid - total # 8 print(change) ``` It outputs 8. The change is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0078290
Sami buys 9 boxes of 8 notebooks each and gives away 11 notebooks. How many notebooks are left? That leaves 61 notebooks.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0078291
How many 2-foot square tiles cover a 12 ft by 4 ft floor (round up)? Python version: ```python import math length = 12 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 12 print(tiles) ``` The interpreter prints: 12 It takes 12 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078292
Someone born July 6, 1960 turns how old by June 7, 2021? Give the age in whole years. Script: ```python from datetime import date born = date(1960, 7, 6) on = date(2021, 6, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` # program output: 60 Leon is 60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0078293
<|start|><|user|> Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 44 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 96.0 pay = regular + overtime # 736.0 print(f"{pay:.2f}") ``` Run output — 7...
chat
[ { "role": "user", "content": "Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 44\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 96.0\npay = regular...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "736.00", "printed": "736.00", "notation": null}
nlprog_det-setting-0078294
<|start|><|user|> A customer buys 2 lanyards at $25 each, 2 clipboards at $16 each, 6 pens at $16 each, 5 rulers at $16 each and pays with $300. How much change is due?<|eot|> <|assistant|> $42 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 2 lanyards at $25 each, 2 clipboards at $16 each, 6 pens at $16 each, 5 rulers at $16 each and pays with $300. How much change is due?" }, { "role": "assistant", "content": "$42 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0078295
Attendance was 77 out of 80. Express it as a percent. We write it as a program: ```python present = 77 total = 80 percent = present / total * 100 # 96.25 print(round(percent, 1)) ``` Printed — 96.2 Attendance was 96.2%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "96.2", "printed": "96.2", "notation": null}
nlprog_det-setting-0078296
Parking is $3 per hour with a daily maximum of $18. What do 4 hours cost? A Python solution: ```python rate = 3 hours = 4 daily_max = 18 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Run result — 12 Parking costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078297
<|start|><|user|> Notice was given on October 16, 2021. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> That date is January 14, 2022.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Notice was given on October 16, 2021. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "That date is January 14, 2022." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2022-01-14", "printed": "2022-01-14", "notation": null}
nlprog_det-setting-0078298
A garage charges $2 an hour, never more than $18 a day. How much for 9 hours? Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078299
<|start|><|user|> With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) ``` stdout — 4.8 The margin...
chat
[ { "role": "user", "content": "With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 21000\ncosts = 20000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 4.7619047619...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0078301
<|start|><|user|> Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 2...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0078302
What is 25 degrees Celsius in Fahrenheit? A Python solution: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` The program prints: 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0078303
<|start|><|system|> Be concise.<|eot|> <|user|> What does $10,000 grow to in 2 years at 4% annual compounding?<|eot|> <|assistant|> It is worth $10,816.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "What does $10,000 grow to in 2 years at 4% annual compounding?" }, { "role": "assistant", "content": "It is worth $10,816.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "10816.00", "printed": "10816.00", "notation": null}
nlprog_det-setting-0078304
At $0.62 per mile, what is the reimbursement for 526 miles? Here is the program. ```python miles = 526 rate = 0.62 reimbursement = miles * rate # 326.12 print(f"{reimbursement:.2f}") ``` The run gives 326.12. The reimbursement is $326.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "326.12", "printed": "326.12", "notation": null}
nlprog_det-setting-0078305
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0078306
A 24-month warranty starts on April 28, 2025. On what date does it end? In code: ```python from datetime import date start = date(2025, 4, 28) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Result — 2027-04-28 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2027-04-28", "printed": "2027-04-28", "notation": null}
nlprog_det-setting-0078307
Ada and Tomas share $1,876 in the ratio 1:3. How much does Ada get? Python: ```python total = 1876 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 469 print(share_a) ``` (Printed: 469) Ada gets $469.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "469", "printed": "469", "notation": null}
nlprog_det-setting-0078308
From 2005 to 2027, how many years is that? One way, in code: ```python start_year = 2005 end_year = 2027 print(end_year - start_year) ``` When run, it prints: 22 That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0078309
A car travels 425 miles in 5 hours. What is its average speed in miles per hour? Python code: ```python distance = 425 hours = 5 speed = distance / hours # 85.0 print(round(speed)) ``` Python prints: 85 It averages 85 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0078310
With 15% off, what does a $180 bicycle helmet cost? A few lines of Python do it: ```python price = 180 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 153.0 print(f"{sale_price:.2f}") ``` (Execution result: 153.00) The sale price is $153.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "153.00", "printed": "153.00", "notation": null}
nlprog_det-setting-0078311
How many 1-foot square tiles cover a 13 ft by 7 ft floor (round up)? Program: ```python import math length = 13 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 91 print(tiles) ``` That prints 91. 91 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "91", "printed": "91", "notation": null}
nlprog_det-setting-0078313
After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` # printed result: 2000.00 Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0078314
<|start|><|user|> A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 22 thousand gallons?<|eot|> <|assistant|> base = 12 rate = 4.2 used = 22 free = 0 bill = base + rate * max(0, used - free) # 104.4 print(f"{bill:.2f}") Printed: 104.40 $104.4...
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 22 thousand gallons?" }, { "role": "assistant", "content": " base = 12\n rate = 4.2\n used = 22\n free = 0\n bill = base + rate * max(0, used - free)...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "104.40", "printed": "104.40", "notation": null}
nlprog_det-setting-0078315
7 bike rides at 400 calories each burn how many calories in total? Script: ```python per_session = 400 sessions = 7 total = per_session * sessions # 2800 print(total) ``` # execution result: 2800 That burns 2800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0078316
How many meters are in 60.3 kilometers? Python code: ```python km = 60.3 meters = km * 1000 # 60300.0 print(round(meters)) ``` Run result — 60300 That is 60,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "60300", "printed": "60300", "notation": null}
nlprog_det-setting-0078317
At $16.04 an hour, what does 32 hours of work pay? ```python rate = 16.04 hours = 32 earnings = rate * hours # 513.28 print(f"{earnings:.2f}") ``` (Output: 513.28) The pay is $513.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "513.28", "printed": "513.28", "notation": null}
nlprog_det-setting-0078318
<|start|><|user|> How many whole days and leftover hours are in 232 hours?<|eot|> <|assistant|> ```python hours = 232 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Program output — 9 days and 16 hours 232 hours is 9 days and 16 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 232 hours?" }, { "role": "assistant", "content": "```python\nhours = 232\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nProgram output — 9 days and 16 hours\n\n232 hours is 9 days and 16 ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "9 days and 16 hours", "printed": "9 days and 16 hours", "notation": null}
nlprog_det-setting-0078319
<|start|><|user|> Someone works 36 hours at $26.78 per hour. What are the earnings?<|eot|> <|assistant|> rate = 26.78 hours = 36 earnings = rate * hours # 964.08 print(f"{earnings:.2f}") It prints 964.08. That earns $964.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $26.78 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 26.78\n hours = 36\n earnings = rate * hours # 964.08\n print(f\"{earnings:.2f}\")\nIt prints 964.08.\n\nThat earns $964.08." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "964.08", "printed": "964.08", "notation": null}
nlprog_det-setting-0078320
A pack of 5 file boxes sells for $10. What does each cost? ```python total = 10 count = 5 per_item = total // count # 2 print(per_item) ``` (Execution result: 2) Each one costs $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0078321
A 60-day notice period begins on June 7, 2024. On what date does it end? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2024, 6, 7) # datetime.date(2024, 6, 7) end = start + timedelta(days=60) # datetime.date(2024, 8, 6) print(end.isoformat()) ``` On running, it outputs: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2024-08-06", "printed": "2024-08-06", "notation": null}
nlprog_det-setting-0078323
Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons? As a program: ```python base = 15 rate = 3.5 used = 12 free = 0 bill = base + rate * max(0, used - free) # 57.0 print(f"{bill:.2f}") ``` That prints 57.00. The bill is $57.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0078324
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A penalty of $250 a day accrues, capped at $2,500. What is owed after 54 days?<|eot|> <|assistant|> per_day = 250 days = 54 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) The script prints 2500. The fine is $2,...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 54 days?" }, { "role": "assistant", "content": " per_day = 250\n days = 54\n cap = 2500\n fine = mi...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0078325
<|start|><|system|> Tools (call with JSON): {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "search_cases", "description": "Search...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
359
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0078326
A party has 28 days to respond to a motion served on October 24, 2022, with 3 days added because service was by mail. When is the response due? Translated to Python: ```python from datetime import date, timedelta served = date(2022, 10, 24) # datetime.date(2022, 10, 24) response_days = 28 mail_days = 3 due = served +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
182
{"gold": "2022-11-24", "printed": "2022-11-24", "notation": null}
nlprog_det-setting-0078327
Straight-line depreciation: cost $30,000, salvage $2,000, 3 years. How much per year? A few lines of Python do it: ```python cost = 30000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 9333.333333333334 print(f"{per_year:.2f}") ``` The program outputs: 9333.33 Depreciation is $9,333.33 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0078328
<|start|><|user|> Divide 134 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 134 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Output: 19 each, 1 left over) 19 ...
chat
[ { "role": "user", "content": "Divide 134 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 134\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "19 each, 1 left over", "printed": "19 each, 1 left over", "notation": null}
nlprog_det-setting-0078329
A 6-day trip pays $69 a day for meals and $175 a night for lodging (5 nights). What is the total allowance? In code: ```python days = 6 meal_rate = 69 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` What it prints — 1289 The allowance is $1,289.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1289", "printed": "1289", "notation": null}
nlprog_det-setting-0078330
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A trial runs f...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0078331
How many of 9 votes make 60% (round up)? ```python import math voters = 9 needed = math.ceil(voters * 60 / 100) # 6 print(needed) ``` The program prints 6. At least 6 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078332
A $240 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share? Let's compute it with Python. ```python bill = 240 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 46.0 print(f"{each:.2f}") ``` Execution prints 46.00. Each person pays $46.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "46.00", "printed": "46.00", "notation": null}
nlprog_det-setting-0078333
A count moves from 400 to 340. By what percent did it change (use a minus sign for a drop)? Let's compute it with Python. old = 400 new = 340 change = (new - old) / old * 100 # -15.0 print(round(change)) # stdout: -15 The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0078334
<|start|><|user|> Someone works 32 hours at $22.34 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 22.34 hours = 32 earnings = rate * hours print(f"{earnings:.2f}") ``` It prints 714.88. The pay is $714.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $22.34 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 22.34\nhours = 32\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nIt prints 714.88.\n\nThe pay is $714.88." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "714.88", "printed": "714.88", "notation": null}
nlprog_det-setting-0078335
Counting the first and last day, how many days are there from December 1, 2019 through December 26, 2019? Python: ```python from datetime import date first = date(2019, 12, 1) # datetime.date(2019, 12, 1) last = date(2019, 12, 26) # datetime.date(2019, 12, 26) days = (last - first).days + 1 # 26 print(days) ``` std...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0078336
$5,000 is invested at 3% compounded yearly. What is it worth after 5 years? Here is the program. ```python principal = 5000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 5796.3703715 print(f"{value:.2f}") ``` Console: 5796.37 It is worth $5,796.37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "5796.37", "printed": "5796.37", "notation": null}
nlprog_det-setting-0078337
Meals are $79 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights? The allowance is $1,857.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1857", "printed": "1857", "notation": null}
nlprog_det-setting-0078338
<|start|><|user|> A seminar starts at 3:00 PM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> The seminar finishes at 3:50 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A seminar starts at 3:00 PM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "The seminar finishes at 3:50 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "3:50 PM", "printed": "3:50 PM", "notation": null}
nlprog_det-setting-0078339
<|start|><|user|> How many weekdays (Monday to Friday) fall after November 21, 2024 up to and including December 4, 2024?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2024, 11, 21) end = date(2024, 12, 4) count = 0 for k in range(1, (end - start).days + 1): if (star...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after November 21, 2024 up to and including December 4, 2024?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2024, 11, 21)\n end = date(2024, 12, 4)\n count = 0\n f...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0078340
A 18-month warranty starts on June 13, 2026. On what date does it end? Code: ```python from datetime import date start = date(2026, 6, 13) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # program output: 2027-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2027-12-13", "printed": "2027-12-13", "notation": null}
nlprog_det-setting-0078342
On which weekday does April 13, 2009 fall? Let the code do the arithmetic: ```python from datetime import date hearing = date(2009, 4, 13) print(hearing.strftime("%A")) ``` Out — Monday April 13, 2009 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0078343
<|start|><|user|> How many days are there from April 3, 2023 to May 30, 2023?<|eot|> <|assistant|> It is 57 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from April 3, 2023 to May 30, 2023?" }, { "role": "assistant", "content": "It is 57 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0078344
A 80-mile drive at a steady 40 mph takes how many minutes? Script: ```python distance = 80 speed = 40 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` (Execution result: 120) The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0078345
<|start|><|user|> Femi's scores were 88, 58 and 100. What is the average score?<|eot|> <|assistant|> ```python scores = [88, 58, 100] average = sum(scores) // len(scores) # 82 print(average) ``` (Execution result: 82) The mean is 82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Femi's scores were 88, 58 and 100. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [88, 58, 100]\naverage = sum(scores) // len(scores) # 82\nprint(average)\n```\n(Execution result: 82)\n\nThe mean is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0078346
<|start|><|user|> Nilufar lends $1,000 at 8% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 160.0 print(f"{interest:.2f}") ``` Execution result: 160.00 It earns $160.00.<|eot|> <|...
chat
[ { "role": "user", "content": "Nilufar lends $1,000 at 8% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 8 / 100 # 0.08\nyears = 2\ninterest = principal * rate * years # 160.0\nprint(f\"{interest:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0078347
Equal monthly payments repay $2,400 plus 5% simple yearly interest over 12 months. How large is a payment? One way, in code: ```python principal = 2400 annual_rate = 5 / 100 months = 12 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}") ``` On running, it...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0078348
How many minutes pass from 7:46 AM to 2:18 PM on the same day? Coded up: ```python start = 7 * 60 + 46 # 466 end = 14 * 60 + 18 # 858 print(end - start) ``` This prints 392, as expected. It is 392 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0078349
At 40 miles per hour, how many minutes does a 220-mile trip take? Python, step by step: ```python distance = 220 speed = 40 minutes = distance / speed * 60 # 330.0 print(round(minutes)) ``` The script prints: 330 330 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0078350
<|start|><|user|> 10.5 hours of work at $150 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 10.5 rate = 150 bill = hours * rate # 1575.0 print(f"{bill:.2f}") ``` Running this gives: 1575.00 That comes to $1,575.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "10.5 hours of work at $150 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 10.5\nrate = 150\nbill = hours * rate # 1575.0\nprint(f\"{bill:.2f}\")\n```\nRunning this gives: 1575.00\n\nThat comes to $1,575.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0078351
At $21.97 an hour, what does 20 hours of work pay? One way, in code: ```python rate = 21.97 hours = 20 earnings = rate * hours # 439.4 print(f"{earnings:.2f}") ``` stdout — 439.40 The pay is $439.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "439.40", "printed": "439.40", "notation": null}
nlprog_det-setting-0078352
A 36 lb package ships at $5 base plus $1.50/lb. What is the charge? Python: ```python base = 5 per_pound = 1.5 weight = 36 cost = base + per_pound * weight # 59.0 print(f"{cost:.2f}") ``` Running this gives: 59.00 The charge is $59.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "59.00", "printed": "59.00", "notation": null}
nlprog_det-setting-0078353
709 files go into boxes of 24. How many boxes does that take? 30 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0078354
<|start|><|user|> A service costs $19 a month or $180 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $19 a month or $180 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0078355
A customer buys 1 scissors at $26 each, 2 markers at $28 each, 2 hard drives at $20 each and pays with $150. How much change is due? In Python: items = [(1, 26), (2, 28), (2, 20)] total = sum(q * p for q, p in items) # 122 paid = 150 change = paid - total # 28 print(change) Output: 28 The change...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0078356
<|start|><|user|> At 2% a month (simple), what interest builds on $4,000 over 3 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` # output: 240.00 $240.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $4,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest = balance * monthly_rate * months # 240.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0078357
<|start|><|user|> Express 56 hours in days and hours.<|eot|> <|assistant|> ```python hours = 56 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` What it prints: 2 days and 8 hours 56 hours is 2 days and 8 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 56 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 56\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhat it prints: 2 days and 8 hours\n\n56 hours is 2 days and 8 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2 days and 8 hours", "printed": "2 days and 8 hours", "notation": null}
nlprog_det-setting-0078358
<|start|><|user|> A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 1200 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Program output: -40 It changed by -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1200\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\nProgram output: -40\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0078359
A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 70-page copy cost? Python version: pages = 70 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.0 print(f"{cost:.2f}") Executing it gives: 12.00 The copy costs...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0078360
A customer buys 6 clipboards at $30 each, 3 labels at $23 each, 5 markers at $16 each and pays with $350. How much change is due? Python does the arithmetic: items = [(6, 30), (3, 23), (5, 16)] total = sum(q * p for q, p in items) # 329 paid = 350 change = paid - total # 21 print(change) Printed ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0078361
A quorum is 3/5 of the 53 members, rounded up. How many members make a quorum? The program: ```python import math members = 53 quorum = math.ceil(members * 3 / 5) # 32 print(quorum) ``` The printout reads 32. That is 32 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0078362
<|start|><|user|> $10,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` The run gives 10404.00, as expected. It is worth $10,404.00.<|eot...
chat
[ { "role": "user", "content": "$10,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 10404.0\nprint(f\"{value:.2f}\")\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0078363
<|start|><|user|> A garage charges $3 an hour, never more than $18 a day. How much for 2 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 6 print(cost) ``` # output: 6 Parking costs $6.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $18 a day. How much for 2 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 2\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 6\nprint(cost)\n```\n# output: 6\n\nParking costs $6." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078364
Walls total 170 sq ft and each can covers 250 sq ft. How many cans should be bought? Here is a short program for it. ```python import math area = 170 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` The printout reads 1. 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0078365
<|start|><|system|> You can call tools. Available tools: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> What do...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0078366
<|start|><|user|> A 3% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` Python prints 2266.00, as expected. It rises to $2,266.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $2,200 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 2266.0\nprint(f\"{new_rent:.2f}\")\n```\nPython prints 2266.00, as...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0078367
<|start|><|user|> A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 53-page copy cost?<|eot|> <|assistant|> pages = 53 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 13.3 print(f"{cost:.2f}") The run gives 1...
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 53-page copy cost?" }, { "role": "assistant", "content": " pages = 53\n base = 10\n per_page = 0.1\n free_pages = 20\n cost = base + max(0, pages - free_pages) *...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "13.30", "printed": "13.30", "notation": null}
nlprog_det-setting-0078368
At an exchange rate of 1.27 CAD per USD, how many CAD is 2,612 USD? We can compute it in Python. ```python amount = 2612 rate = 1.27 converted = amount * rate # 3317.2400000000002 print(f"{converted:.2f}") ``` stdout: 3317.24 It converts to 3,317.24 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "3317.24", "printed": "3317.24", "notation": null}
nlprog_det-setting-0078369
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eo...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0078370
From 2025 to 2030, how many years is that? Computation in Python: ```python start_year = 2025 end_year = 2030 print(end_year - start_year) ``` Executing it gives: 5 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0078371
From 2009 to 2040, how many years is that? That is 31 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
18
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0078372
A 195-mile drive at a steady 45 mph takes how many minutes? The computation: ```python distance = 195 speed = 45 minutes = distance / speed * 60 print(round(minutes)) ``` Executing it gives: 260 The trip takes 260 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0078373
A 672-page report must be reviewed in 12 days. How many pages a day is that, evenly? Python makes this quick: ```python pages = 672 days = 12 per_day = pages // days # 56 print(per_day) ``` The script prints 56, as expected. That is 56 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0078374
<|start|><|user|> A 60-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 60 speed = 40 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` The run gives 90, as expected. 90 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 60-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 60\nspeed = 40\nminutes = distance / speed * 60 # 90.0\nprint(round(minutes))\n```\nThe run gives 90, as expected.\n\n90 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0078375
How many whole days and leftover hours are in 203 hours? Program: ```python hours = 203 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output — 8 days and 11 hours 203 hours is 8 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "8 days and 11 hours", "printed": "8 days and 11 hours", "notation": null}
nlprog_det-setting-0078376
<|start|><|user|> A room is 16 feet by 11 feet. Flooring costs $8 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> The flooring costs $1,408.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A room is 16 feet by 11 feet. Flooring costs $8 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "The flooring costs $1,408." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1408", "printed": "1408", "notation": null}
nlprog_det-setting-0078377
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "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...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0078378
A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments? Python does the arithmetic: ```python monthly = 9 yearly = 84 savings = monthly * 12 - yearly # 24 print(savings) ``` The program outputs 24. The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078379
Meals are $59 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights? The Python version: ```python days = 9 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1411 print(total) ``` Console: 1411 That comes to $1,411.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1411", "printed": "1411", "notation": null}
nlprog_det-setting-0078380
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months? $300.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0078381
A hearing is set for October 19, 1991. What day of the week is that? ```python from datetime import date hearing = date(1991, 10, 19) # datetime.date(1991, 10, 19) print(hearing.strftime("%A")) ``` Running this gives Saturday. October 19, 1991 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0078382
<|start|><|system|> Be brief and correct.<|eot|> <|user|> How many meters are in 3.4 kilometers?<|eot|> <|assistant|> km = 3.4 meters = km * 1000 # 3400.0 print(round(meters)) Printed: 3400 3,400 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "How many meters are in 3.4 kilometers?" }, { "role": "assistant", "content": " km = 3.4\n meters = km * 1000 # 3400.0\n print(round(meters))\nPrinted: 3400\n\n3,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "3400", "printed": "3400", "notation": null}
nlprog_det-setting-0078383
A hearing is set for November 2, 2014. What day of the week is that? Set it up in Python: ```python from datetime import date hearing = date(2014, 11, 2) # datetime.date(2014, 11, 2) print(hearing.strftime("%A")) ``` That prints: Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0078385
<|start|><|user|> Monthly rent is $900. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 150.0 print(f"{prorated:.2f}") ``` Console output: 150.00 The prorat...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 5\nprorated = rent * days_occupied / days_in_month # 150.0\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "150.00", "printed": "150.00", "notation": null}