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-0062338
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
377
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0062340
A $150 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share? The Python version: bill = 150 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 59.0 print(f"{each:.2f}") (Program output: 59.00) The share is $59.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "59.00", "printed": "59.00", "notation": null}
nlprog_det-setting-0062341
Notice was given on June 24, 2023. The notice period is 30 days. When does it run out? Python: ```python from datetime import date, timedelta start = date(2023, 6, 24) end = start + timedelta(days=30) print(end.isoformat()) ``` (Printed result: 2023-07-24) It ends on July 24, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2023-07-24", "printed": "2023-07-24", "notation": null}
nlprog_det-setting-0062343
How many whole days and leftover hours are in 86 hours? 86 hours is 3 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "3 days and 14 hours", "printed": "3 days and 14 hours", "notation": null}
nlprog_det-setting-0062344
<|start|><|user|> A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 20 free = 2 bill = base + rate * max(0, used - free) # 78.0 print(f"{bill:.2f}") ``` Run it and it prints 78.00. $78.0...
chat
[ { "role": "user", "content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 20\nfree = 2\nbill = base + rate * max(0, used - free) # 78.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "78.00", "printed": "78.00", "notation": null}
nlprog_det-setting-0062345
<|start|><|user|> The rules require 2/3 of 53 members (round up) to be present. How many is that?<|eot|> <|assistant|> That is 36 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 53 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "That is 36 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0062346
Pack A has 8 items for $14.48. Pack B has 20 items for $7.40. Which has the lower price per item? The program: pack_a = 14.48 / 8 # 1.81 pack_b = 7.4 / 20 # 0.37 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) What it prints — B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0062347
<|start|><|user|> Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|> <|assistant|> Zainab earns $1,366.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?" }, { "role": "assistant", "content": "Zainab earns $1,366.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0062348
Monthly rent is $1,500. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent? Python does the arithmetic: rent = 1500 days_in_month = 31 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 387.0967741935484 print(f"{prorated:.2f}") stdout: 387.10 The ten...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0062349
A water bill is $20 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 25 thousand gallons? Coded up: ```python base = 20 rate = 5.1 used = 25 free = 0 bill = base + rate * max(0, used - free) # 147.5 print(f"{bill:.2f}") ``` Result: 147.50 $147.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "147.50", "printed": "147.50", "notation": null}
nlprog_det-setting-0062350
<|start|><|user|> A meeting starts at 4:15 PM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> start = 16 * 60 + 15 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") stdout = 6:00 PM It ends at 6:00 PM.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A meeting starts at 4:15 PM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": " start = 16 * 60 + 15\n end = start + 105\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else '...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "6:00 PM", "printed": "6:00 PM", "notation": null}
nlprog_det-setting-0062351
<|start|><|user|> A training session lasted 5 hours and 15 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 5 minutes = 15 total_minutes = hours * 60 + minutes # 315 print(total_minutes) # printed result: 315 The training session lasted 315 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 5 hours and 15 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 5\n minutes = 15\n total_minutes = hours * 60 + minutes # 315\n print(total_minutes)\n# printed result: 315\n\nThe training sessi...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0062352
<|start|><|user|> Buying 6 ink cartridges at $17 each, 2 batteries at $29 each, 5 lanyards at $24 each, someone hands over $300. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 17), (2, 29), (5, 24)] total = sum(q * p for q, p in items) # 280 paid = 300 change = paid - total # 20 print(change) ```...
chat
[ { "role": "user", "content": "Buying 6 ink cartridges at $17 each, 2 batteries at $29 each, 5 lanyards at $24 each, someone hands over $300. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 17), (2, 29), (5, 24)]\ntotal = sum(q * p for q, p in items) # 280\...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0062353
<|start|><|user|> Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 1200.0 print(f"{per_year:.2f}") ``` The program outputs: 12...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0062354
<|start|><|user|> How many meters are in 19.2 kilometers?<|eot|> <|assistant|> ```python km = 19.2 meters = km * 1000 # 19200.0 print(round(meters)) ``` (Program output: 19200) That is 19,200 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 19.2 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 19.2\nmeters = km * 1000 # 19200.0\nprint(round(meters))\n```\n(Program output: 19200)\n\nThat is 19,200 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "19200", "printed": "19200", "notation": null}
nlprog_det-setting-0062355
<|start|><|user|> A settlement of $36,000 is split equally among 4 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 36000 parties = 4 share = settlement // parties print(share) ``` # out: 9000 Each share is $9,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $36,000 is split equally among 4 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 4\nshare = settlement // parties\nprint(share)\n```\n# out: 9000\n\nEach share is $9,000." }...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0062356
<|start|><|user|> How many meters are in 53.1 kilometers?<|eot|> <|assistant|> ```python km = 53.1 meters = km * 1000 # 53100.0 print(round(meters)) ``` stdout = 53100 53,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 53.1 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 53.1\nmeters = km * 1000 # 53100.0\nprint(round(meters))\n```\nstdout = 53100\n\n53,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "53100", "printed": "53100", "notation": null}
nlprog_det-setting-0062357
<|start|><|system|> Tools (call with JSON): [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Each of Jae's bike rides bur...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0062358
What is a 22% tip on a $208.68 bill? Program: ```python bill = 208.68 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 45.909600000000005 print(f"{tip:.2f}") ``` Result: 45.91 Leave $45.91.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "45.91", "printed": "45.91", "notation": null}
nlprog_det-setting-0062359
At $0.62 per mile, what is the reimbursement for 444 miles? Let the code do the arithmetic: ```python miles = 444 rate = 0.62 reimbursement = miles * rate # 275.28 print(f"{reimbursement:.2f}") ``` Out: 275.28 Farah is owed $275.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "275.28", "printed": "275.28", "notation": null}
nlprog_det-setting-0062360
<|start|><|user|> Convert 255 USD to EUR at 1 USD = 1.08 EUR.<|eot|> <|assistant|> ```python amount = 255 rate = 1.08 converted = amount * rate print(f"{converted:.2f}") ``` Python prints 275.40. That is 275.40 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 255 USD to EUR at 1 USD = 1.08 EUR." }, { "role": "assistant", "content": "```python\namount = 255\nrate = 1.08\nconverted = amount * rate\nprint(f\"{converted:.2f}\")\n```\nPython prints 275.40.\n\nThat is 275.40 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "275.40", "printed": "275.40", "notation": null}
nlprog_det-setting-0062361
$5,000 is invested at 2% compounded yearly. What is it worth after 4 years? Python makes this quick: principal = 5000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 5412.1608 print(f"{value:.2f}") Out: 5412.16 The balance is $5,412.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "5412.16", "printed": "5412.16", "notation": null}
nlprog_det-setting-0062362
<|start|><|user|> 262 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 262 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The interpreter prints: 65 each, 2 left over The...
chat
[ { "role": "user", "content": "262 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 262\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "65 each, 2 left over", "printed": "65 each, 2 left over", "notation": null}
nlprog_det-setting-0062363
How many days are there from January 17, 2018 to September 20, 2018? Python, step by step: from datetime import date first = date(2018, 1, 17) # datetime.date(2018, 1, 17) second = date(2018, 9, 20) # datetime.date(2018, 9, 20) print((second - first).days) (Run result: 246) It is 246 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "246", "printed": "246", "notation": null}
nlprog_det-setting-0062364
Straight-line depreciation: cost $12,000, salvage $2,000, 5 years. How much per year? Computing it: ```python cost = 12000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Execution result — 2000.00 Depreciation is $2,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0062365
4 runs at 300 calories each burn how many calories in total? As a program: per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) stdout: 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0062366
How many weekdays (Monday to Friday) fall after September 1, 2023 up to and including October 1, 2023? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2023, 9, 1) end = date(2023, 10, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0062367
Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 4,000 gallons? In Python: ```python base = 20 rate = 4.75 used = 4 free = 2 bill = base + rate * max(0, used - free) # 29.5 print(f"{bill:.2f}") ``` Executing it gives 29.50. The bill is $29.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0062368
Goods bought on September 4, 2024 carry a 6-month warranty. When does it expire? ```python from datetime import date start = date(2024, 9, 4) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Shell output — 2025-03...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2025-03-04", "printed": "2025-03-04", "notation": null}
nlprog_det-setting-0062369
A $150 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? Python makes this quick: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 57.5 print(f"{each:.2f}") ``` Interpreter output — 57.50 Each person pays $57.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0062370
<|start|><|system|> You are a math tutor.<|eot|> <|user|> An office budget of $5,000 has expenses of $927, $491, $3,343. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [927, 491, 3343] left = budget - sum(expenses) # 239 print(left) ``` That prints 239. The remaining budget is...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "An office budget of $5,000 has expenses of $927, $491, $3,343. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [927, 491, 3343]\nleft = ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "239", "printed": "239", "notation": null}
nlprog_det-setting-0062371
3 boxes hold 10 lanyards each. After 14 are handed out, how many are left? Python version: ```python boxes = 3 per_box = 10 given_away = 14 left = boxes * per_box - given_away # 16 print(left) ``` Python prints 16, as expected. 16 lanyards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0062373
<|start|><|user|> A 37 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 0.75 weight = 37 cost = base + per_pound * weight # 39.75 print(f"{cost:.2f}") ``` Run output: 39.75 The charge is $39.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 37 lb package ships at $12 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 0.75\nweight = 37\ncost = base + per_pound * weight # 39.75\nprint(f\"{cost:.2f}\")\n```\nRun output: 39.75\n\nThe charge i...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "39.75", "printed": "39.75", "notation": null}
nlprog_det-setting-0062374
How many days are there from September 9, 2025 to April 15, 2026? As a program: ```python from datetime import date first = date(2025, 9, 9) # datetime.date(2025, 9, 9) second = date(2026, 4, 15) # datetime.date(2026, 4, 15) print((second - first).days) ``` The run gives 218. It is 218 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "218", "printed": "218", "notation": null}
nlprog_det-setting-0062375
How many units at $20 each (variable cost $10) cover $9,000 of fixed costs? A few lines of Python do it: ```python import math fixed = 9000 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` Python prints: 900 Break-even is 900 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0062376
<|start|><|system|> Tools you may use: [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Copies cost $10 plus $0.25 for ea...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "22.75", "printed": "22.75", "notation": null}
nlprog_det-setting-0062377
At a 9% tax rate, what is the tax on $719.77? We can compute it in Python. ```python price = 719.77 tax_rate = 9 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` It prints: 64.78 The tax is $64.78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "64.78", "printed": "64.78", "notation": null}
nlprog_det-setting-0062378
<|start|><|user|> Shipping costs $10 plus $1.20 per pound. What does a 25-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $40.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $1.20 per pound. What does a 25-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $40.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0062379
What is 35 degrees Celsius in Fahrenheit? A few lines of Python do it: ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` Out = 95 It equals 95 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0062380
<|start|><|user|> If a 50-minute shift begins at 2:00 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 0 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Output: 2:50 PM) It ends at 2:50 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 50-minute shift begins at 2:00 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 0\nend = start + 50\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2:50 PM", "printed": "2:50 PM", "notation": null}
nlprog_det-setting-0062381
The rules require 1/3 of 50 members (round up) to be present. How many is that? The computation: ```python import math members = 50 quorum = math.ceil(members * 1 / 3) # 17 print(quorum) ``` The run gives 17, as expected. 17 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0062382
<|start|><|system|> Functions: {"name": "calc", "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|> 11 markers cost $12 apiece. Wit...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calc\", \"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\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "138.60", "printed": "138.60", "notation": null}
nlprog_det-setting-0062383
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A hall has 6 rows of 15 seats, and 12 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 6 per_row = 15 empty = 12 seated = rows * per_row - empty # 78 print(seated) ``` Running this gives 78. 78 people are seated.<|eot|> <|...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A hall has 6 rows of 15 seats, and 12 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 6\nper_row = 15\nempty = 12\nseated = rows * per_row...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0062384
<|start|><|user|> Meals are $64 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?<|eot|> <|assistant|> The allowance is $1,456.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?" }, { "role": "assistant", "content": "The allowance is $1,456." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1456", "printed": "1456", "notation": null}
nlprog_det-setting-0062385
After an initial $3,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part? ```python grant = 24000 up_front = 3000 installments = 4 each = (grant - up_front) / installments print(f"{each:.2f}") ``` Executed, it shows: 5250.00 $5,250.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0062386
A 3% increase is applied to $1,800 monthly rent. What is the new amount? Code: ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` When run, it prints 1854.00, as expected. It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0062387
Scale 150 g of lentils from 4 servings to 6 servings. A Python solution: ```python grams = 150 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 225 print(scaled) ``` Console: 225 225 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0062388
<|start|><|system|> You can call tools. Available tools: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> An invoice lists 35...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "296.80", "printed": "296.80", "notation": null}
nlprog_det-setting-0062389
<|start|><|system|> Keep explanations short.<|eot|> <|user|> 3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 15 / 100 people = 3 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` That prints: 46.00 The share is $46.00 each.<|e...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 15 / 100\npeople = 3\neach = bill * (1 + tip_...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "46.00", "printed": "46.00", "notation": null}
nlprog_det-setting-0062390
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 6 each = (grant - up_front) / installments # 7500.0 print(f"{each:.2f}") ``...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 3000\ninst...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0062391
Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year? Here's the code. ```python cost = 24000 salvage = 6000 years = 4 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Printed result: 4500.00 $4,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0062392
Rosa earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? Here is the program. ```python rate = 18.5 hours = 43 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 83.25 pay = regular + overtime # 823.25 print(f"{pay:.2f}") ``` (Console output: 823.25) Rosa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "823.25", "printed": "823.25", "notation": null}
nlprog_det-setting-0062394
<|start|><|system|> Tool definitions: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Of a $2,000 budget, $700 has be...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0062395
A penalty of $25 a day accrues, capped at $5,000. What is owed after 28 days? Python, step by step: ```python per_day = 25 days = 28 cap = 5000 fine = min(per_day * days, cap) # 700 print(fine) ``` Output = 700 The fine is $700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0062396
What simple interest does $2,500 earn at 2% a year over 5 years? Here is a short program for it. ```python principal = 2500 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 250.0 print(f"{interest:.2f}") ``` The interpreter prints: 250.00 The interest is $250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0062397
Sami buys 11 boxes of 24 clipboards each and gives away 8 clipboards. How many clipboards are left? Code: boxes = 11 per_box = 24 given_away = 8 left = boxes * per_box - given_away # 256 print(left) Execution prints: 256 That leaves 256 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0062398
<|start|><|system|> You help with homework problems.<|eot|> <|user|> How much is a $79 daily meal allowance over 4 days?<|eot|> <|assistant|> The allowance is $316.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "How much is a $79 daily meal allowance over 4 days?" }, { "role": "assistant", "content": "The allowance is $316." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "316", "printed": "316", "notation": null}
nlprog_det-setting-0062399
<|start|><|user|> A desk lamp costs $60. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` # output: 54.00 The sale price is $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A desk lamp costs $60. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\n# output: 54.00\n\nThe sale price ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0062400
<|start|><|user|> Someone works 36 hours at $23.56 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 23.56 hours = 36 earnings = rate * hours # 848.16 print(f"{earnings:.2f}") ``` It prints: 848.16 The pay is $848.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $23.56 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 23.56\nhours = 36\nearnings = rate * hours # 848.16\nprint(f\"{earnings:.2f}\")\n```\nIt prints: 848.16\n\nThe pay is $848.16." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "848.16", "printed": "848.16", "notation": null}
nlprog_det-setting-0062401
Prorate $1,500 of monthly rent for 24 days of a 31-day month. One way, in code: ```python rent = 1500 days_in_month = 31 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1161.2903225806451 print(f"{prorated:.2f}") ``` Printed: 1161.29 The prorated rent is $1,161.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1161.29", "printed": "1161.29", "notation": null}
nlprog_det-setting-0062402
How many 1-foot square tiles cover a 19 ft by 4 ft floor (round up)? ```python import math length = 19 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 76 print(tiles) ``` Printed = 76 It takes 76 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0062403
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> P...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "708.00", "printed": "708.00", "notation": null}
nlprog_det-setting-0062404
After an initial $2,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part? Each installment is $14,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0062405
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 24 months. How large is a payment? ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 1080.0 payment = (principal + interest) / months # 420.0 print(f"{payment:.2f}") ``` The r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "420.00", "printed": "420.00", "notation": null}
nlprog_det-setting-0062406
<|start|><|system|> Tool definitions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "get_weather", "description": "Get the weather for a...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0062407
<|start|><|user|> With 30% off, what does a $60 bicycle helmet cost?<|eot|> <|assistant|> ```python price = 60 discount = 30 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` # program output: 42.00 The sale price is $42.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $60 bicycle helmet cost?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 30 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\n# program output: 42.00\n\nThe sale price is $42.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0062408
<|start|><|user|> 639 files go into boxes of 20. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 639 per_box = 20 boxes = math.ceil(files / per_box) # 32 print(boxes) ``` Printed: 32 It takes 32 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "639 files go into boxes of 20. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 639\nper_box = 20\nboxes = math.ceil(files / per_box) # 32\nprint(boxes)\n```\nPrinted: 32\n\nIt takes 32 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0062409
What simple interest does $2,500 earn at 3% a year over 5 years? A short script: ```python principal = 2500 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 375.0 print(f"{interest:.2f}") ``` # stdout: 375.00 It earns $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0062410
213 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? A Python solution: ```python total = 213 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program outputs: 71 each, 0 left over 71 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "71 each, 0 left over", "printed": "71 each, 0 left over", "notation": null}
nlprog_det-setting-0062411
<|start|><|system|> You can call tools. Available tools: {"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> 10 boxe...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0062412
How many of 273 votes make 60% (round up)? Python, step by step: ```python import math voters = 273 needed = math.ceil(voters * 60 / 100) # 164 print(needed) ``` The program outputs: 164 164 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0062413
Parking is $3 per hour with a daily maximum of $24. What do 8 hours cost? Python does the arithmetic: ```python rate = 3 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` # result: 24 Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0062414
<|start|><|user|> Starting with 1583 labels and using 30 per day, how many remain after 16 days?<|eot|> <|assistant|> ```python stock = 1583 per_day = 30 days = 16 left = stock - per_day * days # 1103 print(left) ``` Python prints 1103. 1103 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1583 labels and using 30 per day, how many remain after 16 days?" }, { "role": "assistant", "content": "```python\nstock = 1583\nper_day = 30\ndays = 16\nleft = stock - per_day * days # 1103\nprint(left)\n```\nPython prints 1103.\n\n1103 remain." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1103", "printed": "1103", "notation": null}
nlprog_det-setting-0062415
Each of Ulla's bike rides burns 350 calories. How many calories over 4 bike rides? Python: ```python per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) ``` Output: 1400 That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0062416
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 94-page copy cost? Here is the program. ```python pages = 94 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 57.0 print(f"{cost:.2f}") ``` (Printed result: 57.00) The copy costs $5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0062417
With 6 rows of 24 chairs and 13 empty chairs, how many chairs are taken? A Python solution: rows = 6 per_row = 24 empty = 13 seated = rows * per_row - empty # 131 print(seated) Python prints 131, as expected. 131 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "131", "printed": "131", "notation": null}
nlprog_det-setting-0062418
What percentage of $8,000 is $3,600? Python: ```python budget = 8000 spent = 3600 percent = spent / budget * 100 # 45.0 print(round(percent, 1)) ``` Run result = 45.0 45.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "45.0", "printed": "45.0", "notation": null}
nlprog_det-setting-0062420
A 285-page report must be reviewed in 19 days. How many pages a day is that, evenly? The computation: pages = 285 days = 19 per_day = pages // days # 15 print(per_day) Running it prints 15, as expected. 15 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0062421
The landlord deducts $200 from a $1,000 deposit. What is returned to the tenant? In code: ```python deposit = 1000 deductions = [200] refund = deposit - sum(deductions) # 800 print(refund) ``` Output — 800 The refund is $800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0062422
How many units at $40 each (variable cost $30) cover $4,000 of fixed costs? Python makes this quick: ```python import math fixed = 4000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` Interpreter output: 400 Break-even is 400 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0062424
<|start|><|user|> Walls total 950 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 950 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "3 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0062425
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? Script: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080.0 print(f"{interest:.2f}") ``` When run, it prints 1080.00, as expected. The int...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0062426
Find the mean of these test scores: 54, 55, 100, 85 and 91. Here is a short program for it. ```python scores = [54, 55, 100, 85, 91] average = sum(scores) // len(scores) # 77 print(average) ``` Printed result — 77 The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0062427
<|start|><|user|> An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` Execution result: 80.00 The ...
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 4\ninterest = balance * monthly_rate * months # 80.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0062428
A 7-day trip pays $79 a day for meals and $140 a night for lodging (6 nights). What is the total allowance? Python code: days = 7 meal_rate = 79 lodging_rate = 140 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) (Output: 1393) The allowance is $1,393.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1393", "printed": "1393", "notation": null}
nlprog_det-setting-0062429
Parking is $3 per hour with a daily maximum of $20. What do 6 hours cost? rate = 3 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 18 print(cost) The program prints: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0062430
<|start|><|user|> 14 hard drives cost $24 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 14 unit_price = 24 subtotal = quantity * unit_price total = subtotal * (1 + 5 / 100) print(f"{total:.2f}") ``` The program outputs 352.80. The invoice total is $352.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "14 hard drives cost $24 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 14\nunit_price = 24\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 5 / 100)\nprint(f\"{total:.2f}\")\n```\nThe program outp...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "352.80", "printed": "352.80", "notation": null}
nlprog_det-setting-0062431
Sales went from 800 to 680. What is the percent change? Python: ```python old = 800 new = 680 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Run result = -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0062432
Express 261 hours in days and hours. 261 hours is 10 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "10 days and 21 hours", "printed": "10 days and 21 hours", "notation": null}
nlprog_det-setting-0062433
<|start|><|user|> After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each share is $9,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each share is $9,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0062434
Rent of $1,250 goes up 5%. What is the new rent? Script: ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` The script prints 1312.50, as expected. It rises to $1,312.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0062435
Uma lends $20,000 at 4% simple interest per year for 3 years. How much interest is earned? Computing it: ```python principal = 20000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") ``` Console output — 2400.00 It earns $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0062436
Rent of $1,800 goes up 2%. What is the new rent? Let the code do the arithmetic: ```python rent = 1800 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1836.0 print(f"{new_rent:.2f}") ``` # program output: 1836.00 It rises to $1,836.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1836.00", "printed": "1836.00", "notation": null}
nlprog_det-setting-0062437
A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments? Python, step by step: ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly print(savings) ``` Printed — 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0062438
At $30.85 an hour, what does 40 hours of work pay? In Python: ```python rate = 30.85 hours = 40 earnings = rate * hours # 1234.0 print(f"{earnings:.2f}") ``` # out: 1234.00 The pay is $1,234.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1234.00", "printed": "1234.00", "notation": null}
nlprog_det-setting-0062439
<|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": "calc", "description":...
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
[]
[]
319
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0062440
What is 40 degrees Celsius in Fahrenheit? Computation in Python: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Output = 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0062441
A 5% increase is applied to $1,100 monthly rent. What is the new amount? ```python rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") ``` # output: 1155.00 It rises to $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0062442
164 copies of a 19-page packet are printed at $0.10 per page. What is the cost? The Python version: pages = 19 copies = 164 cost_per_page = 0.1 cost = pages * copies * cost_per_page print(f"{cost:.2f}") Run result = 311.60 The job costs $311.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "311.60", "printed": "311.60", "notation": null}
nlprog_det-setting-0062443
Olga and Uma share $1,728 in the ratio 1:2. How much does Olga get? We write it as a program: ```python total = 1728 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 576 print(share_a) ``` (stdout: 576) Olga gets $576.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "576", "printed": "576", "notation": null}