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-0047863
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment? As a program: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 275.0 print(f"{payment:.2f...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0047864
The rules require 3/5 of 13 members (round up) to be present. How many is that? 8 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0047865
<|start|><|user|> An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` This prints: 200.00 The int...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 200.0...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0047866
Fines run at $250 per day up to a maximum of $2,500. How much after 37 days? Computation in Python: per_day = 250 days = 37 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) It prints: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0047867
<|start|><|user|> Someone works 32 hours at $28.55 per hour. What are the earnings?<|eot|> <|assistant|> rate = 28.55 hours = 32 earnings = rate * hours # 913.6 print(f"{earnings:.2f}") (Console output: 913.60) The pay is $913.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $28.55 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 28.55\n hours = 32\n earnings = rate * hours # 913.6\n print(f\"{earnings:.2f}\")\n(Console output: 913.60)\n\nThe pay is $913.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "913.60", "printed": "913.60", "notation": null}
nlprog_det-setting-0047868
A clerk's office charges $90 for each filing. Quinn submits 13 filings. What is the total fee? Here is a short program for it. ```python fee = 90 filings = 13 total = fee * filings print(total) ``` (Printed: 1170) The filings cost $1,170 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1170", "printed": "1170", "notation": null}
nlprog_det-setting-0047869
From a $2,500 retainer, 2 hours at $200/hour have been drawn. What remains? ```python retainer = 2500 hours = 2 rate = 200 left = retainer - hours * rate # 2100 print(left) ``` Python prints: 2100 $2,100 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0047870
A 32 lb package ships at $12 base plus $0.75/lb. What is the charge? Python, step by step: ```python base = 12 per_pound = 0.75 weight = 32 cost = base + per_pound * weight # 36.0 print(f"{cost:.2f}") ``` Console output: 36.00 The charge is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0047871
Copies cost $5 plus $0.25 for each page beyond 10. How much for 51 pages? Python makes this quick: ```python pages = 51 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` The run gives: 15.25 The total is $15.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "15.25", "printed": "15.25", "notation": null}
nlprog_det-setting-0047872
From a $7,500 retainer, 6 hours at $275/hour have been drawn. What remains? Written as code: ```python retainer = 7500 hours = 6 rate = 275 left = retainer - hours * rate # 5850 print(left) ``` Program output: 5850 The remaining balance is $5,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0047873
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $90,000 award?<|eot|> <|assistant|> The lawyer's fee comes to $36,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $90,000 award?" }, { "role": "assistant", "content": "The lawyer's fee comes to $36,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0047874
<|start|><|user|> From a $2,500 retainer, 10 hours at $150/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 10 rate = 150 left = retainer - hours * rate # 1000 print(left) ``` stdout: 1000 $1,000 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 10 hours at $150/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 10\nrate = 150\nleft = retainer - hours * rate # 1000\nprint(left)\n```\nstdout:\n1000\n\n$1,000 of the retainer ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047875
Arjun lends $8,000 at 4% simple interest per year for 6 years. How much interest is earned? Script: principal = 8000 rate = 4 / 100 # 0.04 years = 6 interest = principal * rate * years # 1920.0 print(f"{interest:.2f}") Output — 1920.00 The interest is $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0047876
At $18.53 an hour, what does 36 hours of work pay? Python: ```python rate = 18.53 hours = 36 earnings = rate * hours # 667.08 print(f"{earnings:.2f}") ``` stdout = 667.08 That earns $667.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "667.08", "printed": "667.08", "notation": null}
nlprog_det-setting-0047877
<|start|><|user|> An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` Run result = 75.00 The ...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0047878
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> The paralegal logged 1.5 hours at a rate of $410. How much is billed?<|eot|> <|assistant|> ```python hours = 1.5 rate = 410 bill = hours * rate # 615.0 print(f"{bill:.2f}") ``` Run result = 615.00 The bill is $615.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "The paralegal logged 1.5 hours at a rate of $410. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 410\nbill = hours * rate # 615.0\nprint(f\"{bil...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "615.00", "printed": "615.00", "notation": null}
nlprog_det-setting-0047879
If a 2-year limitations period starts on July 19, 2013, when does it end? The period expires on July 19, 2015.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2015-07-19", "printed": "2015-07-19", "notation": null}
nlprog_det-setting-0047880
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 164 copies of a 24-page handout?<|eot|> <|assistant|> ```python pages = 24 copies = 164 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 472.32 print(f"{cost:.2f}") ``` stdout = 472.32 Printing costs $472.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 164 copies of a 24-page handout?" }, { "role": "assistant", "content": "```python\npages = 24\ncopies = 164\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 472.32\nprint(f\"{cost:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "472.32", "printed": "472.32", "notation": null}
nlprog_det-setting-0047881
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?<|eot|> <|assistant|> import math fixed = 9000 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) print(units) Run result — 1500 1500 units are ...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": " import math\n fixed = 9000\n price = 25\n variable = 19\n units = math.ceil(fixed / (price - vari...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0047882
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Starting with 1727 desk lamps and using 31 per day, how many remain after 15 days?<|eot|> <|assistant|> 1262 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Starting with 1727 desk lamps and using 31 per day, how many remain after 15 days?" }, { "role": "assistant", "content": "1262 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1262", "printed": "1262", "notation": null}
nlprog_det-setting-0047883
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> An office budget of $12,000 has expenses of $2,125, $3,287, $747. How much of the budget is left?<|eot|> <|assistant|> budget = 12000 expenses = [2125, 3287, 747] left = budget - sum(expenses) # 5841 print(left) What it prints — 5841 $5,...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "An office budget of $12,000 has expenses of $2,125, $3,287, $747. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 12000\n expenses = [2125, 3287, 747]...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5841", "printed": "5841", "notation": null}
nlprog_det-setting-0047884
After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? A few lines of Python do it: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 3 # 24000.0 print(f"{per_client:.2f}") ``` Prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0047885
<|start|><|user|> If a 3-year limitations period starts on August 5, 2012, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2012, 8, 5) # datetime.date(2012, 8, 5) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 8, 5) print(expires.isoforma...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on August 5, 2012, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2012, 8, 5) # datetime.date(2012, 8, 5)\nyears = 3\nexpires = accrued.replace(year=accrued.year + ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2015-08-05", "printed": "2015-08-05", "notation": null}
nlprog_det-setting-0047887
An invoice lists 12 sticky pads at $5 each, plus 7% sales tax. What is the invoice total? ```python quantity = 12 unit_price = 5 subtotal = quantity * unit_price # 60 total = subtotal * (1 + 7 / 100) # 64.2 print(f"{total:.2f}") ``` # printed: 64.20 The total with tax is $64.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "64.20", "printed": "64.20", "notation": null}
nlprog_det-setting-0047888
Starting from $20,000, the team spends $2,390, $2,689, $480, $2,029. What remains? Written as code: budget = 20000 expenses = [2390, 2689, 480, 2029] left = budget - sum(expenses) # 12412 print(left) Run it and it prints: 12412 $12,412 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "12412", "printed": "12412", "notation": null}
nlprog_det-setting-0047889
<|start|><|user|> A customer buys 2 badges at $25 each, 1 paper reams at $27 each, 6 paper reams at $18 each and pays with $200. How much change is due?<|eot|> <|assistant|> items = [(2, 25), (1, 27), (6, 18)] total = sum(q * p for q, p in items) # 185 paid = 200 change = paid - total # 15 print(c...
chat
[ { "role": "user", "content": "A customer buys 2 badges at $25 each, 1 paper reams at $27 each, 6 paper reams at $18 each and pays with $200. How much change is due?" }, { "role": "assistant", "content": " items = [(2, 25), (1, 27), (6, 18)]\n total = sum(q * p for q, p in items) # 185\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0047890
A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 110-page copy cost? One way, in code: ```python pages = 110 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 20.0 print(f"{cost:.2f}") ``` Out = 20.00 The total is $20.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0047891
A 384-page report must be reviewed in 16 days. How many pages a day is that, evenly? Python: ```python pages = 384 days = 16 per_day = pages // days # 24 print(per_day) ``` Output: 24 That is 24 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0047892
Fixed costs are $2,500. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even? Programmatically: ```python import math fixed = 2500 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) # 417 print(units) ``` # out: 417 417 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0047893
43 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? ```python total = 43 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed = 14 each, 1 left over 14 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "14 each, 1 left over", "printed": "14 each, 1 left over", "notation": null}
nlprog_det-setting-0047894
A trial runs from January 12, 2027 to January 23, 2027, counting both days. How many calendar days is that? A few lines of Python do it: ```python from datetime import date first = date(2027, 1, 12) # datetime.date(2027, 1, 12) last = date(2027, 1, 23) # datetime.date(2027, 1, 23) days = (last - first).days + 1 # 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0047895
A hearing lasted 5 hours and 20 minutes. How many minutes is that? Let the code do the arithmetic: hours = 5 minutes = 20 total_minutes = hours * 60 + minutes # 320 print(total_minutes) # out: 320 The hearing lasted 320 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0047896
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> How many 2-foot square tiles cover a 15 ft by 10 ft floor (round up)?<|eot|> <|assistant|> It takes 38 tiles.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "How many 2-foot square tiles cover a 15 ft by 10 ft floor (round up)?" }, { "role": "assistant", "content": "It takes 38 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0047897
From 2004 to 2015, how many years is that? Python code: ```python start_year = 2004 end_year = 2015 print(end_year - start_year) ``` The run gives: 11 That is 11 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0047898
<|start|><|user|> How many whole days and leftover hours are in 302 hours?<|eot|> <|assistant|> That is 12 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 302 hours?" }, { "role": "assistant", "content": "That is 12 days and 14 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "12 days and 14 hours", "printed": "12 days and 14 hours", "notation": null}
nlprog_det-setting-0047899
<|start|><|system|> Tool definitions: [{"name": "py_exec", "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|> What is the t...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"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\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "9840", "printed": "9840", "notation": null}
nlprog_det-setting-0047900
<|start|><|user|> A 8 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 8 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 120 print(tiles) ``` When run, it prints 120. It takes 120 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 8\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 120\nprint(tiles)\n```\nWhen run, i...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0047901
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A room is 13 feet by 17 feet. Flooring costs $5 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> It costs $1,105.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A room is 13 feet by 17 feet. Flooring costs $5 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "It costs $1,105." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "1105", "printed": "1105", "notation": null}
nlprog_det-setting-0047902
An attorney bills 10.5 hours at $350 per hour. What is the bill? The computation: ```python hours = 10.5 rate = 350 bill = hours * rate # 3675.0 print(f"{bill:.2f}") ``` Execution prints: 3675.00 The bill is $3,675.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3675.00", "printed": "3675.00", "notation": null}
nlprog_det-setting-0047903
<|start|><|user|> With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 4500 costs = 4000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Console output: 11.1 The mar...
chat
[ { "role": "user", "content": "With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 4500\ncosts = 4000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 11.11111111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0047904
A clerk's office charges $90 for each filing. Viktor submits 2 filings. What is the total fee? We write it as a program: ```python fee = 90 filings = 2 total = fee * filings # 180 print(total) ``` The run gives 180. $180 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0047905
<|start|><|user|> Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> revenue = 25000 costs = 20000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) Shell output: 20.0 The margin is 20.0%.<|e...
chat
[ { "role": "user", "content": "Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": " revenue = 25000\n costs = 20000\n profit = revenue - costs\n margin = profit / revenue * 100\n print(rou...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0047906
<|start|><|user|> What is 5 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Run result — 41 It equals 41 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 5 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nRun result — 41\n\nIt equals 41 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0047907
A 3-day trip pays $64 a day for meals and $140 a night for lodging (2 nights). What is the total allowance? The allowance is $472.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0047908
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "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"]}}]<|eot|> <|user|> Convert 5 h ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"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\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "354", "printed": "354", "notation": null}
nlprog_det-setting-0047909
<|start|><|user|> Malik and Vera share $3,234 in the ratio 3:4. How much does Malik get?<|eot|> <|assistant|> Malik gets $1,386.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Malik and Vera share $3,234 in the ratio 3:4. How much does Malik get?" }, { "role": "assistant", "content": "Malik gets $1,386." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1386", "printed": "1386", "notation": null}
nlprog_det-setting-0047910
A garage charges $4 an hour, never more than $24 a day. How much for 12 hours? Programmatically: ```python rate = 4 hours = 12 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` The program outputs 24. Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0047911
Each storage box holds 24 files. How many boxes are needed for 573 files? Code: ```python import math files = 573 per_box = 24 boxes = math.ceil(files / per_box) # 24 print(boxes) ``` The interpreter prints: 24 24 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0047913
From a $10,000 retainer, 7 hours at $200/hour have been drawn. What remains? Python: ```python retainer = 10000 hours = 7 rate = 200 left = retainer - hours * rate # 8600 print(left) ``` Running it prints 8600, as expected. $8,600 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "8600", "printed": "8600", "notation": null}
nlprog_det-setting-0047914
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> At $0.62 per mile, what is the reimbursement for 602 miles?<|eot|> <|assistant|> miles = 602 rate = 0.62 reimbursement = miles * rate # 373.24 print(f"{reimbursement:.2f}") What it prints — 373.24 The reimbursement is $373.24.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 602 miles?" }, { "role": "assistant", "content": " miles = 602\n rate = 0.62\n reimbursement = miles * rate # 373.24\n print(f\"{re...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "373.24", "printed": "373.24", "notation": null}
nlprog_det-setting-0047915
A 195-mile drive at a steady 65 mph takes how many minutes? Coded up: ```python distance = 195 speed = 65 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` It outputs 180. 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0047916
Convert 1 h 48 min (the length of a deposition) to minutes. Computing it: ```python hours = 1 minutes = 48 total_minutes = hours * 60 + minutes # 108 print(total_minutes) ``` stdout: 108 That is 108 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0047918
A quorum is 1/3 of the 26 members, rounded up. How many members make a quorum? That is 9 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0047919
1.5 hours of work at $225 an hour: what is the total charge? In code: ```python hours = 1.5 rate = 225 bill = hours * rate # 337.5 print(f"{bill:.2f}") ``` Out: 337.50 The bill is $337.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "337.50", "printed": "337.50", "notation": null}
nlprog_det-setting-0047920
A count moves from 1,000 to 800. By what percent did it change (use a minus sign for a drop)? Here's the code. ```python old = 1000 new = 800 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` Program output — -20 It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0047922
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "eval_python", "descript...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0047923
A settlement of $2,640 is split equally among 2 parties. How much does each party receive? Python: ```python settlement = 2640 parties = 2 share = settlement // parties # 1320 print(share) ``` Out — 1320 Each party receives $1,320.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1320", "printed": "1320", "notation": null}
nlprog_det-setting-0047924
<|start|><|user|> Buying 2 notebooks at $18 each, 4 pens at $18 each, someone hands over $150. What change comes back?<|eot|> <|assistant|> ```python items = [(2, 18), (4, 18)] total = sum(q * p for q, p in items) # 108 paid = 150 change = paid - total # 42 print(change) ``` It prints: 42 $42 comes back.<|eot|> <|en...
chat
[ { "role": "user", "content": "Buying 2 notebooks at $18 each, 4 pens at $18 each, someone hands over $150. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(2, 18), (4, 18)]\ntotal = sum(q * p for q, p in items) # 108\npaid = 150\nchange = paid - total # 42\np...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0047925
How many weekdays (Monday to Friday) fall after January 3, 2018 up to and including January 30, 2018? A Python solution: ```python from datetime import date, timedelta start = date(2018, 1, 3) end = date(2018, 1, 30) 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
[]
[]
157
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0047926
<|start|><|user|> A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 36 total = monthly_rent * months # 75600 print(total) ``` The code prints: 75600 The rent over the term is $75,600.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 36\ntotal = monthly_rent * months # 75600\nprint(total)\n```\nThe code prints: 75600\n\nThe re...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0047927
<|start|><|user|> A party has 21 days to respond to a motion served on November 22, 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, 22) # datetime.date(2020, 11, 22) response_days = 21 mail_days =...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on November 22, 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, 22) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2020-12-16", "printed": "2020-12-16", "notation": null}
nlprog_det-setting-0047928
<|start|><|user|> What is 35 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` # result: 95 That is 95 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 35 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 35\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n# result: 95\n\nThat is 95 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0047929
2 friends split a $96 bill plus a 15% tip evenly. How much does each pay? As Python: ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 55.199999999999996 print(f"{each:.2f}") ``` Run output: 55.20 The share is $55.20 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "55.20", "printed": "55.20", "notation": null}
nlprog_det-setting-0047930
A meal costs $224.61. How much is a 15% tip? ```python bill = 224.61 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 33.6915 print(f"{tip:.2f}") ``` (Execution result: 33.69) The tip is $33.69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "33.69", "printed": "33.69", "notation": null}
nlprog_det-setting-0047931
<|start|><|user|> 257 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 257 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The run gives 32 each, 1 left over, as expected. ...
chat
[ { "role": "user", "content": "257 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 257\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "32 each, 1 left over", "printed": "32 each, 1 left over", "notation": null}
nlprog_det-setting-0047932
<|start|><|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") Result = 5512.50 The balance is $5,512.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": " principal = 5000\n rate = 5 / 100 # 0.05\n years = 2\n value = principal * (1 + rate) ** years # 5512.5\n print(f\"{value:.2f}\")\nRe...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0047933
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> What is -10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Execution prints 14. It equals 14 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "What is -10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\nExecution p...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0047935
4 hours of work at $410 an hour: what is the total charge? ```python hours = 4 rate = 410 bill = hours * rate print(f"{bill:.2f}") ``` The program outputs 1640.00. The bill is $1,640.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1640.00", "printed": "1640.00", "notation": null}
nlprog_det-setting-0047936
<|start|><|user|> Goods bought on October 14, 2025 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 10, 14) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(en...
chat
[ { "role": "user", "content": "Goods bought on October 14, 2025 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 10, 14)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = da...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2027-04-14", "printed": "2027-04-14", "notation": null}
nlprog_det-setting-0047937
Fines run at $50 per day up to a maximum of $1,000. How much after 21 days? Here's the code. per_day = 50 days = 21 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) The run gives 1000, as expected. The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047938
6 claimants share a $4,500 settlement equally. What is each share? Python: ```python settlement = 4500 parties = 6 share = settlement // parties # 750 print(share) ``` On running, it outputs: 750 Each party receives $750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0047939
A training session lasted 3 hours and 40 minutes. How many minutes is that? ```python hours = 3 minutes = 40 total_minutes = hours * 60 + minutes # 220 print(total_minutes) ``` The printout reads: 220 That is 220 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "220", "printed": "220", "notation": null}
nlprog_det-setting-0047940
<|start|><|user|> Someone born November 26, 1979 turns how old by November 12, 2022? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(1979, 11, 26) # datetime.date(1979, 11, 26) on = date(2022, 11, 12) # datetime.date(2022, 11, 12) age = on.year - born.year - ((o...
chat
[ { "role": "user", "content": "Someone born November 26, 1979 turns how old by November 12, 2022? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(1979, 11, 26) # datetime.date(1979, 11, 26)\n on = date(2022, 11, 12) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0047941
<|start|><|user|> One can of paint covers 400 square feet. How many cans are needed for 773 square feet of wall?<|eot|> <|assistant|> ```python import math area = 773 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` The code prints 2. Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 773 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 773\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe code prints 2.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0047942
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Parking is $4 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 1 daily_max = 24 cost = min(rate * hours, daily_max) # 4 print(cost) ``` Running it prints: 4 The charge is $4.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $24. What do 1 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 1\ndaily_max = 24\ncost = min(rate * hours, daily_max...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047943
4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Written as code: ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 4 # 13500.0 print(f"{per_client:.2f}") ``` # result: 13500.00 Each share is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0047945
<|start|><|user|> Sales went from 500 to 475. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 475 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` That prints: -5 It changed by -5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 500 to 475. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 475\nchange = (new - old) / old * 100 # -5.0\nprint(round(change))\n```\nThat prints: -5\n\nIt changed by -5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0047946
A filing cabinet costs $300. It is 40% off. What is the sale price? As a program: price = 300 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 180.0 print(f"{sale_price:.2f}") Execution result — 180.00 It costs $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0047947
A meal costs $213.52. How much is a 10% tip? In code: ```python bill = 213.52 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 21.352000000000004 print(f"{tip:.2f}") ``` # out: 21.35 The tip is $21.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "21.35", "printed": "21.35", "notation": null}
nlprog_det-setting-0047948
A penalty of $100 a day accrues, capped at $5,000. What is owed after 14 days? The computation: ```python per_day = 100 days = 14 cap = 5000 fine = min(per_day * days, cap) # 1400 print(fine) ``` Result: 1400 $1,400 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0047949
<|start|><|system|> Tool definitions: [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Fixed costs are $6,000. Each unit sells for ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" },...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0047950
<|start|><|user|> Which is cheaper per unit: 8 for $3.54 (A) or 15 for $15.71 (B)?<|eot|> <|assistant|> ```python pack_a = 3.54 / 8 pack_b = 15.71 / 15 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Executed, it shows: A Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $3.54 (A) or 15 for $15.71 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 3.54 / 8\npack_b = 15.71 / 15\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nExecuted, it shows: A\n\nPack A is cheaper ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047951
<|start|><|system|> Functions: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing", "description": "Fetch an SEC...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
278
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0047952
28 of 50 members attended. What percent attended? Computation in Python: ```python present = 28 total = 50 percent = present / total * 100 # 56.00000000000001 print(round(percent, 1)) ``` (Console output: 56.0) 56.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "56.0", "printed": "56.0", "notation": null}
nlprog_det-setting-0047953
Straight-line depreciation: cost $30,000, salvage $2,000, 10 years. How much per year? Programmatically: ```python cost = 30000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 2800.0 print(f"{per_year:.2f}") ``` Output: 2800.00 $2,800.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0047954
A $84 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? Python code: ```python bill = 84 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 25.2 print(f"{each:.2f}") ``` Out = 25.20 Each person pays $25.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "25.20", "printed": "25.20", "notation": null}
nlprog_det-setting-0047955
<|start|><|user|> Walls total 1083 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1083 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Out: 3) 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1083 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1083\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\n(Out: 3)\n\n3 cans are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0047956
Ines's scores were 102, 52, 79, 70 and 82. What is the average score? The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0047957
<|start|><|system|> Available functions (JSON Schema): {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "convert_units", "descri...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
341
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0047959
How many whole days and leftover hours are in 332 hours? Python code: ```python hours = 332 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # printed result: 13 days and 20 hours 332 hours is 13 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "13 days and 20 hours", "printed": "13 days and 20 hours", "notation": null}
nlprog_det-setting-0047960
A room is 21 feet by 8 feet. Flooring costs $12 per square foot. What does it cost to floor the room? The flooring costs $2,016.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2016", "printed": "2016", "notation": null}
nlprog_det-setting-0047961
Convert 5 h 37 min (the length of a deposition) to minutes. The Python version: ```python hours = 5 minutes = 37 total_minutes = hours * 60 + minutes # 337 print(total_minutes) ``` That prints 337. The deposition lasted 337 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "337", "printed": "337", "notation": null}
nlprog_det-setting-0047962
<|start|><|user|> 7 hours of work at $250 an hour: what is the total charge?<|eot|> <|assistant|> hours = 7 rate = 250 bill = hours * rate print(f"{bill:.2f}") # output: 1750.00 That comes to $1,750.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 hours of work at $250 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 7\n rate = 250\n bill = hours * rate\n print(f\"{bill:.2f}\")\n# output: 1750.00\n\nThat comes to $1,750.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0047963
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Tariq has 10 documents to file, and each filing costs $45. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 45 filings = 10 total = fee * filings # 450 print(total) ``` Out = 450 The filings cost $450 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Tariq has 10 documents to file, and each filing costs $45. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 45\nfilings = 10\ntotal = fee * fil...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0047964
How much is a $64 daily meal allowance over 3 days? ```python days = 3 meal_rate = 64 total = days * meal_rate print(total) ``` Output: 192 The allowance is $192.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0047965
102 copies of a 27-page packet are printed at $0.12 per page. What is the cost? Python makes this quick: ```python pages = 27 copies = 102 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 330.47999999999996 print(f"{cost:.2f}") ``` Executing it gives: 330.48 Printing costs $330.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "330.48", "printed": "330.48", "notation": null}
nlprog_det-setting-0047966
<|start|><|user|> Bruna drove 279 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 279 rate = 0.67 reimbursement = miles * rate # 186.93 print(f"{reimbursement:.2f}") ``` Printed: 186.93 Bruna is owed $186.93.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bruna drove 279 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 279\nrate = 0.67\nreimbursement = miles * rate # 186.93\nprint(f\"{reimbursement:.2f}\")\n```\nPrinted...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "186.93", "printed": "186.93", "notation": null}
nlprog_det-setting-0047967
A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments? One way, in code: monthly = 19 yearly = 198 savings = monthly * 12 - yearly # 30 print(savings) Run result — 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0047968
Beatriz earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week? One way, in code: ```python rate = 25.0 hours = 47 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 262.5 pay = regular + overtime # 1262.5 print(f"{pay:.2f}") ``` That prints: 1262.50 The wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1262.50", "printed": "1262.50", "notation": null}
nlprog_det-setting-0047969
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 0. How much for 120 pages?<|eot|> <|assistant|> ```python pages = 120 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 22.0 print(f"{cost:.2f}") ``` It prints 22.00, as expected. The total is $22.00.<|eot|> ...
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 0. How much for 120 pages?" }, { "role": "assistant", "content": "```python\npages = 120\nbase = 10\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # 22.0\nprint(f\"{cost:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "22.00", "printed": "22.00", "notation": null}