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-0069705
23 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? A Python solution: ```python total = 23 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Printed: 3 each, 2 left over) 3 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3 each, 2 left over", "printed": "3 each, 2 left over", "notation": null}
nlprog_det-setting-0069706
<|start|><|user|> A 195-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 195 speed = 65 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` The program prints 180. 180 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 195-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 195\nspeed = 65\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nThe program prints 180.\n\n180 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0069707
One can of paint covers 300 square feet. How many cans are needed for 562 square feet of wall? One way, in code: ```python import math area = 562 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` Result = 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0069709
<|start|><|user|> 4 friends split a $120 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 18 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Interpreter output — 35.40 The share is $35.40 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 friends split a $120 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 18 / 100\npeople = 4\neach = bill * (1 + tip_rate) / people\nprint(f\"{each:.2f}\")\n```\nInterpreter output — 35.40\n...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "35.40", "printed": "35.40", "notation": null}
nlprog_det-setting-0069710
At a 8% tax rate, what is the tax on $780.04? As a program: ```python price = 780.04 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 62.4032 print(f"{tax:.2f}") ``` # stdout: 62.40 The tax is $62.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "62.40", "printed": "62.40", "notation": null}
nlprog_det-setting-0069711
At 60 miles per hour, how many minutes does a 210-mile trip take? The computation: ```python distance = 210 speed = 60 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` Printed: 210 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0069712
What is the total rent on a 6-month lease at $850 a month? In total, $5,100 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0069713
A 5-day trip pays $59 a day for meals and $175 a night for lodging (4 nights). What is the total allowance? Programmatically: ```python days = 5 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 995 print(total) ``` Python prints: 995 The allowance is $995.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "995", "printed": "995", "notation": null}
nlprog_det-setting-0069714
Express 292 hours in days and hours. In code: hours = 292 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") # program output: 12 days and 4 hours 292 hours is 12 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "12 days and 4 hours", "printed": "12 days and 4 hours", "notation": null}
nlprog_det-setting-0069715
8 hours of work at $410 an hour: what is the total charge? Programmatically: ```python hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") ``` Program output — 3280.00 The bill is $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0069716
163 copies of a 54-page packet are printed at $0.15 per page. What is the cost? We can compute it in Python. ```python pages = 54 copies = 163 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 1320.3 print(f"{cost:.2f}") ``` (Execution result: 1320.30) The job costs $1,320.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1320.30", "printed": "1320.30", "notation": null}
nlprog_det-setting-0069717
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` # run result: 16000.00 The fee is $16,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 16000.0\nprint(f\"{fee:.2f}\")\n```\n# run result: 16000.00\n\nThe fee is $16...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0069718
A 12 lb package ships at $8 base plus $2.50/lb. What is the charge? Code: ```python base = 8 per_pound = 2.5 weight = 12 cost = base + per_pound * weight print(f"{cost:.2f}") ``` The printout reads: 38.00 Shipping costs $38.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "38.00", "printed": "38.00", "notation": null}
nlprog_det-setting-0069719
<|start|><|user|> If a 6-year limitations period starts on October 14, 2023, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2023, 10, 14) # datetime.date(2023, 10, 14) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 10, 14) print(expires....
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on October 14, 2023, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2023, 10, 14) # datetime.date(2023, 10, 14)\nyears = 6\nexpires = accrued.replace(year=accrued.y...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2029-10-14", "printed": "2029-10-14", "notation": null}
nlprog_det-setting-0069720
<|start|><|user|> What commission does Noor make on $26,139 in sales at 4%?<|eot|> <|assistant|> ```python sales = 26139 rate = 4 / 100 # 0.04 commission = sales * rate # 1045.56 print(f"{commission:.2f}") ``` The program prints 1045.56. The commission is $1,045.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Noor make on $26,139 in sales at 4%?" }, { "role": "assistant", "content": "```python\nsales = 26139\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1045.56\nprint(f\"{commission:.2f}\")\n```\nThe program prints 1045.56.\n\nThe commission ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1045.56", "printed": "1045.56", "notation": null}
nlprog_det-setting-0069721
8 claimants share a $15,000 settlement equally. What is each share? Python version: ```python settlement = 15000 parties = 8 share = settlement // parties # 1875 print(share) ``` The script prints 1875, as expected. Each share is $1,875.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1875", "printed": "1875", "notation": null}
nlprog_det-setting-0069722
<|start|><|system|> Functions: {"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> The meal allowance is $74 per day. What...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}"...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "518", "printed": "518", "notation": null}
nlprog_det-setting-0069723
A 30 lb package ships at $12 base plus $1.50/lb. What is the charge? ```python base = 12 per_pound = 1.5 weight = 30 cost = base + per_pound * weight # 57.0 print(f"{cost:.2f}") ``` Program output: 57.00 The charge is $57.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0069724
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1200 new = 1680 change = (new - old) / old * 100 print(round(change)) ``` Out = 40 The change is 40%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 1680\nchange = (new - o...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0069725
<|start|><|user|> At $22.78 an hour, what does 32 hours of work pay?<|eot|> <|assistant|> ```python rate = 22.78 hours = 32 earnings = rate * hours # 728.96 print(f"{earnings:.2f}") ``` Python prints 728.96, as expected. That earns $728.96.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $22.78 an hour, what does 32 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 22.78\nhours = 32\nearnings = rate * hours # 728.96\nprint(f\"{earnings:.2f}\")\n```\nPython prints 728.96, as expected.\n\nThat earns $728.96." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "728.96", "printed": "728.96", "notation": null}
nlprog_det-setting-0069726
<|start|><|user|> An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> balance = 12000 monthly_rate = 1.5 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") Run result — 1080.00 The interes...
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": " balance = 12000\n monthly_rate = 1.5 / 100\n months = 6\n interest = balance * monthly_rate * months\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0069727
How many 1-foot square tiles cover a 8 ft by 14 ft floor (round up)? As Python: ```python import math length = 8 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 112 print(tiles) ``` Executed, it shows: 112 It takes 112 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "112", "printed": "112", "notation": null}
nlprog_det-setting-0069729
<|start|><|user|> A $240 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 138.0 print(f"{each:.2f}") ``` Out — 138.00 Each person pays $138.00.<|eot|> <...
chat
[ { "role": "user", "content": "A $240 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 15 / 100 # 0.15\npeople = 2\neach = bill * (1 + tip_rate) / people # 138.0\nprint(f\"{each...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "138.00", "printed": "138.00", "notation": null}
nlprog_det-setting-0069730
A 320-page report must be reviewed in 8 days. How many pages a day is that, evenly? Program: ```python pages = 320 days = 8 per_day = pages // days # 40 print(per_day) ``` Run result = 40 40 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0069731
At a 9% tax rate, what is the tax on $489.06? Python version: ```python price = 489.06 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 44.0154 print(f"{tax:.2f}") ``` The printout reads: 44.02 The tax is $44.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "44.02", "printed": "44.02", "notation": null}
nlprog_det-setting-0069732
<|start|><|system|> You may call the tools below. {"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> 6...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "1462.50", "printed": "1462.50", "notation": null}
nlprog_det-setting-0069733
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year? A short script: ```python cost = 18000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 2666.6666666666665 print(f"{per_year:.2f}") ``` Run result = 2666.67 $2,666.67 a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2666.67", "printed": "2666.67", "notation": null}
nlprog_det-setting-0069734
<|start|><|system|> Answer in plain English.<|eot|> <|user|> If a 4-year limitations period starts on August 11, 2018, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 8, 11) # datetime.date(2018, 8, 11) years = 4 expires = accrued.replace(year=accrued.year + years) # da...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "If a 4-year limitations period starts on August 11, 2018, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2018, 8, 11) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2022-08-11", "printed": "2022-08-11", "notation": null}
nlprog_det-setting-0069735
<|start|><|user|> 164 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 164 total = 200 percent = present / total * 100 print(round(percent, 1)) ``` The program outputs 82.0. Attendance was 82.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "164 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 164\ntotal = 200\npercent = present / total * 100\nprint(round(percent, 1))\n```\nThe program outputs 82.0.\n\nAttendance was 82.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "82.0", "printed": "82.0", "notation": null}
nlprog_det-setting-0069736
<|start|><|user|> A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> distance = 390 speed = 65 minutes = distance / speed * 60 # 360.0 print(round(minutes)) The program prints 360, as expected. 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 390-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": " distance = 390\n speed = 65\n minutes = distance / speed * 60 # 360.0\n print(round(minutes))\nThe program prints 360, as expected.\n\n360 minutes." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0069737
<|start|><|user|> With 16 rows of 13 chairs and 32 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 16 per_row = 13 empty = 32 seated = rows * per_row - empty # 176 print(seated) ``` Run result = 176 176 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 16 rows of 13 chairs and 32 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 16\nper_row = 13\nempty = 32\nseated = rows * per_row - empty # 176\nprint(seated)\n```\nRun result = 176\n\n176 seats are taken." }...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "176", "printed": "176", "notation": null}
nlprog_det-setting-0069738
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 8500 costs = 8000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` Executed, it ...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 8500\ncosts = 8000\nprofit = re...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5.9", "printed": "5.9", "notation": null}
nlprog_det-setting-0069739
How many of 268 votes make 75% (round up)? At least 201 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0069740
<|start|><|user|> A garage charges $5 an hour, never more than $20 a day. How much for 6 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Output of the run: 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $20 a day. How much for 6 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 6\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nOutput of the run: 20\n\nThe charge is $...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069741
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A pen...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0069742
<|start|><|user|> $1,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") The program prints: 1061.21 It is worth $1,061.21.<|eot|> <|...
chat
[ { "role": "user", "content": "$1,000 is invested at 2% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 2 / 100 # 0.02\n years = 3\n value = principal * (1 + rate) ** years # 1061.208\n print(f\"{value:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0069744
A 24-month warranty starts on March 2, 2022. On what date does it end? Code: ```python from datetime import date start = date(2022, 3, 2) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed: 2024-03-02 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-03-02", "printed": "2024-03-02", "notation": null}
nlprog_det-setting-0069745
What average speed covers 156 miles in 1.5 hours? Python, step by step: ```python distance = 156 hours = 1.5 speed = distance / hours # 104.0 print(round(speed)) ``` (stdout: 104) The average speed is 104 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0069746
Dara's scores were 73, 61, 71, 65, 79 and 53. What is the average score? The computation: ```python scores = [73, 61, 71, 65, 79, 53] average = sum(scores) // len(scores) # 67 print(average) ``` That prints 67. The mean is 67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0069747
<|start|><|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) When run, it prints 86, as expected. It equals 86 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 30 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": " celsius = 30\n fahrenheit = celsius * 9 / 5 + 32 # 86.0\n print(round(fahrenheit))\nWhen run, it prints 86, as expected.\n\nIt equals 86 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0069748
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"d...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0069749
<|start|><|system|> Tools (call with JSON): {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Walls total 502 sq f...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0069750
<|start|><|user|> What is -20 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is -20 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "It equals -4 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0069751
<|start|><|system|> Functions: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return a dictionary definit...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\"name\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "30.14", "printed": "30.14", "notation": null}
nlprog_det-setting-0069752
2 friends split a $180 bill plus a 15% tip evenly. How much does each pay? Set it up in Python: ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 103.49999999999999 print(f"{each:.2f}") ``` The program prints 103.50, as expected. The share is $103.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0069753
<|start|><|user|> 4 friends split a $210 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 61.949999999999996 print(f"{each:.2f}") ``` (Printed: 61.95) Each person pays $61.95.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 friends split a $210 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bill * (1 + tip_rate) / people # 61.949999999999996\nprint(f\"{each:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0069754
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 17 prorated = rent * days_occupied / days_in_month # 822.5806451612904 print(f"{prorated:.2f}") ``` Executing it give...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 17\nprorated = rent * days_occupied / days_in_month # 822.58...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "822.58", "printed": "822.58", "notation": null}
nlprog_det-setting-0069755
Buying 3 toner kits at $13 each, 4 toner kits at $24 each, 5 lanyards at $17 each, 5 tape rolls at $23 each, someone hands over $350. What change comes back? A few lines of Python do it: ```python items = [(3, 13), (4, 24), (5, 17), (5, 23)] total = sum(q * p for q, p in items) # 335 paid = 350 change = paid - total ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0069756
After an initial $6,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? Coded up: ```python grant = 60000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 18000.0 print(f"{each:.2f}") ``` Interpreter output — 18000.00 Each installment is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0069757
How many whole days and leftover hours are in 184 hours? That is 7 days and 16 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "7 days and 16 hours", "printed": "7 days and 16 hours", "notation": null}
nlprog_det-setting-0069758
<|start|><|system|> Functions: {"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Priya's scores were 81, 67, 56, 81, 54...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0069759
How many weekdays (Monday to Friday) fall after April 18, 2022 up to and including May 19, 2022? Translated to Python: ```python from datetime import date, timedelta start = date(2022, 4, 18) end = date(2022, 5, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069760
5 boxes hold 8 water bottles each. After 17 are handed out, how many are left? One way, in code: ```python boxes = 5 per_box = 8 given_away = 17 left = boxes * per_box - given_away # 23 print(left) ``` The printout reads 23. That leaves 23 water bottles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069761
Starting with 1937 ink cartridges and using 20 per day, how many remain after 4 days? Let's compute it with Python. ```python stock = 1937 per_day = 20 days = 4 left = stock - per_day * days # 1857 print(left) ``` Result — 1857 1857 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1857", "printed": "1857", "notation": null}
nlprog_det-setting-0069762
A 19 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Python makes this quick: import math length = 19 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 152 print(tiles) Interpreter output: 152 152 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "152", "printed": "152", "notation": null}
nlprog_det-setting-0069763
If a 3-year limitations period starts on August 25, 2020, when does it end? Python: ```python from datetime import date accrued = date(2020, 8, 25) # datetime.date(2020, 8, 25) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 8, 25) print(expires.isoformat()) ``` # output: 2023-08...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2023-08-25", "printed": "2023-08-25", "notation": null}
nlprog_det-setting-0069764
From 1999 to 2039, how many years is that? Script: ```python start_year = 1999 end_year = 2039 print(end_year - start_year) ``` # console output: 40 40 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0069765
A lawyer's fee is 40% of a $150,000 recovery. How large is the fee? ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` The script prints 60000.00. The fee is $60,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0069766
A recipe for 6 people uses 100 grams of rice. How many grams are needed for 12 people? A short script: ```python grams = 100 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 200 print(scaled) ``` The program prints: 200 200 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0069767
<|start|><|user|> A 18 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 18 width = 6 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 108 print(tiles) Program output — 108 It takes 108 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 18\n width = 6\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 108\n print(tiles)\nPro...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0069768
A penalty of $250 a day accrues, capped at $2,500. What is owed after 19 days? Computation in Python: ```python per_day = 250 days = 19 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Console: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0069769
67 of 100 members attended. What percent attended? Let the code do the arithmetic: ```python present = 67 total = 100 percent = present / total * 100 # 67.0 print(round(percent, 1)) ``` # run result: 67.0 Attendance was 67.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "67.0", "printed": "67.0", "notation": null}
nlprog_det-setting-0069770
At an exchange rate of 1.35 USD per GBP, how many USD is 1,731 GBP? As a program: ```python amount = 1731 rate = 1.35 converted = amount * rate # 2336.8500000000004 print(f"{converted:.2f}") ``` It prints: 2336.85 It converts to 2,336.85 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2336.85", "printed": "2336.85", "notation": null}
nlprog_det-setting-0069771
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A 12-month warranty starts on February 18, 2019. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2019, 2, 18) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(s...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A 12-month warranty starts on February 18, 2019. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2019, 2, 18)\n mont...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2020-02-18", "printed": "2020-02-18", "notation": null}
nlprog_det-setting-0069772
<|start|><|user|> A 432-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|> <|assistant|> pages = 432 days = 18 per_day = pages // days # 24 print(per_day) Printed: 24 24 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 432-page report must be reviewed in 18 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": " pages = 432\n days = 18\n per_day = pages // days # 24\n print(per_day)\nPrinted:\n24\n\n24 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0069774
A customer buys 2 rulers at $15 each, 6 tape rolls at $18 each, 6 desk lamps at $24 each and pays with $300. How much change is due? ```python items = [(2, 15), (6, 18), (6, 24)] total = sum(q * p for q, p in items) # 282 paid = 300 change = paid - total # 18 print(change) ``` # result: 18 The change is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0069775
<|start|><|user|> A workshop lasted 3 hours and 9 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 9 total_minutes = hours * 60 + minutes # 189 print(total_minutes) ``` It outputs 189. The workshop lasted 189 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 3 hours and 9 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 9\ntotal_minutes = hours * 60 + minutes # 189\nprint(total_minutes)\n```\nIt outputs 189.\n\nThe workshop lasted 189 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0069776
A $240 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share? Programmatically: ```python bill = 240 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 69.0 print(f"{each:.2f}") ``` Executing it gives 69.00. The share is $69.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0069777
What does $2,000 grow to in 3 years at 2% annual compounding? Here is a short program for it. ```python principal = 2000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 2122.416 print(f"{value:.2f}") ``` Output: 2122.42 It is worth $2,122.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2122.42", "printed": "2122.42", "notation": null}
nlprog_det-setting-0069778
A quorum is 3/5 of the 57 members, rounded up. How many members make a quorum? ```python import math members = 57 quorum = math.ceil(members * 3 / 5) # 35 print(quorum) ``` The run gives 35. That is 35 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0069779
<|start|><|user|> 564 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> 23 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "564 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "23 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069780
<|start|><|user|> The rules require 3/5 of 53 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 53 quorum = math.ceil(members * 3 / 5) # 32 print(quorum) ``` Executing it gives: 32 32 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 53 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 53\nquorum = math.ceil(members * 3 / 5) # 32\nprint(quorum)\n```\nExecuting it gives: 32\n\n32 members are neede...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0069781
<|start|><|user|> What simple interest does $8,000 earn at 4% a year over 3 years?<|eot|> <|assistant|> The interest is $960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $8,000 earn at 4% a year over 3 years?" }, { "role": "assistant", "content": "The interest is $960.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0069782
$1,000 is invested at 4% compounded yearly. What is it worth after 3 years? It is worth $1,124.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0069783
A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 77-page copy cost? The copy costs $33.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0069784
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0069785
The paralegal logged 6.5 hours at a rate of $180. How much is billed? Python: ```python hours = 6.5 rate = 180 bill = hours * rate # 1170.0 print(f"{bill:.2f}") ``` Console output: 1170.00 That comes to $1,170.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1170.00", "printed": "1170.00", "notation": null}
nlprog_det-setting-0069786
<|start|><|system|> You can call tools. Available tools: [{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Of a $10,00...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0069787
<|start|><|user|> At a 8% tax rate, what is the tax on $664.87?<|eot|> <|assistant|> ```python price = 664.87 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 53.1896 print(f"{tax:.2f}") ``` (Output: 53.19) $53.19 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $664.87?" }, { "role": "assistant", "content": "```python\nprice = 664.87\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 53.1896\nprint(f\"{tax:.2f}\")\n```\n(Output: 53.19)\n\n$53.19 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "53.19", "printed": "53.19", "notation": null}
nlprog_det-setting-0069788
<|start|><|user|> A $30,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> $7,500.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $30,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "$7,500.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0069789
A settlement of $960 is split equally among 4 parties. How much does each party receive? Computation in Python: settlement = 960 parties = 4 share = settlement // parties # 240 print(share) Printed: 240 Each share is $240.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0069790
<|start|><|system|> Be brief and correct.<|eot|> <|user|> What commission does Noor make on $20,401 in sales at 2%?<|eot|> <|assistant|> ```python sales = 20401 rate = 2 / 100 # 0.02 commission = sales * rate # 408.02 print(f"{commission:.2f}") ``` The run gives 408.02. The commission is $408.02.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "What commission does Noor make on $20,401 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 20401\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 408.02\nprint(f\"{co...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "408.02", "printed": "408.02", "notation": null}
nlprog_det-setting-0069791
An attorney bills 8 hours at $180 per hour. What is the bill? A Python solution: ```python hours = 8 rate = 180 bill = hours * rate # 1440 print(f"{bill:.2f}") ``` Running this gives: 1440.00 That comes to $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0069792
Walls total 517 sq ft and each can covers 400 sq ft. How many cans should be bought? Coded up: import math area = 517 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) That prints: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0069793
A $2,000 security deposit has deductions of $200, $45 and $75. How much is refunded? In Python: ```python deposit = 2000 deductions = [200, 45, 75] refund = deposit - sum(deductions) # 1680 print(refund) ``` Interpreter output — 1680 $1,680 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1680", "printed": "1680", "notation": null}
nlprog_det-setting-0069794
<|start|><|user|> From a $10,000 retainer, 12 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 12 rate = 250 left = retainer - hours * rate print(left) ``` Printed — 7000 The remaining balance is $7,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 12 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 12\nrate = 250\nleft = retainer - hours * rate\nprint(left)\n```\nPrinted — 7000\n\nThe remaining balance is $7,...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "7000", "printed": "7000", "notation": null}
nlprog_det-setting-0069795
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? Let's compute it with Python. ```python 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}") ``` When run, it prints 1037....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0069796
How many whole days and leftover hours are in 78 hours? ```python hours = 78 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run it and it prints: 3 days and 6 hours 78 hours is 3 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3 days and 6 hours", "printed": "3 days and 6 hours", "notation": null}
nlprog_det-setting-0069797
A 190-mile drive at a steady 30 mph takes how many minutes? Let the code do the arithmetic: ```python distance = 190 speed = 30 minutes = distance / speed * 60 # 380.0 print(round(minutes)) ``` It outputs: 380 380 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0069799
Sales went from 500 to 600. What is the percent change? Here is the program. ```python old = 500 new = 600 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` The program prints: 20 The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069800
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 7500 hours = 11 rate = 250 left = retainer - hours * rate # 4750 print(left) Printed — 4750 The remaining balance is $4,750.<|eot|> <|...
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 7500\n hours = 11\n rate = 250\n left = retainer - hours * rate # 4750\n print(left)\...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "4750", "printed": "4750", "notation": null}
nlprog_det-setting-0069801
Starting with 1346 badges and using 34 per day, how many remain after 3 days? Python code: ```python stock = 1346 per_day = 34 days = 3 left = stock - per_day * days # 1244 print(left) ``` The code prints 1244. 1244 badges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1244", "printed": "1244", "notation": null}
nlprog_det-setting-0069802
What commission does Grace make on $24,678 in sales at 8%? The program: ```python sales = 24678 rate = 8 / 100 commission = sales * rate print(f"{commission:.2f}") ``` What it prints: 1974.24 Grace earns $1,974.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1974.24", "printed": "1974.24", "notation": null}
nlprog_det-setting-0069804
<|start|><|user|> Jamal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?<|eot|> <|assistant|> ```python rate = 22.4 hours = 46 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` The program outputs: 1097.60 Jamal earn...
chat
[ { "role": "user", "content": "Jamal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?" }, { "role": "assistant", "content": "```python\nrate = 22.4\nhours = 46\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1097.60", "printed": "1097.60", "notation": null}
nlprog_det-setting-0069805
Tomas has 4 documents to file, and each filing costs $75. How much are the filing fees in total? One way, in code: ```python fee = 75 filings = 4 total = fee * filings # 300 print(total) ``` It outputs: 300 The filings cost $300 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0069806
<|start|><|user|> At a 5% tax rate, what is the tax on $861.85?<|eot|> <|assistant|> price = 861.85 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 43.0925 print(f"{tax:.2f}") The program prints: 43.09 $43.09 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 5% tax rate, what is the tax on $861.85?" }, { "role": "assistant", "content": " price = 861.85\n tax_rate = 5 / 100 # 0.05\n tax = price * tax_rate # 43.0925\n print(f\"{tax:.2f}\")\nThe program prints: 43.09\n\n$43.09 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "43.09", "printed": "43.09", "notation": null}
nlprog_det-setting-0069808
Printing costs 10 cents a page. What does it cost to print 121 copies of a 54-page handout? We write it as a program: ```python pages = 54 copies = 121 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 653.4000000000001 print(f"{cost:.2f}") ``` Executed, it shows: 653.40 Printing costs $653.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "653.40", "printed": "653.40", "notation": null}
nlprog_det-setting-0069809
<|start|><|user|> A pack of 25 badges sells for $1300. What does each cost?<|eot|> <|assistant|> ```python total = 1300 count = 25 per_item = total // count # 52 print(per_item) ``` stdout: 52 Each one costs $52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 25 badges sells for $1300. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 1300\ncount = 25\nper_item = total // count # 52\nprint(per_item)\n```\nstdout: 52\n\nEach one costs $52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0069811
Shipping costs $12 plus $1.50 per pound. What does a 34-pound parcel cost to ship? Computation in Python: ```python base = 12 per_pound = 1.5 weight = 34 cost = base + per_pound * weight # 63.0 print(f"{cost:.2f}") ``` The program outputs: 63.00 The charge is $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0069812
After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python code: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}") ``` The code prints: 144...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "14400.00", "printed": "14400.00", "notation": null}