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-0071752
A backpack costs $80. It is 30% off. What is the sale price? Python code: ```python price = 80 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 56.0 print(f"{sale_price:.2f}") ``` (Run result: 56.00) It costs $56.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0071753
Printing costs 10 cents a page. What does it cost to print 134 copies of a 49-page handout? Translated to Python: pages = 49 copies = 134 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 656.6 print(f"{cost:.2f}") The run gives 656.60, as expected. Printing costs $656.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "656.60", "printed": "656.60", "notation": null}
nlprog_det-setting-0071754
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "compute", "description": "Python san...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\"...
nlprog_det
setting
original
null
deterministic
[]
[]
340
{"gold": "980.00", "printed": "980.00", "notation": null}
nlprog_det-setting-0071755
<|start|><|system|> You are a math tutor.<|eot|> <|user|> The paralegal logged 4 hours at a rate of $180. How much is billed?<|eot|> <|assistant|> ```python hours = 4 rate = 180 bill = hours * rate # 720 print(f"{bill:.2f}") ``` Interpreter output: 720.00 The bill is $720.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "The paralegal logged 4 hours at a rate of $180. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 180\nbill = hours * rate # 720\nprint(f\"{bill:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0071757
Goods bought on March 1, 2018 carry a 24-month warranty. When does it expire? Programmatically: ```python from datetime import date start = date(2018, 3, 1) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2020-03-01", "printed": "2020-03-01", "notation": null}
nlprog_det-setting-0071758
<|start|><|user|> A penalty of $100 a day accrues, capped at $1,000. What is owed after 17 days?<|eot|> <|assistant|> ```python per_day = 100 days = 17 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Printed: 1000) $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 17 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 17\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Printed: 1000)\n\n$1,000 is owed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0071759
How long, in days, is it from November 27, 2023 until March 2, 2024? ```python from datetime import date first = date(2023, 11, 27) second = date(2024, 3, 2) print((second - first).days) ``` Output = 96 There are 96 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "96", "printed": "96", "notation": null}
nlprog_det-setting-0071760
Tomas earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week? A few lines of Python do it: ```python rate = 18.5 hours = 51 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 305.25 pay = regular + overtime # 1045.25 print(f"{pay:.2f}") ``` stdout: 1045.25 Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1045.25", "printed": "1045.25", "notation": null}
nlprog_det-setting-0071761
Attendance was 155 out of 200. Express it as a percent. Code: ```python present = 155 total = 200 percent = present / total * 100 # 77.5 print(round(percent, 1)) ``` The program prints: 77.5 77.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0071762
5 claimants share a $84,000 settlement equally. What is each share? One way, in code: ```python settlement = 84000 parties = 5 share = settlement // parties # 16800 print(share) ``` Out = 16800 Each share is $16,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "16800", "printed": "16800", "notation": null}
nlprog_det-setting-0071764
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0071765
Reza was born on October 22, 2004. How old is Reza on September 16, 2030? ```python from datetime import date born = date(2004, 10, 22) # datetime.date(2004, 10, 22) on = date(2030, 9, 16) # datetime.date(2030, 9, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 25 print(age) ``` Pyth...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0071766
A 300-mile drive at a steady 50 mph takes how many minutes? Computing it: ```python distance = 300 speed = 50 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Out: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0071768
<|start|><|user|> A 15 lb package ships at $8 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 0.75 weight = 15 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Printed result: 19.25 The charge is $19.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 15 lb package ships at $8 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 0.75\nweight = 15\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nPrinted result: 19.25\n\nThe charge is $19.2...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "19.25", "printed": "19.25", "notation": null}
nlprog_det-setting-0071769
How many of 206 votes make 60% (round up)? The program: ```python import math voters = 206 needed = math.ceil(voters * 60 / 100) # 124 print(needed) ``` Output: 124 124 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0071770
<|start|><|user|> What does $5,000 grow to in 2 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` The program prints 5512.50. The balance is $5,512.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 5512.5\nprint(f\"{value:.2f}\")\n```\nThe program prints 5...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0071771
<|start|><|user|> A claim accrued on May 3, 2014. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 5, 3) # datetime.date(2014, 5, 3) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 5, 3) p...
chat
[ { "role": "user", "content": "A claim accrued on May 3, 2014. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 5, 3) # datetime.date(2014, 5, 3)\nyears = 6\nexpires = accrued.replace...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2020-05-03", "printed": "2020-05-03", "notation": null}
nlprog_det-setting-0071773
<|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": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "looku...
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\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071774
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. Script: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` The script prints 13.8, as expected. The margin is 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0071775
4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Programmatically: ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 4 # 10500.0 print(f"{per_client:.2f}") ``` Printed = 10500.00 Each client ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0071776
Which is cheaper per unit: 12 for $3.22 (A) or 24 for $16.17 (B)? Programmatically: ```python pack_a = 3.22 / 12 # 0.26833333333333337 pack_b = 16.17 / 24 # 0.6737500000000001 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Shell output: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0071777
<|start|><|user|> Femi earns a 5% commission on $16,444 of sales. What is the commission?<|eot|> <|assistant|> The commission is $822.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Femi earns a 5% commission on $16,444 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $822.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "822.20", "printed": "822.20", "notation": null}
nlprog_det-setting-0071778
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description": "Conver...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0071779
579 files go into boxes of 25. How many boxes does that take? The Python version: ```python import math files = 579 per_box = 25 boxes = math.ceil(files / per_box) # 24 print(boxes) ``` (Output: 24) 24 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071780
A 4 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Program: ```python import math length = 4 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 12 print(tiles) ``` stdout = 12 12 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0071781
<|start|><|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 5202.0 print(f"{value:.2f}") ``` Program output — 5202.00 It is worth $5,202.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 5202.0\nprint(f\"{value:.2f}\")\n```\nProgra...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5202.00", "printed": "5202.00", "notation": null}
nlprog_det-setting-0071782
<|start|><|user|> Which is cheaper per unit: 6 for $5.24 (A) or 24 for $25.07 (B)?<|eot|> <|assistant|> ```python pack_a = 5.24 / 6 # 0.8733333333333334 pack_b = 25.07 / 24 # 1.0445833333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Printed = A A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $5.24 (A) or 24 for $25.07 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 5.24 / 6 # 0.8733333333333334\npack_b = 25.07 / 24 # 1.0445833333333334\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0071783
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 619.3548387096774 print(f"{prorated:.2f}") ``` Program output — 61...
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 8\nprorated = rent * days_occupied / days_in_month # 619.3548...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "619.35", "printed": "619.35", "notation": null}
nlprog_det-setting-0071784
A court charges $10 per request plus $0.50 per page after the first 20 pages. What does a 9-page copy cost? Python, step by step: ```python pages = 9 base = 10 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 10.0 print(f"{cost:.2f}") ``` # run result: 10.00 The copy costs $10.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0071785
Printing costs 10 cents a page. What does it cost to print 84 copies of a 50-page handout? Here is the program. ```python pages = 50 copies = 84 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 420.0 print(f"{cost:.2f}") ``` Result = 420.00 The job costs $420.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "420.00", "printed": "420.00", "notation": null}
nlprog_det-setting-0071786
How many 2-foot square tiles cover a 19 ft by 15 ft floor (round up)? We can compute it in Python. ```python import math length = 19 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 72 print(tiles) ``` Printed result: 72 72 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0071787
<|start|><|user|> 30 water bottles cost $12 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> quantity = 30 unit_price = 12 subtotal = quantity * unit_price # 360 total = subtotal * (1 + 6 / 100) # 381.6 print(f"{total:.2f}") The run gives: 381.60 The invoice total is $381.60.<|e...
chat
[ { "role": "user", "content": "30 water bottles cost $12 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": " quantity = 30\n unit_price = 12\n subtotal = quantity * unit_price # 360\n total = subtotal * (1 + 6 / 100) # 381.6\n print(f\"{total:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "381.60", "printed": "381.60", "notation": null}
nlprog_det-setting-0071788
<|start|><|system|> You may call the tools below. [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A claim accrued on Fe...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "2022-02-25", "printed": "2022-02-25", "notation": null}
nlprog_det-setting-0071789
Fines run at $100 per day up to a maximum of $5,000. How much after 46 days? Set it up in Python: ```python per_day = 100 days = 46 cap = 5000 fine = min(per_day * days, cap) # 4600 print(fine) ``` Out — 4600 The fine is $4,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "4600", "printed": "4600", "notation": null}
nlprog_det-setting-0071790
At $0.67 per mile, what is the reimbursement for 127 miles? Ulla is owed $85.09.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "85.09", "printed": "85.09", "notation": null}
nlprog_det-setting-0071791
What percentage of $5,000 is $600? The program: ```python budget = 5000 spent = 600 percent = spent / budget * 100 # 12.0 print(round(percent, 1)) ``` This prints 12.0, as expected. 12.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "12.0", "printed": "12.0", "notation": null}
nlprog_det-setting-0071792
From 1998 to 2020, how many years is that? A few lines of Python do it: ```python start_year = 1998 end_year = 2020 print(end_year - start_year) ``` The printout reads: 22 That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0071793
The rules require 3/5 of 23 members (round up) to be present. How many is that? Programmatically: ```python import math members = 23 quorum = math.ceil(members * 3 / 5) # 14 print(quorum) ``` Execution result: 14 That is 14 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0071795
<|start|><|user|> 46 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 46 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Console output: 11 each, 2 left over 11 each, 2 le...
chat
[ { "role": "user", "content": "46 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 46\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "11 each, 2 left over", "printed": "11 each, 2 left over", "notation": null}
nlprog_det-setting-0071796
<|start|><|user|> How many units at $30 each (variable cost $25) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` The run gives 800, as expected. 800 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $25) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 25\nunits = math.ceil(fixed / (price - variable)) # 800\nprint(units)\n```\nThe run gives...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0071797
A library charges $0.20 per book per day late. What is the fine for 3 books that are 10 days late? Set it up in Python: ```python per_day = 0.2 days_late = 10 books = 3 fine = per_day * days_late * books # 6.0 print(f"{fine:.2f}") ``` Interpreter output — 6.00 $6.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "6.00", "printed": "6.00", "notation": null}
nlprog_det-setting-0071798
The paralegal logged 1.5 hours at a rate of $250. How much is billed? Written as code: hours = 1.5 rate = 250 bill = hours * rate # 375.0 print(f"{bill:.2f}") On running, it outputs: 375.00 That comes to $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0071799
<|start|><|user|> Xavier earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` On running, ...
chat
[ { "role": "user", "content": "Xavier earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 45\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 120.0\npay = regul...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0071800
How many of 23 members form a majority (more than half)? 12 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0071801
To read 110 pages in 10 days, how many pages per day are needed? Python: ```python pages = 110 days = 10 per_day = pages // days # 11 print(per_day) ``` # console output: 11 11 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0071802
What commission does Kaito make on $54,444 in sales at 2%? Python does the arithmetic: ```python sales = 54444 rate = 2 / 100 # 0.02 commission = sales * rate # 1088.88 print(f"{commission:.2f}") ``` Run output: 1088.88 Kaito earns $1,088.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1088.88", "printed": "1088.88", "notation": null}
nlprog_det-setting-0071803
<|start|><|user|> 4 books come back 29 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.15 days_late = 29 books = 4 fine = per_day * days_late * books # 17.4 print(f"{fine:.2f}") Out = 17.40 The fine is $17.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 29 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.15\n days_late = 29\n books = 4\n fine = per_day * days_late * books # 17.4\n print(f\"{fine:.2f}\")\nOut = 17.40\n\nThe fine i...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "17.40", "printed": "17.40", "notation": null}
nlprog_det-setting-0071804
Find the mean of these test scores: 56, 73, 96 and 55. As a program: ```python scores = [56, 73, 96, 55] average = sum(scores) // len(scores) # 70 print(average) ``` The run gives 70, as expected. The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0071805
<|start|><|user|> Straight-line depreciation: cost $30,000, salvage $6,000, 4 years. How much per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 6000 years = 4 per_year = (cost - salvage) / years # 6000.0 print(f"{per_year:.2f}") ``` The run gives 6000.00. $6,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $30,000, salvage $6,000, 4 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 6000\nyears = 4\nper_year = (cost - salvage) / years # 6000.0\nprint(f\"{per_year:.2f}\")\n```\nThe run g...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0071806
<|start|><|user|> Sales went from 2,000 to 1,800. What is the percent change?<|eot|> <|assistant|> ```python old = 2000 new = 1800 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Output of the run — -10 It changed by -10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,000 to 1,800. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1800\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nOutput of the run — -10\n\nIt changed by -10%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0071807
<|start|><|user|> A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 49-page copy cost?<|eot|> <|assistant|> pages = 49 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 39.5 print(f"{cost:.2f}") Executing it give...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 49-page copy cost?" }, { "role": "assistant", "content": " pages = 49\n base = 15\n per_page = 0.5\n free_pages = 0\n cost = base + max(0, pages - free_pages) * p...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "39.50", "printed": "39.50", "notation": null}
nlprog_det-setting-0071808
A chair costs $300. It is 10% off. What is the sale price? Python version: ```python price = 300 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 270.0 print(f"{sale_price:.2f}") ``` When run, it prints 270.00. It costs $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0071809
Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights? As a program: ```python days = 8 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1322 print(total) ``` Out = 1322 That comes to $1,322.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1322", "printed": "1322", "notation": null}
nlprog_det-setting-0071810
A $240 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? The program: ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 141.6 print(f"{each:.2f}") ``` Printed result: 141.60 The share is $141.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "141.60", "printed": "141.60", "notation": null}
nlprog_det-setting-0071811
Prorate $900 of monthly rent for 8 days of a 31-day month. In code: rent = 900 days_in_month = 31 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 232.25806451612902 print(f"{prorated:.2f}") Run output: 232.26 The tenant owes $232.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "232.26", "printed": "232.26", "notation": null}
nlprog_det-setting-0071812
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 65-page copy cost?<|eot|> <|assistant|> The total is $18.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 65-page copy cost?" }, { "role": "assistant", "content": "The total is $18.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "18.75", "printed": "18.75", "notation": null}
nlprog_det-setting-0071813
What percentage of $10,000 is $2,100? 21.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "21.0", "printed": "21.0", "notation": null}
nlprog_det-setting-0071814
If a 150-minute meeting begins at 4:40 PM, what time does it finish? Set it up in Python: ```python start = 16 * 60 + 40 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out = 7:10 PM The meeting finishes at 7:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "7:10 PM", "printed": "7:10 PM", "notation": null}
nlprog_det-setting-0071815
Rent of $900 goes up 3%. What is the new rent? Here is a short program for it. ```python rent = 900 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 927.0 print(f"{new_rent:.2f}") ``` The program outputs 927.00. It rises to $927.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0071816
A $48,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment? Python does the arithmetic: ```python grant = 48000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 15333.333333333334 print(f"{each:.2f}") ``` (Console output: 15333.33) Each install...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "15333.33", "printed": "15333.33", "notation": null}
nlprog_det-setting-0071817
<|start|><|user|> Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 19,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 19 free = 0 bill = base + rate * max(0, used - free) # 81.5 print(f"{bill:.2f}") ``` Execution prints: 81.50 $81.50 is owed.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 19,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 19\nfree = 0\nbill = base + rate * max(0, used - free) # 81.5\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "81.50", "printed": "81.50", "notation": null}
nlprog_det-setting-0071818
Straight-line depreciation: cost $18,000, salvage $0, 8 years. How much per year? Python makes this quick: ```python cost = 18000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 2250.0 print(f"{per_year:.2f}") ``` Running this gives 2250.00. Depreciation is $2,250.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0071819
<|start|><|system|> Tools (call with JSON): [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A shift runs from 8:18 AM ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"p...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "234", "printed": "234", "notation": null}
nlprog_det-setting-0071820
<|start|><|user|> Fiona's scores were 93, 51, 64 and 64. What is the average score?<|eot|> <|assistant|> ```python scores = [93, 51, 64, 64] average = sum(scores) // len(scores) # 68 print(average) ``` On running, it outputs 68. The mean is 68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fiona's scores were 93, 51, 64 and 64. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [93, 51, 64, 64]\naverage = sum(scores) // len(scores) # 68\nprint(average)\n```\nOn running, it outputs 68.\n\nThe mean is 68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0071822
<|start|><|system|> You may call the tools below. {"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A clerk's offi...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "350", "printed": "350", "notation": null}
nlprog_det-setting-0071823
With 24 rows of 16 chairs and 17 empty chairs, how many chairs are taken? Computation in Python: ```python rows = 24 per_row = 16 empty = 17 seated = rows * per_row - empty # 367 print(seated) ``` On running, it outputs: 367 367 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "367", "printed": "367", "notation": null}
nlprog_det-setting-0071824
A penalty of $250 a day accrues, capped at $1,000. What is owed after 4 days? Code: ```python per_day = 250 days = 4 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Out: 1000) $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0071825
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Papers were served by m...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "2022-07-21", "printed": "2022-07-21", "notation": null}
nlprog_det-setting-0071826
Under a 40% contingency agreement, what fee is owed on a $90,000 award? The lawyer's fee comes to $36,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0071827
One can of paint covers 400 square feet. How many cans are needed for 951 square feet of wall? Python makes this quick: ```python import math area = 951 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` When run, it prints: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0071828
A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments? The Python version: ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly print(savings) ``` The program prints 24. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071829
At a 8% tax rate, what is the tax on $128.22? The tax is $10.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "10.26", "printed": "10.26", "notation": null}
nlprog_det-setting-0071830
A hall has 17 rows of 13 seats, and 10 seats are empty. How many people are seated? 211 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0071831
<|start|><|user|> Papers were served by mail on October 12, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 10, 12) # datetime.date(2023, 10, 12) response_days = 21 mail_days = 3 ...
chat
[ { "role": "user", "content": "Papers were served by mail on October 12, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 10, 12) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2023-11-05", "printed": "2023-11-05", "notation": null}
nlprog_det-setting-0071832
<|start|><|user|> An office budget of $20,000 has expenses of $1,867, $2,372, $2,004. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [1867, 2372, 2004] left = budget - sum(expenses) # 13757 print(left) ``` The program outputs 13757. $13,757 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $1,867, $2,372, $2,004. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [1867, 2372, 2004]\nleft = budget - sum(expenses) # 13757\nprint(left)\n```\nThe program...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "13757", "printed": "13757", "notation": null}
nlprog_det-setting-0071833
What does $5,000 grow to in 2 years at 3% annual compounding? ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 5304.5 print(f"{value:.2f}") ``` (Console output: 5304.50) The balance is $5,304.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0071834
A garage charges $5 an hour, never more than $20 a day. How much for 6 hours? As Python: ```python rate = 5 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Interpreter output: 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0071835
<|start|><|user|> A shift runs from 8:20 AM to 2:52 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 20 # 500 end = 14 * 60 + 52 # 892 print(end - start) ``` # result: 392 It is 392 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:20 AM to 2:52 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 20 # 500\nend = 14 * 60 + 52 # 892\nprint(end - start)\n```\n# result: 392\n\nIt is 392 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0071836
<|start|><|user|> Shipping costs $5 plus $2.50 per pound. What does a 31-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $82.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.50 per pound. What does a 31-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $82.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "82.50", "printed": "82.50", "notation": null}
nlprog_det-setting-0071837
<|start|><|user|> A 6-month warranty starts on August 25, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 8, 25) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 6-month warranty starts on August 25, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 8, 25)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2021-02-25", "printed": "2021-02-25", "notation": null}
nlprog_det-setting-0071838
How many of 126 votes make 60% (round up)? Computation in Python: ```python import math voters = 126 needed = math.ceil(voters * 60 / 100) print(needed) ``` (Console output: 76) At least 76 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0071840
Goods bought on February 11, 2028 carry a 12-month warranty. When does it expire? The Python version: ```python from datetime import date start = date(2028, 2, 11) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2029-02-11", "printed": "2029-02-11", "notation": null}
nlprog_det-setting-0071841
<|start|><|user|> Meals are $74 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 74 lodging_rate = 110 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` Printed: 810 That comes to $810.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Meals are $74 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 74\nlodging_rate = 110\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0071842
A 198-page report must be reviewed in 9 days. How many pages a day is that, evenly? Set it up in Python: ```python pages = 198 days = 9 per_day = pages // days # 22 print(per_day) ``` Python prints 22, as expected. 22 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0071843
From a $5,000 retainer, 14 hours at $150/hour have been drawn. What remains? We write it as a program: ```python retainer = 5000 hours = 14 rate = 150 left = retainer - hours * rate # 2900 print(left) ``` # stdout: 2900 $2,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2900", "printed": "2900", "notation": null}
nlprog_det-setting-0071844
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Quinn earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?<|eot|> <|assistant|> The weekly pay is $952.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Quinn earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?" }, { "role": "assistant", "content": "The weekly pay is $952.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "952.00", "printed": "952.00", "notation": null}
nlprog_det-setting-0071845
Papers were served by mail on April 28, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? A few lines of Python do it: from datetime import date, timedelta served = date(2028, 4, 28) response_days = 30 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2028-05-31", "printed": "2028-05-31", "notation": null}
nlprog_det-setting-0071846
<|start|><|user|> Counting only Monday through Friday, how many business days are there after September 2, 2021 through October 4, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 9, 2) end = date(2021, 10, 4) count = 0 for k in range(1, (end - start).days + 1): if (start...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after September 2, 2021 through October 4, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 9, 2)\nend = date(2021, 10, 4)\ncount = ...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0071847
A $800 security deposit has deductions of $150 and $45. How much is refunded? A short script: ```python deposit = 800 deductions = [150, 45] refund = deposit - sum(deductions) # 605 print(refund) ``` Printed = 605 $605 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "605", "printed": "605", "notation": null}
nlprog_det-setting-0071848
<|start|><|user|> Someone born April 11, 1987 turns how old by March 25, 2025? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1987, 4, 11) # datetime.date(1987, 4, 11) on = date(2025, 3, 25) # datetime.date(2025, 3, 25) age = on.year - born.year - ((on.month, on.day)...
chat
[ { "role": "user", "content": "Someone born April 11, 1987 turns how old by March 25, 2025? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1987, 4, 11) # datetime.date(1987, 4, 11)\non = date(2025, 3, 25) # datetime.date(202...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0071849
<|start|><|system|> Functions: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Papers were served by mail on September...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "2024-10-13", "printed": "2024-10-13", "notation": null}
nlprog_det-setting-0071850
If a 4-year limitations period starts on January 19, 2015, when does it end? Let the code do the arithmetic: ```python from datetime import date accrued = date(2015, 1, 19) # datetime.date(2015, 1, 19) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 1, 19) print(expires.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2019-01-19", "printed": "2019-01-19", "notation": null}
nlprog_det-setting-0071852
How many days are there from November 22, 2022 to January 28, 2023? As Python: ```python from datetime import date first = date(2022, 11, 22) # datetime.date(2022, 11, 22) second = date(2023, 1, 28) # datetime.date(2023, 1, 28) print((second - first).days) ``` It outputs: 67 There are 67 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0071853
<|start|><|user|> How many meters are in 92.4 kilometers?<|eot|> <|assistant|> ```python km = 92.4 meters = km * 1000 # 92400.0 print(round(meters)) ``` Printed result: 92400 That is 92,400 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 92.4 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 92.4\nmeters = km * 1000 # 92400.0\nprint(round(meters))\n```\nPrinted result: 92400\n\nThat is 92,400 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "92400", "printed": "92400", "notation": null}
nlprog_det-setting-0071854
What simple interest does $5,000 earn at 6% a year over 2 years? As Python: ```python principal = 5000 rate = 6 / 100 # 0.06 years = 2 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") ``` Interpreter output — 600.00 The interest is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0071855
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. One way, in code: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` Execution result — 13.8 The margin is 13.8...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0071856
Kemal lends $12,000 at 3% simple interest per year for 5 years. How much interest is earned? We can compute it in Python. ```python principal = 12000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 1800.0 print(f"{interest:.2f}") ``` Python prints 1800.00, as expected. The interest is $1,800.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0071857
Find the mean of these test scores: 56, 72, 65 and 83. A Python solution: ```python scores = [56, 72, 65, 83] average = sum(scores) // len(scores) # 69 print(average) ``` It outputs: 69 The mean is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0071858
<|start|><|user|> Someone works 38 hours at $26.76 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 26.76 hours = 38 earnings = rate * hours # 1016.8800000000001 print(f"{earnings:.2f}") ``` Running this gives: 1016.88 The pay is $1,016.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 38 hours at $26.76 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 26.76\nhours = 38\nearnings = rate * hours # 1016.8800000000001\nprint(f\"{earnings:.2f}\")\n```\nRunning this gives: 1016.88\n\nThe pay is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1016.88", "printed": "1016.88", "notation": null}
nlprog_det-setting-0071859
What is 10 degrees Celsius in Fahrenheit? That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "50", "printed": "50", "notation": null}