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-0061705
How many units at $30 each (variable cost $22) cover $2,500 of fixed costs? Computation in Python: ```python import math fixed = 2500 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` Output: 313 Break-even is 313 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0061706
On which weekday does November 26, 1995 fall? A Python solution: from datetime import date hearing = date(1995, 11, 26) # datetime.date(1995, 11, 26) print(hearing.strftime("%A")) The program outputs: Sunday November 26, 1995 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0061708
31 scissors cost $2 apiece. With 10% tax added, what is the total? The computation: ```python quantity = 31 unit_price = 2 subtotal = quantity * unit_price # 62 total = subtotal * (1 + 10 / 100) # 68.2 print(f"{total:.2f}") ``` # stdout: 68.20 The invoice total is $68.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "68.20", "printed": "68.20", "notation": null}
nlprog_det-setting-0061709
<|start|><|user|> A library charges $0.15 per book per day late. What is the fine for 3 books that are 24 days late?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 24 books = 3 fine = per_day * days_late * books # 10.799999999999999 print(f"{fine:.2f}") ``` # console output: 10.80 $10.80 is owed.<|eot|> <|...
chat
[ { "role": "user", "content": "A library charges $0.15 per book per day late. What is the fine for 3 books that are 24 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 24\nbooks = 3\nfine = per_day * days_late * books # 10.799999999999999\nprint(f\"{fine:....
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "10.80", "printed": "10.80", "notation": null}
nlprog_det-setting-0061710
<|start|><|user|> Scale 100 g of lentils from 8 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 100 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 150 print(scaled) ``` Out = 150 Use 150 g of lentils.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 100 g of lentils from 8 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nOut = 150\n\nUse 150 g of lentils." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0061712
What does $1,000 grow to in 5 years at 3% annual compounding? Code: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 1159.2740743000002 print(f"{value:.2f}") ``` Printed: 1159.27 It is worth $1,159.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1159.27", "printed": "1159.27", "notation": null}
nlprog_det-setting-0061713
A trial runs from November 19, 2018 to November 23, 2018, counting both days. How many calendar days is that? Computing it: ```python from datetime import date first = date(2018, 11, 19) # datetime.date(2018, 11, 19) last = date(2018, 11, 23) # datetime.date(2018, 11, 23) days = (last - first).days + 1 # 5 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061714
<|start|><|user|> Split $1,056 between Ines and Sami in the ratio 1 to 2. What is Ines's share?<|eot|> <|assistant|> ```python total = 1056 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 352 print(share_a) ``` # run result: 352 Ines gets $352.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,056 between Ines and Sami in the ratio 1 to 2. What is Ines's share?" }, { "role": "assistant", "content": "```python\ntotal = 1056\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 352\nprint(share_a)\n```\n# run result: 352\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0061715
<|start|><|user|> Starting from $20,000, the team spends $834, $501, $1,370. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [834, 501, 1370] left = budget - sum(expenses) # 17295 print(left) ``` Result — 17295 $17,295 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $834, $501, $1,370. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [834, 501, 1370]\nleft = budget - sum(expenses) # 17295\nprint(left)\n```\nResult — 17295\n\n$17,295 is left." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "17295", "printed": "17295", "notation": null}
nlprog_det-setting-0061716
At $0.65 per mile, what is the reimbursement for 62 miles? Computing it: ```python miles = 62 rate = 0.65 reimbursement = miles * rate # 40.300000000000004 print(f"{reimbursement:.2f}") ``` # execution result: 40.30 Ivan is owed $40.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "40.30", "printed": "40.30", "notation": null}
nlprog_det-setting-0061717
<|start|><|user|> A claim accrued on March 2, 2019. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> The period expires on March 2, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on March 2, 2019. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "The period expires on March 2, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2024-03-02", "printed": "2024-03-02", "notation": null}
nlprog_det-setting-0061718
From a $2,500 retainer, 8 hours at $250/hour have been drawn. What remains? Translated to Python: ```python retainer = 2500 hours = 8 rate = 250 left = retainer - hours * rate # 500 print(left) ``` (Run result: 500) The remaining balance is $500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0061719
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "description": "Tra...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0061720
A 6-month warranty starts on February 4, 2024. On what date does it end? Python: ```python from datetime import date start = date(2024, 2, 4) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # printed: 2024-08-04 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2024-08-04", "printed": "2024-08-04", "notation": null}
nlprog_det-setting-0061721
Counting only Monday through Friday, how many business days are there after October 17, 2018 through November 8, 2018? One way, in code: ```python from datetime import date, timedelta start = date(2018, 10, 17) end = date(2018, 11, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0061722
<|start|><|user|> A 5 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 5 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 18 print(tiles) ``` # printed result: 18 It takes 18 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 5\nwidth = 14\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 18\nprint(tiles)\n```\n# printed re...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0061723
<|start|><|user|> 3 boxes hold 8 folders each. After 15 are handed out, how many are left?<|eot|> <|assistant|> boxes = 3 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 9 print(left) What it prints — 9 9 folders are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 boxes hold 8 folders each. After 15 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 3\n per_box = 8\n given_away = 15\n left = boxes * per_box - given_away # 9\n print(left)\nWhat it prints — 9\n\n9 folders are le...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0061725
<|start|><|user|> A $1,500 security deposit has deductions of $60. How much is refunded?<|eot|> <|assistant|> deposit = 1500 deductions = [60] refund = deposit - sum(deductions) # 1440 print(refund) Run result — 1440 The refund is $1,440.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,500 security deposit has deductions of $60. How much is refunded?" }, { "role": "assistant", "content": " deposit = 1500\n deductions = [60]\n refund = deposit - sum(deductions) # 1440\n print(refund)\nRun result — 1440\n\nThe refund is $1,440." ...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0061726
Counting the first and last day, how many days are there from January 3, 2022 through January 28, 2022? We write it as a program: ```python from datetime import date first = date(2022, 1, 3) # datetime.date(2022, 1, 3) last = date(2022, 1, 28) # datetime.date(2022, 1, 28) days = (last - first).days + 1 # 26 print(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0061727
A quorum is 3/5 of the 42 members, rounded up. How many members make a quorum? One way, in code: ```python import math members = 42 quorum = math.ceil(members * 3 / 5) # 26 print(quorum) ``` Output = 26 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0061728
Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year? Here's the code. ```python cost = 18000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 2400.0 print(f"{per_year:.2f}") ``` # out: 2400.00 $2,400.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0061729
Convert 61.9 km to meters. A Python solution: ```python km = 61.9 meters = km * 1000 # 61900.0 print(round(meters)) ``` Run it and it prints 61900. That is 61,900 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "61900", "printed": "61900", "notation": null}
nlprog_det-setting-0061730
<|start|><|user|> Monthly: $15. Annual: $132. What is saved per year by paying annually?<|eot|> <|assistant|> The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $15. Annual: $132. What is saved per year by paying annually?" }, { "role": "assistant", "content": "The annual plan saves $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0061731
With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal. Computation in Python: revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) The program prints: 4.8 The marg...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0061732
At $29.07 an hour, what does 20 hours of work pay? Written as code: ```python rate = 29.07 hours = 20 earnings = rate * hours # 581.4 print(f"{earnings:.2f}") ``` stdout: 581.40 The pay is $581.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "581.40", "printed": "581.40", "notation": null}
nlprog_det-setting-0061733
<|start|><|user|> 152 copies of a 18-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 18 copies = 152 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 218.88 print(f"{cost:.2f}") ``` It outputs: 218.88 The job costs $218.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "152 copies of a 18-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 18\ncopies = 152\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 218.88\nprint(f\"{cost:.2f}\")\n```\nIt outputs...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "218.88", "printed": "218.88", "notation": null}
nlprog_det-setting-0061734
Which is cheaper per unit: 6 for $14.76 (A) or 15 for $11.32 (B)? Here's the code. ```python pack_a = 14.76 / 6 # 2.46 pack_b = 11.32 / 15 # 0.7546666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Executed, it shows B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061735
<|start|><|user|> Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 144.0 payment = (principal + interest) / months # 21...
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "212.00", "printed": "212.00", "notation": null}
nlprog_det-setting-0061736
Counting only Monday through Friday, how many business days are there after March 1, 2028 through March 24, 2028? Python code: ```python from datetime import date, timedelta start = date(2028, 3, 1) end = date(2028, 3, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0061737
<|start|><|user|> Mei lends $20,000 at 5% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 20000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 3000.0 print(f"{interest:.2f}") ``` Python prints: 3000.00 The interest is $3,000.00.<|eo...
chat
[ { "role": "user", "content": "Mei lends $20,000 at 5% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 5 / 100 # 0.05\nyears = 3\ninterest = principal * rate * years # 3000.0\nprint(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0061738
A library charges $0.15 per book per day late. What is the fine for 2 books that are 7 days late? Programmatically: ```python per_day = 0.15 days_late = 7 books = 2 fine = per_day * days_late * books # 2.1 print(f"{fine:.2f}") ``` Printed: 2.10 $2.10 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2.10", "printed": "2.10", "notation": null}
nlprog_det-setting-0061739
Shipping costs $12 plus $0.75 per pound. What does a 6-pound parcel cost to ship? A short script: ```python base = 12 per_pound = 0.75 weight = 6 cost = base + per_pound * weight # 16.5 print(f"{cost:.2f}") ``` What it prints: 16.50 Shipping costs $16.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "16.50", "printed": "16.50", "notation": null}
nlprog_det-setting-0061740
Hugo earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? Let the code do the arithmetic: ```python rate = 20.0 hours = 50 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 300.0 pay = regular + overtime # 1100.0 print(f"{pay:.2f}") ``` Running it prints: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1100.00", "printed": "1100.00", "notation": null}
nlprog_det-setting-0061741
Prorate $1,800 of monthly rent for 23 days of a 31-day month. The Python version: ```python rent = 1800 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1335.483870967742 print(f"{prorated:.2f}") ``` Console: 1335.48 The prorated rent is $1,335.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1335.48", "printed": "1335.48", "notation": null}
nlprog_det-setting-0061742
4 runs at 250 calories each burn how many calories in total? Set it up in Python: ```python per_session = 250 sessions = 4 total = per_session * sessions # 1000 print(total) ``` Run result: 1000 That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061743
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 179 copies of a 23-page handout?<|eot|> <|assistant|> ```python pages = 23 copies = 179 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 205.85000000000002 print(f"{cost:.2f}") ``` Run it and it prints 205.85. Printing costs $205....
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 179 copies of a 23-page handout?" }, { "role": "assistant", "content": "```python\npages = 23\ncopies = 179\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 205.85000000000002\nprint(f\"{cost:....
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "205.85", "printed": "205.85", "notation": null}
nlprog_det-setting-0061744
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> What is a 25% tip on a $24.68 bill?<|eot|> <|assistant|> bill = 24.68 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 6.17 print(f"{tip:.2f}") # printed: 6.17 The tip is $6.17.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "What is a 25% tip on a $24.68 bill?" }, { "role": "assistant", "content": " bill = 24.68\n tip_rate = 25 / 100 # 0.25\n tip = bill * tip_rate # 6.17\n print(f\"{tip:.2f}\")\n# pri...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6.17", "printed": "6.17", "notation": null}
nlprog_det-setting-0061745
A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments? Python: ```python monthly = 19 yearly = 198 savings = monthly * 12 - yearly # 30 print(savings) ``` Interpreter output — 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0061746
<|start|><|user|> Count 21 days forward from April 26, 2023. What date is that?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2023, 4, 26) # datetime.date(2023, 4, 26) end = start + timedelta(days=21) # datetime.date(2023, 5, 17) print(end.isoformat()) The script prints 2023-0...
chat
[ { "role": "user", "content": "Count 21 days forward from April 26, 2023. What date is that?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2023, 4, 26) # datetime.date(2023, 4, 26)\n end = start + timedelta(days=21) # datetime.date(2023, 5,...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2023-05-17", "printed": "2023-05-17", "notation": null}
nlprog_det-setting-0061747
<|start|><|user|> A 4% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") When run, it prints 1872.00, as expected. It rises to $1,872.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 1800\n increase = 4 / 100 # 0.04\n new_rent = rent * (1 + increase) # 1872.0\n print(f\"{new_rent:.2f}\")\nWhen run, it prints 1872....
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0061748
<|start|><|user|> Divide 252 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 252 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Execution prints 42 each, 0 left ...
chat
[ { "role": "user", "content": "Divide 252 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 252\n groups = 6\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each,...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "42 each, 0 left over", "printed": "42 each, 0 left over", "notation": null}
nlprog_det-setting-0061750
If a 2-year limitations period starts on December 7, 2019, when does it end? The period expires on December 7, 2021.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2021-12-07", "printed": "2021-12-07", "notation": null}
nlprog_det-setting-0061751
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 20. How much for 79 pages?<|eot|> <|assistant|> ```python pages = 79 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 24.75 print(f"{cost:.2f}") ``` Result — 24.75 The copy costs $24.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 20. How much for 79 pages?" }, { "role": "assistant", "content": "```python\npages = 79\nbase = 10\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 24.75\nprint(f\"{cost:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0061752
A car travels 160 miles in 2.5 hours. What is its average speed in miles per hour? As a program: ```python distance = 160 hours = 2.5 speed = distance / hours # 64.0 print(round(speed)) ``` The program outputs 64. It averages 64 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0061753
<|start|><|system|> You can call tools. Available tools: [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "descript...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
311
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0061754
To read 476 pages in 14 days, how many pages per day are needed? Python version: ```python pages = 476 days = 14 per_day = pages // days # 34 print(per_day) ``` Running this gives 34. That is 34 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0061755
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> Each installment is $2,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "Each installment is $2,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0061756
<|start|><|system|> You may call the tools below. [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "translate", "description": "Translat...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061757
<|start|><|system|> Tool definitions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "translate", "description": "Translate text into ano...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
405
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0061758
An invoice lists 10 toner kits at $3 each, plus 5% sales tax. What is the invoice total? A short script: ```python quantity = 10 unit_price = 3 subtotal = quantity * unit_price # 30 total = subtotal * (1 + 5 / 100) # 31.5 print(f"{total:.2f}") ``` Printed = 31.50 The total with tax is $31.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0061759
A court charges $15 per request plus $0.25 per page after the first 0 pages. What does a 39-page copy cost? pages = 39 base = 15 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 24.75 print(f"{cost:.2f}") Result — 24.75 The total is $24.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0061760
How many of 44 votes make 75% (round up)? Here is a short program for it. ```python import math voters = 44 needed = math.ceil(voters * 75 / 100) # 33 print(needed) ``` Run it and it prints: 33 At least 33 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0061761
If a 2-year limitations period starts on February 3, 2012, when does it end? Python code: ```python from datetime import date accrued = date(2012, 2, 3) # datetime.date(2012, 2, 3) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 2, 3) print(expires.isoformat()) ``` The code print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2014-02-03", "printed": "2014-02-03", "notation": null}
nlprog_det-setting-0061762
<|start|><|user|> $10,000 is invested at 2% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 10824.3216 print(f"{value:.2f}") ``` It prints: 10824.32 It is worth $10,824.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$10,000 is invested at 2% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 10824.3216\nprint(f\"{value:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "10824.32", "printed": "10824.32", "notation": null}
nlprog_det-setting-0061763
<|start|><|system|> Tools (call with JSON): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "paramet...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"sandbox_python\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "1381", "printed": "1381", "notation": null}
nlprog_det-setting-0061764
<|start|><|user|> A quorum is 1/3 of the 7 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 7 quorum = math.ceil(members * 1 / 3) print(quorum) ``` The script prints 3. That is 3 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 7 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 7\nquorum = math.ceil(members * 1 / 3)\nprint(quorum)\n```\nThe script prints 3.\n\nThat is 3 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0061765
<|start|><|user|> Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 44 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 96.0 pay = regular + overtime # 736.0 print(f"{pay:.2f}") ``` This prints 73...
chat
[ { "role": "user", "content": "Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 44\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 96.0\npay = regular...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "736.00", "printed": "736.00", "notation": null}
nlprog_det-setting-0061766
After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part? One way, in code: ```python grant = 48000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 3750.0 print(f"{each:.2f}") ``` This prints 3750.00, as expected. $3,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0061767
<|start|><|user|> How many minutes pass from 8:42 AM to 10:29 AM on the same day?<|eot|> <|assistant|> start = 8 * 60 + 42 # 522 end = 10 * 60 + 29 # 629 print(end - start) # console output: 107 It is 107 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:42 AM to 10:29 AM on the same day?" }, { "role": "assistant", "content": " start = 8 * 60 + 42 # 522\n end = 10 * 60 + 29 # 629\n print(end - start)\n# console output: 107\n\nIt is 107 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0061768
What percentage of $2,000 is $1,700? Translated to Python: budget = 2000 spent = 1700 percent = spent / budget * 100 # 85.0 print(round(percent, 1)) Output — 85.0 That is 85.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0061769
How many whole days and leftover hours are in 93 hours? Code: ```python hours = 93 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # run result: 3 days and 21 hours That is 3 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3 days and 21 hours", "printed": "3 days and 21 hours", "notation": null}
nlprog_det-setting-0061770
A 45-mile drive at a steady 45 mph takes how many minutes? Programmatically: ```python distance = 45 speed = 45 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Python prints 60. The trip takes 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0061771
A 270-mile drive at a steady 45 mph takes how many minutes? Here's the code. ```python distance = 270 speed = 45 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Execution prints: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0061772
After a 30% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Program: ```python award = 48000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` Interpreter output: 11200.00 Each client gets $11,200.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0061773
<|start|><|user|> After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 2 # 21000.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0061774
<|start|><|system|> Tools (call with JSON): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calc\", \"description\": \"A Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
352
{"gold": "7 days and 17 hours", "printed": "7 days and 17 hours", "notation": null}
nlprog_det-setting-0061775
A count moves from 200 to 250. By what percent did it change (use a minus sign for a drop)? One way, in code: ```python old = 200 new = 250 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` Program output: 25 The change is 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0061776
Meals are $64 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights? Let's compute it with Python. ```python days = 3 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 472 print(total) ``` # console output: 472 That comes to $472.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0061777
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A library charges $0.20 per book per day late. What is the fine for 3 books that are 4 days late?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 4 books = 3 fine = per_day * days_late * books # 2.4000000000000004 print(f"{fine:.2f}") ``` # result: ...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 3 books that are 4 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 4\nbooks = 3\nfine...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0061778
Split $2,824 between Wanjiru and Beatriz in the ratio 1 to 3. What is Wanjiru's share? Let the code do the arithmetic: ```python total = 2824 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 706 print(share_a) ``` This prints 706, as expected. Wanjiru's share is $706.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "706", "printed": "706", "notation": null}
nlprog_det-setting-0061779
Under a 40% contingency agreement, what fee is owed on a $90,000 award? Script: ```python recovery = 90000 rate = 40 / 100 # 0.4 fee = recovery * rate # 36000.0 print(f"{fee:.2f}") ``` (Execution result: 36000.00) The lawyer's fee comes to $36,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0061780
<|start|><|user|> An invoice lists 24 mugs at $8 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 24 unit_price = 8 subtotal = quantity * unit_price total = subtotal * (1 + 6 / 100) print(f"{total:.2f}") ``` # printed: 203.52 The invoice total is $203.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An invoice lists 24 mugs at $8 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 24\nunit_price = 8\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 6 / 100)\nprint(f\"{total:.2f}\")\n```\n# pr...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "203.52", "printed": "203.52", "notation": null}
nlprog_det-setting-0061781
Under a 35% contingency agreement, what fee is owed on a $60,000 award? Here is the program. ```python recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") ``` The printout reads 21000.00. The lawyer's fee comes to $21,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0061782
A printer costs $60. It is 20% off. What is the sale price? ```python price = 60 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Shell output — 48.00 The sale price is $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0061784
One can of paint covers 250 square feet. How many cans are needed for 230 square feet of wall? Computation in Python: ```python import math area = 230 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Executing it gives 1. Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0061785
<|start|><|system|> Functions: [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A meal costs $220.41. How much is a 22% tip?<|e...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "48.49", "printed": "48.49", "notation": null}
nlprog_det-setting-0061786
Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 18,000 gallons? A Python solution: ```python base = 15 rate = 4.75 used = 18 free = 2 bill = base + rate * max(0, used - free) # 91.0 print(f"{bill:.2f}") ``` # output: 91.00 $91.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "91.00", "printed": "91.00", "notation": null}
nlprog_det-setting-0061787
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 59 days?<|eot|> <|assistant|> ```python per_day = 25 days = 59 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Program output: 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 59 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 59\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nProgram output: 1000\n\n$1,000 is owed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061788
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Meals are $64 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 676 print(tot...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Meals are $64 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 64\nlodging_rate = 140\n...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "676", "printed": "676", "notation": null}
nlprog_det-setting-0061789
<|start|><|user|> A $800 security deposit has deductions of $150 and $120. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [150, 120] refund = deposit - sum(deductions) # 530 print(refund) ``` The printout reads 530. $530 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $150 and $120. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [150, 120]\nrefund = deposit - sum(deductions) # 530\nprint(refund)\n```\nThe printout reads 530.\n\n$530 is...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "530", "printed": "530", "notation": null}
nlprog_det-setting-0061790
Omar buys 9 boxes of 6 batteries each and gives away 9 batteries. How many batteries are left? Python does the arithmetic: ```python boxes = 9 per_box = 6 given_away = 9 left = boxes * per_box - given_away # 45 print(left) ``` The interpreter prints: 45 That leaves 45 batteries.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0061791
Express 327 hours in days and hours. That is 13 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "13 days and 15 hours", "printed": "13 days and 15 hours", "notation": null}
nlprog_det-setting-0061792
<|start|><|user|> Rania earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|> <|assistant|> Rania earns $878.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?" }, { "role": "assistant", "content": "Rania earns $878.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "878.75", "printed": "878.75", "notation": null}
nlprog_det-setting-0061793
Express 281 hours in days and hours. Python code: ```python hours = 281 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executed, it shows: 11 days and 17 hours 281 hours is 11 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11 days and 17 hours", "printed": "11 days and 17 hours", "notation": null}
nlprog_det-setting-0061794
<|start|><|user|> At $20.29 an hour, what does 40 hours of work pay?<|eot|> <|assistant|> rate = 20.29 hours = 40 earnings = rate * hours # 811.5999999999999 print(f"{earnings:.2f}") Out: 811.60 The pay is $811.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $20.29 an hour, what does 40 hours of work pay?" }, { "role": "assistant", "content": " rate = 20.29\n hours = 40\n earnings = rate * hours # 811.5999999999999\n print(f\"{earnings:.2f}\")\nOut: 811.60\n\nThe pay is $811.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "811.60", "printed": "811.60", "notation": null}
nlprog_det-setting-0061795
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A 12-month warranty starts on October 5, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 10, 5) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.y...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A 12-month warranty starts on October 5, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 10, 5)\nm...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "2021-10-05", "printed": "2021-10-05", "notation": null}
nlprog_det-setting-0061796
Papers were served by mail on November 2, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? The Python version: ```python from datetime import date, timedelta served = date(2025, 11, 2) # datetime.date(2025, 11, 2) response_days = 28 mail_days = 3 due = served + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2025-12-03", "printed": "2025-12-03", "notation": null}
nlprog_det-setting-0061797
At an exchange rate of 0.74 USD per CHF, how many USD is 2,254 CHF? Computing it: ```python amount = 2254 rate = 0.74 converted = amount * rate # 1667.96 print(f"{converted:.2f}") ``` Output of the run — 1667.96 It converts to 1,667.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1667.96", "printed": "1667.96", "notation": null}
nlprog_det-setting-0061798
Starting with 694 file boxes and using 40 per day, how many remain after 5 days? Python: ```python stock = 694 per_day = 40 days = 5 left = stock - per_day * days # 494 print(left) ``` The script prints: 494 494 file boxes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "494", "printed": "494", "notation": null}
nlprog_det-setting-0061799
At $0.58 per mile, what is the reimbursement for 195 miles? A few lines of Python do it: ```python miles = 195 rate = 0.58 reimbursement = miles * rate # 113.1 print(f"{reimbursement:.2f}") ``` This prints 113.10, as expected. Signe is owed $113.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "113.10", "printed": "113.10", "notation": null}
nlprog_det-setting-0061800
Buying 5 desk lamps at $8 each, 3 toner kits at $7 each, 5 cables at $24 each, someone hands over $200. What change comes back? Programmatically: ```python items = [(5, 8), (3, 7), (5, 24)] total = sum(q * p for q, p in items) # 181 paid = 200 change = paid - total # 19 print(change) ``` stdout = 19 The change is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0061801
A 66-page report must be reviewed in 6 days. How many pages a day is that, evenly? Script: ```python pages = 66 days = 6 per_day = pages // days # 11 print(per_day) ``` Run it and it prints: 11 11 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0061803
A penalty of $100 a day accrues, capped at $2,500. What is owed after 51 days? ```python per_day = 100 days = 51 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Running this gives: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0061804
Express 275 hours in days and hours. ```python hours = 275 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result: 11 days and 11 hours That is 11 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "11 days and 11 hours", "printed": "11 days and 11 hours", "notation": null}
nlprog_det-setting-0061805
<|start|><|system|> Be concise.<|eot|> <|user|> A customer buys 6 file boxes at $25 each, 4 toner kits at $3 each, 3 water bottles at $26 each, 3 clipboards at $14 each and pays with $300. How much change is due?<|eot|> <|assistant|> items = [(6, 25), (4, 3), (3, 26), (3, 14)] total = sum(q * p for q, p in item...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A customer buys 6 file boxes at $25 each, 4 toner kits at $3 each, 3 water bottles at $26 each, 3 clipboards at $14 each and pays with $300. How much change is due?" }, { "role": "assistant", "content": " ...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0061806
A lease runs for 6 months at $1,475 per month. How much rent is paid over the whole term? The rent over the term is $8,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "8850", "printed": "8850", "notation": null}
nlprog_det-setting-0061807
A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 16-page copy cost? Program: ```python pages = 16 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 23.0 print(f"{cost:.2f}") ``` When run, it prints 23.00, as expected. The copy costs ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0061808
<|start|><|user|> At $15.76 an hour, what does 24 hours of work pay?<|eot|> <|assistant|> ```python rate = 15.76 hours = 24 earnings = rate * hours # 378.24 print(f"{earnings:.2f}") ``` When run, it prints: 378.24 The pay is $378.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $15.76 an hour, what does 24 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 15.76\nhours = 24\nearnings = rate * hours # 378.24\nprint(f\"{earnings:.2f}\")\n```\nWhen run, it prints: 378.24\n\nThe pay is $378.24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "378.24", "printed": "378.24", "notation": null}
nlprog_det-setting-0061809
Convert 30 °C to Fahrenheit. One way, in code: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Interpreter output: 86 That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0061810
A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments? $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "30", "printed": "30", "notation": null}