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-0081198
<|start|><|user|> A customer buys 4 scissors at $24 each, 5 flash drives at $23 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 24), (5, 23)] total = sum(q * p for q, p in items) # 211 paid = 250 change = paid - total # 39 print(change) ``` Executing it gives 39, as expect...
chat
[ { "role": "user", "content": "A customer buys 4 scissors at $24 each, 5 flash drives at $23 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, 24), (5, 23)]\ntotal = sum(q * p for q, p in items) # 211\npaid = 250\nchange = paid - tota...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0081199
Starting from $12,000, the team spends $3,719, $2,521. What remains? One way, in code: ```python budget = 12000 expenses = [3719, 2521] left = budget - sum(expenses) # 5760 print(left) ``` (Run result: 5760) The remaining budget is $5,760.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "5760", "printed": "5760", "notation": null}
nlprog_det-setting-0081200
A $96 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Each person pays $22.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "22.08", "printed": "22.08", "notation": null}
nlprog_det-setting-0081201
<|start|><|system|> Functions: {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> If a 75-minute meeting begins at 9:00 AM, what time d...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, { ...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "10:15 AM", "printed": "10:15 AM", "notation": null}
nlprog_det-setting-0081202
<|start|><|system|> Available functions (JSON Schema): [{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Convert ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"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
[]
[]
201
{"gold": "86000", "printed": "86000", "notation": null}
nlprog_det-setting-0081203
A recipe for 6 people uses 150 grams of oats. How many grams are needed for 10 people? As a program: ```python grams = 150 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 250 print(scaled) ``` Run output — 250 Use 250 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0081204
Counting only Monday through Friday, how many business days are there after November 19, 2019 through December 16, 2019? Python: ```python from datetime import date, timedelta start = date(2019, 11, 19) end = date(2019, 12, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0081205
Convert 11.7 km to meters. Python version: ```python km = 11.7 meters = km * 1000 # 11700.0 print(round(meters)) ``` Run result: 11700 That is 11,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0081206
What percentage of $5,000 is $1,900? Python: ```python budget = 5000 spent = 1900 percent = spent / budget * 100 # 38.0 print(round(percent, 1)) ``` (stdout: 38.0) 38.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "38.0", "printed": "38.0", "notation": null}
nlprog_det-setting-0081207
<|start|><|user|> Tariq was born on February 15, 1979. How old is Tariq on August 3, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1979, 2, 15) # datetime.date(1979, 2, 15) on = date(2024, 8, 3) # datetime.date(2024, 8, 3) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
chat
[ { "role": "user", "content": "Tariq was born on February 15, 1979. How old is Tariq on August 3, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1979, 2, 15) # datetime.date(1979, 2, 15)\non = date(2024, 8, 3) # datetime.date(2024, 8, 3)\nage = on...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0081208
Equal monthly payments repay $6,000 plus 10% simple yearly interest over 12 months. How large is a payment? The Python version: principal = 6000 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 550.0 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "550.00", "printed": "550.00", "notation": null}
nlprog_det-setting-0081209
What is a 25% tip on a $233.52 bill? A Python solution: ```python bill = 233.52 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 58.38 print(f"{tip:.2f}") ``` Execution result — 58.38 Leave $58.38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "58.38", "printed": "58.38", "notation": null}
nlprog_det-setting-0081210
<|start|><|system|> You may call the tools below. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters"...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python_exec\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0081211
<|start|><|system|> You have access to these functions: [{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> From a ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"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
[]
[]
221
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0081213
<|start|><|user|> Convert 3 h 18 min (the length of a hearing) to minutes.<|eot|> <|assistant|> The hearing lasted 198 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 18 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "The hearing lasted 198 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0081214
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 6 months? ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` The printout reads 225.00. The interest is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0081215
Parking is $3 per hour with a daily maximum of $18. What do 9 hours cost? A few lines of Python do it: ```python rate = 3 hours = 9 daily_max = 18 cost = min(rate * hours, daily_max) print(cost) ``` Output: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081216
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> What does $5,000 grow to in 5 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 5796.3703715 print(f"{value:.2f}") ``` Console output — 5796....
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "What does $5,000 grow to in 5 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principa...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5796.37", "printed": "5796.37", "notation": null}
nlprog_det-setting-0081217
<|start|><|user|> Rosa and Femi share $5,530 in the ratio 3:4. How much does Rosa get?<|eot|> <|assistant|> ```python total = 5530 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 2370 print(share_a) ``` Run output — 2370 Rosa's share is $2,370.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rosa and Femi share $5,530 in the ratio 3:4. How much does Rosa get?" }, { "role": "assistant", "content": "```python\ntotal = 5530\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 2370\nprint(share_a)\n```\nRun output — 2370\n\nRosa's ...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2370", "printed": "2370", "notation": null}
nlprog_det-setting-0081218
A meal costs $212.83. How much is a 15% tip? Python code: ```python bill = 212.83 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 31.924500000000002 print(f"{tip:.2f}") ``` On running, it outputs 31.92. The tip is $31.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "31.92", "printed": "31.92", "notation": null}
nlprog_det-setting-0081219
Walls total 596 sq ft and each can covers 250 sq ft. How many cans should be bought? In Python: ```python import math area = 596 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` It outputs 3. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0081220
How many days are there from June 19, 2020 to July 21, 2020? In Python: ```python from datetime import date first = date(2020, 6, 19) # datetime.date(2020, 6, 19) second = date(2020, 7, 21) # datetime.date(2020, 7, 21) print((second - first).days) ``` Running it prints 32. It is 32 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0081221
Printing costs 5 cents a page. What does it cost to print 10 copies of a 15-page handout? Printing costs $7.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "7.50", "printed": "7.50", "notation": null}
nlprog_det-setting-0081222
<|start|><|user|> Express 141 hours in days and hours.<|eot|> <|assistant|> ```python hours = 141 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Program output: 5 days and 21 hours) That is 5 days and 21 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 141 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 141\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Program output: 5 days and 21 hours)\n\nThat is 5 days and 21 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "5 days and 21 hours", "printed": "5 days and 21 hours", "notation": null}
nlprog_det-setting-0081223
Each of Wen's runs burns 400 calories. How many calories over 4 runs? Code: ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` On running, it outputs 1600. 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0081224
A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 17 thousand gallons? The bill is $100.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "100.75", "printed": "100.75", "notation": null}
nlprog_det-setting-0081225
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> How many units at $25 each (variable cost $20) cover $6,000 of fixed costs?<|eot|> <|assistant|> import math fixed = 6000 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 1200 print(units) # out: 1200 1200 uni...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "How many units at $25 each (variable cost $20) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 6000\n price = 25\n variable = 20\n unit...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0081226
After an initial $3,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part? $6,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0081227
<|start|><|user|> Filing fees are $25 per document. What do 9 filings cost?<|eot|> <|assistant|> ```python fee = 25 filings = 9 total = fee * filings # 225 print(total) ``` Run it and it prints: 225 The total fee is $225.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $25 per document. What do 9 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 25\nfilings = 9\ntotal = fee * filings # 225\nprint(total)\n```\nRun it and it prints: 225\n\nThe total fee is $225." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0081228
<|start|><|user|> A penalty of $50 a day accrues, capped at $2,500. What is owed after 41 days?<|eot|> <|assistant|> ```python per_day = 50 days = 41 cap = 2500 fine = min(per_day * days, cap) # 2050 print(fine) ``` Execution prints: 2050 $2,050 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 41 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 41\ncap = 2500\nfine = min(per_day * days, cap) # 2050\nprint(fine)\n```\nExecution prints: 2050\n\n$2,050 is owed."...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2050", "printed": "2050", "notation": null}
nlprog_det-setting-0081229
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months? We can compute it in Python. balance = 12000 monthly_rate = 1.5 / 100 months = 5 interest = balance * monthly_rate * months print(f"{interest:.2f}") Printed = 900.00 The interest is $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0081230
If a 3-year limitations period starts on June 15, 2022, when does it end? Python version: from datetime import date accrued = date(2022, 6, 15) # datetime.date(2022, 6, 15) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 6, 15) print(expires.isoformat()) Resul...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2025-06-15", "printed": "2025-06-15", "notation": null}
nlprog_det-setting-0081231
<|start|><|user|> An attorney bills 12 hours at $225 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") ``` (Result: 2700.00) The bill is $2,700.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 12 hours at $225 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 12\nrate = 225\nbill = hours * rate # 2700\nprint(f\"{bill:.2f}\")\n```\n(Result: 2700.00)\n\nThe bill is $2,700.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0081232
Rent of $1,100 goes up 3%. What is the new rent? As a program: ```python rent = 1100 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1133.0 print(f"{new_rent:.2f}") ``` Running it prints: 1133.00 It rises to $1,133.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1133.00", "printed": "1133.00", "notation": null}
nlprog_det-setting-0081234
Someone born December 10, 1987 turns how old by July 14, 2024? Give the age in whole years. Here's the code. ```python from datetime import date born = date(1987, 12, 10) # datetime.date(1987, 12, 10) on = date(2024, 7, 14) # datetime.date(2024, 7, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0081235
How many of 223 votes make 75% (round up)? ```python import math voters = 223 needed = math.ceil(voters * 75 / 100) # 168 print(needed) ``` (Out: 168) At least 168 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "168", "printed": "168", "notation": null}
nlprog_det-setting-0081236
A meal costs $138.85. How much is a 20% tip? bill = 138.85 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 27.77 print(f"{tip:.2f}") Printed = 27.77 The tip is $27.77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "27.77", "printed": "27.77", "notation": null}
nlprog_det-setting-0081237
<|start|><|user|> A settlement of $18,000 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 18000 parties = 8 share = settlement // parties # 2250 print(share) ``` Output: 2250 Each share is $2,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $18,000 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 8\nshare = settlement // parties # 2250\nprint(share)\n```\nOutput: 2250\n\nEach share is $2,...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0081238
The paralegal logged 8 hours at a rate of $410. How much is billed? One way, in code: ```python hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") ``` Printed result — 3280.00 That comes to $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0081239
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year? Computation in Python: ```python cost = 45000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 5250.0 print(f"{per_year:.2f}") ``` stdout: 5250.00 $5,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0081240
Straight-line depreciation: cost $18,000, salvage $2,000, 3 years. How much per year? ```python cost = 18000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 5333.333333333333 print(f"{per_year:.2f}") ``` stdout — 5333.33 Depreciation is $5,333.33 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "5333.33", "printed": "5333.33", "notation": null}
nlprog_det-setting-0081241
Parking is $2 per hour with a daily maximum of $18. What do 3 hours cost? Coded up: ```python rate = 2 hours = 3 daily_max = 18 cost = min(rate * hours, daily_max) # 6 print(cost) ``` This prints 6. The charge is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0081242
A pack of 8 water bottles sells for $48. What does each cost? total = 48 count = 8 per_item = total // count # 6 print(per_item) Output: 6 Each one costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0081243
4 books come back 18 days late, at $0.25 a day each. What is the fine? A few lines of Python do it: ```python per_day = 0.25 days_late = 18 books = 4 fine = per_day * days_late * books # 18.0 print(f"{fine:.2f}") ``` The run gives: 18.00 $18.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0081244
A pack of 4 hard drives sells for $100. What does each cost? In Python: ```python total = 100 count = 4 per_item = total // count # 25 print(per_item) ``` The script prints 25, as expected. Each one costs $25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0081245
An office budget of $5,000 has expenses of $2,638, $2,490, $3,988, $3,482. How much of the budget is left? Let the code do the arithmetic: ```python budget = 5000 expenses = [2638, 2490, 3988, 3482] left = budget - sum(expenses) # -7598 print(left) ``` Output: -7598 -$7,598 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "-7598", "printed": "-7598", "notation": null}
nlprog_det-setting-0081246
How many weekdays (Monday to Friday) fall after October 21, 2022 up to and including November 22, 2022? As a program: ```python from datetime import date, timedelta start = date(2022, 10, 21) end = date(2022, 11, 22) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0081247
What is the total rent on a 6-month lease at $1,475 a month? Set it up in Python: ```python monthly_rent = 1475 months = 6 total = monthly_rent * months # 8850 print(total) ``` On running, it outputs: 8850 The rent over the term is $8,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "8850", "printed": "8850", "notation": null}
nlprog_det-setting-0081248
<|start|><|user|> A 21-day notice period begins on May 26, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 5, 26) # datetime.date(2027, 5, 26) end = start + timedelta(days=21) # datetime.date(2027, 6, 16) print(end.isoformat()) ``` Printed: 2027-0...
chat
[ { "role": "user", "content": "A 21-day notice period begins on May 26, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 5, 26) # datetime.date(2027, 5, 26)\nend = start + timedelta(days=21) # datetime.dat...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2027-06-16", "printed": "2027-06-16", "notation": null}
nlprog_det-setting-0081249
<|start|><|user|> What is the total rent on a 12-month lease at $975 a month?<|eot|> <|assistant|> ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` It outputs: 11700 The rent over the term is $11,700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 12-month lease at $975 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)\n```\nIt outputs: 11700\n\nThe rent over the term is $11,700." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0081250
A 8% increase is applied to $1,500 monthly rent. What is the new amount? Here's the code. ```python rent = 1500 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1620.0 print(f"{new_rent:.2f}") ``` # program output: 1620.00 It rises to $1,620.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1620.00", "printed": "1620.00", "notation": null}
nlprog_det-setting-0081251
If a 150-minute appointment begins at 12:45 PM, what time does it finish? A short script: ```python start = 12 * 60 + 45 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The script prints 3:15 PM. It ends at 3:15 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3:15 PM", "printed": "3:15 PM", "notation": null}
nlprog_det-setting-0081252
<|start|><|user|> The firm was founded in 2021. How many years had passed by 2029?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2029 print(end_year - start_year) ``` Printed: 8 That is 8 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 2021. How many years had passed by 2029?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2029\nprint(end_year - start_year)\n```\nPrinted:\n8\n\nThat is 8 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0081253
Signe drove 569 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Script: ```python miles = 569 rate = 0.67 reimbursement = miles * rate # 381.23 print(f"{reimbursement:.2f}") ``` This prints: 381.23 The reimbursement is $381.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "381.23", "printed": "381.23", "notation": null}
nlprog_det-setting-0081254
If a 3-year limitations period starts on September 25, 2015, when does it end? In Python: ```python from datetime import date accrued = date(2015, 9, 25) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` The run gives 2018-09-25. It runs out on September 25, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2018-09-25", "printed": "2018-09-25", "notation": null}
nlprog_det-setting-0081255
An invoice lists 35 chairs at $24 each, plus 8% sales tax. What is the invoice total? Set it up in Python: ```python quantity = 35 unit_price = 24 subtotal = quantity * unit_price # 840 total = subtotal * (1 + 8 / 100) # 907.2 print(f"{total:.2f}") ``` Running it prints 907.20, as expected. The invoice total is $90...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "907.20", "printed": "907.20", "notation": null}
nlprog_det-setting-0081256
The statute was enacted in 2014. How many years had passed by 2021? Translated to Python: ```python start_year = 2014 end_year = 2021 print(end_year - start_year) ``` The code prints 7. 7 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0081257
At an exchange rate of 1.27 USD per GBP, how many USD is 8,680 GBP? Let the code do the arithmetic: ```python amount = 8680 rate = 1.27 converted = amount * rate # 11023.6 print(f"{converted:.2f}") ``` # run result: 11023.60 That is 11,023.60 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "11023.60", "printed": "11023.60", "notation": null}
nlprog_det-setting-0081258
Starting from $5,000, the team spends $1,453, $1,909, $2,543, $3,055. What remains? Program: ```python budget = 5000 expenses = [1453, 1909, 2543, 3055] left = budget - sum(expenses) # -3960 print(left) ``` Result: -3960 -$3,960 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "-3960", "printed": "-3960", "notation": null}
nlprog_det-setting-0081260
What is 15 degrees Celsius in Fahrenheit? We write it as a program: ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` (Program output: 59) It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0081261
Attendance was 94 out of 100. Express it as a percent. Let the code do the arithmetic: ```python present = 94 total = 100 percent = present / total * 100 # 94.0 print(round(percent, 1)) ``` Run result = 94.0 Attendance was 94.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "94.0", "printed": "94.0", "notation": null}
nlprog_det-setting-0081262
At $22.05 an hour, what does 24 hours of work pay? Computation in Python: rate = 22.05 hours = 24 earnings = rate * hours # 529.2 print(f"{earnings:.2f}") Printed: 529.20 That earns $529.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "529.20", "printed": "529.20", "notation": null}
nlprog_det-setting-0081263
A client paid a $2,500 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left? $1,300 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0081264
What is the total rent on a 24-month lease at $2,100 a month? We can compute it in Python. ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` This prints 50400, as expected. The rent over the term is $50,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0081265
<|start|><|user|> A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 90-page copy cost?<|eot|> <|assistant|> ```python pages = 90 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 32.5 print(f"{cost:.2f}") ``` On running, it outputs 3...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 90-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 90\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "32.50", "printed": "32.50", "notation": null}
nlprog_det-setting-0081266
A car travels 306 miles in 2 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 306 hours = 2 speed = distance / hours # 153.0 print(round(speed)) ``` Interpreter output: 153 The average speed is 153 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0081267
16 of 20 members attended. What percent attended? Attendance was 80.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0081268
What simple interest does $2,500 earn at 2% a year over 6 years? A Python solution: ```python principal = 2500 rate = 2 / 100 # 0.02 years = 6 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` This prints 300.00, as expected. It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0081269
<|start|><|system|> Answer in plain English.<|eot|> <|user|> If a 75-minute seminar begins at 2:10 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 10 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # out: 3:25 ...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "If a 75-minute seminar begins at 2:10 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 10\nend = start + 75\nhour, minute = divmod(end, 60)\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "3:25 PM", "printed": "3:25 PM", "notation": null}
nlprog_det-setting-0081270
<|start|><|user|> A 6-month warranty starts on June 26, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 6, 26) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()...
chat
[ { "role": "user", "content": "A 6-month warranty starts on June 26, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 6, 26)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.year...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-12-26", "printed": "2025-12-26", "notation": null}
nlprog_det-setting-0081271
1 books come back 2 days late, at $0.50 a day each. What is the fine? Code: ```python per_day = 0.5 days_late = 2 books = 1 fine = per_day * days_late * books # 1.0 print(f"{fine:.2f}") ``` Executing it gives: 1.00 $1.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1.00", "printed": "1.00", "notation": null}
nlprog_det-setting-0081272
How many minutes pass from 8:50 AM to 10:19 AM on the same day? Here is a short program for it. ```python start = 8 * 60 + 50 # 530 end = 10 * 60 + 19 # 619 print(end - start) ``` Shell output — 89 89 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0081273
<|start|><|user|> On which weekday does July 3, 2010 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2010, 7, 3) # datetime.date(2010, 7, 3) print(hearing.strftime("%A")) ``` The run gives Saturday, as expected. It is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does July 3, 2010 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2010, 7, 3) # datetime.date(2010, 7, 3)\nprint(hearing.strftime(\"%A\"))\n```\nThe run gives Saturday, as expected.\n\nIt is a Satur...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0081274
Buying 1 binders at $5 each, 3 keyboards at $30 each, 3 clipboards at $14 each, 5 chairs at $25 each, someone hands over $300. What change comes back? Let's compute it with Python. ```python items = [(1, 5), (3, 30), (3, 14), (5, 25)] total = sum(q * p for q, p in items) # 262 paid = 300 change = paid - total # 38 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0081275
<|start|><|user|> How many weekdays (Monday to Friday) fall after January 6, 2020 up to and including January 24, 2020?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2020, 1, 6) end = date(2020, 1, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 6, 2020 up to and including January 24, 2020?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2020, 1, 6)\n end = date(2020, 1, 24)\n count = 0\n for k...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0081276
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 1180-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 1180 days = 20 per_day = pages // days # 59 print(per_day) ``` The printout reads 59. That is 59 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 1180-page report must be reviewed in 20 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 1180\ndays = 20\nper_day = pages // days # 59\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0081277
What day of the week is September 22, 1992? A short script: ```python from datetime import date hearing = date(1992, 9, 22) # datetime.date(1992, 9, 22) print(hearing.strftime("%A")) ``` Shell output: Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0081278
<|start|><|system|> Tool definitions: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> What is the total ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0081279
Convert 4 h 18 min (the length of a deposition) to minutes. Python does the arithmetic: ```python hours = 4 minutes = 18 total_minutes = hours * 60 + minutes # 258 print(total_minutes) ``` The interpreter prints 258. The deposition lasted 258 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "258", "printed": "258", "notation": null}
nlprog_det-setting-0081280
<|start|><|user|> Papers were served by mail on June 26, 2027. 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(2027, 6, 26) # datetime.date(2027, 6, 26) response_days = 14 mail_days = 3 due =...
chat
[ { "role": "user", "content": "Papers were served by mail on June 26, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 6, 26) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2027-07-13", "printed": "2027-07-13", "notation": null}
nlprog_det-setting-0081281
How much sales tax is charged on a $509.87 purchase at 7%? The Python version: price = 509.87 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 35.690900000000006 print(f"{tax:.2f}") Run result = 35.69 The tax is $35.69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "35.69", "printed": "35.69", "notation": null}
nlprog_det-setting-0081282
Each of Rosa's walks burns 200 calories. How many calories over 7 walks? Computing it: ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` It prints 1400, as expected. 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0081283
Maren and Ivan share $3,272 in the ratio 1:3. How much does Maren get? Let's compute it with Python. ```python total = 3272 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 818 print(share_a) ``` Out: 818 Maren gets $818.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "818", "printed": "818", "notation": null}
nlprog_det-setting-0081285
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A clerk's office charges $25 for each filing. Nikhil submits 15 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 25 filings = 15 total = fee * filings # 375 print(total) ``` The program prints 375, as expected. The filings cost $375 in all....
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A clerk's office charges $25 for each filing. Nikhil submits 15 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 25\nfilings = 15\ntotal = fee * filings # 3...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0081286
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Which is cheaper per unit: 6 for $9.93 (A) or 30 for $11.61 (B)?<|eot|> <|assistant|> ```python pack_a = 9.93 / 6 # 1.655 pack_b = 11.61 / 30 # 0.38699999999999996 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Result: B B has the...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Which is cheaper per unit: 6 for $9.93 (A) or 30 for $11.61 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 9.93 / 6 # 1.655\npack_b = 11.61 / 30 # 0.38699999999999996\nc...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0081287
Straight-line depreciation: cost $30,000, salvage $3,000, 10 years. How much per year? Python does the arithmetic: ```python cost = 30000 salvage = 3000 years = 10 per_year = (cost - salvage) / years # 2700.0 print(f"{per_year:.2f}") ``` Console output — 2700.00 Depreciation is $2,700.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0081288
Copies cost $15 plus $0.50 for each page beyond 10. How much for 120 pages? The copy costs $70.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "70.00", "printed": "70.00", "notation": null}
nlprog_det-setting-0081289
<|start|><|user|> At 30 miles per hour, how many minutes does a 170-mile trip take?<|eot|> <|assistant|> ```python distance = 170 speed = 30 minutes = distance / speed * 60 # 340.0 print(round(minutes)) ``` It prints 340. The trip takes 340 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 30 miles per hour, how many minutes does a 170-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 170\nspeed = 30\nminutes = distance / speed * 60 # 340.0\nprint(round(minutes))\n```\nIt prints 340.\n\nThe trip takes 340 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "340", "printed": "340", "notation": null}
nlprog_det-setting-0081290
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description": "Searc...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0081291
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 4 months? ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` Console output: 40.00 The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0081292
<|start|><|user|> A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 1350.0 paymen...
chat
[ { "role": "user", "content": "A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 5 / 100 # 0.05\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "287.50", "printed": "287.50", "notation": null}
nlprog_det-setting-0081293
3 books come back 7 days late, at $0.20 a day each. What is the fine? Let the code do the arithmetic: ```python per_day = 0.2 days_late = 7 books = 3 fine = per_day * days_late * books # 4.2 print(f"{fine:.2f}") ``` (Run result: 4.20) The fine is $4.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "4.20", "printed": "4.20", "notation": null}
nlprog_det-setting-0081294
Express 80 hours in days and hours. In code: ```python hours = 80 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output: 3 days and 8 hours 80 hours is 3 days and 8 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "3 days and 8 hours", "printed": "3 days and 8 hours", "notation": null}
nlprog_det-setting-0081295
What is -20 degrees Celsius in Fahrenheit? Translated to Python: ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` The script prints: -4 That is -4 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0081296
<|start|><|user|> How many minutes pass from 7:21 AM to 11:59 AM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 21 # 441 end = 11 * 60 + 59 # 719 print(end - start) ``` This prints: 278 It is 278 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:21 AM to 11:59 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 21 # 441\nend = 11 * 60 + 59 # 719\nprint(end - start)\n```\nThis prints: 278\n\nIt is 278 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "278", "printed": "278", "notation": null}
nlprog_det-setting-0081297
<|start|><|user|> A training session lasted 3 hours and 19 minutes. How many minutes is that?<|eot|> <|assistant|> That is 199 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 3 hours and 19 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 199 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "199", "printed": "199", "notation": null}
nlprog_det-setting-0081298
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A penalty of $50 a day accrues, capped at $2,500. What is owed after 23 days?<|eot|> <|assistant|> ```python per_day = 50 days = 23 cap = 2500 fine = min(per_day * days, cap) # 1150 print(fine) ``` (Run result: 1150) $1,150 is owed.<|eot|> <...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 23 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 23\ncap = 2500\nfine = min(p...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1150", "printed": "1150", "notation": null}
nlprog_det-setting-0081299
<|start|><|user|> With 5 rows of 20 chairs and 31 empty chairs, how many chairs are taken?<|eot|> <|assistant|> rows = 5 per_row = 20 empty = 31 seated = rows * per_row - empty # 69 print(seated) Program output: 69 69 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 5 rows of 20 chairs and 31 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": " rows = 5\n per_row = 20\n empty = 31\n seated = rows * per_row - empty # 69\n print(seated)\nProgram output: 69\n\n69 people are seated."...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0081300
One can of paint covers 400 square feet. How many cans are needed for 868 square feet of wall? We write it as a program: ```python import math area = 868 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` It prints 3, as expected. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0081301
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` Executed, it shows: 150 150 units ar...
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 30\nvariable = 22\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "150", "printed": "150", "notation": null}