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-0057002
Convert 4.8 km to meters. The computation: ```python km = 4.8 meters = km * 1000 # 4800.0 print(round(meters)) ``` Run result = 4800 That is 4,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "4800", "printed": "4800", "notation": null}
nlprog_det-setting-0057003
Divide 292 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? The program: ```python total = 292 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # stdout: 58 each, 2 left over 58 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "58 each, 2 left over", "printed": "58 each, 2 left over", "notation": null}
nlprog_det-setting-0057004
A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 27-page copy cost? We write it as a program: ```python pages = 27 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 11.7 print(f"{cost:.2f}") ``` Output of the run: 11.70 The total i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "11.70", "printed": "11.70", "notation": null}
nlprog_det-setting-0057005
A 4 × 4 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Python, step by step: ```python import math length = 4 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 4 print(tiles) ``` The run gives 4. 4 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0057007
A 7 lb package ships at $10 base plus $2.00/lb. What is the charge? Coded up: base = 10 per_pound = 2.0 weight = 7 cost = base + per_pound * weight # 24.0 print(f"{cost:.2f}") Interpreter output: 24.00 The charge is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0057008
<|start|><|user|> Copies cost $15 plus $0.50 for each page beyond 10. How much for 109 pages?<|eot|> <|assistant|> ```python pages = 109 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 64.5 print(f"{cost:.2f}") ``` Printed = 64.50 The copy costs $64.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 10. How much for 109 pages?" }, { "role": "assistant", "content": "```python\npages = 109\nbase = 15\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 64.5\nprint(f\"{cost:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "64.50", "printed": "64.50", "notation": null}
nlprog_det-setting-0057010
<|start|><|user|> A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 12 quorum = math.ceil(members * 3 / 5) # 8 print(quorum) ``` # printed result: 8 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 12\nquorum = math.ceil(members * 3 / 5) # 8\nprint(quorum)\n```\n# printed result: 8\n\n8 members are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0057011
After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? grant = 60000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 19333.333333333332 print(f"{each:.2f}") The script prints 19333.33. Each installment is $19,333.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "19333.33", "printed": "19333.33", "notation": null}
nlprog_det-setting-0057012
How many weekdays (Monday to Friday) fall after November 23, 2020 up to and including December 25, 2020? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2020, 11, 23) end = date(2020, 12, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0057013
A $3,600 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? As a program: ```python principal = 3600 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 216.0 payment = (principal + interest...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "318.00", "printed": "318.00", "notation": null}
nlprog_det-setting-0057014
<|start|><|user|> What percentage of $10,000 is $1,100?<|eot|> <|assistant|> ```python budget = 10000 spent = 1100 percent = spent / budget * 100 # 11.0 print(round(percent, 1)) ``` It outputs: 11.0 11.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $1,100?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 1100\npercent = spent / budget * 100 # 11.0\nprint(round(percent, 1))\n```\nIt outputs: 11.0\n\n11.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "11.0", "printed": "11.0", "notation": null}
nlprog_det-setting-0057015
A lawyer's fee is 33% of a $90,000 recovery. How large is the fee? Script: ```python recovery = 90000 rate = 33 / 100 # 0.33 fee = recovery * rate # 29700.0 print(f"{fee:.2f}") ``` Run result = 29700.00 The fee is $29,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "29700.00", "printed": "29700.00", "notation": null}
nlprog_det-setting-0057016
689 files go into boxes of 12. How many boxes does that take? The Python version: ```python import math files = 689 per_box = 12 boxes = math.ceil(files / per_box) # 58 print(boxes) ``` # printed result: 58 It takes 58 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0057017
A hall has 26 rows of 19 seats, and 22 seats are empty. How many people are seated? The program: ```python rows = 26 per_row = 19 empty = 22 seated = rows * per_row - empty # 472 print(seated) ``` Executing it gives 472, as expected. 472 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0057018
1 books come back 23 days late, at $0.25 a day each. What is the fine? Code: ```python per_day = 0.25 days_late = 23 books = 1 fine = per_day * days_late * books # 5.75 print(f"{fine:.2f}") ``` It prints 5.75, as expected. The fine is $5.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5.75", "printed": "5.75", "notation": null}
nlprog_det-setting-0057019
<|start|><|system|> You have access to these functions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "A Python interpreter. Ret...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"sand...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0057020
Priya's scores were 94, 71, 97, 68, 88 and 50. What is the average score? A short script: ```python scores = [94, 71, 97, 68, 88, 50] average = sum(scores) // len(scores) # 78 print(average) ``` Running it prints: 78 The mean is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0057021
A 5% increase is applied to $1,500 monthly rent. What is the new amount? The Python version: ```python rent = 1500 increase = 5 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` # result: 1575.00 It rises to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0057022
<|start|><|user|> Papers were served by mail on November 15, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2019, 11, 15) # datetime.date(2019, 11, 15) response_days = 14 mail_da...
chat
[ { "role": "user", "content": "Papers were served by mail on November 15, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n served = date(2019, 11, 15) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "2019-12-02", "printed": "2019-12-02", "notation": null}
nlprog_det-setting-0057023
<|start|><|user|> How many of 255 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 255 needed = math.ceil(voters * 67 / 100) # 171 print(needed) ``` This prints 171, as expected. 171 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 255 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 255\nneeded = math.ceil(voters * 67 / 100) # 171\nprint(needed)\n```\nThis prints 171, as expected.\n\n171 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0057024
From a $7,500 retainer, 9 hours at $200/hour have been drawn. What remains? Python, step by step: ```python retainer = 7500 hours = 9 rate = 200 left = retainer - hours * rate # 5700 print(left) ``` Result: 5700 The remaining balance is $5,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5700", "printed": "5700", "notation": null}
nlprog_det-setting-0057025
Of a $4,000 budget, $3,900 has been spent. What percent is that? Here's the code. budget = 4000 spent = 3900 percent = spent / budget * 100 # 97.5 print(round(percent, 1)) The interpreter prints 97.5. 97.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "97.5", "printed": "97.5", "notation": null}
nlprog_det-setting-0057026
A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments? Here is a short program for it. ```python monthly = 12 yearly = 108 savings = monthly * 12 - yearly # 36 print(savings) ``` The program prints 36. $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0057027
A printer costs $300. It is 40% off. What is the sale price? Python code: price = 300 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 180.0 print(f"{sale_price:.2f}") The code prints: 180.00 The sale price is $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0057028
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months? A Python solution: ```python balance = 2500 monthly_rate = 1 / 100 months = 3 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` It outputs 75.00. $75.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0057029
A clerk's office charges $35 for each filing. Uma submits 15 filings. What is the total fee? Written as code: ```python fee = 35 filings = 15 total = fee * filings # 525 print(total) ``` When run, it prints: 525 The total fee is $525.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "525", "printed": "525", "notation": null}
nlprog_det-setting-0057030
<|start|><|user|> How much sales tax is charged on a $431.77 purchase at 6%?<|eot|> <|assistant|> ```python price = 431.77 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 25.9062 print(f"{tax:.2f}") ``` The run gives 25.91. The tax is $25.91.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $431.77 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 431.77\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 25.9062\nprint(f\"{tax:.2f}\")\n```\nThe run gives 25.91.\n\nThe tax is $25.91." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "25.91", "printed": "25.91", "notation": null}
nlprog_det-setting-0057031
A $2,000 security deposit has deductions of $45, $85 and $60. How much is refunded? The computation: ```python deposit = 2000 deductions = [45, 85, 60] refund = deposit - sum(deductions) # 1810 print(refund) ``` The interpreter prints: 1810 $1,810 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1810", "printed": "1810", "notation": null}
nlprog_det-setting-0057032
Monthly: $9. Annual: $78. What is saved per year by paying annually? A few lines of Python do it: monthly = 9 yearly = 78 savings = monthly * 12 - yearly # 30 print(savings) Out — 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0057033
<|start|><|user|> A count moves from 1,200 to 720. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1200 new = 720 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` The code prints: -40 The change is -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 720. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 720\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\nThe code prints: -40\n\nThe c...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0057034
Convert 29.5 km to meters. That is 29,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "29500", "printed": "29500", "notation": null}
nlprog_det-setting-0057035
What is the total rent on a 12-month lease at $1,640 a month? Programmatically: ```python monthly_rent = 1640 months = 12 total = monthly_rent * months print(total) ``` Output of the run — 19680 The rent over the term is $19,680.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "19680", "printed": "19680", "notation": null}
nlprog_det-setting-0057036
<|start|><|system|> Available functions (JSON Schema): [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "compute", "description": "Python s...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0057037
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> What percentage of $10,000 is $2,400?<|eot|> <|assistant|> 24.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "What percentage of $10,000 is $2,400?" }, { "role": "assistant", "content": "24.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0057038
5 bike rides at 400 calories each burn how many calories in total? Here is a short program for it. per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) Execution prints 2000. 2000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0057039
What is a 22% tip on a $197.08 bill? A few lines of Python do it: ```python bill = 197.08 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 43.357600000000005 print(f"{tip:.2f}") ``` # printed result: 43.36 The tip is $43.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "43.36", "printed": "43.36", "notation": null}
nlprog_det-setting-0057040
<|start|><|user|> Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> The margin is 2.7%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "The margin is 2.7%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0057042
<|start|><|user|> What does $2,000 grow to in 4 years at 2% annual compounding?<|eot|> <|assistant|> It is worth $2,164.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 4 years at 2% annual compounding?" }, { "role": "assistant", "content": "It is worth $2,164.86." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2164.86", "printed": "2164.86", "notation": null}
nlprog_det-setting-0057043
<|start|><|user|> An office budget of $25,000 has expenses of $2,792, $1,505, $2,879. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [2792, 1505, 2879] left = budget - sum(expenses) # 17824 print(left) ``` # printed result: 17824 The remaining budget is $17,824.<|eot|> <|end|...
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,792, $1,505, $2,879. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [2792, 1505, 2879]\nleft = budget - sum(expenses) # 17824\nprint(left)\n```\n# printed r...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "17824", "printed": "17824", "notation": null}
nlprog_det-setting-0057044
<|start|><|user|> Each storage box holds 40 files. How many boxes are needed for 43 files?<|eot|> <|assistant|> ```python import math files = 43 per_box = 40 boxes = math.ceil(files / per_box) # 2 print(boxes) ``` Output: 2 2 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 40 files. How many boxes are needed for 43 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 43\nper_box = 40\nboxes = math.ceil(files / per_box) # 2\nprint(boxes)\n```\nOutput: 2\n\n2 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057045
Cyrus was born on November 5, 1950. How old is Cyrus on July 7, 2028? Here is a short program for it. ```python from datetime import date born = date(1950, 11, 5) # datetime.date(1950, 11, 5) on = date(2028, 7, 7) # datetime.date(2028, 7, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0057046
<|start|><|user|> Each of Mei's walks burns 350 calories. How many calories over 7 walks?<|eot|> <|assistant|> ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Run result — 2450 2450 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Mei's walks burns 350 calories. How many calories over 7 walks?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions # 2450\nprint(total)\n```\nRun result — 2450\n\n2450 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0057047
A bicycle helmet costs $75. It is 25% off. What is the sale price? Programmatically: ```python price = 75 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 56.25 print(f"{sale_price:.2f}") ``` Console output — 56.25 It costs $56.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "56.25", "printed": "56.25", "notation": null}
nlprog_det-setting-0057048
6 friends split a $210 bill plus a 15% tip evenly. How much does each pay? In Python: ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 40.24999999999999 print(f"{each:.2f}") ``` Execution result: 40.25 Each person pays $40.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "40.25", "printed": "40.25", "notation": null}
nlprog_det-setting-0057050
Pack A has 6 items for $11.36. Pack B has 24 items for $18.48. Which has the lower price per item? The program: ```python pack_a = 11.36 / 6 # 1.8933333333333333 pack_b = 18.48 / 24 # 0.77 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` It prints B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0057051
<|start|><|user|> 4 books come back 24 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 24 books = 4 fine = per_day * days_late * books # 19.200000000000003 print(f"{fine:.2f}") ``` Printed: 19.20 The fine is $19.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 24 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 24\nbooks = 4\nfine = per_day * days_late * books # 19.200000000000003\nprint(f\"{fine:.2f}\")\n```\nPrinted:\n19.20\...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "19.20", "printed": "19.20", "notation": null}
nlprog_det-setting-0057052
How many 2-foot square tiles cover a 19 ft by 5 ft floor (round up)? Python code: ```python import math length = 19 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 24 print(tiles) ``` Execution result: 24 It takes 24 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0057053
<|start|><|user|> $1,000 is invested at 3% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 1159.2740743000002 print(f"{value:.2f}") ``` Output of the run — 1159.27 The balance is $1,159.27.<|e...
chat
[ { "role": "user", "content": "$1,000 is invested at 3% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rate) ** years # 1159.2740743000002\nprint(f\"{value:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1159.27", "printed": "1159.27", "notation": null}
nlprog_det-setting-0057054
<|start|><|user|> An invoice lists 4 batteries at $7 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 4 unit_price = 7 subtotal = quantity * unit_price # 28 total = subtotal * (1 + 8 / 100) # 30.240000000000002 print(f"{total:.2f}") ``` Executed, it shows: 30.24 The total...
chat
[ { "role": "user", "content": "An invoice lists 4 batteries at $7 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 4\nunit_price = 7\nsubtotal = quantity * unit_price # 28\ntotal = subtotal * (1 + 8 / 100) # 30.240000000000002\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "30.24", "printed": "30.24", "notation": null}
nlprog_det-setting-0057055
What is 5 degrees Celsius in Fahrenheit? Programmatically: ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` The program outputs: 41 That is 41 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0057056
A $2,500 security deposit has deductions of $75. How much is refunded? Computing it: deposit = 2500 deductions = [75] refund = deposit - sum(deductions) print(refund) On running, it outputs 2425. $2,425 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "2425", "printed": "2425", "notation": null}
nlprog_det-setting-0057057
Leon earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week? Computing it: ```python rate = 20.0 hours = 42 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 60.0 pay = regular + overtime # 860.0 print(f"{pay:.2f}") ``` # console output: 860.00 The weekly pa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "860.00", "printed": "860.00", "notation": null}
nlprog_det-setting-0057059
After an initial $6,000, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part? Here is the program. ```python grant = 48000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 10500.0 print(f"{each:.2f}") ``` Out = 10500.00 Each installment is $10,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0057060
Prorate $1,200 of monthly rent for 17 days of a 31-day month. Here is a short program for it. ```python rent = 1200 days_in_month = 31 days_occupied = 17 prorated = rent * days_occupied / days_in_month # 658.0645161290323 print(f"{prorated:.2f}") ``` Output: 658.06 The tenant owes $658.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "658.06", "printed": "658.06", "notation": null}
nlprog_det-setting-0057061
Parking is $2 per hour with a daily maximum of $20. What do 6 hours cost? A short script: ```python rate = 2 hours = 6 daily_max = 20 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Run it and it prints: 12 The charge is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0057062
37 water bottles cost $15 apiece. With 7% tax added, what is the total? Translated to Python: quantity = 37 unit_price = 15 subtotal = quantity * unit_price # 555 total = subtotal * (1 + 7 / 100) # 593.85 print(f"{total:.2f}") Result = 593.85 The total with tax is $593.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "593.85", "printed": "593.85", "notation": null}
nlprog_det-setting-0057063
<|start|><|user|> Find the mean of these test scores: 96, 56, 59, 86 and 63.<|eot|> <|assistant|> ```python scores = [96, 56, 59, 86, 63] average = sum(scores) // len(scores) # 72 print(average) ``` # out: 72 The average score is 72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 96, 56, 59, 86 and 63." }, { "role": "assistant", "content": "```python\nscores = [96, 56, 59, 86, 63]\naverage = sum(scores) // len(scores) # 72\nprint(average)\n```\n# out: 72\n\nThe average score is 72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0057064
Monthly: $9. Annual: $90. What is saved per year by paying annually? Written as code: ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` The printout reads 18. $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0057065
10.5 hours of work at $250 an hour: what is the total charge? We write it as a program: hours = 10.5 rate = 250 bill = hours * rate # 2625.0 print(f"{bill:.2f}") Program output: 2625.00 The bill is $2,625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0057066
<|start|><|user|> A meeting starts at 4:30 PM and lasts 40 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 30 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Program output — 5:10 PM The meeting finishes at 5:10 ...
chat
[ { "role": "user", "content": "A meeting starts at 4:30 PM and lasts 40 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 30\nend = start + 40\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
[]
[]
130
{"gold": "5:10 PM", "printed": "5:10 PM", "notation": null}
nlprog_det-setting-0057067
<|start|><|user|> Papers were served by mail on May 18, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> It is due June 4, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on May 18, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "It is due June 4, 2025." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "2025-06-04", "printed": "2025-06-04", "notation": null}
nlprog_det-setting-0057068
How many of 231 votes make 60% (round up)? A short script: ```python import math voters = 231 needed = math.ceil(voters * 60 / 100) # 139 print(needed) ``` Out — 139 At least 139 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "139", "printed": "139", "notation": null}
nlprog_det-setting-0057069
<|start|><|system|> Tool definitions: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 555 files go into boxes of ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0057070
<|start|><|system|> You have access to these functions: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing", "descriptio...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "35.34", "printed": "35.34", "notation": null}
nlprog_det-setting-0057071
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? The Python version: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` Printed: 7200....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0057072
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 70-page copy cost?<|eot|> <|assistant|> ```python pages = 70 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 11.0 print(f"{cost:.2f}") ``` Result: 11.00 The copy cos...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 70-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 70\nbase = 5\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0057073
At $23.65 an hour, what does 38 hours of work pay? ```python rate = 23.65 hours = 38 earnings = rate * hours # 898.6999999999999 print(f"{earnings:.2f}") ``` Run it and it prints: 898.70 The pay is $898.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "898.70", "printed": "898.70", "notation": null}
nlprog_det-setting-0057074
At 1% a month (simple), what interest builds on $12,000 over 6 months? We write it as a program: ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") ``` The program outputs 720.00. $720.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0057075
From a $10,000 retainer, 5 hours at $150/hour have been drawn. What remains? The remaining balance is $9,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "9250", "printed": "9250", "notation": null}
nlprog_det-setting-0057076
<|start|><|user|> Kofi earns a 4% commission on $34,729 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 34729 rate = 4 / 100 # 0.04 commission = sales * rate # 1389.16 print(f"{commission:.2f}") ``` It prints 1389.16, as expected. Kofi earns $1,389.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kofi earns a 4% commission on $34,729 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 34729\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1389.16\nprint(f\"{commission:.2f}\")\n```\nIt prints 1389.16, as expected.\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1389.16", "printed": "1389.16", "notation": null}
nlprog_det-setting-0057077
14 pens cost $12 apiece. With 6% tax added, what is the total? The Python version: ```python quantity = 14 unit_price = 12 subtotal = quantity * unit_price # 168 total = subtotal * (1 + 6 / 100) # 178.08 print(f"{total:.2f}") ``` (Execution result: 178.08) The total with tax is $178.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "178.08", "printed": "178.08", "notation": null}
nlprog_det-setting-0057078
A clerk's office charges $125 for each filing. Beatriz submits 6 filings. What is the total fee? ```python fee = 125 filings = 6 total = fee * filings # 750 print(total) ``` The script prints 750. The total fee is $750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0057079
On which weekday does February 8, 1993 fall? The computation: ```python from datetime import date hearing = date(1993, 2, 8) # datetime.date(1993, 2, 8) print(hearing.strftime("%A")) ``` Run it and it prints Monday. February 8, 1993 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0057080
<|start|><|user|> $5,000 is invested at 3% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 5796.3703715 print(f"{value:.2f}") ``` # run result: 5796.37 The balance is $5,796.37.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 3% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rate) ** years # 5796.3703715\nprint(f\"{value:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5796.37", "printed": "5796.37", "notation": null}
nlprog_det-setting-0057081
Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year? We write it as a program: ```python cost = 12000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 1500.0 print(f"{per_year:.2f}") ``` (Execution result: 1500.00) Deprec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0057082
Pack A has 8 items for $9.98. Pack B has 15 items for $21.40. Which has the lower price per item? Here's the code. ```python pack_a = 9.98 / 8 # 1.2475 pack_b = 21.4 / 15 # 1.4266666666666665 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` On running, it outputs A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0057083
<|start|><|user|> A 4% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` (stdout: 936.00) The new rent is $936.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 936.0\nprint(f\"{new_rent:.2f}\")\n```\n(stdout: 936.00)\n\nThe new r...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0057084
<|start|><|system|> You may call the tools below. [{"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": "fetch_filing", "descrip...
chat
[ { "role": "system", "content": "You may call the tools below.\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\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
387
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0057085
A claim accrued on May 23, 2016. The limitations period is 4 years. On what date does it expire? Let the code do the arithmetic: ```python from datetime import date accrued = date(2016, 5, 23) # datetime.date(2016, 5, 23) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 5, 23) pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2020-05-23", "printed": "2020-05-23", "notation": null}
nlprog_det-setting-0057086
Sales went from 1,200 to 1,260. What is the percent change? It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0057087
A $2,000 security deposit has deductions of $150, $60 and $85. How much is refunded? The refund is $1,705.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1705", "printed": "1705", "notation": null}
nlprog_det-setting-0057088
Shipping costs $12 plus $0.75 per pound. What does a 4-pound parcel cost to ship? Python, step by step: ```python base = 12 per_pound = 0.75 weight = 4 cost = base + per_pound * weight # 15.0 print(f"{cost:.2f}") ``` # result: 15.00 The charge is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0057089
Each of Marek's swims burns 350 calories. How many calories over 5 swims? Python does the arithmetic: ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` # console output: 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0057090
A lawyer's fee is 30% of a $12,000 recovery. How large is the fee? Python makes this quick: ```python recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") ``` That prints: 3600.00 The fee is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0057091
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A customer buys 2 file boxes at $2 each, 4 pens at $18 each, 5 hard drives at $23 each, 5 rulers at $27 each and pays with $350. How much change is due?<|eot|> <|assistant|> $24 comes back.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A customer buys 2 file boxes at $2 each, 4 pens at $18 each, 5 hard drives at $23 each, 5 rulers at $27 each and pays with $350. How much change is due?" }, { "role": "assistant", ...
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0057092
A library charges $0.15 per book per day late. What is the fine for 4 books that are 18 days late? Here's the code. ```python per_day = 0.15 days_late = 18 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` Shell output — 10.80 The fine is $10.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "10.80", "printed": "10.80", "notation": null}
nlprog_det-setting-0057093
Starting with 810 cables and using 8 per day, how many remain after 14 days? Python does the arithmetic: ```python stock = 810 per_day = 8 days = 14 left = stock - per_day * days # 698 print(left) ``` Printed result — 698 698 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "698", "printed": "698", "notation": null}
nlprog_det-setting-0057094
Convert 2 h 17 min (the length of a deposition) to minutes. Written as code: ```python hours = 2 minutes = 17 total_minutes = hours * 60 + minutes # 137 print(total_minutes) ``` The run gives: 137 That is 137 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "137", "printed": "137", "notation": null}
nlprog_det-setting-0057095
A 24-month warranty starts on January 10, 2018. On what date does it end? We write it as a program: ```python from datetime import date start = date(2018, 1, 10) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2020-01-10", "printed": "2020-01-10", "notation": null}
nlprog_det-setting-0057096
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "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\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
314
{"gold": "58.48", "printed": "58.48", "notation": null}
nlprog_det-setting-0057097
From a $5,000 retainer, 6 hours at $275/hour have been drawn. What remains? Written as code: ```python retainer = 5000 hours = 6 rate = 275 left = retainer - hours * rate # 3350 print(left) ``` (Printed: 3350) $3,350 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3350", "printed": "3350", "notation": null}
nlprog_det-setting-0057098
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? In Python: ```python rate = 20.0 hours = 49 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 270.0 pay = regular + overtime # 1070.0 print(f"{pay:.2f}") ``` The run gives: 1070.00 The weekly pay is $1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1070.00", "printed": "1070.00", "notation": null}
nlprog_det-setting-0057099
<|start|><|user|> A 325-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 325-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0057100
<|start|><|user|> A printer costs $60. It is 30% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 42.0 print(f"{sale_price:.2f}") ``` stdout = 42.00 It costs $42.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $60. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 42.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout = 42.00\n\nIt costs $42.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0057101
<|start|><|system|> Available functions (JSON Schema): {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> $5,000 is invested ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "5520.40", "printed": "5520.40", "notation": null}
nlprog_det-setting-0057102
How many days are there from October 3, 2022 to January 24, 2023? It is 113 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "113", "printed": "113", "notation": null}
nlprog_det-setting-0057103
<|start|><|user|> 3 bike rides at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) ``` (Printed result: 1050) 1050 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 bike rides at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 3\ntotal = per_session * sessions # 1050\nprint(total)\n```\n(Printed result: 1050)\n\n1050 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0057104
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> What does $1,000 grow to in 5 years at 5% annual compounding?<|eot|> <|assistant|> The balance is $1,276.28.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "What does $1,000 grow to in 5 years at 5% annual compounding?" }, { "role": "assistant", "content": "The balance is $1,276.28." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "1276.28", "printed": "1276.28", "notation": null}
nlprog_det-setting-0057105
After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? The Python version: ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 3 # 7500.0 print(f"{per_client:.2f}") ``` Output: 7500.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0057106
5 boxes hold 8 water bottles each. After 19 are handed out, how many are left? The program: ```python boxes = 5 per_box = 8 given_away = 19 left = boxes * per_box - given_away # 21 print(left) ``` Printed — 21 That leaves 21 water bottles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "21", "printed": "21", "notation": null}