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-0055495
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 12 days?<|eot|> <|assistant|> ```python per_day = 25 days = 12 cap = 5000 fine = min(per_day * days, cap) # 300 print(fine) ``` Python prints 300, as expected. The fine is $300.<|...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 12 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 12\ncap = 5000\nfine = min(per_day ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0055496
A library charges $0.50 per book per day late. What is the fine for 2 books that are 11 days late? Written as code: ```python per_day = 0.5 days_late = 11 books = 2 fine = per_day * days_late * books # 11.0 print(f"{fine:.2f}") ``` Executing it gives 11.00, as expected. $11.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0055498
A 21-day notice period begins on March 26, 2023. On what date does it end? That date is April 16, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2023-04-16", "printed": "2023-04-16", "notation": null}
nlprog_det-setting-0055499
Viktor has 9 documents to file, and each filing costs $405. How much are the filing fees in total? A short script: ```python fee = 405 filings = 9 total = fee * filings # 3645 print(total) ``` # program output: 3645 $3,645 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "3645", "printed": "3645", "notation": null}
nlprog_det-setting-0055500
5 friends split a $210 bill plus a 18% tip evenly. How much does each pay? Each person pays $49.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "49.56", "printed": "49.56", "notation": null}
nlprog_det-setting-0055501
<|start|><|user|> A pack of 10 keyboards sells for $80. What does each cost?<|eot|> <|assistant|> The unit price is $8.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 keyboards sells for $80. What does each cost?" }, { "role": "assistant", "content": "The unit price is $8." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0055502
Straight-line depreciation: cost $24,000, salvage $2,000, 4 years. How much per year? $5,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "5500.00", "printed": "5500.00", "notation": null}
nlprog_det-setting-0055503
<|start|><|user|> A 2% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1100 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1122.0 print(f"{new_rent:.2f}") ``` Printed: 1122.00 It rises to $1,122.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1122.0\nprint(f\"{new_rent:.2f}\")\n```\nPrinted: 1122.00\n\nIt ri...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1122.00", "printed": "1122.00", "notation": null}
nlprog_det-setting-0055504
With 15% off, what does a $40 filing cabinet cost? A Python solution: ```python price = 40 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 34.0 print(f"{sale_price:.2f}") ``` The interpreter prints: 34.00 The sale price is $34.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0055505
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 14 copies of a 9-page handout?<|eot|> <|assistant|> ```python pages = 9 copies = 14 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 15.12 print(f"{cost:.2f}") ``` Printed — 15.12 Printing costs $15.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 14 copies of a 9-page handout?" }, { "role": "assistant", "content": "```python\npages = 9\ncopies = 14\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 15.12\nprint(f\"{cost:.2f}\")\n```\nPri...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "15.12", "printed": "15.12", "notation": null}
nlprog_det-setting-0055506
$1,000 is invested at 3% compounded yearly. What is it worth after 4 years? ```python principal = 1000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 1125.50881 print(f"{value:.2f}") ``` The script prints: 1125.51 The balance is $1,125.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1125.51", "printed": "1125.51", "notation": null}
nlprog_det-setting-0055507
Find the mean of these test scores: 95, 95 and 89. Programmatically: ```python scores = [95, 95, 89] average = sum(scores) // len(scores) # 93 print(average) ``` Executing it gives: 93 The average score is 93.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "93", "printed": "93", "notation": null}
nlprog_det-setting-0055508
Printing costs 15 cents a page. What does it cost to print 164 copies of a 40-page handout? Code: ```python pages = 40 copies = 164 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 984.0 print(f"{cost:.2f}") ``` Run output: 984.00 Printing costs $984.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "984.00", "printed": "984.00", "notation": null}
nlprog_det-setting-0055509
A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 32-page copy cost? ```python pages = 32 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 11.2 print(f"{cost:.2f}") ``` Executing it gives 11.20, as expected. The total is $11.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "11.20", "printed": "11.20", "notation": null}
nlprog_det-setting-0055511
<|start|><|user|> Meals are $59 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?<|eot|> <|assistant|> ```python days = 6 meal_rate = 59 lodging_rate = 140 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` stdout: 1054 The allowance is $1,054.<|eot|> <...
chat
[ { "role": "user", "content": "Meals are $59 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 59\nlodging_rate = 140\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1054", "printed": "1054", "notation": null}
nlprog_det-setting-0055512
56 files go into boxes of 25. How many boxes does that take? We write it as a program: ```python import math files = 56 per_box = 25 boxes = math.ceil(files / per_box) # 3 print(boxes) ``` The code prints: 3 3 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055513
<|start|><|user|> A $800 security deposit has deductions of $85, $120 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [85, 120, 60] refund = deposit - sum(deductions) # 535 print(refund) ``` The code prints 535. $535 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $85, $120 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [85, 120, 60]\nrefund = deposit - sum(deductions) # 535\nprint(refund)\n```\nThe code prints 535.\n\n$53...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "535", "printed": "535", "notation": null}
nlprog_det-setting-0055515
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> What commission does Hugo make on $9,158 in sales at 10%?<|eot|> <|assistant|> ```python sales = 9158 rate = 10 / 100 # 0.1 commission = sales * rate # 915.8000000000001 print(f"{commission:.2f}") ``` Output of the run — 915.80 Hugo e...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "What commission does Hugo make on $9,158 in sales at 10%?" }, { "role": "assistant", "content": "```python\nsales = 9158\nrate = 10 / 100 # 0.1\ncommission = sales * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "915.80", "printed": "915.80", "notation": null}
nlprog_det-setting-0055516
<|start|><|user|> 253 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 253 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Result: 36 each, 1 left over) The answer: 36 ea...
chat
[ { "role": "user", "content": "253 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 253\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "36 each, 1 left over", "printed": "36 each, 1 left over", "notation": null}
nlprog_det-setting-0055517
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> What percentage of $8,000 is $800?<...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0055518
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Ana buys 10 boxes of 25 scissors each and gives away 6 scissors. How many scissors are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 25 given_away = 6 left = boxes * per_box - given_away # 244 print(left) ``` When run, it prints 244, as expec...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Ana buys 10 boxes of 25 scissors each and gives away 6 scissors. How many scissors are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 25\ngiven_away = 6\nleft...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "244", "printed": "244", "notation": null}
nlprog_det-setting-0055519
3 boxes hold 24 binders each. After 8 are handed out, how many are left? A short script: boxes = 3 per_box = 24 given_away = 8 left = boxes * per_box - given_away # 64 print(left) stdout: 64 64 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0055520
<|start|><|user|> A shift runs from 11:34 AM to 5:44 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 11 * 60 + 34 # 694 end = 17 * 60 + 44 # 1064 print(end - start) ``` The code prints: 370 It is 370 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 11:34 AM to 5:44 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 34 # 694\nend = 17 * 60 + 44 # 1064\nprint(end - start)\n```\nThe code prints: 370\n\nIt is 370 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "370", "printed": "370", "notation": null}
nlprog_det-setting-0055521
What is a 10% tip on a $105.10 bill? Script: ```python bill = 105.1 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 10.51 print(f"{tip:.2f}") ``` When run, it prints 10.51. Leave $10.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "10.51", "printed": "10.51", "notation": null}
nlprog_det-setting-0055522
Counting the first and last day, how many days are there from December 13, 2021 through December 28, 2021? The Python version: from datetime import date first = date(2021, 12, 13) # datetime.date(2021, 12, 13) last = date(2021, 12, 28) # datetime.date(2021, 12, 28) days = (last - first).days + 1 # 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0055523
How many units at $15 each (variable cost $7) cover $9,000 of fixed costs? Here's the code. ```python import math fixed = 9000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` Console: 1125 Break-even is 1125 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0055524
Express 362 hours in days and hours. We write it as a program: hours = 362 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") (Result: 15 days and 2 hours) That is 15 days and 2 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "15 days and 2 hours", "printed": "15 days and 2 hours", "notation": null}
nlprog_det-setting-0055525
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "loo...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
426
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055527
<|start|><|user|> Counting the first and last day, how many days are there from July 16, 2024 through July 26, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 7, 16) # datetime.date(2024, 7, 16) last = date(2024, 7, 26) # datetime.date(2024, 7, 26) days = (last - first).days + 1 # 1...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from July 16, 2024 through July 26, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 7, 16) # datetime.date(2024, 7, 16)\nlast = date(2024, 7, 26) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0055528
<|start|><|system|> You can call tools. Available tools: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "math_engine", "description": "Pyt...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\",...
nlprog_det
setting
original
null
deterministic
[]
[]
395
{"gold": "83.16", "printed": "83.16", "notation": null}
nlprog_det-setting-0055529
With 13 rows of 8 chairs and 28 empty chairs, how many chairs are taken? As a program: ```python rows = 13 per_row = 8 empty = 28 seated = rows * per_row - empty # 76 print(seated) ``` It prints: 76 76 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0055530
Which is cheaper per unit: 10 for $14.63 (A) or 15 for $26.37 (B)? A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0055531
Count the days between August 7, 2025 and May 1, 2026. Translated to Python: ```python from datetime import date first = date(2025, 8, 7) # datetime.date(2025, 8, 7) second = date(2026, 5, 1) # datetime.date(2026, 5, 1) print((second - first).days) ``` # out: 267 It is 267 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "267", "printed": "267", "notation": null}
nlprog_det-setting-0055532
Starting from $5,000, the team spends $1,961, $3,658, $1,182, $1,062. What remains? Coded up: ```python budget = 5000 expenses = [1961, 3658, 1182, 1062] left = budget - sum(expenses) # -2863 print(left) ``` Program output: -2863 -$2,863 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "-2863", "printed": "-2863", "notation": null}
nlprog_det-setting-0055533
<|start|><|system|> You can call tools. Available tools: {"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A 9-day trip pays $69 a day ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pr...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "1741", "printed": "1741", "notation": null}
nlprog_det-setting-0055534
Prorate $2,400 of monthly rent for 19 days of a 31-day month. The tenant owes $1,470.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1470.97", "printed": "1470.97", "notation": null}
nlprog_det-setting-0055535
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` Run output: 120 120 units are needed...
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 25\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0055536
<|start|><|user|> Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 30 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 520.0 print(f"{prorated:.2f}") ``` Run output — 520.00 The tena...
chat
[ { "role": "user", "content": "Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 13\nprorated = rent * days_occupied / days_in_month # 520.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "520.00", "printed": "520.00", "notation": null}
nlprog_det-setting-0055537
<|start|><|user|> What is the total rent on a 24-month lease at $2,100 a month?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` Execution result — 50400 The rent over the term is $50,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $2,100 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 24\ntotal = monthly_rent * months # 50400\nprint(total)\n```\nExecution result — 50400\n\nThe rent over the term is $50,400...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0055538
What is a 10% tip on a $183.30 bill? Written as code: ```python bill = 183.3 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 18.330000000000002 print(f"{tip:.2f}") ``` Python prints: 18.33 Leave $18.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18.33", "printed": "18.33", "notation": null}
nlprog_det-setting-0055539
<|start|><|user|> An office budget of $12,000 has expenses of $559, $1,860, $3,296, $3,195. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [559, 1860, 3296, 3195] left = budget - sum(expenses) # 3090 print(left) ``` Run result: 3090 The remaining budget is $3,090.<|eot|> <|en...
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $559, $1,860, $3,296, $3,195. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [559, 1860, 3296, 3195]\nleft = budget - sum(expenses) # 3090\nprint(left)\n```\nR...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "3090", "printed": "3090", "notation": null}
nlprog_det-setting-0055540
If a 4-year limitations period starts on July 14, 2012, when does it end? Let's compute it with Python. ```python from datetime import date accrued = date(2012, 7, 14) # datetime.date(2012, 7, 14) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 7, 14) print(expires.isoformat()) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2016-07-14", "printed": "2016-07-14", "notation": null}
nlprog_det-setting-0055541
Under a 30% contingency agreement, what fee is owed on a $40,000 award? Here's the code. ```python recovery = 40000 rate = 30 / 100 # 0.3 fee = recovery * rate # 12000.0 print(f"{fee:.2f}") ``` Run output: 12000.00 The fee is $12,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0055542
6 bike rides at 350 calories each burn how many calories in total? ```python per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) ``` The run gives 2100, as expected. That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0055543
Filing fees are $25 per document. What do 6 filings cost? We can compute it in Python. ```python fee = 25 filings = 6 total = fee * filings # 150 print(total) ``` stdout — 150 The total fee is $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0055544
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Pack A has 8 items for $6.77. Pack B has 20 items for $12.64. Which has the lower price per item?<|eot|> <|assistant|> pack_a = 6.77 / 8 # 0.84625 pack_b = 12.64 / 20 # 0.632 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) (Resu...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Pack A has 8 items for $6.77. Pack B has 20 items for $12.64. Which has the lower price per item?" }, { "role": "assistant", "content": " pack_a = 6.77 / 8 # 0.84625\n pack_b = 12.64 / 20 ...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0055545
The landlord deducts $150 from a $1,000 deposit. What is returned to the tenant? Programmatically: ```python deposit = 1000 deductions = [150] refund = deposit - sum(deductions) # 850 print(refund) ``` (Printed result: 850) The refund is $850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "850", "printed": "850", "notation": null}
nlprog_det-setting-0055546
Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights? Python makes this quick: ```python days = 3 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 587 print(total) ``` Console output — 587 That comes to $587.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "587", "printed": "587", "notation": null}
nlprog_det-setting-0055547
<|start|><|user|> An office budget of $25,000 has expenses of $3,994, $3,537. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3994, 3537] left = budget - sum(expenses) # 17469 print(left) ``` Run output — 17469 The remaining budget is $17,469.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $3,994, $3,537. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3994, 3537]\nleft = budget - sum(expenses) # 17469\nprint(left)\n```\nRun output — 17469\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "17469", "printed": "17469", "notation": null}
nlprog_det-setting-0055548
A trial runs from June 25, 2018 to July 3, 2018, counting both days. How many calendar days is that? Programmatically: ```python from datetime import date first = date(2018, 6, 25) # datetime.date(2018, 6, 25) last = date(2018, 7, 3) # datetime.date(2018, 7, 3) days = (last - first).days + 1 # 9 print(days) ``` (Pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0055549
An invoice lists 8 rulers at $5 each, plus 5% sales tax. What is the invoice total? We write it as a program: ```python quantity = 8 unit_price = 5 subtotal = quantity * unit_price # 40 total = subtotal * (1 + 5 / 100) # 42.0 print(f"{total:.2f}") ``` That prints 42.00. The total with tax is $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0055550
<|start|><|user|> A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 12 yearly = 120 savings = monthly * 12 - yearly print(savings) ``` When run, it prints 24, as expected. $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 120\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nWhen run, it prints 24, as ex...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0055551
<|start|><|user|> 36 desk lamps cost $7 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 7 subtotal = quantity * unit_price total = subtotal * (1 + 5 / 100) print(f"{total:.2f}") ``` What it prints: 264.60 The total with tax is $264.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "36 desk lamps cost $7 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 7\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 5 / 100)\nprint(f\"{total:.2f}\")\n```\nWhat it prints: 264...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "264.60", "printed": "264.60", "notation": null}
nlprog_det-setting-0055552
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What percentage of $2,000 is $100?<|eot|> <|assistant|> budget = 2000 spent = 100 percent = spent / budget * 100 # 5.0 print(round(percent, 1)) That prints 5.0. That is 5.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What percentage of $2,000 is $100?" }, { "role": "assistant", "content": " budget = 2000\n spent = 100\n percent = spent / budget * 100 # 5.0\n print(round(percent, 1))\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0055553
An office budget of $12,000 has expenses of $1,286, $3,803. How much of the budget is left? $6,911 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "6911", "printed": "6911", "notation": null}
nlprog_det-setting-0055554
A meal costs $234.06. How much is a 20% tip? A few lines of Python do it: ```python bill = 234.06 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 46.812000000000005 print(f"{tip:.2f}") ``` On running, it outputs: 46.81 Leave $46.81.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "46.81", "printed": "46.81", "notation": null}
nlprog_det-setting-0055555
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 156 copies of a 43-page handout?<|eot|> <|assistant|> Printing costs $670.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 156 copies of a 43-page handout?" }, { "role": "assistant", "content": "Printing costs $670.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "670.80", "printed": "670.80", "notation": null}
nlprog_det-setting-0055556
How much sales tax is charged on a $309.66 purchase at 5%? Here's the code. ```python price = 309.66 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 15.483000000000002 print(f"{tax:.2f}") ``` The printout reads 15.48. The tax is $15.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "15.48", "printed": "15.48", "notation": null}
nlprog_det-setting-0055557
<|start|><|user|> If a 135-minute seminar begins at 11:15 AM, what time does it finish?<|eot|> <|assistant|> It ends at 1:30 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 135-minute seminar begins at 11:15 AM, what time does it finish?" }, { "role": "assistant", "content": "It ends at 1:30 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1:30 PM", "printed": "1:30 PM", "notation": null}
nlprog_det-setting-0055559
A library charges $0.20 per book per day late. What is the fine for 1 books that are 17 days late? Computing it: ```python per_day = 0.2 days_late = 17 books = 1 fine = per_day * days_late * books # 3.4000000000000004 print(f"{fine:.2f}") ``` Run result — 3.40 $3.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "3.40", "printed": "3.40", "notation": null}
nlprog_det-setting-0055560
At 60 miles per hour, how many minutes does a 195-mile trip take? Coded up: ```python distance = 195 speed = 60 minutes = distance / speed * 60 # 195.0 print(round(minutes)) ``` Running this gives: 195 195 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0055561
How many weekdays (Monday to Friday) fall after December 19, 2028 up to and including December 26, 2028? Here is a short program for it. ```python from datetime import date, timedelta start = date(2028, 12, 19) end = date(2028, 12, 26) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0055562
A settlement of $960 is split equally among 5 parties. How much does each party receive? settlement = 960 parties = 5 share = settlement // parties print(share) # output: 192 Each share is $192.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0055564
Rania and Yara share $4,290 in the ratio 2:3. How much does Rania get? Translated to Python: ```python total = 4290 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` That prints 1716. Rania gets $1,716.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1716", "printed": "1716", "notation": null}
nlprog_det-setting-0055565
A shift runs from 8:50 AM to 1:14 PM. How long is it in minutes? Code: ```python start = 8 * 60 + 50 # 530 end = 13 * 60 + 14 # 794 print(end - start) ``` The run gives: 264 264 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0055566
On which weekday does May 20, 2023 fall? The Python version: ```python from datetime import date hearing = date(2023, 5, 20) # datetime.date(2023, 5, 20) print(hearing.strftime("%A")) ``` The script prints: Saturday May 20, 2023 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0055568
7 boxes hold 25 envelopes each. After 4 are handed out, how many are left? In Python: ```python boxes = 7 per_box = 25 given_away = 4 left = boxes * per_box - given_away # 171 print(left) ``` Executed, it shows: 171 171 envelopes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0055569
<|start|><|system|> You can call tools. Available tools: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_uni...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\...
nlprog_det
setting
original
null
deterministic
[]
[]
470
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0055570
894 files go into boxes of 25. How many boxes does that take? Here is a short program for it. ```python import math files = 894 per_box = 25 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` Output: 36 36 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0055572
How many meters are in 25.9 kilometers? Computation in Python: ```python km = 25.9 meters = km * 1000 # 25900.0 print(round(meters)) ``` The script prints 25900, as expected. That is 25,900 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "25900", "printed": "25900", "notation": null}
nlprog_det-setting-0055573
<|start|><|user|> A 18-month warranty starts on July 4, 2022. On what date does it end?<|eot|> <|assistant|> It expires on January 4, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18-month warranty starts on July 4, 2022. On what date does it end?" }, { "role": "assistant", "content": "It expires on January 4, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2024-01-04", "printed": "2024-01-04", "notation": null}
nlprog_det-setting-0055574
<|start|><|system|> Tools (call with JSON): {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "sandbox_python", "description": "Executes Python code and returns stdout...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"sandbox_python\",...
nlprog_det
setting
original
null
deterministic
[]
[]
331
{"gold": "851.00", "printed": "851.00", "notation": null}
nlprog_det-setting-0055575
3 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? We write it as a program: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") ``` Python prints 16800.00. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0055576
Bruna earns a 3% commission on $59,126 of sales. What is the commission? Python version: ```python sales = 59126 rate = 3 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Result — 1773.78 The commission is $1,773.78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1773.78", "printed": "1773.78", "notation": null}
nlprog_det-setting-0055577
<|start|><|system|> Tool definitions: [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "business_days", "description": "Count busin...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "2665.00", "printed": "2665.00", "notation": null}
nlprog_det-setting-0055578
Reza was born on September 19, 2010. How old is Reza on July 22, 2029? A Python solution: ```python from datetime import date born = date(2010, 9, 19) on = date(2029, 7, 22) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Console output: 18 Reza is 18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0055579
<|start|><|user|> A kettle costs $300. It is 15% off. What is the sale price?<|eot|> <|assistant|> ```python price = 300 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 255.0 print(f"{sale_price:.2f}") ``` It prints: 255.00 The sale price is $255.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A kettle costs $300. It is 15% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 300\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 255.0\nprint(f\"{sale_price:.2f}\")\n```\nIt prints: 255.00\n\nThe sale pri...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "255.00", "printed": "255.00", "notation": null}
nlprog_det-setting-0055580
<|start|><|user|> Shipping costs $8 plus $1.50 per pound. What does a 16-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $32.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $8 plus $1.50 per pound. What does a 16-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $32.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0055581
<|start|><|user|> How many weekdays (Monday to Friday) fall after November 4, 2028 up to and including December 5, 2028?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2028, 11, 4) end = date(2028, 12, 5) count = 0 for k in range(1, (end - start).days + 1): if (start ...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after November 4, 2028 up to and including December 5, 2028?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2028, 11, 4)\n end = date(2028, 12, 5)\n count = 0\n for...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0055582
<|start|><|user|> What is the total rent on a 18-month lease at $2,875 a month?<|eot|> <|assistant|> ```python monthly_rent = 2875 months = 18 total = monthly_rent * months # 51750 print(total) ``` Output of the run — 51750 The rent over the term is $51,750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $2,875 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2875\nmonths = 18\ntotal = monthly_rent * months # 51750\nprint(total)\n```\nOutput of the run — 51750\n\nThe rent over the term is $51,75...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0055584
Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) ``` Executing it gives 55.6. The margin is 55.6%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0055585
A storeroom has 491 headsets. The office uses 23 a day. How many are left after 5 days? Here is the program. ```python stock = 491 per_day = 23 days = 5 left = stock - per_day * days # 376 print(left) ``` Interpreter output: 376 376 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "376", "printed": "376", "notation": null}
nlprog_det-setting-0055586
<|start|><|user|> Nadia earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|> <|assistant|> ```python rate = 20.0 hours = 47 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 210.0 pay = regular + overtime # 1010.0 print(f"{pay:.2f}") ``` Interpreter ...
chat
[ { "role": "user", "content": "Nadia earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 47\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 210.0\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "1010.00", "printed": "1010.00", "notation": null}
nlprog_det-setting-0055587
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Straight-line d...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0055588
<|start|><|user|> At $29.37 an hour, what does 12 hours of work pay?<|eot|> <|assistant|> ```python rate = 29.37 hours = 12 earnings = rate * hours # 352.44 print(f"{earnings:.2f}") ``` (Printed: 352.44) That earns $352.44.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $29.37 an hour, what does 12 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 29.37\nhours = 12\nearnings = rate * hours # 352.44\nprint(f\"{earnings:.2f}\")\n```\n(Printed: 352.44)\n\nThat earns $352.44." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "352.44", "printed": "352.44", "notation": null}
nlprog_det-setting-0055589
<|start|><|user|> 69 of 100 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 69 total = 100 percent = present / total * 100 # 69.0 print(round(percent, 1)) ``` Executing it gives: 69.0 69.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "69 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 69\ntotal = 100\npercent = present / total * 100 # 69.0\nprint(round(percent, 1))\n```\nExecuting it gives: 69.0\n\n69.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "69.0", "printed": "69.0", "notation": null}
nlprog_det-setting-0055590
<|start|><|user|> How many 2-foot square tiles cover a 6 ft by 3 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 6 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` Out: 5 5 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 6 ft by 3 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 6\nwidth = 3\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 5\nprint(tiles)\n```\nOut: 5\n\n5 tiles are neede...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0055591
The building opened in 1998. How many years had passed by 2013? Here is a short program for it. ```python start_year = 1998 end_year = 2013 print(end_year - start_year) ``` (Program output: 15) 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0055592
Fuel for 450 miles at 30 mpg, with gas at $3.45/gallon: what is the cost? Fuel costs $51.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "51.75", "printed": "51.75", "notation": null}
nlprog_det-setting-0055593
<|start|><|system|> You help with homework problems.<|eot|> <|user|> An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 20.0 print(f...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate =...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0055594
<|start|><|user|> A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 48-page copy cost?<|eot|> <|assistant|> ```python pages = 48 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 34.0 print(f"{cost:.2f}") ``` That prints 34.00. The cop...
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 48-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 48\nbase = 10\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0055595
Someone born October 27, 2001 turns how old by June 17, 2022? Give the age in whole years. Zainab is 20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0055596
Attendance was 36 out of 40. Express it as a percent. One way, in code: present = 36 total = 40 percent = present / total * 100 print(round(percent, 1)) Result — 90.0 90.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0055597
18 clipboards cost $4 apiece. With 6% tax added, what is the total? The computation: ```python quantity = 18 unit_price = 4 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 6 / 100) # 76.32000000000001 print(f"{total:.2f}") ``` # result: 76.32 The invoice total is $76.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "76.32", "printed": "76.32", "notation": null}
nlprog_det-setting-0055598
Starting with 278 batteries and using 7 per day, how many remain after 13 days? Let's compute it with Python. ```python stock = 278 per_day = 7 days = 13 left = stock - per_day * days # 187 print(left) ``` Output of the run: 187 187 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0055599
<|start|><|user|> A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 27-page copy cost?<|eot|> <|assistant|> ```python pages = 27 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 19.25 print(f"{cost:.2f}") ``` The program prints 19.2...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 27-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 27\nbase = 15\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "19.25", "printed": "19.25", "notation": null}
nlprog_det-setting-0055600
Counting the first and last day, how many days are there from September 20, 2019 through October 12, 2019? Python does the arithmetic: ```python from datetime import date first = date(2019, 9, 20) # datetime.date(2019, 9, 20) last = date(2019, 10, 12) # datetime.date(2019, 10, 12) days = (last - first).days + 1 # 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0055601
With 16 rows of 18 chairs and 28 empty chairs, how many chairs are taken? Computing it: ```python rows = 16 per_row = 18 empty = 28 seated = rows * per_row - empty # 260 print(seated) ``` Execution result: 260 260 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0055602
How many units at $15 each (variable cost $10) cover $9,000 of fixed costs? Script: ```python import math fixed = 9000 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` Result: 1800 Break-even is 1800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0055603
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> At 1.5% a month (simple), what interest builds on $4,000 over 4 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "240.00", "printed": "240.00", "notation": null}