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-0080437
How many whole days and leftover hours are in 278 hours? Code: ```python hours = 278 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output — 11 days and 14 hours 278 hours is 11 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "11 days and 14 hours", "printed": "11 days and 14 hours", "notation": null}
nlprog_det-setting-0080438
How many of 158 votes make 75% (round up)? ```python import math voters = 158 needed = math.ceil(voters * 75 / 100) # 119 print(needed) ``` On running, it outputs: 119 At least 119 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "119", "printed": "119", "notation": null}
nlprog_det-setting-0080439
Convert 51.6 km to meters. Programmatically: ```python km = 51.6 meters = km * 1000 # 51600.0 print(round(meters)) ``` (Execution result: 51600) That is 51,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "51600", "printed": "51600", "notation": null}
nlprog_det-setting-0080440
<|start|><|user|> Starting from $20,000, the team spends $523, $2,121. What remains?<|eot|> <|assistant|> budget = 20000 expenses = [523, 2121] left = budget - sum(expenses) # 17356 print(left) Out: 17356 The remaining budget is $17,356.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $523, $2,121. What remains?" }, { "role": "assistant", "content": " budget = 20000\n expenses = [523, 2121]\n left = budget - sum(expenses) # 17356\n print(left)\nOut:\n17356\n\nThe remaining budget is $17,356." ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "17356", "printed": "17356", "notation": null}
nlprog_det-setting-0080441
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` The interpreter prints: 12 $12 ...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 96\nsa...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0080442
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0080444
Buying 6 badges at $21 each, 4 chairs at $24 each, 1 tape rolls at $20 each, someone hands over $250. What change comes back? Computing it: ```python items = [(6, 21), (4, 24), (1, 20)] total = sum(q * p for q, p in items) # 242 paid = 250 change = paid - total # 8 print(change) ``` Printed — 8 $8 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0080445
<|start|><|system|> You have access to these functions: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A penalt...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0080446
<|start|><|user|> A training session lasted 1 hours and 11 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 11 total_minutes = hours * 60 + minutes # 71 print(total_minutes) ``` Shell output: 71 The training session lasted 71 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 1 hours and 11 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 11\ntotal_minutes = hours * 60 + minutes # 71\nprint(total_minutes)\n```\nShell output: 71\n\nThe training session las...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0080447
<|start|><|user|> Arjun earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?<|eot|> <|assistant|> ```python rate = 22.4 hours = 54 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 470.4 pay = regular + overtime # 1366.4 print(f"{pay:.2f}") ``` (Run result:...
chat
[ { "role": "user", "content": "Arjun earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?" }, { "role": "assistant", "content": "```python\nrate = 22.4\nhours = 54\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 470.4\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0080448
<|start|><|user|> Pack A has 10 items for $13.68. Pack B has 18 items for $25.65. Which has the lower price per item?<|eot|> <|assistant|> pack_a = 13.68 / 10 # 1.3679999999999999 pack_b = 25.65 / 18 # 1.4249999999999998 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) That prints: A A...
chat
[ { "role": "user", "content": "Pack A has 10 items for $13.68. Pack B has 18 items for $25.65. Which has the lower price per item?" }, { "role": "assistant", "content": " pack_a = 13.68 / 10 # 1.3679999999999999\n pack_b = 25.65 / 18 # 1.4249999999999998\n cheaper = \"A\" if pack_a < p...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0080449
<|start|><|system|> You are a data assistant.<|eot|> <|user|> With 40% off, what does a $250 kettle cost?<|eot|> <|assistant|> ```python price = 250 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 150.0 print(f"{sale_price:.2f}") ``` stdout = 150.00 It costs $150.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "With 40% off, what does a $250 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 150.0\nprint(f\"{s...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0080450
At 1.5% a month (simple), what interest builds on $1,000 over 3 months? Program: ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 45.0 print(f"{interest:.2f}") ``` Execution prints 45.00, as expected. $45.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0080452
After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? The program: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` stdout — 4500.00 Eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0080453
<|start|><|user|> How many minutes pass from 8:47 AM to 1:34 PM on the same day?<|eot|> <|assistant|> ```python start = 8 * 60 + 47 # 527 end = 13 * 60 + 34 # 814 print(end - start) ``` Result — 287 287 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:47 AM to 1:34 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 47 # 527\nend = 13 * 60 + 34 # 814\nprint(end - start)\n```\nResult — 287\n\n287 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0080454
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Monthly rent is $2,400. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 541.9354838709677 print...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "541.94", "printed": "541.94", "notation": null}
nlprog_det-setting-0080455
A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 21 thousand gallons? Python: ```python base = 18 rate = 5.1 used = 21 free = 3 bill = base + rate * max(0, used - free) # 109.8 print(f"{bill:.2f}") ``` Run it and it prints 109.80. The bill is $109.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "109.80", "printed": "109.80", "notation": null}
nlprog_det-setting-0080456
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Starting from $25,000, the team spends $395, $1,741, $1,156. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [395, 1741, 1156] left = budget - sum(expenses) # 21708 print(left) ``` (Printed: 21708) $21,708 is left.<|eot|> <|end...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Starting from $25,000, the team spends $395, $1,741, $1,156. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [395, 1741, 1156]\nleft = budget -...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "21708", "printed": "21708", "notation": null}
nlprog_det-setting-0080457
<|start|><|user|> Pack A has 10 items for $3.73. Pack B has 30 items for $10.80. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 3.73 / 10 # 0.373 pack_b = 10.8 / 30 # 0.36000000000000004 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Out: B Pack B is cheaper per item...
chat
[ { "role": "user", "content": "Pack A has 10 items for $3.73. Pack B has 30 items for $10.80. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 3.73 / 10 # 0.373\npack_b = 10.8 / 30 # 0.36000000000000004\ncheaper = \"A\" if pack_a < pack_b else \"B\"...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0080458
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? We write it as a program: ```python rate = 18.5 hours = 49 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 249.75 pay = regular + overtime # 989.75 print(f"{pay:.2f}") ``` Running it prints 989.75, as...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "989.75", "printed": "989.75", "notation": null}
nlprog_det-setting-0080459
A deposition lasted 1 hours and 50 minutes. How many minutes is that? As Python: hours = 1 minutes = 50 total_minutes = hours * 60 + minutes # 110 print(total_minutes) (Out: 110) That is 110 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0080460
<|start|><|system|> The following tools are available. Call one when it helps. {"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"]}} {"name...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0080461
What day of the week is July 25, 1990? Python does the arithmetic: ```python from datetime import date hearing = date(1990, 7, 25) # datetime.date(1990, 7, 25) print(hearing.strftime("%A")) ``` (Printed result: Wednesday) July 25, 1990 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0080462
Pack A has 12 items for $7.20. Pack B has 24 items for $19.99. Which has the lower price per item? In Python: ```python pack_a = 7.2 / 12 # 0.6 pack_b = 19.99 / 24 # 0.8329166666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Execution prints: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0080463
At 60 miles per hour, how many minutes does a 285-mile trip take? Programmatically: ```python distance = 285 speed = 60 minutes = distance / speed * 60 # 285.0 print(round(minutes)) ``` stdout: 285 285 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0080464
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Monthly rent is $1,800. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1260.0 pr...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_mont...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0080465
<|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": "eval_python", "description": "Runs a short Pyth...
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
[]
[]
309
{"gold": "15 days and 2 hours", "printed": "15 days and 2 hours", "notation": null}
nlprog_det-setting-0080466
<|start|><|user|> Straight-line depreciation: cost $24,000, salvage $6,000, 6 years. How much per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Run result: 3000.00 $3,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $24,000, salvage $6,000, 6 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 6000\nyears = 6\nper_year = (cost - salvage) / years # 3000.0\nprint(f\"{per_year:.2f}\")\n```\nRun resul...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080467
An office budget of $12,000 has expenses of $3,520, $2,914. How much of the budget is left? Python version: ```python budget = 12000 expenses = [3520, 2914] left = budget - sum(expenses) # 5566 print(left) ``` # output: 5566 $5,566 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5566", "printed": "5566", "notation": null}
nlprog_det-setting-0080468
How many minutes pass from 9:13 AM to 9:37 AM on the same day? Programmatically: ```python start = 9 * 60 + 13 # 553 end = 9 * 60 + 37 # 577 print(end - start) ``` (Run result: 24) 24 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0080469
<|start|><|user|> A meal costs $215.00. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 215.0 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 32.25 print(f"{tip:.2f}") ``` Output of the run: 32.25 The tip is $32.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $215.00. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 215.0\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 32.25\nprint(f\"{tip:.2f}\")\n```\nOutput of the run: 32.25\n\nThe tip is $32.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "32.25", "printed": "32.25", "notation": null}
nlprog_det-setting-0080470
Papers were served by mail on February 23, 2019. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Let the code do the arithmetic: ```python from datetime import date, timedelta served = date(2019, 2, 23) # datetime.date(2019, 2, 23) response_days = 28 mail_days = 3 due = s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
188
{"gold": "2019-03-26", "printed": "2019-03-26", "notation": null}
nlprog_det-setting-0080472
87 files go into boxes of 40. How many boxes does that take? Python code: import math files = 87 per_box = 40 boxes = math.ceil(files / per_box) # 3 print(boxes) Output: 3 It takes 3 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080473
What commission does Pilar make on $11,166 in sales at 6%? Python: ```python sales = 11166 rate = 6 / 100 # 0.06 commission = sales * rate # 669.9599999999999 print(f"{commission:.2f}") ``` The program prints: 669.96 Pilar earns $669.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "669.96", "printed": "669.96", "notation": null}
nlprog_det-setting-0080474
Equipment costs $24,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year? In Python: ```python cost = 24000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 8000.0 print(f"{per_year:.2f}") ``` The run gives: 8000.00 Depreciation is $8,000.00 per yea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0080475
From 2000 to 2019, how many years is that? Computation in Python: ```python start_year = 2000 end_year = 2019 print(end_year - start_year) ``` Run it and it prints 19. 19 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0080476
<|start|><|user|> Hana buys 9 boxes of 8 labels each and gives away 3 labels. How many labels are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 8 given_away = 3 left = boxes * per_box - given_away # 69 print(left) ``` Output: 69 That leaves 69 labels.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Hana buys 9 boxes of 8 labels each and gives away 3 labels. How many labels are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 8\ngiven_away = 3\nleft = boxes * per_box - given_away # 69\nprint(left)\n```\nOutput:\n69\n\nThat leaves 69...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0080477
330 files go into boxes of 24. How many boxes does that take? ```python import math files = 330 per_box = 24 boxes = math.ceil(files / per_box) # 14 print(boxes) ``` The program prints 14, as expected. 14 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0080478
Quinn earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? Let's compute it with 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 run gives: 880.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0080479
To read 162 pages in 3 days, how many pages per day are needed? pages = 162 days = 3 per_day = pages // days # 54 print(per_day) Running it prints 54, as expected. 54 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0080480
A lawyer's fee is 33% of a $12,000 recovery. How large is the fee? A short script: ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` On running, it outputs: 3960.00 The fee is $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0080481
A pack of 8 headsets sells for $120. What does each cost? ```python total = 120 count = 8 per_item = total // count # 15 print(per_item) ``` Running it prints 15, as expected. Each one costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0080482
A measure needs at least 67% of 72 votes. How many votes is that, rounded up? Let the code do the arithmetic: ```python import math voters = 72 needed = math.ceil(voters * 67 / 100) # 49 print(needed) ``` The program prints 49, as expected. 49 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0080483
4 friends split a $180 bill plus a 20% tip evenly. How much does each pay? Here's the code. bill = 180 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 54.0 print(f"{each:.2f}") Run it and it prints 54.00. Each person pays $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0080484
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months? In code: ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` Executing it gives 480.00. The interest is $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0080486
<|start|><|user|> At 60 miles per hour, how many minutes does a 105-mile trip take?<|eot|> <|assistant|> ```python distance = 105 speed = 60 minutes = distance / speed * 60 # 105.0 print(round(minutes)) ``` Printed result: 105 The trip takes 105 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 105-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 105\nspeed = 60\nminutes = distance / speed * 60 # 105.0\nprint(round(minutes))\n```\nPrinted result: 105\n\nThe trip takes 105 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0080487
A quorum is 2/3 of the 58 members, rounded up. How many members make a quorum? Script: ```python import math members = 58 quorum = math.ceil(members * 2 / 3) # 39 print(quorum) ``` Output: 39 39 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0080488
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Lena was born on Octobe...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
255
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0080489
Each storage box holds 25 files. How many boxes are needed for 824 files? 33 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0080490
Notice was given on September 10, 2018. The notice period is 45 days. When does it run out? Computing it: ```python from datetime import date, timedelta start = date(2018, 9, 10) # datetime.date(2018, 9, 10) end = start + timedelta(days=45) # datetime.date(2018, 10, 25) print(end.isoformat()) ``` On running, it outp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2018-10-25", "printed": "2018-10-25", "notation": null}
nlprog_det-setting-0080491
<|start|><|user|> What simple interest does $5,000 earn at 3% a year over 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` It prints: 300.00 It earns $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 3% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 2\ninterest = principal * rate * years # 300.0\nprint(f\"{interest:.2f}\")\n```\nIt prints: 300.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0080492
<|start|><|user|> Count the days between May 8, 2021 and September 20, 2021.<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 5, 8) # datetime.date(2021, 5, 8) second = date(2021, 9, 20) # datetime.date(2021, 9, 20) print((second - first).days) ``` When run, it prints 135. It is 135 days.<...
chat
[ { "role": "user", "content": "Count the days between May 8, 2021 and September 20, 2021." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 5, 8) # datetime.date(2021, 5, 8)\nsecond = date(2021, 9, 20) # datetime.date(2021, 9, 20)\nprint((second - f...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0080493
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Copies cost $10 plus $0.50 for each page beyond 10. How much for 111 pages?<|eot|> <|assistant|> ```python pages = 111 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 60.5 print(f"{cost:.2f}") ``` Output of the...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Copies cost $10 plus $0.50 for each page beyond 10. How much for 111 pages?" }, { "role": "assistant", "content": "```python\npages = 111\nbase = 10\nper_page = 0.5\nfree_pages = 10\ncost = ba...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "60.50", "printed": "60.50", "notation": null}
nlprog_det-setting-0080494
What average speed covers 474 miles in 2 hours? We write it as a program: ```python distance = 474 hours = 2 speed = distance / hours # 237.0 print(round(speed)) ``` The program outputs 237. It averages 237 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "237", "printed": "237", "notation": null}
nlprog_det-setting-0080495
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> An invoice lists 15 chairs at $15 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 15 unit_price = 15 subtotal = quantity * unit_price # 225 total = subtotal * (1 + 10 / 100) # 247.50000000000003 print(f"{t...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "An invoice lists 15 chairs at $15 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 15\nunit_price = 15\nsubtotal = quantity...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "247.50", "printed": "247.50", "notation": null}
nlprog_det-setting-0080496
<|start|><|user|> Split $672 between Kofi and Ulla in the ratio 3 to 5. What is Kofi's share?<|eot|> <|assistant|> Kofi's share is $252.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $672 between Kofi and Ulla in the ratio 3 to 5. What is Kofi's share?" }, { "role": "assistant", "content": "Kofi's share is $252." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "252", "printed": "252", "notation": null}
nlprog_det-setting-0080497
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Starting with 801 pens and using 17 per day, how many remain after 20 days?<|eot|> <|assistant|> ```python stock = 801 per_day = 17 days = 20 left = stock - per_day * days print(left) ``` # result: 461 461 pens are left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Starting with 801 pens and using 17 per day, how many remain after 20 days?" }, { "role": "assistant", "content": "```python\nstock = 801\nper_day = 17\ndays = 20\nleft = stock - pe...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "461", "printed": "461", "notation": null}
nlprog_det-setting-0080500
<|start|><|user|> A $180 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 43.2 print(f"{each:.2f}") ``` Printed result — 43.20 The share is $43.20 each.<...
chat
[ { "role": "user", "content": "A $180 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 5\neach = bill * (1 + tip_rate) / people # 43.2\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "43.20", "printed": "43.20", "notation": null}
nlprog_det-setting-0080501
A 40 lb package ships at $10 base plus $0.75/lb. What is the charge? ```python base = 10 per_pound = 0.75 weight = 40 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Run result — 40.00 The charge is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0080505
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A party has 21 days to respond to a motion served on September 14, 2021, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 9, 14) # datetime.date(...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A party has 21 days to respond to a motion served on September 14, 2021, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
190
{"gold": "2021-10-08", "printed": "2021-10-08", "notation": null}
nlprog_det-setting-0080506
How many units at $30 each (variable cost $20) cover $2,500 of fixed costs? ```python import math fixed = 2500 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` Execution prints 250. Break-even is 250 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0080507
With 12 rows of 13 chairs and 28 empty chairs, how many chairs are taken? We write it as a program: ```python rows = 12 per_row = 13 empty = 28 seated = rows * per_row - empty # 128 print(seated) ``` Result = 128 128 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "128", "printed": "128", "notation": null}
nlprog_det-setting-0080508
<|start|><|user|> The rules require 1/3 of 53 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 53 quorum = math.ceil(members * 1 / 3) # 18 print(quorum) ``` (stdout: 18) That is 18 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 53 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 53\nquorum = math.ceil(members * 1 / 3) # 18\nprint(quorum)\n```\n(stdout: 18)\n\nThat is 18 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080509
<|start|><|user|> Dara's scores were 81, 60, 57, 56, 89, 71 and 62. What is the average score?<|eot|> <|assistant|> ```python scores = [81, 60, 57, 56, 89, 71, 62] average = sum(scores) // len(scores) print(average) ``` Out: 68 The mean is 68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara's scores were 81, 60, 57, 56, 89, 71 and 62. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [81, 60, 57, 56, 89, 71, 62]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nOut:\n68\n\nThe mean is 68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0080510
Convert 4,622 USD to EUR at 1 USD = 1.12 EUR. Coded up: ```python amount = 4622 rate = 1.12 converted = amount * rate # 5176.64 print(f"{converted:.2f}") ``` Result = 5176.64 That is 5,176.64 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5176.64", "printed": "5176.64", "notation": null}
nlprog_det-setting-0080511
How much is a $74 daily meal allowance over 4 days? ```python days = 4 meal_rate = 74 total = days * meal_rate # 296 print(total) ``` The run gives: 296 That comes to $296.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0080512
A 4% increase is applied to $1,100 monthly rent. What is the new amount? Here is a short program for it. rent = 1100 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1144.0 print(f"{new_rent:.2f}") The interpreter prints 1144.00. The new rent is $1,144.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1144.00", "printed": "1144.00", "notation": null}
nlprog_det-setting-0080513
Yoko's scores were 76, 76, 51, 87 and 75. What is the average score? Computing it: ```python scores = [76, 76, 51, 87, 75] average = sum(scores) // len(scores) # 73 print(average) ``` It prints: 73 The mean is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0080514
Fixed costs are $6,000. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even? Python code: ```python import math fixed = 6000 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 1200 print(units) ``` # printed: 1200 Break-even is 1200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0080517
<|start|><|user|> With 25% off, what does a $75 bicycle helmet cost?<|eot|> <|assistant|> It costs $56.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $75 bicycle helmet cost?" }, { "role": "assistant", "content": "It costs $56.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "56.25", "printed": "56.25", "notation": null}
nlprog_det-setting-0080518
What is the total rent on a 36-month lease at $2,875 a month? As a program: ```python monthly_rent = 2875 months = 36 total = monthly_rent * months # 103500 print(total) ``` That prints 103500. In total, $103,500 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "103500", "printed": "103500", "notation": null}
nlprog_det-setting-0080519
$2,000 is invested at 4% compounded yearly. What is it worth after 2 years? Python, step by step: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 2163.2000000000003 print(f"{value:.2f}") ``` Output = 2163.20 The balance is $2,163.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2163.20", "printed": "2163.20", "notation": null}
nlprog_det-setting-0080520
Counting only Monday through Friday, how many business days are there after January 24, 2023 through January 29, 2023? There are 3 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080522
<|start|><|user|> At 2% a month (simple), what interest builds on $1,000 over 4 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` # output: 80.00 The interest is $80.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $1,000 over 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 4\ninterest = balance * monthly_rate * months # 80.0\nprint(f\"{interest:.2f}\")\n```\n#...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0080523
A library charges $0.20 per book per day late. What is the fine for 4 books that are 30 days late? Python does the arithmetic: per_day = 0.2 days_late = 30 books = 4 fine = per_day * days_late * books # 24.0 print(f"{fine:.2f}") # stdout: 24.00 $24.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0080524
<|start|><|user|> 2 books come back 14 days late, at $0.25 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 14 books = 2 fine = per_day * days_late * books # 7.0 print(f"{fine:.2f}") ``` On running, it outputs 7.00. $7.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 14 days late, at $0.25 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 14\nbooks = 2\nfine = per_day * days_late * books # 7.0\nprint(f\"{fine:.2f}\")\n```\nOn running, it outputs 7.00.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "7.00", "printed": "7.00", "notation": null}
nlprog_det-setting-0080526
Convert 35 °C to Fahrenheit. Set it up in Python: celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) # printed: 95 It equals 95 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0080527
882 files go into boxes of 25. How many boxes does that take? Let the code do the arithmetic: ```python import math files = 882 per_box = 25 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` What it prints: 36 36 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0080528
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Each of Wanjiru's runs burns 300 calories. How many calories over 3 runs?<|eot|> <|assistant|> 900 calories in total.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Each of Wanjiru's runs burns 300 calories. How many calories over 3 runs?" }, { "role": "assistant", "content": "900 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0080529
<|start|><|user|> Each storage box holds 20 files. How many boxes are needed for 601 files?<|eot|> <|assistant|> ```python import math files = 601 per_box = 20 boxes = math.ceil(files / per_box) # 31 print(boxes) ``` Output of the run — 31 31 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 20 files. How many boxes are needed for 601 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 601\nper_box = 20\nboxes = math.ceil(files / per_box) # 31\nprint(boxes)\n```\nOutput of the run — 31\n\n31 boxes are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0080530
<|start|><|user|> 562 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> 38 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "562 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": "38 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0080531
A lawyer's fee is 25% of a $12,000 recovery. How large is the fee? Here is the program. ```python recovery = 12000 rate = 25 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Out: 3000.00 The lawyer's fee comes to $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080532
A measure needs at least 67% of 285 votes. How many votes is that, rounded up? ```python import math voters = 285 needed = math.ceil(voters * 67 / 100) # 191 print(needed) ``` Run output — 191 At least 191 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0080533
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Notice was given on March 4, 2024. The notice period is 120 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 3, 4) # datetime.date(2024, 3, 4) end = start + timedelta(days=120) # datet...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Notice was given on March 4, 2024. The notice period is 120 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = da...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "2024-07-02", "printed": "2024-07-02", "notation": null}
nlprog_det-setting-0080534
Printing costs 5 cents a page. What does it cost to print 192 copies of a 36-page handout? Python does the arithmetic: ```python pages = 36 copies = 192 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 345.6 print(f"{cost:.2f}") ``` (Printed result: 345.60) Printing costs $345.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "345.60", "printed": "345.60", "notation": null}
nlprog_det-setting-0080535
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?<|eot|> <|assistant|> base = 15 rate = 5.1 used = 14 free = 0 bill = base + rate * max(0, used - free) # 86.39999999999999 print(f"{bill:.2f}") Running thi...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?" }, { "role": "assistant", "content": " base = 15\n rate = 5.1\n used = 14\n free = 0\n bill = base + rate * max(0, used - free)...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "86.40", "printed": "86.40", "notation": null}
nlprog_det-setting-0080536
<|start|><|user|> A party has 14 days to respond to a motion served on December 22, 2019, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2019, 12, 22) # datetime.date(2019, 12, 22) response_days = 14 mail_days =...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on December 22, 2019, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 12, 22) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2020-01-08", "printed": "2020-01-08", "notation": null}
nlprog_det-setting-0080537
<|start|><|user|> After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> $7,500.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "$7,500.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0080538
Printing costs 5 cents a page. What does it cost to print 73 copies of a 11-page handout? Written as code: ```python pages = 11 copies = 73 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 40.150000000000006 print(f"{cost:.2f}") ``` Run it and it prints 40.15. Printing costs $40.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "40.15", "printed": "40.15", "notation": null}
nlprog_det-setting-0080539
At $0.58 per mile, what is the reimbursement for 87 miles? Set it up in Python: ```python miles = 87 rate = 0.58 reimbursement = miles * rate # 50.459999999999994 print(f"{reimbursement:.2f}") ``` Executing it gives 50.46. Sami is owed $50.46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "50.46", "printed": "50.46", "notation": null}
nlprog_det-setting-0080540
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Prorate $1,500 of monthly rent for 9 days of a 30-day month.<|eot|> <|assistant|> The tenant owes $450.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Prorate $1,500 of monthly rent for 9 days of a 30-day month." }, { "role": "assistant", "content": "The tenant owes $450.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0080541
<|start|><|user|> A 36-month warranty starts on June 27, 2026. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2026, 6, 27) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print...
chat
[ { "role": "user", "content": "A 36-month warranty starts on June 27, 2026. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2026, 6, 27)\n months = 36\n years, month_index = divmod(start.month - 1 + months, 12)\n end = date...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2029-06-27", "printed": "2029-06-27", "notation": null}
nlprog_det-setting-0080542
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> The statute was enacted in 2013. How many years had passed by 2042?<|eot|> <|assistant|> ```python start_year = 2013 end_year = 2042 print(end_year - start_year) ``` # output: 29 29 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "The statute was enacted in 2013. How many years had passed by 2042?" }, { "role": "assistant", "content": "```python\nstart_year = 2013\nend_year = 2042\nprint(end_year - start_year)\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0080543
How many weekdays (Monday to Friday) fall after May 15, 2027 up to and including June 4, 2027? In code: ```python from datetime import date, timedelta start = date(2027, 5, 15) end = date(2027, 6, 4) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count +=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0080544
A $2,000 security deposit has deductions of $120 and $200. How much is refunded? Coded up: ```python deposit = 2000 deductions = [120, 200] refund = deposit - sum(deductions) # 1680 print(refund) ``` Printed result: 1680 $1,680 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1680", "printed": "1680", "notation": null}
nlprog_det-setting-0080545
A $96 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? As a program: bill = 96 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 36.8 print(f"{each:.2f}") Console output — 36.80 Each person pays $36.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "36.80", "printed": "36.80", "notation": null}
nlprog_det-setting-0080546
To read 250 pages in 10 days, how many pages per day are needed? Computing it: pages = 250 days = 10 per_day = pages // days # 25 print(per_day) Execution prints 25, as expected. 25 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0080547
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A pack of 25 clipboards sells for $1425. What does each cost?<|eot|> <|assistant|> The unit price is $57.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A pack of 25 clipboards sells for $1425. What does each cost?" }, { "role": "assistant", "content": "The unit price is $57." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0080548
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $150,000 award?<|eot|> <|assistant|> ```python recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") ``` Output: 49500.00 The lawyer's fee comes to $49,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $150,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 49500.0\nprint(f\"{fee:.2f}\")\n```\nOutput: 49500.00\n\nThe lawyer's fee ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0080549
3 claimants share a $4,500 settlement equally. What is each share? The Python version: ```python settlement = 4500 parties = 3 share = settlement // parties # 1500 print(share) ``` Output of the run — 1500 Each share is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1500", "printed": "1500", "notation": null}