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-0052375
The rules require 1/3 of 23 members (round up) to be present. How many is that? Code: import math members = 23 quorum = math.ceil(members * 1 / 3) # 8 print(quorum) Result — 8 That is 8 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0052376
A deposition lasted 5 hours and 36 minutes. How many minutes is that? Python makes this quick: ```python hours = 5 minutes = 36 total_minutes = hours * 60 + minutes # 336 print(total_minutes) ``` Printed: 336 That is 336 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "336", "printed": "336", "notation": null}
nlprog_det-setting-0052377
With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal. The Python version: ```python revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` # result: 33.3 Profit is 33.3% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0052378
<|start|><|user|> Rent of $900 goes up 2%. What is the new rent?<|eot|> <|assistant|> The new rent is $918.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $918.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0052379
<|start|><|user|> What does $1,000 grow to in 3 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` Printed result — 1157.63 The balance is $1,157.63.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 3 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 1157.6250000000002\nprint(f\"{value:.2f}\")\n```\nPrinted ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0052380
From 2020 to 2025, how many years is that? Python, step by step: ```python start_year = 2020 end_year = 2025 print(end_year - start_year) ``` Run it and it prints 5. That is 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0052381
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> What percentage of $4,000 is $1,400?<|eot|> <|assistant|> ```python budget = 4000 spent = 1400 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) ``` Running it prints 35.0, as expected. 35.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "What percentage of $4,000 is $1,400?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 1400\npercent = spent / budget * 100 # 35.0\nprint(round(percent, 1))\n```\nRu...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0052382
Grace lends $8,000 at 5% simple interest per year for 3 years. How much interest is earned? Coded up: ```python principal = 8000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` Output: 1200.00 It earns $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0052383
A $3,600 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + interest) / months # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0052385
<|start|><|user|> Papers were served by mail on April 28, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2025, 4, 28) # datetime.date(2025, 4, 28) response_days = 30 mail_days = 3 due ...
chat
[ { "role": "user", "content": "Papers were served by mail on April 28, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 4, 28) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2025-05-31", "printed": "2025-05-31", "notation": null}
nlprog_det-setting-0052386
3 claimants share a $36,000 settlement equally. What is each share? ```python settlement = 36000 parties = 3 share = settlement // parties # 12000 print(share) ``` Running this gives: 12000 Each party receives $12,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0052387
The meal allowance is $79 per day. What is it for 5 days? Here's the code. ```python days = 5 meal_rate = 79 total = days * meal_rate # 395 print(total) ``` When run, it prints: 395 The allowance is $395.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "395", "printed": "395", "notation": null}
nlprog_det-setting-0052388
Equal monthly payments repay $6,000 plus 10% simple yearly interest over 12 months. How large is a payment? Computing it: ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 550.0 print(f"{payment:.2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "550.00", "printed": "550.00", "notation": null}
nlprog_det-setting-0052389
<|start|><|system|> You have access to these functions: {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A 3-day trip pays...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "542", "printed": "542", "notation": null}
nlprog_det-setting-0052390
Parking is $5 per hour with a daily maximum of $20. What do 11 hours cost? One way, in code: ```python rate = 5 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Execution prints: 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0052391
Parking is $4 per hour with a daily maximum of $18. What do 3 hours cost? Parking costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0052392
<|start|><|user|> Pack A has 10 items for $12.65. Pack B has 20 items for $19.01. Which has the lower price per item?<|eot|> <|assistant|> Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 10 items for $12.65. Pack B has 20 items for $19.01. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack B is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0052393
How many 2-foot square tiles cover a 14 ft by 6 ft floor (round up)? Script: import math length = 14 width = 6 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) Python prints 21, as expected. 21 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0052394
<|start|><|user|> 2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each share is $11,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each share is $11,250.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0052395
Goods bought on June 14, 2026 carry a 18-month warranty. When does it expire? A short script: ```python from datetime import date start = date(2026, 6, 14) months = 18 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
[]
[]
149
{"gold": "2027-12-14", "printed": "2027-12-14", "notation": null}
nlprog_det-setting-0052396
A $1,200 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Computation in Python: ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 240.0 payment = (principal ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0052397
A shift runs from 11:44 AM to 1:25 PM. How long is it in minutes? 101 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0052398
A penalty of $50 a day accrues, capped at $1,000. What is owed after 24 days? Python version: ```python per_day = 50 days = 24 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` The code prints: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0052399
<|start|><|user|> What percentage of $4,000 is $1,400?<|eot|> <|assistant|> ```python budget = 4000 spent = 1400 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) ``` (Result: 35.0) That is 35.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $1,400?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 1400\npercent = spent / budget * 100 # 35.0\nprint(round(percent, 1))\n```\n(Result: 35.0)\n\nThat is 35.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0052400
How many minutes pass from 11:17 AM to 2:12 PM on the same day? 175 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0052402
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Fixed costs are $9,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 2250 print(unit...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0052403
Buying 1 file boxes at $14 each, 3 flash drives at $24 each, 1 scissors at $4 each, 2 notebooks at $8 each, someone hands over $150. What change comes back? Here is the program. ```python items = [(1, 14), (3, 24), (1, 4), (2, 8)] total = sum(q * p for q, p in items) # 106 paid = 150 change = paid - total # 44 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0052404
Papers were served by mail on March 6, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Python makes this quick: ```python from datetime import date, timedelta served = date(2018, 3, 6) # datetime.date(2018, 3, 6) response_days = 28 mail_days = 3 due = served + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2018-04-06", "printed": "2018-04-06", "notation": null}
nlprog_det-setting-0052405
A $800 security deposit has deductions of $120. How much is refunded? Python does the arithmetic: ```python deposit = 800 deductions = [120] refund = deposit - sum(deductions) # 680 print(refund) ``` When run, it prints 680, as expected. $680 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "680", "printed": "680", "notation": null}
nlprog_det-setting-0052406
<|start|><|user|> If a 6-year limitations period starts on November 7, 2014, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 11, 7) # datetime.date(2014, 11, 7) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 11, 7) print(expires.iso...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on November 7, 2014, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 11, 7) # datetime.date(2014, 11, 7)\nyears = 6\nexpires = accrued.replace(year=accrued.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2020-11-07", "printed": "2020-11-07", "notation": null}
nlprog_det-setting-0052407
<|start|><|system|> Tools (call with JSON): [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "calculator", "description": "Evaluates Python...
chat
[ { "role": "system", "content": "Tools (call with JSON):\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
[]
[]
286
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0052408
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> At $22.55 an...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "676.50", "printed": "676.50", "notation": null}
nlprog_det-setting-0052409
At 60 miles per hour, how many minutes does a 105-mile trip take? Translated to Python: distance = 105 speed = 60 minutes = distance / speed * 60 # 105.0 print(round(minutes)) Run output — 105 105 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0052411
If a 2-year limitations period starts on April 16, 2014, when does it end? A few lines of Python do it: ```python from datetime import date accrued = date(2014, 4, 16) # datetime.date(2014, 4, 16) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 4, 16) print(expires.isoformat()) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2016-04-16", "printed": "2016-04-16", "notation": null}
nlprog_det-setting-0052412
3 runs at 300 calories each burn how many calories in total? Translated to Python: ```python per_session = 300 sessions = 3 total = per_session * sessions # 900 print(total) ``` On running, it outputs 900. That burns 900 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0052413
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment? The monthly payment is $39.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0052414
Count 30 days forward from November 26, 2018. What date is that? The computation: ```python from datetime import date, timedelta start = date(2018, 11, 26) # datetime.date(2018, 11, 26) end = start + timedelta(days=30) # datetime.date(2018, 12, 26) print(end.isoformat()) ``` Run result: 2018-12-26 It ends on Decemb...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2018-12-26", "printed": "2018-12-26", "notation": null}
nlprog_det-setting-0052415
<|start|><|system|> You may call the tools below. {"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What percentage of $...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0052416
<|start|><|user|> Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 3000 years = 4 per_year = (cost - salvage) / years # 3750.0 print(f"{per_year:.2f}") ``` Run result = 3750.00 $...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years # 3...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0052417
Which is cheaper per unit: 6 for $11.91 (A) or 20 for $7.70 (B)? A short script: ```python pack_a = 11.91 / 6 # 1.985 pack_b = 7.7 / 20 # 0.385 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The run gives B, as expected. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0052418
<|start|><|user|> From 2003 to 2035, how many years is that?<|eot|> <|assistant|> ```python start_year = 2003 end_year = 2035 print(end_year - start_year) ``` When run, it prints 32. 32 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2003 to 2035, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2003\nend_year = 2035\nprint(end_year - start_year)\n```\nWhen run, it prints 32.\n\n32 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0052419
265 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Here is the program. ```python total = 265 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run it and it prints 33 each, 1 left over. The answer: 33 each, 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "33 each, 1 left over", "printed": "33 each, 1 left over", "notation": null}
nlprog_det-setting-0052420
<|start|><|user|> An attorney bills 8 hours at $225 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 8 rate = 225 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` Run it and it prints: 1800.00 That comes to $1,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 8 hours at $225 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 225\nbill = hours * rate # 1800\nprint(f\"{bill:.2f}\")\n```\nRun it and it prints: 1800.00\n\nThat comes to $1,800.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0052422
5 friends split a $150 bill plus a 18% tip evenly. How much does each pay? Each person pays $35.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "35.40", "printed": "35.40", "notation": null}
nlprog_det-setting-0052423
A recipe for 2 people uses 150 grams of oats. How many grams are needed for 10 people? Python: ```python grams = 150 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 750 print(scaled) ``` # output: 750 750 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0052424
With 20% off, what does a $45 printer cost? Code: ```python price = 45 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` It outputs 36.00. It costs $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0052425
10 boxes hold 8 tape rolls each. After 3 are handed out, how many are left? 77 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0052426
A $1,000 security deposit has deductions of $75. How much is refunded? The Python version: ```python deposit = 1000 deductions = [75] refund = deposit - sum(deductions) # 925 print(refund) ``` It prints 925. $925 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "925", "printed": "925", "notation": null}
nlprog_det-setting-0052427
A meal costs $181.50. How much is a 22% tip? As Python: ```python bill = 181.5 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 39.93 print(f"{tip:.2f}") ``` Executed, it shows 39.93. Leave $39.93.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "39.93", "printed": "39.93", "notation": null}
nlprog_det-setting-0052428
An office budget of $12,000 has expenses of $1,395, $3,079, $3,240. How much of the budget is left? Python makes this quick: ```python budget = 12000 expenses = [1395, 3079, 3240] left = budget - sum(expenses) # 4286 print(left) ``` Output of the run — 4286 The remaining budget is $4,286.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4286", "printed": "4286", "notation": null}
nlprog_det-setting-0052429
Find the mean of these test scores: 102, 87, 58, 81, 53, 87 and 71. Python: ```python scores = [102, 87, 58, 81, 53, 87, 71] average = sum(scores) // len(scores) # 77 print(average) ``` The program prints 77, as expected. The mean is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0052430
<|start|><|user|> A service costs $29 a month or $300 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> monthly = 29 yearly = 300 savings = monthly * 12 - yearly print(savings) Result = 48 The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $29 a month or $300 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": " monthly = 29\n yearly = 300\n savings = monthly * 12 - yearly\n print(savings)\nResult = 48\n\nThe annual pla...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0052431
<|start|><|system|> Tool definitions: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", "description": "Fetch an...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0052432
<|start|><|user|> A shift starts at 8:20 AM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> ```python start = 8 * 60 + 20 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result = 10:05 AM It ends at 10:05 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift starts at 8:20 AM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 20\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "10:05 AM", "printed": "10:05 AM", "notation": null}
nlprog_det-setting-0052433
Shipping costs $12 plus $2.50 per pound. What does a 4-pound parcel cost to ship? In code: base = 12 per_pound = 2.5 weight = 4 cost = base + per_pound * weight # 22.0 print(f"{cost:.2f}") Result = 22.00 Shipping costs $22.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0052434
How many of 115 votes make 60% (round up)? Python code: ```python import math voters = 115 needed = math.ceil(voters * 60 / 100) # 69 print(needed) ``` The printout reads: 69 69 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0052435
<|start|><|system|> Functions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "get_weather", "description": "Get the weather for a city."...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\"name\"...
nlprog_det
setting
original
null
deterministic
[]
[]
357
{"gold": "1837", "printed": "1837", "notation": null}
nlprog_det-setting-0052436
<|start|><|user|> A $6,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 1200.0 payme...
chat
[ { "role": "user", "content": "A $6,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 10 / 100 # 0.1\nmonths = 24\nintere...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0052437
How long, in days, is it from August 19, 2023 until November 15, 2023? A few lines of Python do it: ```python from datetime import date first = date(2023, 8, 19) # datetime.date(2023, 8, 19) second = date(2023, 11, 15) # datetime.date(2023, 11, 15) print((second - first).days) ``` Out = 88 There are 88 days between...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0052439
<|start|><|user|> A trial runs from June 6, 2022 to June 20, 2022, counting both days. How many calendar days is that?<|eot|> <|assistant|> 15 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from June 6, 2022 to June 20, 2022, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "15 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0052440
Under a 40% contingency agreement, what fee is owed on a $60,000 award? Here is a short program for it. ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` This prints: 24000.00 The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0052441
<|start|><|user|> Kofi buys 3 boxes of 6 toner kits each and gives away 7 toner kits. How many toner kits are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 6 given_away = 7 left = boxes * per_box - given_away print(left) ``` The script prints: 11 That leaves 11 toner kits.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kofi buys 3 boxes of 6 toner kits each and gives away 7 toner kits. How many toner kits are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 6\ngiven_away = 7\nleft = boxes * per_box - given_away\nprint(left)\n```\nThe script prints: 11\n...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0052442
How long, in days, is it from December 20, 2024 until February 1, 2025? Python, step by step: ```python from datetime import date first = date(2024, 12, 20) # datetime.date(2024, 12, 20) second = date(2025, 2, 1) # datetime.date(2025, 2, 1) print((second - first).days) ``` Shell output: 43 There are 43 days between...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0052443
A hall has 22 rows of 18 seats, and 19 seats are empty. How many people are seated? A short script: rows = 22 per_row = 18 empty = 19 seated = rows * per_row - empty print(seated) This prints: 377 377 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "377", "printed": "377", "notation": null}
nlprog_det-setting-0052444
<|start|><|system|> You may call the tools below. [{"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": "run_python", "description":...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
332
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0052445
<|start|><|system|> Tools (call with JSON): {"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Count the days between May ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0052446
A penalty of $250 a day accrues, capped at $2,500. What is owed after 44 days? Translated to Python: ```python per_day = 250 days = 44 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` (Program output: 2500) $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0052447
What commission does Cyrus make on $92,547 in sales at 3%? Script: sales = 92547 rate = 3 / 100 # 0.03 commission = sales * rate # 2776.41 print(f"{commission:.2f}") It prints 2776.41. Cyrus earns $2,776.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2776.41", "printed": "2776.41", "notation": null}
nlprog_det-setting-0052448
A settlement of $520 is split equally among 8 parties. How much does each party receive? As Python: ```python settlement = 520 parties = 8 share = settlement // parties # 65 print(share) ``` Execution prints 65, as expected. Each share is $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0052449
<|start|><|user|> A $6,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 600.0 paymen...
chat
[ { "role": "user", "content": "A $6,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 10 / 100 # 0.1\nmonths = 12\nintere...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "550.00", "printed": "550.00", "notation": null}
nlprog_det-setting-0052450
After an initial $6,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part? In Python: ```python grant = 30000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") ``` Printed: 6000.00 Each installment is $6,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0052451
A car travels 565 miles in 0.5 hours. What is its average speed in miles per hour? Let the code do the arithmetic: ```python distance = 565 hours = 0.5 speed = distance / hours # 1130.0 print(round(speed)) ``` Python prints: 1130 The average speed is 1130 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1130", "printed": "1130", "notation": null}
nlprog_det-setting-0052452
<|start|><|user|> Monthly: $9. Annual: $78. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 9 yearly = 78 savings = monthly * 12 - yearly # 30 print(savings) ``` Output = 30 The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $9. Annual: $78. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 78\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nOutput = 30\n\nThe annual plan saves $30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0052453
A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons? Written as code: ```python base = 12 rate = 3.5 used = 14 free = 0 bill = base + rate * max(0, used - free) # 61.0 print(f"{bill:.2f}") ``` # out: 61.00 $61.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "61.00", "printed": "61.00", "notation": null}
nlprog_det-setting-0052454
A hearing is set for April 4, 1991. What day of the week is that? We write it as a program: ```python from datetime import date hearing = date(1991, 4, 4) # datetime.date(1991, 4, 4) print(hearing.strftime("%A")) ``` (Output: Thursday) It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0052455
What day of the week is September 17, 1999? Computation in Python: ```python from datetime import date hearing = date(1999, 9, 17) # datetime.date(1999, 9, 17) print(hearing.strftime("%A")) ``` Executing it gives: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0052456
<|start|><|user|> Papers were served by mail on August 12, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2027, 8, 12) # datetime.date(2027, 8, 12) response_days = 30 mail_days = 3 due...
chat
[ { "role": "user", "content": "Papers were served by mail on August 12, 2027. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 8, 12) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2027-09-14", "printed": "2027-09-14", "notation": null}
nlprog_det-setting-0052457
Copies cost $10 plus $0.10 for each page beyond 20. How much for 73 pages? The total is $15.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "15.30", "printed": "15.30", "notation": null}
nlprog_det-setting-0052458
Dara has 3 documents to file, and each filing costs $150. How much are the filing fees in total? Set it up in Python: ```python fee = 150 filings = 3 total = fee * filings # 450 print(total) ``` # stdout: 450 The total fee is $450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0052459
<|start|><|user|> Of a $5,000 budget, $3,400 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 3400 percent = spent / budget * 100 # 68.0 print(round(percent, 1)) ``` Printed: 68.0 That is 68.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $5,000 budget, $3,400 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 3400\npercent = spent / budget * 100 # 68.0\nprint(round(percent, 1))\n```\nPrinted: 68.0\n\nThat is 68.0% of the budget." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "68.0", "printed": "68.0", "notation": null}
nlprog_det-setting-0052460
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> What percentage of $4,000 is $3,700?<|eot|> <|assistant|> ```python budget = 4000 spent = 3700 percent = spent / budget * 100 # 92.5 print(round(percent, 1)) ``` Out: 92.5 That is 92.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "What percentage of $4,000 is $3,700?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3700\npercent = spent / budget * 100 # 92.5\nprint(round(percent, 1))\n```\nO...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0052461
A claim accrued on November 22, 2012. The limitations period is 3 years. On what date does it expire? We write it as a program: from datetime import date accrued = date(2012, 11, 22) # datetime.date(2012, 11, 22) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 11,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2015-11-22", "printed": "2015-11-22", "notation": null}
nlprog_det-setting-0052462
Starting with 677 keyboards and using 5 per day, how many remain after 20 days? Computing it: ```python stock = 677 per_day = 5 days = 20 left = stock - per_day * days # 577 print(left) ``` Executing it gives: 577 577 keyboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "577", "printed": "577", "notation": null}
nlprog_det-setting-0052463
To read 273 pages in 7 days, how many pages per day are needed? Python makes this quick: ```python pages = 273 days = 7 per_day = pages // days # 39 print(per_day) ``` The run gives 39. 39 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0052465
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 12762.815625000003 print(f"{value:.2f}"...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "12762.82", "printed": "12762.82", "notation": null}
nlprog_det-setting-0052466
<|start|><|system|> You may call the tools below. {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "description...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
458
{"gold": "2021-07-29", "printed": "2021-07-29", "notation": null}
nlprog_det-setting-0052469
<|start|><|system|> Tool definitions: {"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|> To read 754 pages in 13 days, h...
chat
[ { "role": "system", "content": "Tool definitions:\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\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0052470
Sara was born on August 25, 1984. How old is Sara on August 5, 2030? ```python from datetime import date born = date(1984, 8, 25) on = date(2030, 8, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Running this gives: 45 Sara is 45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0052471
<|start|><|system|> Tools (call with JSON): [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "description": "Fet...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro...
nlprog_det
setting
original
null
deterministic
[]
[]
386
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0052472
3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Coded up: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` The program prints 9600.00, as expected. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0052473
Monthly rent is $1,800. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent? Python, step by step: ```python rent = 1800 days_in_month = 30 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 840.0 print(f"{prorated:.2f}") ``` Printed result: 840.00 The prorated rent is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "840.00", "printed": "840.00", "notation": null}
nlprog_det-setting-0052474
What commission does Carmen make on $96,764 in sales at 10%? A short script: ```python sales = 96764 rate = 10 / 100 # 0.1 commission = sales * rate # 9676.4 print(f"{commission:.2f}") ``` Program output — 9676.40 Carmen earns $9,676.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "9676.40", "printed": "9676.40", "notation": null}
nlprog_det-setting-0052475
A penalty of $250 a day accrues, capped at $1,000. What is owed after 43 days? We can compute it in Python. ```python per_day = 250 days = 43 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Running this gives 1000. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0052476
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours? Translated to Python: ```python rate = 16.0 hours = 50 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 880.0 print(f"{pay:.2f}") ``` The code prints: 880.00 The weekl...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0052477
An invoice lists 3 pens at $8 each, plus 6% sales tax. What is the invoice total? The total with tax is $25.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "25.44", "printed": "25.44", "notation": null}
nlprog_det-setting-0052478
<|start|><|system|> You have access to these functions: [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_word", "descriptio...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0052479
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months? Programmatically: ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Output of the run — 450.00 $450.00 accrues...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0052480
Attendance was 68 out of 80. Express it as a percent. A short script: ```python present = 68 total = 80 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` Python prints 85.0, as expected. 85.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0052481
<|start|><|system|> You may call the tools below. [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 6 friends split a $210 bill ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0052482
<|start|><|user|> How many weekdays (Monday to Friday) fall after December 6, 2021 up to and including December 20, 2021?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2021, 12, 6) end = date(2021, 12, 20) count = 0 for k in range(1, (end - start).days + 1): if (star...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after December 6, 2021 up to and including December 20, 2021?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2021, 12, 6)\n end = date(2021, 12, 20)\n count = 0\n f...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "10", "printed": "10", "notation": null}