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-0047646
A 14 lb package ships at $10 base plus $1.20/lb. What is the charge? Python makes this quick: ```python base = 10 per_pound = 1.2 weight = 14 cost = base + per_pound * weight # 26.8 print(f"{cost:.2f}") ``` Interpreter output: 26.80 The charge is $26.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26.80", "printed": "26.80", "notation": null}
nlprog_det-setting-0047647
<|start|><|system|> You may call the tools below. {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "lookup_statute", "description": "Loo...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "17550", "printed": "17550", "notation": null}
nlprog_det-setting-0047648
Someone born December 10, 1995 turns how old by March 17, 2021? Give the age in whole years. A Python solution: ```python from datetime import date born = date(1995, 12, 10) # datetime.date(1995, 12, 10) on = date(2021, 3, 17) # datetime.date(2021, 3, 17) age = on.year - born.year - ((on.month, on.day) < (born.month...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0047649
<|start|><|user|> A party has 14 days to respond to a motion served on November 17, 2020, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2020, 11, 17) # datetime.date(2020, 11, 17) response_days = 14 mail_days =...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on November 17, 2020, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2020, 11, 17) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2020-12-04", "printed": "2020-12-04", "notation": null}
nlprog_det-setting-0047650
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> How many units at $30 each (variable cost $25) cover $6,000 of fixed costs?<|eot|> <|assistant|> 1200 units are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "How many units at $30 each (variable cost $25) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": "1200 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0047651
What is a 10% tip on a $79.28 bill? As Python: ```python bill = 79.28 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 7.928000000000001 print(f"{tip:.2f}") ``` Out — 7.93 Leave $7.93.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "7.93", "printed": "7.93", "notation": null}
nlprog_det-setting-0047652
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> At an e...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "816.96", "printed": "816.96", "notation": null}
nlprog_det-setting-0047654
<|start|><|user|> Fines run at $25 per day up to a maximum of $5,000. How much after 40 days?<|eot|> <|assistant|> ```python per_day = 25 days = 40 cap = 5000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Run it and it prints: 1000 The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $25 per day up to a maximum of $5,000. How much after 40 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 40\ncap = 5000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nRun it and it prints: 1000\n\nThe fine is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047655
<|start|><|user|> An invoice lists 30 mugs at $2 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 30 unit_price = 2 subtotal = quantity * unit_price # 60 total = subtotal * (1 + 6 / 100) # 63.6 print(f"{total:.2f}") ``` Result = 63.60 The total with tax is $63.60.<|eot|> ...
chat
[ { "role": "user", "content": "An invoice lists 30 mugs at $2 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 30\nunit_price = 2\nsubtotal = quantity * unit_price # 60\ntotal = subtotal * (1 + 6 / 100) # 63.6\nprint(f\"{total:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "63.60", "printed": "63.60", "notation": null}
nlprog_det-setting-0047656
Ulla drove 139 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? We can compute it in Python. ```python miles = 139 rate = 0.65 reimbursement = miles * rate # 90.35000000000001 print(f"{reimbursement:.2f}") ``` Executed, it shows: 90.35 Ulla is owed $90.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "90.35", "printed": "90.35", "notation": null}
nlprog_det-setting-0047657
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A 15 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> 105 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A 15 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "105 tiles are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0047658
How many 2-foot square tiles cover a 11 ft by 4 ft floor (round up)? Let's compute it with Python. ```python import math length = 11 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 11 print(tiles) ``` Running this gives: 11 11 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0047659
After a 40% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2 # 14400.0 print(f"{per_client:.2f}") ``` The interpreter prints 14400.00. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0047660
A shift runs from 10:40 AM to 11:37 AM. How long is it in minutes? A short script: ```python start = 10 * 60 + 40 # 640 end = 11 * 60 + 37 # 697 print(end - start) ``` Running this gives: 57 57 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0047661
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year? We can compute it in Python. ```python cost = 45000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 4300.0 print(f"{per_year:.2f}") ``` Python prints: 4300.00 Deprec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "4300.00", "printed": "4300.00", "notation": null}
nlprog_det-setting-0047662
5 walks at 250 calories each burn how many calories in total? Set it up in Python: ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` The interpreter prints: 1250 That burns 1250 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0047663
<|start|><|system|> Functions: {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Goods bought on Ma...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "2023-09-27", "printed": "2023-09-27", "notation": null}
nlprog_det-setting-0047664
A 90-mile drive at a steady 30 mph takes how many minutes? In code: ```python distance = 90 speed = 30 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` Shell output — 180 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0047665
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Programmatically: ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` Out — 10.0 The margin is 10.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0047666
A hall has 27 rows of 8 seats, and 27 seats are empty. How many people are seated? Written as code: ```python rows = 27 per_row = 8 empty = 27 seated = rows * per_row - empty # 189 print(seated) ``` (stdout: 189) 189 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0047667
<|start|><|user|> What day of the week is March 1, 2002?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2002, 3, 1) # datetime.date(2002, 3, 1) print(hearing.strftime("%A")) ``` Executing it gives Friday. It is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is March 1, 2002?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2002, 3, 1) # datetime.date(2002, 3, 1)\nprint(hearing.strftime(\"%A\"))\n```\nExecuting it gives Friday.\n\nIt is a Friday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0047668
<|start|><|user|> To read 576 pages in 18 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 576 days = 18 per_day = pages // days # 32 print(per_day) The printout reads: 32 That is 32 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 576 pages in 18 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 576\n days = 18\n per_day = pages // days # 32\n print(per_day)\nThe printout reads: 32\n\nThat is 32 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0047669
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Equipment costs $45,000, has ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "4300.00", "printed": "4300.00", "notation": null}
nlprog_det-setting-0047670
<|start|><|user|> Pack A has 10 items for $6.15. Pack B has 20 items for $10.53. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 6.15 / 10 # 0.615 pack_b = 10.53 / 20 # 0.5265 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The run gives: B B has the lower unit price.<...
chat
[ { "role": "user", "content": "Pack A has 10 items for $6.15. Pack B has 20 items for $10.53. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 6.15 / 10 # 0.615\npack_b = 10.53 / 20 # 0.5265\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0047671
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "description": "Get the weather fo...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
335
{"gold": "7500", "printed": "7500", "notation": null}
nlprog_det-setting-0047672
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> 6 runs at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` Python prints: 1200 That burns 1200 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "6 runs at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 6\ntotal = per_session * sessions # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0047673
A 459-page report must be reviewed in 17 days. How many pages a day is that, evenly? Computing it: ```python pages = 459 days = 17 per_day = pages // days # 27 print(per_day) ``` Executing it gives 27. That is 27 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0047674
Convert 15 °C to Fahrenheit. Code: ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` (Execution result: 59) That is 59 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0047675
What is a 10% tip on a $44.83 bill? Script: ```python bill = 44.83 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 4.483 print(f"{tip:.2f}") ``` Out: 4.48 Leave $4.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4.48", "printed": "4.48", "notation": null}
nlprog_det-setting-0047676
How many 1-foot square tiles cover a 17 ft by 12 ft floor (round up)? Code: ```python import math length = 17 width = 12 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 204 print(tiles) ``` Run it and it prints: 204 It takes 204 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0047677
A count moves from 800 to 960. By what percent did it change (use a minus sign for a drop)? A Python solution: ```python old = 800 new = 960 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` The script prints 20, as expected. It changed by 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0047678
A $2,500 security deposit has deductions of $45. How much is refunded? Python does the arithmetic: deposit = 2500 deductions = [45] refund = deposit - sum(deductions) print(refund) Execution result: 2455 The refund is $2,455.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "2455", "printed": "2455", "notation": null}
nlprog_det-setting-0047679
<|start|><|user|> A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 25000 rate = 40 / 100 # 0.4 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` Printed — 10000.00 The lawyer's fee comes to $10,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nPrinted — 10000.00\n\nThe lawyer's fee comes ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0047680
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> From a $7,500 retainer, 12 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> The remaining balance is $4,500.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "From a $7,500 retainer, 12 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "The remaining balance is $4,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0047681
<|start|><|user|> Lena was born on March 14, 1990. How old is Lena on June 13, 2026?<|eot|> <|assistant|> ```python from datetime import date born = date(1990, 3, 14) # datetime.date(1990, 3, 14) on = date(2026, 6, 13) # datetime.date(2026, 6, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
chat
[ { "role": "user", "content": "Lena was born on March 14, 1990. How old is Lena on June 13, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1990, 3, 14) # datetime.date(1990, 3, 14)\non = date(2026, 6, 13) # datetime.date(2026, 6, 13)\nage = on.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0047682
<|start|><|system|> Give the answer first.<|eot|> <|user|> A count moves from 800 to 1,120. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by 40%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A count moves from 800 to 1,120. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by 40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0047683
<|start|><|user|> Parking is $5 per hour with a daily maximum of $20. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` # printed result: 20 Parking costs $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $20. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\n# printed result: 20\n\nParking costs $20....
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0047684
To read 405 pages in 15 days, how many pages per day are needed? Here is a short program for it. ```python pages = 405 days = 15 per_day = pages // days # 27 print(per_day) ``` Result: 27 That is 27 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0047685
<|start|><|user|> 102 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 102 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Program output: 12 each, 6 left over) 12 each, ...
chat
[ { "role": "user", "content": "102 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 102\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "12 each, 6 left over", "printed": "12 each, 6 left over", "notation": null}
nlprog_det-setting-0047686
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Walls total 212 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 212 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` Output of the run: 1 1 cans are needed.<|eot|> <|...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Walls total 212 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 212\ncoverage = 400\ncans = math.ceil(...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0047687
Which is cheaper per unit: 8 for $12.18 (A) or 30 for $8.70 (B)? In Python: ```python pack_a = 12.18 / 8 # 1.5225 pack_b = 8.7 / 30 # 0.29 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Run result: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0047688
A 16 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? The Python version: ```python import math length = 16 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 240 print(tiles) ``` Run result: 240 240 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0047689
A water bill is $15 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons? Python version: ```python base = 15 rate = 4.75 used = 7 free = 3 bill = base + rate * max(0, used - free) # 34.0 print(f"{bill:.2f}") ``` What it prints: 34.00 $34.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0047690
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 25 variable = 21 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` Python prints 1000. Break-even is 1...
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 25\nvariable = 21\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047691
5 friends split a $150 bill plus a 20% tip evenly. How much does each pay? We write it as a program: ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 36.0 print(f"{each:.2f}") ``` # result: 36.00 The share is $36.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0047692
Starting from $8,000, the team spends $2,777, $2,830, $589, $529. What remains? One way, in code: budget = 8000 expenses = [2777, 2830, 589, 529] left = budget - sum(expenses) # 1275 print(left) Console: 1275 The remaining budget is $1,275.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1275", "printed": "1275", "notation": null}
nlprog_det-setting-0047693
<|start|><|user|> What is the total rent on a 18-month lease at $975 a month?<|eot|> <|assistant|> The rent over the term is $17,550.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $975 a month?" }, { "role": "assistant", "content": "The rent over the term is $17,550." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "17550", "printed": "17550", "notation": null}
nlprog_det-setting-0047694
<|start|><|user|> With 30% off, what does a $300 backpack cost?<|eot|> <|assistant|> It costs $210.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $300 backpack cost?" }, { "role": "assistant", "content": "It costs $210.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0047695
<|start|><|user|> How many of 24 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 24 majority = members // 2 + 1 # 13 print(majority) ``` Execution prints 13. That is 13 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 24 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 24\nmajority = members // 2 + 1 # 13\nprint(majority)\n```\nExecution prints 13.\n\nThat is 13 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0047696
522 files go into boxes of 50. How many boxes does that take? Python, step by step: ```python import math files = 522 per_box = 50 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` stdout: 11 It takes 11 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0047697
$5,000 is invested at 4% compounded yearly. What is it worth after 4 years? Code: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 5849.292800000001 print(f"{value:.2f}") ``` That prints 5849.29. It is worth $5,849.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5849.29", "printed": "5849.29", "notation": null}
nlprog_det-setting-0047698
<|start|><|user|> A bicycle helmet costs $45. It is 30% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 31.499999999999996 print(f"{sale_price:.2f}") ``` The program outputs: 31.50 The sale price is $31.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $45. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 31.499999999999996\nprint(f\"{sale_price:.2f}\")\n```\nThe program out...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0047699
With 15% off, what does a $120 desk lamp cost? Let the code do the arithmetic: price = 120 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 102.0 print(f"{sale_price:.2f}") Result — 102.00 It costs $102.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "102.00", "printed": "102.00", "notation": null}
nlprog_det-setting-0047701
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> How many meters are in 15.3 kilometers?<|eot|> <|assistant|> ```python km = 15.3 meters = km * 1000 print(round(meters)) ``` Running this gives: 15300 That is 15,300 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "How many meters are in 15.3 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 15.3\nmeters = km * 1000\nprint(round(meters))\n```\nRunning this gives: 15300\n\nThat is 15,300 met...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0047702
How many of 212 votes make 75% (round up)? A few lines of Python do it: ```python import math voters = 212 needed = math.ceil(voters * 75 / 100) # 159 print(needed) ``` The run gives: 159 159 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "159", "printed": "159", "notation": null}
nlprog_det-setting-0047703
<|start|><|user|> Copies cost $5 plus $0.50 for each page beyond 10. How much for 96 pages?<|eot|> <|assistant|> ```python pages = 96 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 48.0 print(f"{cost:.2f}") ``` Shell output: 48.00 The total is $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $5 plus $0.50 for each page beyond 10. How much for 96 pages?" }, { "role": "assistant", "content": "```python\npages = 96\nbase = 5\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 48.0\nprint(f\"{cost:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0047704
Of a $2,000 budget, $400 has been spent. What percent is that? ```python budget = 2000 spent = 400 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` It prints 20.0. That is 20.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0047705
How much sales tax is charged on a $374.13 purchase at 6%? Here is the program. ```python price = 374.13 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 22.447799999999997 print(f"{tax:.2f}") ``` (stdout: 22.45) The tax is $22.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "22.45", "printed": "22.45", "notation": null}
nlprog_det-setting-0047706
How many of 66 votes make 67% (round up)? Python code: import math voters = 66 needed = math.ceil(voters * 67 / 100) # 45 print(needed) Execution result: 45 45 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0047707
4 folders cost $15 apiece. With 10% tax added, what is the total? Python does the arithmetic: ```python quantity = 4 unit_price = 15 subtotal = quantity * unit_price # 60 total = subtotal * (1 + 10 / 100) # 66.0 print(f"{total:.2f}") ``` Executed, it shows: 66.00 The invoice total is $66.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "66.00", "printed": "66.00", "notation": null}
nlprog_det-setting-0047708
Someone works 40 hours at $18.86 per hour. What are the earnings? Here is a short program for it. ```python rate = 18.86 hours = 40 earnings = rate * hours # 754.4 print(f"{earnings:.2f}") ``` (stdout: 754.40) The pay is $754.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "754.40", "printed": "754.40", "notation": null}
nlprog_det-setting-0047709
A deposition lasted 2 hours and 42 minutes. How many minutes is that? The deposition lasted 162 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0047711
<|start|><|user|> Convert 40 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` What it prints: 104 That is 104 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 40 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nWhat it prints: 104\n\nThat is 104 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0047712
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Rosa earns a 3% commission ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "2585.49", "printed": "2585.49", "notation": null}
nlprog_det-setting-0047713
<|start|><|user|> Starting from $25,000, the team spends $531, $2,542. What remains?<|eot|> <|assistant|> budget = 25000 expenses = [531, 2542] left = budget - sum(expenses) # 21927 print(left) The program prints 21927, as expected. The remaining budget is $21,927.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $25,000, the team spends $531, $2,542. What remains?" }, { "role": "assistant", "content": " budget = 25000\n expenses = [531, 2542]\n left = budget - sum(expenses) # 21927\n print(left)\nThe program prints 21927, as expected.\n\nThe remai...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "21927", "printed": "21927", "notation": null}
nlprog_det-setting-0047714
A customer buys 2 batteries at $10 each, 3 toner kits at $8 each and pays with $50. How much change is due? ```python items = [(2, 10), (3, 8)] total = sum(q * p for q, p in items) # 44 paid = 50 change = paid - total # 6 print(change) ``` It prints 6. The change is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0047715
<|start|><|user|> Convert 5 h 19 min (the length of a meeting) to minutes.<|eot|> <|assistant|> The meeting lasted 319 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 19 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "The meeting lasted 319 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "319", "printed": "319", "notation": null}
nlprog_det-setting-0047716
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> If a 135-minute meeting begins at 11:30 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 11 * 60 + 30 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Resul...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "If a 135-minute meeting begins at 11:30 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 30\nend = start + 135\nhour, minute = divmod(end, 6...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1:45 PM", "printed": "1:45 PM", "notation": null}
nlprog_det-setting-0047717
Parking is $3 per hour with a daily maximum of $24. What do 5 hours cost? Python code: ```python rate = 3 hours = 5 daily_max = 24 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Running this gives: 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0047718
A $3,600 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? As Python: principal = 3600 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0047719
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> With $36,000 in costs and $38,500 in ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0047720
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> What is 35 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> That is 95 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "What is 35 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "That is 95 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0047721
<|start|><|user|> Scale 300 g of flour from 6 servings to 2 servings.<|eot|> <|assistant|> ```python grams = 300 serves = 6 needed_for = 2 scaled = grams * needed_for // serves # 100 print(scaled) ``` Program output — 100 Use 100 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 300 g of flour from 6 servings to 2 servings." }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 6\nneeded_for = 2\nscaled = grams * needed_for // serves # 100\nprint(scaled)\n```\nProgram output — 100\n\nUse 100 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0047722
<|start|><|system|> You may call the tools below. {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "interpreter", "description": "Use for ari...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"e...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0047723
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"n...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
262
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0047724
A trial runs from September 26, 2023 to October 11, 2023, counting both days. How many calendar days is that? from datetime import date first = date(2023, 9, 26) # datetime.date(2023, 9, 26) last = date(2023, 10, 11) # datetime.date(2023, 10, 11) days = (last - first).days + 1 # 16 print(days) T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0047725
Express 122 hours in days and hours. Set it up in Python: ```python hours = 122 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads 5 days and 2 hours. 122 hours is 5 days and 2 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5 days and 2 hours", "printed": "5 days and 2 hours", "notation": null}
nlprog_det-setting-0047726
Chen earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? Translated to Python: ```python rate = 22.4 hours = 50 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 336.0 pay = regular + overtime # 1232.0 print(f"{pay:.2f}") ``` When run, it prints 1232.00. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1232.00", "printed": "1232.00", "notation": null}
nlprog_det-setting-0047727
Monthly: $19. Annual: $198. What is saved per year by paying annually? Coded up: ```python monthly = 19 yearly = 198 savings = monthly * 12 - yearly # 30 print(savings) ``` When run, it prints: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0047728
How long, in days, is it from June 4, 2023 until July 4, 2024? Set it up in Python: ```python from datetime import date first = date(2023, 6, 4) second = date(2024, 7, 4) print((second - first).days) ``` # execution result: 396 It is 396 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "396", "printed": "396", "notation": null}
nlprog_det-setting-0047729
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? As a program: ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` (Execution result: 20.0) Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0047730
A library charges $0.25 per book per day late. What is the fine for 1 books that are 8 days late? Here is a short program for it. ```python per_day = 0.25 days_late = 8 books = 1 fine = per_day * days_late * books # 2.0 print(f"{fine:.2f}") ``` Interpreter output: 2.00 $2.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2.00", "printed": "2.00", "notation": null}
nlprog_det-setting-0047731
Shipping costs $12 plus $0.75 per pound. What does a 26-pound parcel cost to ship? Let the code do the arithmetic: ```python base = 12 per_pound = 0.75 weight = 26 cost = base + per_pound * weight # 31.5 print(f"{cost:.2f}") ``` The code prints 31.50. Shipping costs $31.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0047732
32 hard drives cost $9 apiece. With 10% tax added, what is the total? A Python solution: ```python quantity = 32 unit_price = 9 subtotal = quantity * unit_price # 288 total = subtotal * (1 + 10 / 100) # 316.8 print(f"{total:.2f}") ``` (Program output: 316.80) The total with tax is $316.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "316.80", "printed": "316.80", "notation": null}
nlprog_det-setting-0047733
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "translate", "descr...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0047734
What simple interest does $2,500 earn at 3% a year over 2 years? It earns $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0047735
Each storage box holds 20 files. How many boxes are needed for 360 files? Let's compute it with Python. ```python import math files = 360 per_box = 20 boxes = math.ceil(files / per_box) # 18 print(boxes) ``` The printout reads 18. It takes 18 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0047736
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 38-page copy cost? Python, step by step: ```python pages = 38 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 19.0 print(f"{cost:.2f}") ``` Output: 19.00 The copy costs $19.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "19.00", "printed": "19.00", "notation": null}
nlprog_det-setting-0047737
A desk lamp costs $75. It is 10% off. What is the sale price? The program: ```python price = 75 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 67.5 print(f"{sale_price:.2f}") ``` The code prints 67.50. It costs $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0047738
A meal costs $87.43. How much is a 15% tip? As Python: ```python bill = 87.43 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 13.114500000000001 print(f"{tip:.2f}") ``` Executing it gives: 13.11 The tip is $13.11.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "13.11", "printed": "13.11", "notation": null}
nlprog_det-setting-0047739
Divide 91 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? Here is the program. ```python total = 91 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints 22 each, 3 left over, as expected. The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "22 each, 3 left over", "printed": "22 each, 3 left over", "notation": null}
nlprog_det-setting-0047740
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many of 107 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 107 needed = math.ceil(voters * 75 / 100) # 81 print(needed) ``` The program prints 81. At least 81 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many of 107 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 107\nneeded = math.ceil(voters * 75 / 100) # 81\nprint(needed)\n```\nThe pro...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0047741
Papers were served by mail on October 18, 2023. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? ```python from datetime import date, timedelta served = date(2023, 10, 18) # datetime.date(2023, 10, 18) response_days = 28 mail_days = 3 due = served + timedelta(days=response...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2023-11-18", "printed": "2023-11-18", "notation": null}
nlprog_det-setting-0047742
Bruna earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week? The program: rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") The program prints: 1037.50...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0047743
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Convert 2 h 6 min (the length of a training session) to minutes.<|eot|> <|assistant|> That is 126 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Convert 2 h 6 min (the length of a training session) to minutes." }, { "role": "assistant", "content": "That is 126 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "126", "printed": "126", "notation": null}
nlprog_det-setting-0047744
An attorney bills 2.5 hours at $300 per hour. What is the bill? Code: ```python hours = 2.5 rate = 300 bill = hours * rate # 750.0 print(f"{bill:.2f}") ``` Result — 750.00 That comes to $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0047745
<|start|><|system|> Give the answer first.<|eot|> <|user|> A recipe for 4 people uses 200 grams of flour. How many grams are needed for 2 people?<|eot|> <|assistant|> Use 100 g of flour.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A recipe for 4 people uses 200 grams of flour. How many grams are needed for 2 people?" }, { "role": "assistant", "content": "Use 100 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0047747
Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year? As Python: ```python cost = 18000 salvage = 6000 years = 4 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Execution prints 3000.00, as expected. Depreciati...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0047748
A $30,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? Here's the code. ```python grant = 30000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 2500.0 print(f"{each:.2f}") ``` Executing it gives 2500.00. Each installment is $2,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0047749
Meals are $79 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights? The allowance is $736.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "736", "printed": "736", "notation": null}