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-0081302
<|start|><|user|> What does $10,000 grow to in 4 years at 5% annual compounding?<|eot|> <|assistant|> It is worth $12,155.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 4 years at 5% annual compounding?" }, { "role": "assistant", "content": "It is worth $12,155.06." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0081303
Copies cost $10 plus $0.10 for each page beyond 0. How much for 29 pages? As Python: ```python pages = 29 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.9 print(f"{cost:.2f}") ``` Printed result — 12.90 The total is $12.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "12.90", "printed": "12.90", "notation": null}
nlprog_det-setting-0081304
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A hall has 14 rows of 21 seats, and 29 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 14 per_row = 21 empty = 29 seated = rows * per_row - empty # 265 print(seated) ``` (Out: 265) 265 people are seated.<|eot|> <|...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A hall has 14 rows of 21 seats, and 29 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 14\nper_row = 21\nempty = 29\nseated = rows...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "265", "printed": "265", "notation": null}
nlprog_det-setting-0081305
A $1,000 security deposit has deductions of $150 and $60. How much is refunded? ```python deposit = 1000 deductions = [150, 60] refund = deposit - sum(deductions) # 790 print(refund) ``` # run result: 790 The refund is $790.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "790", "printed": "790", "notation": null}
nlprog_det-setting-0081306
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 80-page copy cost?<|eot|> <|assistant|> ```python pages = 80 base = 5 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 20.0 print(f"{cost:.2f}") ``` The printout reads 20.00. ...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 80-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 80\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0081307
Rent of $1,100 goes up 5%. What is the new rent? Python makes this quick: ```python rent = 1100 increase = 5 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The run gives 1155.00. The new rent is $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0081308
<|start|><|user|> A garage charges $2 an hour, never more than $15 a day. How much for 1 hours?<|eot|> <|assistant|> Parking costs $2.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $15 a day. How much for 1 hours?" }, { "role": "assistant", "content": "Parking costs $2." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0081309
<|start|><|user|> The rules require 3/5 of 44 members (round up) to be present. How many is that?<|eot|> <|assistant|> import math members = 44 quorum = math.ceil(members * 3 / 5) print(quorum) Running this gives: 27 That is 27 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 44 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": " import math\n members = 44\n quorum = math.ceil(members * 3 / 5)\n print(quorum)\nRunning this gives: 27\n\nThat is 27 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0081310
5 swims at 400 calories each burn how many calories in total? ```python per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) ``` Execution result — 2000 That burns 2000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0081311
What simple interest does $2,500 earn at 2% a year over 5 years? In Python: ```python principal = 2500 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 250.0 print(f"{interest:.2f}") ``` The code prints 250.00. It earns $250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0081312
<|start|><|user|> Liesel drove 101 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 101 rate = 0.65 reimbursement = miles * rate # 65.65 print(f"{reimbursement:.2f}") ``` # printed: 65.65 Liesel is owed $65.65.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Liesel drove 101 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 101\nrate = 0.65\nreimbursement = miles * rate # 65.65\nprint(f\"{reimbursement:.2f}\")\n```\n# print...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "65.65", "printed": "65.65", "notation": null}
nlprog_det-setting-0081313
What percentage of $2,000 is $1,700? 85.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0081314
573 files go into boxes of 25. How many boxes does that take? Program: import math files = 573 per_box = 25 boxes = math.ceil(files / per_box) # 23 print(boxes) Run result = 23 It takes 23 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0081315
<|start|><|system|> Functions: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "sandbox_python", "description": "A Python interpreter. Return...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "2024-08-26", "printed": "2024-08-26", "notation": null}
nlprog_det-setting-0081316
<|start|><|user|> The landlord deducts $85 and $200 from a $1,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [85, 200] refund = deposit - sum(deductions) # 1215 print(refund) ``` Output: 1215 The refund is $1,215.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $85 and $200 from a $1,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [85, 200]\nrefund = deposit - sum(deductions) # 1215\nprint(refund)\n```\nOutput: 1215\n\nThe ref...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1215", "printed": "1215", "notation": null}
nlprog_det-setting-0081317
A clerk's office charges $45 for each filing. Cyrus submits 10 filings. What is the total fee? Let the code do the arithmetic: ```python fee = 45 filings = 10 total = fee * filings # 450 print(total) ``` The program outputs 450. The filings cost $450 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0081318
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> What is 40 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` The script prints 104, as expected. It equals 104 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "What is 40 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nThe scr...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0081319
<|start|><|user|> Convert 25 °C to Fahrenheit.<|eot|> <|assistant|> celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) Executing it gives: 77 It equals 77 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 25 °C to Fahrenheit." }, { "role": "assistant", "content": " celsius = 25\n fahrenheit = celsius * 9 / 5 + 32 # 77.0\n print(round(fahrenheit))\nExecuting it gives: 77\n\nIt equals 77 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0081320
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 400 new = 440 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` stdout = 10 It changed by 10%.<|eot|> <|end...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 440\nchange = (new - old) / ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0081321
<|start|><|user|> With 11 rows of 23 chairs and 34 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 11 per_row = 23 empty = 34 seated = rows * per_row - empty # 219 print(seated) ``` (Output: 219) 219 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 11 rows of 23 chairs and 34 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 11\nper_row = 23\nempty = 34\nseated = rows * per_row - empty # 219\nprint(seated)\n```\n(Output: 219)\n\n219 people are seated." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "219", "printed": "219", "notation": null}
nlprog_det-setting-0081322
Walls total 894 sq ft and each can covers 250 sq ft. How many cans should be bought? One way, in code: ```python import math area = 894 coverage = 250 cans = math.ceil(area / coverage) print(cans) ``` Running this gives: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0081323
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> If a 2-year limitations period starts on December 7, 2016, when does it end?<|eot|> <|assistant|> from datetime import date accrued = date(2016, 12, 7) # datetime.date(2016, 12, 7) years = 2 expires = accrued.replace(year=accr...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "If a 2-year limitations period starts on December 7, 2016, when does it end?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2016, 12, 7...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2018-12-07", "printed": "2018-12-07", "notation": null}
nlprog_det-setting-0081324
A pack of 10 chairs sells for $200. What does each cost? A short script: ```python total = 200 count = 10 per_item = total // count # 20 print(per_item) ``` (Printed result: 20) The unit price is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0081325
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Copies cost $15 plus $0.25 for each page beyond 10. How much for 112 pages?<|eot|> <|assistant|> ```python pages = 112 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 40.5 print(f"{cost:.2f}") ``` # printed re...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 10. How much for 112 pages?" }, { "role": "assistant", "content": "```python\npages = 112\nbase = 15\nper_page = 0.25\nfree_pages = 10\ncost = b...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0081326
<|start|><|user|> Starting with 913 pens and using 36 per day, how many remain after 3 days?<|eot|> <|assistant|> ```python stock = 913 per_day = 36 days = 3 left = stock - per_day * days # 805 print(left) ``` stdout — 805 805 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 913 pens and using 36 per day, how many remain after 3 days?" }, { "role": "assistant", "content": "```python\nstock = 913\nper_day = 36\ndays = 3\nleft = stock - per_day * days # 805\nprint(left)\n```\nstdout — 805\n\n805 pens are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "805", "printed": "805", "notation": null}
nlprog_det-setting-0081327
Split $4,445 between Ulla and Amir in the ratio 2 to 3. What is Ulla's share? Computing it: ```python total = 4445 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1778 print(share_a) ``` Running it prints 1778. Ulla's share is $1,778.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1778", "printed": "1778", "notation": null}
nlprog_det-setting-0081328
<|start|><|system|> You have access to these functions: {"name": "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"]}} {"name": "lookup_statute", "de...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "-1822", "printed": "-1822", "notation": null}
nlprog_det-setting-0081329
After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 2 # 9000.0 print(f"{per_client:.2f}") ``` Execution prints: 9000.00 Each cl...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0081330
<|start|><|user|> A 6-day trip pays $79 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 6 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1349 print(total) ``` Interpreter output — 13...
chat
[ { "role": "user", "content": "A 6-day trip pays $79 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1349", "printed": "1349", "notation": null}
nlprog_det-setting-0081331
A hall has 22 rows of 21 seats, and 5 seats are empty. How many people are seated? Translated to Python: ```python rows = 22 per_row = 21 empty = 5 seated = rows * per_row - empty # 457 print(seated) ``` That prints: 457 457 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "457", "printed": "457", "notation": null}
nlprog_det-setting-0081332
Each storage box holds 20 files. How many boxes are needed for 210 files? In Python: ```python import math files = 210 per_box = 20 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` The interpreter prints: 11 11 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0081333
<|start|><|user|> 62 copies of a 25-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 25 copies = 62 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 186.0 print(f"{cost:.2f}") ``` Output of the run — 186.00 Printing costs $186.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "62 copies of a 25-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 25\ncopies = 62\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 186.0\nprint(f\"{cost:.2f}\")\n```\nOutput of the...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "186.00", "printed": "186.00", "notation": null}
nlprog_det-setting-0081334
What percentage of $5,000 is $2,000? Code: ```python budget = 5000 spent = 2000 percent = spent / budget * 100 # 40.0 print(round(percent, 1)) ``` The program prints: 40.0 That is 40.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "40.0", "printed": "40.0", "notation": null}
nlprog_det-setting-0081335
<|start|><|user|> A penalty of $50 a day accrues, capped at $2,500. What is owed after 14 days?<|eot|> <|assistant|> ```python per_day = 50 days = 14 cap = 2500 fine = min(per_day * days, cap) # 700 print(fine) ``` Running it prints 700. The fine is $700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 14 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 14\ncap = 2500\nfine = min(per_day * days, cap) # 700\nprint(fine)\n```\nRunning it prints 700.\n\nThe fine is $700....
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0081336
<|start|><|system|> Answer in plain English.<|eot|> <|user|> A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 33 / 100 # 0.33 fee = recovery * rate # 19800.0 print(f"{fee:.2f}") ``` The program prints: 19800.00 The lawyer's fee comes to $19,800...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 19800.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0081337
<|start|><|user|> Monthly: $29. Annual: $300. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) ``` Result = 48 The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $300. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 300\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nResult = 48\n\nThe annual plan saves $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0081338
2 friends split a $210 bill plus a 15% tip evenly. How much does each pay? Python code: ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 120.74999999999999 print(f"{each:.2f}") ``` (Out: 120.75) Each person pays $120.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "120.75", "printed": "120.75", "notation": null}
nlprog_det-setting-0081339
<|start|><|user|> With 9 rows of 14 chairs and 40 empty chairs, how many chairs are taken?<|eot|> <|assistant|> rows = 9 per_row = 14 empty = 40 seated = rows * per_row - empty # 86 print(seated) (Console output: 86) 86 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 9 rows of 14 chairs and 40 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": " rows = 9\n per_row = 14\n empty = 40\n seated = rows * per_row - empty # 86\n print(seated)\n(Console output: 86)\n\n86 people are seated...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0081340
141 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? A few lines of Python do it: ```python total = 141 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives: 47 each, 0 left over 47 each, 0 left ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "47 each, 0 left over", "printed": "47 each, 0 left over", "notation": null}
nlprog_det-setting-0081341
Someone born May 23, 1962 turns how old by May 19, 2027? Give the age in whole years. Here's the code. from datetime import date born = date(1962, 5, 23) # datetime.date(1962, 5, 23) on = date(2027, 5, 19) # datetime.date(2027, 5, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0081342
Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year? ```python cost = 12000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") ``` The printout reads: 2500.00 Depreciation is $2,500.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0081343
What is the total rent on a 36-month lease at $1,640 a month? ```python monthly_rent = 1640 months = 36 total = monthly_rent * months # 59040 print(total) ``` Interpreter output: 59040 In total, $59,040 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0081344
Papers were served by mail on August 20, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? ```python from datetime import date, timedelta served = date(2026, 8, 20) # datetime.date(2026, 8, 20) response_days = 30 mail_days = 3 due = served + timedelta(days=response_da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2026-09-22", "printed": "2026-09-22", "notation": null}
nlprog_det-setting-0081345
<|start|><|system|> Tools you may use: [{"name": "math_engine", "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|> 7 bike rid...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"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\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0081346
A pack of 10 toner kits sells for $330. What does each cost? total = 330 count = 10 per_item = total // count # 33 print(per_item) Executing it gives 33. The unit price is $33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0081347
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Papers were served by mail on March 12, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2022, 3, 12) # datetime.date...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Papers were served by mail on March 12, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
189
{"gold": "2022-03-29", "printed": "2022-03-29", "notation": null}
nlprog_det-setting-0081348
Express 234 hours in days and hours. Here's the code. ```python hours = 234 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Running it prints 9 days and 18 hours, as expected. That is 9 days and 18 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "9 days and 18 hours", "printed": "9 days and 18 hours", "notation": null}
nlprog_det-setting-0081349
<|start|><|user|> Papers were served by mail on September 4, 2027. 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 September 21, 2027.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on September 4, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response is due on September 21, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2027-09-21", "printed": "2027-09-21", "notation": null}
nlprog_det-setting-0081350
Fixed costs are $4,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? ```python import math fixed = 4000 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 667 print(units) ``` Output of the run: 667 Break-even is 667 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0081351
<|start|><|user|> What is the total rent on a 12-month lease at $1,200 a month?<|eot|> <|assistant|> The rent over the term is $14,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 12-month lease at $1,200 a month?" }, { "role": "assistant", "content": "The rent over the term is $14,400." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "14400", "printed": "14400", "notation": null}
nlprog_det-setting-0081352
<|start|><|user|> Convert 64.5 km to meters.<|eot|> <|assistant|> ```python km = 64.5 meters = km * 1000 # 64500.0 print(round(meters)) ``` The interpreter prints 64500. That is 64,500 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 64.5 km to meters." }, { "role": "assistant", "content": "```python\nkm = 64.5\nmeters = km * 1000 # 64500.0\nprint(round(meters))\n```\nThe interpreter prints 64500.\n\nThat is 64,500 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "64500", "printed": "64500", "notation": null}
nlprog_det-setting-0081353
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Starting from $5,000, the team spends $355, $2,121, $3,767. What remains?<|eot|> <|assistant|> The remaining budget is -$1,243.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Starting from $5,000, the team spends $355, $2,121, $3,767. What remains?" }, { "role": "assistant", "content": "The remaining budget is -$1,243." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "-1243", "printed": "-1243", "notation": null}
nlprog_det-setting-0081354
<|start|><|user|> 8 hours of work at $250 an hour: what is the total charge?<|eot|> <|assistant|> hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") Python prints 2000.00, as expected. That comes to $2,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 hours of work at $250 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 8\n rate = 250\n bill = hours * rate # 2000\n print(f\"{bill:.2f}\")\nPython prints 2000.00, as expected.\n\nThat comes to $2,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0081355
Monthly: $25. Annual: $252. What is saved per year by paying annually? Here is a short program for it. ```python monthly = 25 yearly = 252 savings = monthly * 12 - yearly # 48 print(savings) ``` stdout: 48 The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0081356
The building opened in 2002. How many years had passed by 2028? Translated to Python: ```python start_year = 2002 end_year = 2028 print(end_year - start_year) ``` The script prints 26. That is 26 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0081357
<|start|><|system|> Functions: [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Goods bought on Octobe...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
274
{"gold": "2020-10-23", "printed": "2020-10-23", "notation": null}
nlprog_det-setting-0081359
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 5 friends split a $210 ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0081360
<|start|><|user|> Count 120 days forward from February 20, 2019. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 2, 20) # datetime.date(2019, 2, 20) end = start + timedelta(days=120) # datetime.date(2019, 6, 20) print(end.isoformat()) ``` What it prints: 2019-...
chat
[ { "role": "user", "content": "Count 120 days forward from February 20, 2019. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 2, 20) # datetime.date(2019, 2, 20)\nend = start + timedelta(days=120) # datetime.date(2019...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2019-06-20", "printed": "2019-06-20", "notation": null}
nlprog_det-setting-0081361
<|start|><|user|> Convert 92.7 km to meters.<|eot|> <|assistant|> ```python km = 92.7 meters = km * 1000 # 92700.0 print(round(meters)) ``` Running this gives: 92700 92,700 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 92.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 92.7\nmeters = km * 1000 # 92700.0\nprint(round(meters))\n```\nRunning this gives: 92700\n\n92,700 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "92700", "printed": "92700", "notation": null}
nlprog_det-setting-0081362
<|start|><|user|> Copies cost $5 plus $0.10 for each page beyond 0. How much for 86 pages?<|eot|> <|assistant|> The total is $13.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $5 plus $0.10 for each page beyond 0. How much for 86 pages?" }, { "role": "assistant", "content": "The total is $13.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "13.60", "printed": "13.60", "notation": null}
nlprog_det-setting-0081364
<|start|><|system|> You have access to these functions: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "math_engine", "descript...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "2023-01-07", "printed": "2023-01-07", "notation": null}
nlprog_det-setting-0081365
Split $315 between Oskar and Elena in the ratio 3 to 4. What is Oskar's share? Python: ```python total = 315 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` Out — 135 Oskar gets $135.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0081366
<|start|><|user|> A 5% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> The new rent is $1,312.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "The new rent is $1,312.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0081367
<|start|><|user|> With 20% off, what does a $75 desk lamp cost?<|eot|> <|assistant|> ```python price = 75 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 60.0 print(f"{sale_price:.2f}") ``` Output of the run: 60.00 The sale price is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $75 desk lamp cost?" }, { "role": "assistant", "content": "```python\nprice = 75\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 60.0\nprint(f\"{sale_price:.2f}\")\n```\nOutput of the run: 60.00\n\nThe sale price is $60....
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0081368
<|start|><|user|> A measure needs at least 67% of 217 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 146 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 217 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 146 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0081369
What is 0 degrees Celsius in Fahrenheit? Code: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` # printed result: 32 That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0081370
A $150 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share? A Python solution: ```python bill = 150 tip_rate = 20 / 100 people = 5 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Printed result: 36.00 The share is $36.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0081371
<|start|><|user|> If a 4-year limitations period starts on July 1, 2022, when does it end?<|eot|> <|assistant|> It runs out on July 1, 2026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 4-year limitations period starts on July 1, 2022, when does it end?" }, { "role": "assistant", "content": "It runs out on July 1, 2026." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2026-07-01", "printed": "2026-07-01", "notation": null}
nlprog_det-setting-0081372
A 260-page report must be reviewed in 13 days. How many pages a day is that, evenly? Here is a short program for it. ```python pages = 260 days = 13 per_day = pages // days # 20 print(per_day) ``` Console output: 20 That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0081373
<|start|><|user|> Starting with 1287 pens and using 17 per day, how many remain after 3 days?<|eot|> <|assistant|> ```python stock = 1287 per_day = 17 days = 3 left = stock - per_day * days print(left) ``` Execution result — 1236 1236 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1287 pens and using 17 per day, how many remain after 3 days?" }, { "role": "assistant", "content": "```python\nstock = 1287\nper_day = 17\ndays = 3\nleft = stock - per_day * days\nprint(left)\n```\nExecution result — 1236\n\n1236 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1236", "printed": "1236", "notation": null}
nlprog_det-setting-0081374
Which is cheaper per unit: 6 for $11.82 (A) or 15 for $15.56 (B)? Programmatically: pack_a = 11.82 / 6 # 1.97 pack_b = 15.56 / 15 # 1.0373333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Execution prints: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0081375
Under a 25% contingency agreement, what fee is owed on a $60,000 award? A short script: ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` stdout: 15000.00 The lawyer's fee comes to $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0081376
<|start|><|user|> 6 walks at 400 calories each burn how many calories in total?<|eot|> <|assistant|> That burns 2400 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 walks at 400 calories each burn how many calories in total?" }, { "role": "assistant", "content": "That burns 2400 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0081377
A settlement of $84,000 is split equally among 8 parties. How much does each party receive? Python makes this quick: settlement = 84000 parties = 8 share = settlement // parties # 10500 print(share) Out: 10500 Each party receives $10,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0081378
<|start|><|user|> Convert 70.1 km to meters.<|eot|> <|assistant|> ```python km = 70.1 meters = km * 1000 # 70100.0 print(round(meters)) ``` That prints: 70100 70,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 70.1 km to meters." }, { "role": "assistant", "content": "```python\nkm = 70.1\nmeters = km * 1000 # 70100.0\nprint(round(meters))\n```\nThat prints: 70100\n\n70,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "70100", "printed": "70100", "notation": null}
nlprog_det-setting-0081379
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Program: ```python award = 96000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` Shell output: 19200.00 Each share is $19,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "19200.00", "printed": "19200.00", "notation": null}
nlprog_det-setting-0081380
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many of 23 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 23 needed = math.ceil(voters * 67 / 100) # 16 print(needed) ``` Result — 16 16 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many of 23 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 23\nneeded = math.ceil(voters * 67 / 100) # 16\nprint(needed)\n```\nResult — ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0081381
Printing costs 15 cents a page. What does it cost to print 8 copies of a 10-page handout? Let the code do the arithmetic: ```python pages = 10 copies = 8 cost_per_page = 0.15 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The script prints: 12.00 The job costs $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0081382
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A garage charges $2 an hour, never more than $18 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 11 daily_max = 18 cost = min(rate * hours, daily_max) print(cost) ``` Interpreter output: 18 Parking costs $18.<|eot|> <|end...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A garage charges $2 an hour, never more than $18 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 11\ndaily_max = 18\ncost = min(rate * h...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081383
158 copies of a 25-page packet are printed at $0.12 per page. What is the cost? Printing costs $474.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "474.00", "printed": "474.00", "notation": null}
nlprog_det-setting-0081384
Liesel earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? In code: ```python rate = 20.0 hours = 50 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 300.0 pay = regular + overtime # 1100.0 print(f"{pay:.2f}") ``` The printout reads: 1100.00 Liesel earn...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1100.00", "printed": "1100.00", "notation": null}
nlprog_det-setting-0081387
<|start|><|user|> A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?<|eot|> <|assistant|> rate = 5 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) Output of the run: 18 The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?" }, { "role": "assistant", "content": " rate = 5\n hours = 6\n daily_max = 18\n cost = min(rate * hours, daily_max) # 18\n print(cost)\nOutput of the run: 18\n\nThe charge ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081389
<|start|><|system|> Give the answer first.<|eot|> <|user|> A shift starts at 12:45 PM and lasts 135 minutes. When does it end?<|eot|> <|assistant|> ```python start = 12 * 60 + 45 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` stdout: 3:00 ...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A shift starts at 12:45 PM and lasts 135 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 45\nend = start + 135\nhour, minute = divmod(end, 60)\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "3:00 PM", "printed": "3:00 PM", "notation": null}
nlprog_det-setting-0081390
Equal monthly payments repay $9,000 plus 10% simple yearly interest over 24 months. How large is a payment? Coded up: ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + interest) / months # 450.0 print(f"{payment:.2f}"...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0081391
<|start|><|user|> To read 364 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 364 days = 7 per_day = pages // days print(per_day) ``` Executing it gives 52. 52 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 364 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 364\ndays = 7\nper_day = pages // days\nprint(per_day)\n```\nExecuting it gives 52.\n\n52 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0081392
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "business_days"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "121", "printed": "121", "notation": null}
nlprog_det-setting-0081393
<|start|><|user|> Convert 1,846 CHF to USD at 1 CHF = 0.74 USD.<|eot|> <|assistant|> ```python amount = 1846 rate = 0.74 converted = amount * rate # 1366.04 print(f"{converted:.2f}") ``` The run gives 1366.04. That is 1,366.04 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1,846 CHF to USD at 1 CHF = 0.74 USD." }, { "role": "assistant", "content": "```python\namount = 1846\nrate = 0.74\nconverted = amount * rate # 1366.04\nprint(f\"{converted:.2f}\")\n```\nThe run gives 1366.04.\n\nThat is 1,366.04 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1366.04", "printed": "1366.04", "notation": null}
nlprog_det-setting-0081394
<|start|><|user|> A claim accrued on June 21, 2020. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2020, 6, 21) # datetime.date(2020, 6, 21) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 6, ...
chat
[ { "role": "user", "content": "A claim accrued on June 21, 2020. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2020, 6, 21) # datetime.date(2020, 6, 21)\nyears = 4\nexpires = accrued.rep...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2024-06-21", "printed": "2024-06-21", "notation": null}
nlprog_det-setting-0081395
$5,000 is invested at 3% compounded yearly. What is it worth after 3 years? ```python principal = 5000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 5463.635 print(f"{value:.2f}") ``` # out: 5463.64 The balance is $5,463.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5463.64", "printed": "5463.64", "notation": null}
nlprog_det-setting-0081396
<|start|><|user|> A pack of 5 batteries sells for $250. What does each cost?<|eot|> <|assistant|> The unit price is $50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 batteries sells for $250. What does each cost?" }, { "role": "assistant", "content": "The unit price is $50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081397
At $0.67 per mile, what is the reimbursement for 496 miles? We write it as a program: ```python miles = 496 rate = 0.67 reimbursement = miles * rate # 332.32 print(f"{reimbursement:.2f}") ``` It prints 332.32, as expected. Lena is owed $332.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "332.32", "printed": "332.32", "notation": null}
nlprog_det-setting-0081398
<|start|><|user|> Rent of $1,250 goes up 4%. What is the new rent?<|eot|> <|assistant|> rent = 1250 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1300.0 print(f"{new_rent:.2f}") Interpreter output — 1300.00 It rises to $1,300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 4%. What is the new rent?" }, { "role": "assistant", "content": " rent = 1250\n increase = 4 / 100 # 0.04\n new_rent = rent * (1 + increase) # 1300.0\n print(f\"{new_rent:.2f}\")\nInterpreter output — 1300.00\n\nIt rises to $1,30...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1300.00", "printed": "1300.00", "notation": null}
nlprog_det-setting-0081399
<|start|><|user|> A 3-day trip pays $69 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 3 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 487 print(total) ``` Execution prints 487, as...
chat
[ { "role": "user", "content": "A 3-day trip pays $69 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 3\nmeal_rate = 69\nlodging_rate = 140\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "487", "printed": "487", "notation": null}
nlprog_det-setting-0081400
Fines run at $50 per day up to a maximum of $2,500. How much after 48 days? $2,400 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0081401
Each of Rosa's bike rides burns 200 calories. How many calories over 3 bike rides? ```python per_session = 200 sessions = 3 total = per_session * sessions # 600 print(total) ``` On running, it outputs: 600 That burns 600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0081402
Convert -5 °C to Fahrenheit. Programmatically: ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Console: 23 It equals 23 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0081403
<|start|><|system|> Functions: {"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "fetch_filing", "description": "Fetch a...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0081404
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Of a $2,000 budget, $100 has been spent. What percent is that?<|eot|> <|assistant|> That is 5.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Of a $2,000 budget, $100 has been spent. What percent is that?" }, { "role": "assistant", "content": "That is 5.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0081405
234 files go into boxes of 15. How many boxes does that take? Python: ```python import math files = 234 per_box = 15 boxes = math.ceil(files / per_box) # 16 print(boxes) ``` The program prints 16. It takes 16 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0081406
At $30.56 an hour, what does 40 hours of work pay? Python does the arithmetic: ```python rate = 30.56 hours = 40 earnings = rate * hours # 1222.3999999999999 print(f"{earnings:.2f}") ``` The program outputs: 1222.40 That earns $1,222.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1222.40", "printed": "1222.40", "notation": null}