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-0070242
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "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\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "2028-04-28", "printed": "2028-04-28", "notation": null}
nlprog_det-setting-0070243
Goods bought on February 3, 2019 carry a 24-month warranty. When does it expire? The program: ```python from datetime import date start = date(2019, 2, 3) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Running ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2021-02-03", "printed": "2021-02-03", "notation": null}
nlprog_det-setting-0070244
135 files go into boxes of 24. How many boxes does that take? Here is a short program for it. ```python import math files = 135 per_box = 24 boxes = math.ceil(files / per_box) # 6 print(boxes) ``` (Console output: 6) It takes 6 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0070245
Walls total 700 sq ft and each can covers 250 sq ft. How many cans should be bought? ```python import math area = 700 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` What it prints: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0070246
A settlement of $15,000 is split equally among 6 parties. How much does each party receive? Each share is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0070247
4 claimants share a $18,000 settlement equally. What is each share? Each party receives $4,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0070248
5 walks at 150 calories each burn how many calories in total? As Python: ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` Output — 750 That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070250
<|start|><|system|> Available functions (JSON Schema): {"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_unit"]...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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
[]
[]
396
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0070251
Each storage box holds 12 files. How many boxes are needed for 163 files? One way, in code: import math files = 163 per_box = 12 boxes = math.ceil(files / per_box) # 14 print(boxes) # program output: 14 It takes 14 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070252
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A $800 security deposit has deductions of $60, $60 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [60, 60, 60] refund = deposit - sum(deductions) # 620 print(refund) ``` Out: 620 The refund is $620.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A $800 security deposit has deductions of $60, $60 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [60, 60, 60]\nrefund = deposit - sum...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "620", "printed": "620", "notation": null}
nlprog_det-setting-0070253
<|start|><|user|> Divide 282 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 282 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output = 40 each, 2 left over The ...
chat
[ { "role": "user", "content": "Divide 282 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 282\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "40 each, 2 left over", "printed": "40 each, 2 left over", "notation": null}
nlprog_det-setting-0070254
Xavier and Delia share $980 in the ratio 2:5. How much does Xavier get? Written as code: ```python total = 980 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 280 print(share_a) ``` # console output: 280 Xavier's share is $280.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0070255
<|start|><|system|> You have access to these functions: [{"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_unit...
chat
[ { "role": "system", "content": "You have access to these functions:\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
[]
[]
336
{"gold": "6410.82", "printed": "6410.82", "notation": null}
nlprog_det-setting-0070256
Rent of $1,250 goes up 2%. What is the new rent? Coded up: ```python rent = 1250 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1275.0 print(f"{new_rent:.2f}") ``` Executed, it shows 1275.00. The new rent is $1,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0070258
<|start|><|system|> Tools (call with JSON): [{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Rent of $1,500 goes up 2%. What is the ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0070259
Parking is $2 per hour with a daily maximum of $20. What do 10 hours cost? Coded up: ```python rate = 2 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Executed, it shows 20. The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0070260
What day of the week is August 7, 2020? One way, in code: ```python from datetime import date hearing = date(2020, 8, 7) print(hearing.strftime("%A")) ``` (Output: Friday) August 7, 2020 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0070261
Buying 4 tape rolls at $23 each, 4 paper reams at $5 each, someone hands over $150. What change comes back? In code: ```python items = [(4, 23), (4, 5)] total = sum(q * p for q, p in items) # 112 paid = 150 change = paid - total # 38 print(change) ``` Execution result — 38 $38 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0070262
<|start|><|user|> 4 claimants share a $15,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 15000 parties = 4 share = settlement // parties # 3750 print(share) ``` That prints: 3750 Each party receives $3,750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $15,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 4\nshare = settlement // parties # 3750\nprint(share)\n```\nThat prints: 3750\n\nEach party receives $3,750." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0070263
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 5 months? A few lines of Python do it: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 750.0 print(f"{interest:.2f}") ``` Executed, it shows: 750.00 $750.00 a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0070264
What commission does Bilal make on $85,778 in sales at 4%? Programmatically: sales = 85778 rate = 4 / 100 commission = sales * rate print(f"{commission:.2f}") The program outputs: 3431.12 Bilal earns $3,431.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3431.12", "printed": "3431.12", "notation": null}
nlprog_det-setting-0070265
After an initial $6,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? Let the code do the arithmetic: ```python grant = 60000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 18000.0 print(f"{each:.2f}") ``` Result — 18000.00 $18,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0070266
What is a 18% tip on a $118.32 bill? Code: bill = 118.32 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 21.2976 print(f"{tip:.2f}") Python prints 21.30, as expected. The tip is $21.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "21.30", "printed": "21.30", "notation": null}
nlprog_det-setting-0070267
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Pilar earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?<|eot|> <|assistant|> ```python rate = 25.0 hours = 51 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 412.5 pay = regular + overtime # 14...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Pilar earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 51\nregular = 40 * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "1412.50", "printed": "1412.50", "notation": null}
nlprog_det-setting-0070268
Pack A has 8 items for $7.66. Pack B has 18 items for $29.76. Which has the lower price per item? Python: ```python pack_a = 7.66 / 8 # 0.9575 pack_b = 29.76 / 18 # 1.6533333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Console output — A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0070269
Buying 2 sticky pads at $17 each, 1 tape rolls at $18 each, someone hands over $100. What change comes back? Python: ```python items = [(2, 17), (1, 18)] total = sum(q * p for q, p in items) # 52 paid = 100 change = paid - total # 48 print(change) ``` Output: 48 $48 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0070270
The meal allowance is $59 per day. What is it for 7 days? That comes to $413.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "413", "printed": "413", "notation": null}
nlprog_det-setting-0070271
<|start|><|user|> How many days are there from May 8, 2026 to May 23, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 5, 8) second = date(2027, 5, 23) print((second - first).days) ``` stdout: 380 There are 380 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from May 8, 2026 to May 23, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 5, 8)\nsecond = date(2027, 5, 23)\nprint((second - first).days)\n```\nstdout:\n380\n\nThere are 380 days between...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "380", "printed": "380", "notation": null}
nlprog_det-setting-0070272
<|start|><|user|> Convert 462 USD to CAD at 1 USD = 1.12 CAD.<|eot|> <|assistant|> ```python amount = 462 rate = 1.12 converted = amount * rate # 517.44 print(f"{converted:.2f}") ``` It outputs: 517.44 It converts to 517.44 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 462 USD to CAD at 1 USD = 1.12 CAD." }, { "role": "assistant", "content": "```python\namount = 462\nrate = 1.12\nconverted = amount * rate # 517.44\nprint(f\"{converted:.2f}\")\n```\nIt outputs: 517.44\n\nIt converts to 517.44 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "517.44", "printed": "517.44", "notation": null}
nlprog_det-setting-0070273
What simple interest does $8,000 earn at 4% a year over 2 years? A few lines of Python do it: ```python principal = 8000 rate = 4 / 100 # 0.04 years = 2 interest = principal * rate * years # 640.0 print(f"{interest:.2f}") ``` Interpreter output — 640.00 The interest is $640.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "640.00", "printed": "640.00", "notation": null}
nlprog_det-setting-0070274
$10,000 is invested at 4% compounded yearly. What is it worth after 4 years? It is worth $11,698.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0070275
<|start|><|user|> A $800 security deposit has deductions of $85 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [85, 60] refund = deposit - sum(deductions) # 655 print(refund) ``` Run it and it prints 655. $655 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $85 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [85, 60]\nrefund = deposit - sum(deductions) # 655\nprint(refund)\n```\nRun it and it prints 655.\n\n$655 is r...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "655", "printed": "655", "notation": null}
nlprog_det-setting-0070276
<|start|><|user|> At $24.16 an hour, what does 16 hours of work pay?<|eot|> <|assistant|> ```python rate = 24.16 hours = 16 earnings = rate * hours # 386.56 print(f"{earnings:.2f}") ``` The program outputs 386.56. The pay is $386.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $24.16 an hour, what does 16 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 24.16\nhours = 16\nearnings = rate * hours # 386.56\nprint(f\"{earnings:.2f}\")\n```\nThe program outputs 386.56.\n\nThe pay is $386.56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "386.56", "printed": "386.56", "notation": null}
nlprog_det-setting-0070277
A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments? Python, step by step: ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` Interpreter output — 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0070278
Notice was given on July 2, 2018. The notice period is 21 days. When does it run out? A few lines of Python do it: ```python from datetime import date, timedelta start = date(2018, 7, 2) # datetime.date(2018, 7, 2) end = start + timedelta(days=21) # datetime.date(2018, 7, 23) print(end.isoformat()) ``` The run gives...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2018-07-23", "printed": "2018-07-23", "notation": null}
nlprog_det-setting-0070279
Someone works 12 hours at $20.29 per hour. What are the earnings? In Python: rate = 20.29 hours = 12 earnings = rate * hours # 243.48 print(f"{earnings:.2f}") # run result: 243.48 The pay is $243.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "243.48", "printed": "243.48", "notation": null}
nlprog_det-setting-0070280
An office budget of $5,000 has expenses of $1,595, $2,527. How much of the budget is left? Python: budget = 5000 expenses = [1595, 2527] left = budget - sum(expenses) # 878 print(left) Execution result — 878 $878 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "878", "printed": "878", "notation": null}
nlprog_det-setting-0070281
One can of paint covers 300 square feet. How many cans are needed for 882 square feet of wall? Let the code do the arithmetic: ```python import math area = 882 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Printed = 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0070282
Sami has 15 documents to file, and each filing costs $25. How much are the filing fees in total? Here's the code. ```python fee = 25 filings = 15 total = fee * filings # 375 print(total) ``` Console: 375 The filings cost $375 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0070283
The landlord deducts $45 and $150 from a $1,500 deposit. What is returned to the tenant? Let's compute it with Python. ```python deposit = 1500 deductions = [45, 150] refund = deposit - sum(deductions) # 1305 print(refund) ``` Shell output: 1305 $1,305 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1305", "printed": "1305", "notation": null}
nlprog_det-setting-0070284
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 311 miles?<|eot|> <|assistant|> ```python miles = 311 rate = 0.62 reimbursement = miles * rate # 192.82 print(f"{reimbursement:.2f}") ``` The program prints 192.82, as expected. Jamal is owed $192.82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 311 miles?" }, { "role": "assistant", "content": "```python\nmiles = 311\nrate = 0.62\nreimbursement = miles * rate # 192.82\nprint(f\"{reimbursement:.2f}\")\n```\nThe program prints 192.82, as expected.\n\nJamal is ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "192.82", "printed": "192.82", "notation": null}
nlprog_det-setting-0070285
How many of 108 votes make 67% (round up)? ```python import math voters = 108 needed = math.ceil(voters * 67 / 100) # 73 print(needed) ``` Running it prints 73, as expected. 73 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0070286
What is a 22% tip on a $88.21 bill? Translated to Python: ```python bill = 88.21 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 19.4062 print(f"{tip:.2f}") ``` It prints: 19.41 Leave $19.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "19.41", "printed": "19.41", "notation": null}
nlprog_det-setting-0070287
How long, in days, is it from January 19, 2023 until September 5, 2023? In Python: ```python from datetime import date first = date(2023, 1, 19) # datetime.date(2023, 1, 19) second = date(2023, 9, 5) # datetime.date(2023, 9, 5) print((second - first).days) ``` Run output — 229 There are 229 days between the two dat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "229", "printed": "229", "notation": null}
nlprog_det-setting-0070288
Copies cost $5 plus $0.50 for each page beyond 0. How much for 79 pages? A Python solution: ```python pages = 79 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 44.5 print(f"{cost:.2f}") ``` Result: 44.50 The copy costs $44.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "44.50", "printed": "44.50", "notation": null}
nlprog_det-setting-0070289
<|start|><|user|> A party has 30 days to respond to a motion served on January 27, 2024, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2024, 1, 27) # datetime.date(2024, 1, 27) response_days = 30 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 30 days to respond to a motion served on January 27, 2024, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 1, 27) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2024-02-29", "printed": "2024-02-29", "notation": null}
nlprog_det-setting-0070290
<|start|><|system|> Available functions (JSON Schema): [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "3.90", "printed": "3.90", "notation": null}
nlprog_det-setting-0070291
With 40% off, what does a $250 desk lamp cost? Python makes this quick: ```python price = 250 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 150.0 print(f"{sale_price:.2f}") ``` It prints 150.00. The sale price is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0070292
<|start|><|system|> You have access to these functions: {"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": "sandbox_python", "descr...
chat
[ { "role": "system", "content": "You have access to these functions:\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\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
372
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0070293
What is a 25% tip on a $134.34 bill? The computation: ```python bill = 134.34 tip_rate = 25 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` Result: 33.59 Leave $33.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "33.59", "printed": "33.59", "notation": null}
nlprog_det-setting-0070294
An office budget of $5,000 has expenses of $2,950, $571. How much of the budget is left? Here is the program. ```python budget = 5000 expenses = [2950, 571] left = budget - sum(expenses) # 1479 print(left) ``` Interpreter output: 1479 $1,479 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1479", "printed": "1479", "notation": null}
nlprog_det-setting-0070295
Starting from $8,000, the team spends $3,749, $1,548, $753. What remains? budget = 8000 expenses = [3749, 1548, 753] left = budget - sum(expenses) # 1950 print(left) Program output: 1950 The remaining budget is $1,950.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0070296
How many of 194 votes make 60% (round up)? As Python: ```python import math voters = 194 needed = math.ceil(voters * 60 / 100) # 117 print(needed) ``` The interpreter prints 117. At least 117 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0070297
<|start|><|system|> Tools (call with JSON): [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A printer costs $75. It...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0070298
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 17-page copy cost?<|eot|> <|assistant|> pages = 17 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page ...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 17-page copy cost?" }, { "role": "assistant", "content": " pages = 17\n base = 15\n per_p...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "15.70", "printed": "15.70", "notation": null}
nlprog_det-setting-0070299
Straight-line depreciation: cost $24,000, salvage $3,000, 5 years. How much per year? Programmatically: ```python cost = 24000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 4200.0 print(f"{per_year:.2f}") ``` Printed — 4200.00 Depreciation is $4,200.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0070301
<|start|><|user|> Starting with 1882 mugs and using 17 per day, how many remain after 12 days?<|eot|> <|assistant|> 1678 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1882 mugs and using 17 per day, how many remain after 12 days?" }, { "role": "assistant", "content": "1678 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "1678", "printed": "1678", "notation": null}
nlprog_det-setting-0070302
Sales went from 2,000 to 1,200. What is the percent change? Python does the arithmetic: ```python old = 2000 new = 1200 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Out: -40 It changed by -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0070304
Sales went from 800 to 680. What is the percent change? As Python: ```python old = 800 new = 680 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Printed = -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0070305
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> After a 30% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 p...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "After a 30% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 9600...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0070306
<|start|><|user|> Mei lends $1,000 at 3% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 180.0 print(f"{interest:.2f}") ``` Result = 180.00 The interest is $180.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mei lends $1,000 at 3% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 6\ninterest = principal * rate * years # 180.0\nprint(f\"{interest:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0070307
A $48,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment? Python does the arithmetic: ```python grant = 48000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") ``` Executing it gives: 3500.00 $3,500.00 per install...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0070308
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0070309
Each storage box holds 25 files. How many boxes are needed for 772 files? Here is the program. ```python import math files = 772 per_box = 25 boxes = math.ceil(files / per_box) # 31 print(boxes) ``` (Out: 31) It takes 31 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0070310
<|start|><|system|> You have access to these functions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "run_python", "description": "A Python interpreter. Returns...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"run_...
nlprog_det
setting
original
null
deterministic
[]
[]
317
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0070311
<|start|><|user|> 4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` Printed — 18...
chat
[ { "role": "user", "content": "4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0070314
<|start|><|user|> Attendance was 68 out of 80. Express it as a percent.<|eot|> <|assistant|> ```python present = 68 total = 80 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` Executing it gives: 85.0 Attendance was 85.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 68 out of 80. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 68\ntotal = 80\npercent = present / total * 100 # 85.0\nprint(round(percent, 1))\n```\nExecuting it gives: 85.0\n\nAttendance was 85.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0070316
<|start|><|user|> The paralegal logged 8 hours at a rate of $225. How much is billed?<|eot|> <|assistant|> ```python hours = 8 rate = 225 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` The program prints 1800.00, as expected. That comes to $1,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 8 hours at a rate of $225. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 225\nbill = hours * rate # 1800\nprint(f\"{bill:.2f}\")\n```\nThe program prints 1800.00, as expected.\n\nThat comes to $1,800.00...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0070317
An invoice lists 38 batteries at $8 each, plus 6% sales tax. What is the invoice total? In code: ```python quantity = 38 unit_price = 8 subtotal = quantity * unit_price # 304 total = subtotal * (1 + 6 / 100) # 322.24 print(f"{total:.2f}") ``` The program prints 322.24. The total with tax is $322.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "322.24", "printed": "322.24", "notation": null}
nlprog_det-setting-0070318
What day of the week is April 11, 1996? Python code: from datetime import date hearing = date(1996, 4, 11) # datetime.date(1996, 4, 11) print(hearing.strftime("%A")) Python prints Thursday. It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0070320
How many of 26 members form a majority (more than half)? Let the code do the arithmetic: ```python members = 26 majority = members // 2 + 1 # 14 print(majority) ``` (Output: 14) 14 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070321
Starting from $12,000, the team spends $2,331, $1,693, $3,052. What remains? One way, in code: ```python budget = 12000 expenses = [2331, 1693, 3052] left = budget - sum(expenses) # 4924 print(left) ``` Python prints: 4924 The remaining budget is $4,924.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4924", "printed": "4924", "notation": null}
nlprog_det-setting-0070322
<|start|><|user|> How many days are there from April 15, 2020 to June 29, 2020?<|eot|> <|assistant|> It is 75 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from April 15, 2020 to June 29, 2020?" }, { "role": "assistant", "content": "It is 75 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0070323
<|start|><|user|> What average speed covers 516 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 516 hours = 2 speed = distance / hours # 258.0 print(round(speed)) ``` Execution result — 258 It averages 258 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 516 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 516\nhours = 2\nspeed = distance / hours # 258.0\nprint(round(speed))\n```\nExecution result — 258\n\nIt averages 258 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "258", "printed": "258", "notation": null}
nlprog_det-setting-0070324
A 195-page report must be reviewed in 5 days. How many pages a day is that, evenly? As a program: ```python pages = 195 days = 5 per_day = pages // days # 39 print(per_day) ``` Output: 39 That is 39 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0070325
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Olga was born on August 15, 1952. How old is Olga on June 13, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(1952, 8, 15) on = date(2023, 6, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Olga was born on August 15, 1952. How old is Olga on June 13, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1952, 8, 15)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0070326
An invoice lists 21 envelopes at $12 each, plus 6% sales tax. What is the invoice total? Python: ```python quantity = 21 unit_price = 12 subtotal = quantity * unit_price # 252 total = subtotal * (1 + 6 / 100) # 267.12 print(f"{total:.2f}") ``` stdout: 267.12 The invoice total is $267.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "267.12", "printed": "267.12", "notation": null}
nlprog_det-setting-0070327
A pack of 25 batteries sells for $675. What does each cost? Here is a short program for it. ```python total = 675 count = 25 per_item = total // count # 27 print(per_item) ``` Executing it gives 27. Each one costs $27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0070328
<|start|><|user|> 9 boxes hold 8 toner kits each. After 6 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 8 given_away = 6 left = boxes * per_box - given_away # 66 print(left) ``` The program prints 66, as expected. 66 toner kits are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 8 toner kits each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 8\ngiven_away = 6\nleft = boxes * per_box - given_away # 66\nprint(left)\n```\nThe program prints 66, as expected.\n\n6...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0070329
A measure needs at least 67% of 105 votes. How many votes is that, rounded up? As a program: ```python import math voters = 105 needed = math.ceil(voters * 67 / 100) # 71 print(needed) ``` Result: 71 At least 71 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0070330
8 claimants share a $4,496 settlement equally. What is each share? Let's compute it with Python. ```python settlement = 4496 parties = 8 share = settlement // parties print(share) ``` Execution prints 562, as expected. Each party receives $562.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0070331
How many weekdays (Monday to Friday) fall after November 10, 2028 up to and including November 30, 2028? There are 14 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070332
<|start|><|user|> Each of Ana's bike rides burns 400 calories. How many calories over 4 bike rides?<|eot|> <|assistant|> ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` (Execution result: 1600) That burns 1600 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Ana's bike rides burns 400 calories. How many calories over 4 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions # 1600\nprint(total)\n```\n(Execution result: 1600)\n\nThat burns 160...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0070333
Fines run at $50 per day up to a maximum of $1,000. How much after 51 days? Let the code do the arithmetic: ```python per_day = 50 days = 51 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The program outputs 1000. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0070334
To read 248 pages in 8 days, how many pages per day are needed? Here's the code. ```python pages = 248 days = 8 per_day = pages // days print(per_day) ``` (stdout: 31) That is 31 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0070335
Parking is $2 per hour with a daily maximum of $20. What do 4 hours cost? In Python: ```python rate = 2 hours = 4 daily_max = 20 cost = min(rate * hours, daily_max) # 8 print(cost) ``` Running it prints 8. The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0070336
Printing costs 5 cents a page. What does it cost to print 85 copies of a 28-page handout? Python code: ```python pages = 28 copies = 85 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 119.0 print(f"{cost:.2f}") ``` The run gives: 119.00 The job costs $119.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "119.00", "printed": "119.00", "notation": null}
nlprog_det-setting-0070337
64 of 80 members attended. What percent attended? Attendance was 80.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0070338
<|start|><|user|> A measure needs at least 75% of 280 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 280 needed = math.ceil(voters * 75 / 100) # 210 print(needed) ``` Out: 210 210 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 280 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 280\nneeded = math.ceil(voters * 75 / 100) # 210\nprint(needed)\n```\nOut:\n210\n\n210 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0070339
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> At $30.40 an hour, what does 12 hours of work pay?<|eot|> <|assistant|> ```python rate = 30.4 hours = 12 earnings = rate * hours # 364.79999999999995 print(f"{earnings:.2f}") ``` (Printed result: 364.80) That earns $364.80.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "At $30.40 an hour, what does 12 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 30.4\nhours = 12\nearnings = rate * hours # 364.79999999999995\nprint(f\"{earnings:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "364.80", "printed": "364.80", "notation": null}
nlprog_det-setting-0070340
What is a 18% tip on a $132.35 bill? As Python: bill = 132.35 tip_rate = 18 / 100 tip = bill * tip_rate print(f"{tip:.2f}") The script prints: 23.82 Leave $23.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "23.82", "printed": "23.82", "notation": null}
nlprog_det-setting-0070341
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after April 15, 2024 through May 20, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 4, 15) end = date(2024, 5, 20) count = 0 for k in range(1, (e...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after April 15, 2024 through May 20, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timed...
nlprog_det
setting
original
null
deterministic
[]
[]
166
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0070342
<|start|><|user|> With 19 rows of 12 chairs and 33 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 19 per_row = 12 empty = 33 seated = rows * per_row - empty print(seated) ``` The interpreter prints 195. 195 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 19 rows of 12 chairs and 33 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 19\nper_row = 12\nempty = 33\nseated = rows * per_row - empty\nprint(seated)\n```\nThe interpreter prints 195.\n\n195 people are seated...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0070343
A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? In code: grant = 60000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 14500.0 print(f"{each:.2f}") The printout reads: 14500.00 $14,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0070344
<|start|><|system|> You have access to these functions: [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", "description...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0070345
A 7 lb package ships at $8 base plus $1.20/lb. What is the charge? Shipping costs $16.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "16.40", "printed": "16.40", "notation": null}
nlprog_det-setting-0070346
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> The meal al...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "395", "printed": "395", "notation": null}
nlprog_det-setting-0070347
<|start|><|system|> You can call tools. Available tools: {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Goods bought...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "2026-09-11", "printed": "2026-09-11", "notation": null}
nlprog_det-setting-0070348
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Convert 4 h 22 min (the length of a training session) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 22 total_minutes = hours * 60 + minutes # 262 print(total_minutes) ``` When run, it prints 262. That is 262 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Convert 4 h 22 min (the length of a training session) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 22\ntotal_minutes = hours * 60 + minutes # 262\nprint(t...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0070349
<|start|><|user|> 8 boxes hold 12 paper reams each. After 10 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 8 per_box = 12 given_away = 10 left = boxes * per_box - given_away # 86 print(left) ``` (Out: 86) 86 paper reams are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 boxes hold 12 paper reams each. After 10 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 8\nper_box = 12\ngiven_away = 10\nleft = boxes * per_box - given_away # 86\nprint(left)\n```\n(Out: 86)\n\n86 paper reams are lef...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "86", "printed": "86", "notation": null}