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-0076459
A quorum is 2/3 of the 9 members, rounded up. How many members make a quorum? import math members = 9 quorum = math.ceil(members * 2 / 3) # 6 print(quorum) It prints 6. That is 6 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0076460
<|start|><|user|> At a 6% tax rate, what is the tax on $700.18?<|eot|> <|assistant|> ```python price = 700.18 tax_rate = 6 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Run result = 42.01 The tax is $42.01.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $700.18?" }, { "role": "assistant", "content": "```python\nprice = 700.18\ntax_rate = 6 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nRun result = 42.01\n\nThe tax is $42.01." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "42.01", "printed": "42.01", "notation": null}
nlprog_det-setting-0076461
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Scale 300 g of rice from 8 servings to 10 servings.<|eot|> <|assistant|> grams = 300 serves = 8 needed_for = 10 scaled = grams * needed_for // serves print(scaled) Run it and it prints 375. Use 375 g of rice.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Scale 300 g of rice from 8 servings to 10 servings." }, { "role": "assistant", "content": " grams = 300\n serves = 8\n needed_for = 10\n scaled = grams * needed_for // serves...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0076462
<|start|><|user|> Monthly rent is $900. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> The prorated rent is $240.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The prorated rent is $240.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0076463
After an initial $0, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part? Let's compute it with Python. grant = 24000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") Python prints 8000.00. $8,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0076464
A claim accrued on November 23, 2021. The limitations period is 6 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2021, 11, 23) # datetime.date(2021, 11, 23) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 11, 23) print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "2027-11-23", "printed": "2027-11-23", "notation": null}
nlprog_det-setting-0076465
<|start|><|user|> Notice was given on July 8, 2027. The notice period is 60 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 7, 8) # datetime.date(2027, 7, 8) end = start + timedelta(days=60) # datetime.date(2027, 9, 6) print(end.isoformat()) ``` Runni...
chat
[ { "role": "user", "content": "Notice was given on July 8, 2027. The notice period is 60 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 7, 8) # datetime.date(2027, 7, 8)\nend = start + timedelta(days=60) # d...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2027-09-06", "printed": "2027-09-06", "notation": null}
nlprog_det-setting-0076466
<|start|><|user|> Goods bought on July 24, 2021 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 7, 24) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.is...
chat
[ { "role": "user", "content": "Goods bought on July 24, 2021 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 7, 24)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2023-07-24", "printed": "2023-07-24", "notation": null}
nlprog_det-setting-0076468
Count 30 days forward from October 25, 2026. What date is that? Python: ```python from datetime import date, timedelta start = date(2026, 10, 25) # datetime.date(2026, 10, 25) end = start + timedelta(days=30) # datetime.date(2026, 11, 24) print(end.isoformat()) ``` Out: 2026-11-24 The period ends on November 24, 20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2026-11-24", "printed": "2026-11-24", "notation": null}
nlprog_det-setting-0076469
<|start|><|user|> A meeting starts at 10:15 AM and lasts 75 minutes. When does it end?<|eot|> <|assistant|> ```python start = 10 * 60 + 15 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Result: 11:30 AM) It ends at 11:30 AM.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A meeting starts at 10:15 AM and lasts 75 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 15\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11:30 AM", "printed": "11:30 AM", "notation": null}
nlprog_det-setting-0076470
<|start|><|user|> Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 2625.0 print(f"{per_year:.2f}") ``` Executed, it shows: 262...
chat
[ { "role": "user", "content": "Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 3000\nyears = 8\nper_year = (cost - salvage) / years # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0076471
<|start|><|user|> The landlord deducts $60 and $45 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [60, 45] refund = deposit - sum(deductions) # 1895 print(refund) ``` (stdout: 1895) The refund is $1,895.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $60 and $45 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [60, 45]\nrefund = deposit - sum(deductions) # 1895\nprint(refund)\n```\n(stdout: 1895)\n\nThe ref...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1895", "printed": "1895", "notation": null}
nlprog_det-setting-0076472
Buying 6 calendars at $12 each, 1 hard drives at $4 each, 3 rulers at $25 each, 3 headsets at $17 each, someone hands over $250. What change comes back? The change is $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0076473
<|start|><|user|> Starting with 1074 clipboards and using 34 per day, how many remain after 8 days?<|eot|> <|assistant|> ```python stock = 1074 per_day = 34 days = 8 left = stock - per_day * days # 802 print(left) ``` The code prints 802. 802 clipboards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1074 clipboards and using 34 per day, how many remain after 8 days?" }, { "role": "assistant", "content": "```python\nstock = 1074\nper_day = 34\ndays = 8\nleft = stock - per_day * days # 802\nprint(left)\n```\nThe code prints 802.\n\n802 clipboards a...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "802", "printed": "802", "notation": null}
nlprog_det-setting-0076474
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Papers were served by mail on April ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"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
[]
[]
274
{"gold": "2027-05-23", "printed": "2027-05-23", "notation": null}
nlprog_det-setting-0076475
A deposition lasted 4 hours and 30 minutes. How many minutes is that? The computation: ```python hours = 4 minutes = 30 total_minutes = hours * 60 + minutes # 270 print(total_minutes) ``` Shell output: 270 The deposition lasted 270 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0076476
Straight-line depreciation: cost $24,000, salvage $3,000, 3 years. How much per year? As Python: ```python cost = 24000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` Execution prints 7000.00. Depreciation is $7,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0076477
Convert 87.5 km to meters. Here is a short program for it. ```python km = 87.5 meters = km * 1000 # 87500.0 print(round(meters)) ``` It outputs: 87500 That is 87,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "87500", "printed": "87500", "notation": null}
nlprog_det-setting-0076478
A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 81-page copy cost? Set it up in Python: ```python pages = 81 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 40.5 print(f"{cost:.2f}") ``` # console output: 40.50 The total is $40.50...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0076479
<|start|><|user|> Starting with 1508 badges and using 32 per day, how many remain after 17 days?<|eot|> <|assistant|> ```python stock = 1508 per_day = 32 days = 17 left = stock - per_day * days # 964 print(left) ``` What it prints: 964 964 badges are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1508 badges and using 32 per day, how many remain after 17 days?" }, { "role": "assistant", "content": "```python\nstock = 1508\nper_day = 32\ndays = 17\nleft = stock - per_day * days # 964\nprint(left)\n```\nWhat it prints: 964\n\n964 badges are left...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "964", "printed": "964", "notation": null}
nlprog_det-setting-0076480
A pack of 12 toner kits sells for $384. What does each cost? Each one costs $32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0076481
An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 5 months? ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 250.0 print(f"{interest:.2f}") ``` This prints: 250.00 The interest is $250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0076482
A 114-page report must be reviewed in 3 days. How many pages a day is that, evenly? One way, in code: ```python pages = 114 days = 3 per_day = pages // days # 38 print(per_day) ``` stdout: 38 That is 38 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0076483
<|start|><|user|> From 2009 to 2036, how many years is that?<|eot|> <|assistant|> 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2009 to 2036, how many years is that?" }, { "role": "assistant", "content": "27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0076484
<|start|><|user|> 159 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> total = 159 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") That prints 17 each, 6 left over. The answer: ...
chat
[ { "role": "user", "content": "159 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": " total = 159\n groups = 9\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} l...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "17 each, 6 left over", "printed": "17 each, 6 left over", "notation": null}
nlprog_det-setting-0076486
<|start|><|user|> How many of 178 votes make 60% (round up)?<|eot|> <|assistant|> 107 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 178 votes make 60% (round up)?" }, { "role": "assistant", "content": "107 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0076487
Count the days between April 5, 2020 and May 16, 2020. Python: ```python from datetime import date first = date(2020, 4, 5) # datetime.date(2020, 4, 5) second = date(2020, 5, 16) # datetime.date(2020, 5, 16) print((second - first).days) ``` It prints 41. There are 41 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0076488
How many minutes pass from 9:59 AM to 2:36 PM on the same day? Translated to Python: start = 9 * 60 + 59 # 599 end = 14 * 60 + 36 # 876 print(end - start) Python prints: 277 277 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "277", "printed": "277", "notation": null}
nlprog_det-setting-0076489
<|start|><|system|> Functions: {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> 431 files go into boxes of 40. How...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0076490
<|start|><|user|> A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 25000 rate = 30 / 100 # 0.3 fee = recovery * rate # 7500.0 print(f"{fee:.2f}") ``` The program outputs 7500.00. The lawyer's fee comes to $7,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 7500.0\nprint(f\"{fee:.2f}\")\n```\nThe program outputs 7500.00.\n\nThe lawyer's f...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0076491
$10,000 is invested at 5% compounded yearly. What is it worth after 3 years? Written as code: ```python principal = 10000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 11576.250000000002 print(f"{value:.2f}") ``` stdout — 11576.25 It is worth $11,576.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11576.25", "printed": "11576.25", "notation": null}
nlprog_det-setting-0076492
Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year? Programmatically: ```python cost = 30000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 2800.0 print(f"{per_year:.2f}") ``` Printed = 2800.00 Depreciation is $2,800...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0076493
Convert 1 h 39 min (the length of a workshop) to minutes. ```python hours = 1 minutes = 39 total_minutes = hours * 60 + minutes # 99 print(total_minutes) ``` (Out: 99) That is 99 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "99", "printed": "99", "notation": null}
nlprog_det-setting-0076494
What simple interest does $5,000 earn at 4% a year over 2 years? Python: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 2 interest = principal * rate * years # 400.0 print(f"{interest:.2f}") ``` Printed = 400.00 It earns $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0076495
<|start|><|system|> You can call tools. Available tools: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_uni...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\...
nlprog_det
setting
original
null
deterministic
[]
[]
333
{"gold": "43.06", "printed": "43.06", "notation": null}
nlprog_det-setting-0076497
<|start|><|user|> Quinn lends $5,000 at 2% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") ``` (Result: 500.00) The interest is $500.00.<|eot|> <|end...
chat
[ { "role": "user", "content": "Quinn lends $5,000 at 2% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 5\ninterest = principal * rate * years # 500.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0076498
<|start|><|user|> What simple interest does $12,000 earn at 2% a year over 6 years?<|eot|> <|assistant|> ```python principal = 12000 rate = 2 / 100 # 0.02 years = 6 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` What it prints: 1440.00 The interest is $1,440.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $12,000 earn at 2% a year over 6 years?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 2 / 100 # 0.02\nyears = 6\ninterest = principal * rate * years # 1440.0\nprint(f\"{interest:.2f}\")\n```\nWhat it prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0076499
What is 10 degrees Celsius in Fahrenheit? A short script: ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` The script prints 50. That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0076500
Convert 81.7 km to meters. We write it as a program: km = 81.7 meters = km * 1000 # 81700.0 print(round(meters)) Result: 81700 That is 81,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "81700", "printed": "81700", "notation": null}
nlprog_det-setting-0076501
<|start|><|user|> How many of 138 votes make 75% (round up)?<|eot|> <|assistant|> At least 104 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 138 votes make 75% (round up)?" }, { "role": "assistant", "content": "At least 104 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0076502
<|start|><|user|> A storeroom has 1144 desk lamps. The office uses 26 a day. How many are left after 5 days?<|eot|> <|assistant|> ```python stock = 1144 per_day = 26 days = 5 left = stock - per_day * days print(left) ``` The interpreter prints: 1014 1014 desk lamps are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1144 desk lamps. The office uses 26 a day. How many are left after 5 days?" }, { "role": "assistant", "content": "```python\nstock = 1144\nper_day = 26\ndays = 5\nleft = stock - per_day * days\nprint(left)\n```\nThe interpreter prints: 1014\n\n1014 d...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1014", "printed": "1014", "notation": null}
nlprog_det-setting-0076503
One can of paint covers 300 square feet. How many cans are needed for 991 square feet of wall? Computing it: ```python import math area = 991 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` The script prints 4, as expected. Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0076504
A film lasted 1 hours and 16 minutes. How many minutes is that? As Python: hours = 1 minutes = 16 total_minutes = hours * 60 + minutes # 76 print(total_minutes) The program prints: 76 That is 76 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0076506
With 15% off, what does a $40 bicycle helmet cost? Here's the code. ```python price = 40 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 34.0 print(f"{sale_price:.2f}") ``` On running, it outputs 34.00. The sale price is $34.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0076507
3 runs at 250 calories each burn how many calories in total? Code: ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Executing it gives 750, as expected. 750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0076508
<|start|><|system|> Tool definitions: [{"name": "code_runner", "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|> How many da...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0076509
<|start|><|user|> A $120 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 18 / 100 people = 2 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The code prints: 70.80 The share is $70.80 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $120 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 18 / 100\npeople = 2\neach = bill * (1 + tip_rate) / people\nprint(f\"{each:.2f}\")\n```\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0076510
Each storage box holds 15 files. How many boxes are needed for 515 files? 35 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0076511
From a $10,000 retainer, 13 hours at $200/hour have been drawn. What remains? Computing it: retainer = 10000 hours = 13 rate = 200 left = retainer - hours * rate # 7400 print(left) (stdout: 7400) The remaining balance is $7,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "7400", "printed": "7400", "notation": null}
nlprog_det-setting-0076512
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 135 copies of a 26-page handout?<|eot|> <|assistant|> pages = 26 copies = 135 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 421.2 print(f"{cost:.2f}") Execution prints 421.20. Printing costs $421.20.<|eot|>...
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 135 copies of a 26-page handout?" }, { "role": "assistant", "content": " pages = 26\n copies = 135\n cost_per_page = 0.12\n cost = pages * copies * cost_per_page # 421.2\n print(f\"{cost:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "421.20", "printed": "421.20", "notation": null}
nlprog_det-setting-0076513
<|start|><|user|> Convert 3 h 45 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 45 total_minutes = hours * 60 + minutes # 225 print(total_minutes) ``` Executing it gives: 225 The meeting lasted 225 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 45 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 45\ntotal_minutes = hours * 60 + minutes # 225\nprint(total_minutes)\n```\nExecuting it gives: 225\n\nThe meeting lasted 225 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0076514
<|start|><|user|> Oskar lends $20,000 at 8% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 20000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 3200.0 print(f"{interest:.2f}") ``` Run it and it prints 3200.00. The interest is $3,20...
chat
[ { "role": "user", "content": "Oskar lends $20,000 at 8% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 8 / 100 # 0.08\nyears = 2\ninterest = principal * rate * years # 3200.0\nprint(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0076515
$10,000 is invested at 4% compounded yearly. What is it worth after 3 years? ```python principal = 10000 rate = 4 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Execution prints 11248.64. It is worth $11,248.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11248.64", "printed": "11248.64", "notation": null}
nlprog_det-setting-0076516
What percentage of $10,000 is $1,900? 19.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "19.0", "printed": "19.0", "notation": null}
nlprog_det-setting-0076517
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours? We can compute it in Python. ```python rate = 22.4 hours = 45 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` It prints: 1064.00 The weekly pay is $1,064.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1064.00", "printed": "1064.00", "notation": null}
nlprog_det-setting-0076518
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "py_exec", "description": "Use for arithmetic and date mat...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"py...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "191.62", "printed": "191.62", "notation": null}
nlprog_det-setting-0076519
How much is a $69 daily meal allowance over 4 days? Written as code: days = 4 meal_rate = 69 total = days * meal_rate # 276 print(total) # program output: 276 That comes to $276.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0076520
Fiona and Farah share $1,323 in the ratio 3:4. How much does Fiona get? As a program: ```python total = 1323 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 567 print(share_a) ``` It prints 567, as expected. Fiona's share is $567.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "567", "printed": "567", "notation": null}
nlprog_det-setting-0076521
<|start|><|user|> At an exchange rate of 1.35 EUR per USD, how many EUR is 4,624 USD?<|eot|> <|assistant|> ```python amount = 4624 rate = 1.35 converted = amount * rate # 6242.400000000001 print(f"{converted:.2f}") ``` The program prints 6242.40. It converts to 6,242.40 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 EUR per USD, how many EUR is 4,624 USD?" }, { "role": "assistant", "content": "```python\namount = 4624\nrate = 1.35\nconverted = amount * rate # 6242.400000000001\nprint(f\"{converted:.2f}\")\n```\nThe program prints 6242.40.\n\nIt conv...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "6242.40", "printed": "6242.40", "notation": null}
nlprog_det-setting-0076522
A customer buys 3 hard drives at $10 each, 1 scissors at $8 each and pays with $50. How much change is due? Programmatically: items = [(3, 10), (1, 8)] total = sum(q * p for q, p in items) # 38 paid = 50 change = paid - total # 12 print(change) The program outputs: 12 The change is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076523
<|start|><|system|> Tools (call with JSON): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "compute", "description": "A Pytho...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0076524
The rules require 3/5 of 26 members (round up) to be present. How many is that? In code: ```python import math members = 26 quorum = math.ceil(members * 3 / 5) # 16 print(quorum) ``` Run output: 16 That is 16 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0076525
Rent of $900 goes up 8%. What is the new rent? We can compute it in Python. ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` The program prints: 972.00 It rises to $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0076526
<|start|><|user|> After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 24000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 3666.6666666666665 print(f"{each:.2f}") ``` Running it prints 3666.67. Each ...
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 2000\ninstallments = 6\neach = (grant - up_front) / installments # 3666.6666666666665\...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0076527
Nadia has 7 documents to file, and each filing costs $125. How much are the filing fees in total? Programmatically: ```python fee = 125 filings = 7 total = fee * filings # 875 print(total) ``` The printout reads: 875 The filings cost $875 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "875", "printed": "875", "notation": null}
nlprog_det-setting-0076529
<|start|><|user|> A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 18 total = monthly_rent * months # 37800 print(total) ``` stdout: 37800 The rent over the term is $37,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 18\ntotal = monthly_rent * months # 37800\nprint(total)\n```\nstdout: 37800\n\nThe rent over t...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0076530
With 25% off, what does a $250 printer cost? Let the code do the arithmetic: ```python price = 250 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 187.5 print(f"{sale_price:.2f}") ``` Run output: 187.50 The sale price is $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0076531
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Walls total 328 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> import math area = 328 coverage = 350 cans = math.ceil(area / coverage) # 1 print(cans) # printed: 1 Buy 1 cans.<|e...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Walls total 328 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": " import math\n area = 328\n coverage = 350\n...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0076532
Rent of $1,500 goes up 2%. What is the new rent? Programmatically: ```python rent = 1500 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1530.0 print(f"{new_rent:.2f}") ``` Python prints: 1530.00 It rises to $1,530.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0076533
<|start|><|user|> Convert 4 h 47 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 47 total_minutes = hours * 60 + minutes # 287 print(total_minutes) ``` Printed result: 287 That is 287 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 47 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 47\ntotal_minutes = hours * 60 + minutes # 287\nprint(total_minutes)\n```\nPrinted result: 287\n\nThat is 287 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0076534
<|start|><|user|> 8 boxes hold 12 labels each. After 17 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 8 per_box = 12 given_away = 17 left = boxes * per_box - given_away # 79 print(left) ``` Out: 79 That leaves 79 labels.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 boxes hold 12 labels each. After 17 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 8\nper_box = 12\ngiven_away = 17\nleft = boxes * per_box - given_away # 79\nprint(left)\n```\nOut: 79\n\nThat leaves 79 labels." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0076535
<|start|><|user|> What is a 20% tip on a $152.31 bill?<|eot|> <|assistant|> ```python bill = 152.31 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 30.462000000000003 print(f"{tip:.2f}") ``` Executed, it shows: 30.46 The tip is $30.46.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $152.31 bill?" }, { "role": "assistant", "content": "```python\nbill = 152.31\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 30.462000000000003\nprint(f\"{tip:.2f}\")\n```\nExecuted, it shows: 30.46\n\nThe tip is $30.46." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "30.46", "printed": "30.46", "notation": null}
nlprog_det-setting-0076536
A quorum is 3/5 of the 47 members, rounded up. How many members make a quorum? Written as code: ```python import math members = 47 quorum = math.ceil(members * 3 / 5) # 29 print(quorum) ``` Out — 29 29 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0076537
Starting with 1924 folders and using 14 per day, how many remain after 18 days? Code: ```python stock = 1924 per_day = 14 days = 18 left = stock - per_day * days # 1672 print(left) ``` When run, it prints 1672, as expected. 1672 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1672", "printed": "1672", "notation": null}
nlprog_det-setting-0076538
At 1% a month (simple), what interest builds on $4,000 over 2 months? Here's the code. ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` (Program output: 80.00) The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0076539
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 172 copies of a 7-page handout?<|eot|> <|assistant|> ```python pages = 7 copies = 172 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 120.4 print(f"{cost:.2f}") ``` Executing it gives 120.40. The job costs $120.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 172 copies of a 7-page handout?" }, { "role": "assistant", "content": "```python\npages = 7\ncopies = 172\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 120.4\nprint(f\"{cost:.2f}\")\n```\nEx...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "120.40", "printed": "120.40", "notation": null}
nlprog_det-setting-0076540
<|start|><|user|> Papers were served by mail on April 16, 2019. 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(2019, 4, 16) # datetime.date(2019, 4, 16) response_days = 21 mail_days = 3 due ...
chat
[ { "role": "user", "content": "Papers were served by mail on April 16, 2019. 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(2019, 4, 16) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2019-05-10", "printed": "2019-05-10", "notation": null}
nlprog_det-setting-0076541
A party has 21 days to respond to a motion served on January 20, 2027, with 3 days added because service was by mail. When is the response due? Script: ```python from datetime import date, timedelta served = date(2027, 1, 20) # datetime.date(2027, 1, 20) response_days = 21 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2027-02-13", "printed": "2027-02-13", "notation": null}
nlprog_det-setting-0076542
Femi earns a 10% commission on $44,592 of sales. What is the commission? ```python sales = 44592 rate = 10 / 100 # 0.1 commission = sales * rate # 4459.2 print(f"{commission:.2f}") ``` The code prints 4459.20. Femi earns $4,459.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4459.20", "printed": "4459.20", "notation": null}
nlprog_det-setting-0076543
<|start|><|user|> What average speed covers 406 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 406 hours = 2 speed = distance / hours # 203.0 print(round(speed)) ``` It prints: 203 It averages 203 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 406 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 406\nhours = 2\nspeed = distance / hours # 203.0\nprint(round(speed))\n```\nIt prints: 203\n\nIt averages 203 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "203", "printed": "203", "notation": null}
nlprog_det-setting-0076544
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> Profit is 24.2% of revenue.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "Profit is 24.2% of revenue." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0076545
How much is a $64 daily meal allowance over 8 days? The computation: days = 8 meal_rate = 64 total = days * meal_rate # 512 print(total) Printed: 512 The allowance is $512.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "512", "printed": "512", "notation": null}
nlprog_det-setting-0076546
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 50-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 60 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 50-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 60 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0076547
<|start|><|user|> To read 285 pages in 15 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 285 days = 15 per_day = pages // days # 19 print(per_day) Printed = 19 That is 19 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 285 pages in 15 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 285\n days = 15\n per_day = pages // days # 19\n print(per_day)\nPrinted = 19\n\nThat is 19 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0076549
At $0.70 per mile, what is the reimbursement for 337 miles? Ana is owed $235.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "235.90", "printed": "235.90", "notation": null}
nlprog_det-setting-0076550
<|start|><|user|> Count 120 days forward from March 12, 2023. What date is that?<|eot|> <|assistant|> That date is July 10, 2023.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 120 days forward from March 12, 2023. What date is that?" }, { "role": "assistant", "content": "That date is July 10, 2023." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2023-07-10", "printed": "2023-07-10", "notation": null}
nlprog_det-setting-0076551
Starting with 1507 cables and using 29 per day, how many remain after 19 days? Programmatically: ```python stock = 1507 per_day = 29 days = 19 left = stock - per_day * days # 956 print(left) ``` Execution prints 956, as expected. 956 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "956", "printed": "956", "notation": null}
nlprog_det-setting-0076552
What does $10,000 grow to in 5 years at 2% annual compounding? In Python: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 11040.808032 print(f"{value:.2f}") ``` Output: 11040.81 It is worth $11,040.81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "11040.81", "printed": "11040.81", "notation": null}
nlprog_det-setting-0076553
A 37 lb package ships at $5 base plus $2.00/lb. What is the charge? As Python: base = 5 per_pound = 2.0 weight = 37 cost = base + per_pound * weight # 79.0 print(f"{cost:.2f}") Result = 79.00 The charge is $79.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "79.00", "printed": "79.00", "notation": null}
nlprog_det-setting-0076554
A $2,000 security deposit has deductions of $45 and $200. How much is refunded? Let's compute it with Python. ```python deposit = 2000 deductions = [45, 200] refund = deposit - sum(deductions) # 1755 print(refund) ``` It prints 1755, as expected. $1,755 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1755", "printed": "1755", "notation": null}
nlprog_det-setting-0076555
At an exchange rate of 1.12 USD per EUR, how many USD is 4,478 EUR? Let the code do the arithmetic: ```python amount = 4478 rate = 1.12 converted = amount * rate # 5015.360000000001 print(f"{converted:.2f}") ``` Executing it gives: 5015.36 It converts to 5,015.36 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "5015.36", "printed": "5015.36", "notation": null}
nlprog_det-setting-0076556
<|start|><|user|> A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 35 / 100 # 0.35 fee = recovery * rate # 4200.0 print(f"{fee:.2f}") ``` Run output: 4200.00 The lawyer's fee comes to $4,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 4200.0\nprint(f\"{fee:.2f}\")\n```\nRun output: 4200.00\n\nThe lawyer's fee comes...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0076557
2 books come back 16 days late, at $0.25 a day each. What is the fine? Program: ```python per_day = 0.25 days_late = 16 books = 2 fine = per_day * days_late * books # 8.0 print(f"{fine:.2f}") ``` # printed result: 8.00 The fine is $8.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8.00", "printed": "8.00", "notation": null}
nlprog_det-setting-0076558
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "search_case...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "78.40", "printed": "78.40", "notation": null}
nlprog_det-setting-0076559
A party has 21 days to respond to a motion served on May 19, 2022, with 3 days added because service was by mail. When is the response due? Python version: ```python from datetime import date, timedelta served = date(2022, 5, 19) # datetime.date(2022, 5, 19) response_days = 21 mail_days = 3 due = served + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2022-06-12", "printed": "2022-06-12", "notation": null}
nlprog_det-setting-0076560
Of a $10,000 budget, $3,100 has been spent. What percent is that? In code: ```python budget = 10000 spent = 3100 percent = spent / budget * 100 # 31.0 print(round(percent, 1)) ``` The script prints 31.0. 31.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "31.0", "printed": "31.0", "notation": null}
nlprog_det-setting-0076561
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 30.0 print(f"{each:.2f}") ``` Out...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0076562
<|start|><|user|> Walls total 525 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 525 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Printed — 2 Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 525 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 525\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nPrinted — 2\n\nBuy 2 cans." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0076563
A printer costs $45. It is 40% off. What is the sale price? Python makes this quick: ```python price = 45 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 27.0 print(f"{sale_price:.2f}") ``` When run, it prints: 27.00 The sale price is $27.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0076564
<|start|><|user|> Sales went from 400 to 420. What is the percent change?<|eot|> <|assistant|> ```python old = 400 new = 420 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` Program output: 5 The change is 5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 400 to 420. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 420\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nProgram output: 5\n\nThe change is 5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "5", "printed": "5", "notation": null}