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-0073777
<|start|><|user|> What does $2,000 grow to in 3 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` Interpreter output: 2185.45 It is worth $2,185.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 3 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 2185.454\nprint(f\"{value:.2f}\")\n```\nInterpreter output...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0073778
<|start|><|user|> What does $1,000 grow to in 5 years at 4% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 4 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Out = 1216.65 The balance is $1,216.65.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 5 years at 4% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 4 / 100\nyears = 5\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nOut = 1216.65\n\nThe balance is $1,216...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1216.65", "printed": "1216.65", "notation": null}
nlprog_det-setting-0073779
If a 6-year limitations period starts on May 4, 2016, when does it end? The period expires on May 4, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2022-05-04", "printed": "2022-05-04", "notation": null}
nlprog_det-setting-0073780
A party has 30 days to respond to a motion served on March 11, 2021, with 3 days added because service was by mail. When is the response due? Here's the code. ```python from datetime import date, timedelta served = date(2021, 3, 11) # datetime.date(2021, 3, 11) response_days = 30 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2021-04-13", "printed": "2021-04-13", "notation": null}
nlprog_det-setting-0073781
<|start|><|user|> An invoice lists 18 labels at $7 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 18 unit_price = 7 subtotal = quantity * unit_price # 126 total = subtotal * (1 + 6 / 100) # 133.56 print(f"{total:.2f}") ``` (Out: 133.56) The total with tax is $133.56.<|e...
chat
[ { "role": "user", "content": "An invoice lists 18 labels at $7 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 18\nunit_price = 7\nsubtotal = quantity * unit_price # 126\ntotal = subtotal * (1 + 6 / 100) # 133.56\nprint(f\"{total...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "133.56", "printed": "133.56", "notation": null}
nlprog_det-setting-0073782
If a 4-year limitations period starts on March 11, 2016, when does it end? Let's compute it with Python. ```python from datetime import date accrued = date(2016, 3, 11) # datetime.date(2016, 3, 11) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 3, 11) print(expires.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2020-03-11", "printed": "2020-03-11", "notation": null}
nlprog_det-setting-0073783
Fines run at $25 per day up to a maximum of $1,000. How much after 27 days? Python makes this quick: per_day = 25 days = 27 cap = 1000 fine = min(per_day * days, cap) # 675 print(fine) Shell output: 675 The fine is $675.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0073784
A quorum is 1/3 of the 29 members, rounded up. How many members make a quorum? Python, step by step: ```python import math members = 29 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` Console: 10 That is 10 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0073785
Counting only Monday through Friday, how many business days are there after September 11, 2025 through September 23, 2025? Script: ```python from datetime import date, timedelta start = date(2025, 9, 11) end = date(2025, 9, 23) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0073786
Each of Zoe's bike rides burns 300 calories. How many calories over 3 bike rides? A short script: ```python per_session = 300 sessions = 3 total = per_session * sessions # 900 print(total) ``` The run gives: 900 That burns 900 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0073787
An attorney bills 7 hours at $410 per hour. What is the bill? The bill is $2,870.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2870.00", "printed": "2870.00", "notation": null}
nlprog_det-setting-0073788
<|start|><|user|> A penalty of $25 a day accrues, capped at $2,500. What is owed after 29 days?<|eot|> <|assistant|> ```python per_day = 25 days = 29 cap = 2500 fine = min(per_day * days, cap) # 725 print(fine) ``` Out = 725 The fine is $725.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 29 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 29\ncap = 2500\nfine = min(per_day * days, cap) # 725\nprint(fine)\n```\nOut = 725\n\nThe fine is $725." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "725", "printed": "725", "notation": null}
nlprog_det-setting-0073789
A trial runs from May 21, 2027 to June 5, 2027, counting both days. How many calendar days is that? The computation: ```python from datetime import date first = date(2027, 5, 21) # datetime.date(2027, 5, 21) last = date(2027, 6, 5) # datetime.date(2027, 6, 5) days = (last - first).days + 1 # 16 print(days) ``` (std...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0073790
<|start|><|system|> Tools (call with JSON): {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Split $...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "1185", "printed": "1185", "notation": null}
nlprog_det-setting-0073791
Each storage box holds 15 files. How many boxes are needed for 619 files? We write it as a program: ```python import math files = 619 per_box = 15 boxes = math.ceil(files / per_box) # 42 print(boxes) ``` Out — 42 42 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0073792
<|start|><|user|> What is 5 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Running this gives: 41 It equals 41 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 5 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nRunning this gives: 41\n\nIt equals 41 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0073794
A customer buys 6 tape rolls at $27 each, 4 file boxes at $29 each and pays with $300. How much change is due? A few lines of Python do it: ```python items = [(6, 27), (4, 29)] total = sum(q * p for q, p in items) paid = 300 change = paid - total print(change) ``` Running this gives: 22 The change is $22.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0073796
<|start|><|user|> What is the total rent on a 36-month lease at $1,640 a month?<|eot|> <|assistant|> The rent over the term is $59,040.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 36-month lease at $1,640 a month?" }, { "role": "assistant", "content": "The rent over the term is $59,040." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0073797
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "18.46", "printed": "18.46", "notation": null}
nlprog_det-setting-0073798
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> The landlord deducts $150 fro...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "850", "printed": "850", "notation": null}
nlprog_det-setting-0073800
Straight-line depreciation: cost $45,000, salvage $3,000, 3 years. How much per year? The computation: ```python cost = 45000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 14000.0 print(f"{per_year:.2f}") ``` Shell output — 14000.00 Depreciation is $14,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0073801
<|start|><|system|> Tools you may use: [{"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_unit"]}}, {"name": "i...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0073802
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "10277.70", "printed": "10277.70", "notation": null}
nlprog_det-setting-0073803
A measure needs at least 60% of 183 votes. How many votes is that, rounded up? A Python solution: ```python import math voters = 183 needed = math.ceil(voters * 60 / 100) # 110 print(needed) ``` This prints: 110 110 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0073804
<|start|><|user|> A quorum is 2/3 of the 11 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> That is 8 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 11 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "That is 8 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0073805
110 copies of a 58-page packet are printed at $0.05 per page. What is the cost? One way, in code: ```python pages = 58 copies = 110 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 319.0 print(f"{cost:.2f}") ``` It prints 319.00. Printing costs $319.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "319.00", "printed": "319.00", "notation": null}
nlprog_det-setting-0073806
<|start|><|user|> Goods bought on September 9, 2025 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 9, 9) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on September 9, 2025 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 9, 9)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2026-03-09", "printed": "2026-03-09", "notation": null}
nlprog_det-setting-0073808
<|start|><|system|> Tools (call with JSON): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calc\", \"description\": \"Evaluates...
nlprog_det
setting
original
null
deterministic
[]
[]
356
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0073809
<|start|><|user|> A penalty of $25 a day accrues, capped at $2,500. What is owed after 35 days?<|eot|> <|assistant|> ```python per_day = 25 days = 35 cap = 2500 fine = min(per_day * days, cap) # 875 print(fine) ``` stdout: 875 The fine is $875.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 35 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 35\ncap = 2500\nfine = min(per_day * days, cap) # 875\nprint(fine)\n```\nstdout: 875\n\nThe fine is $875." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "875", "printed": "875", "notation": null}
nlprog_det-setting-0073810
10.5 hours of work at $410 an hour: what is the total charge? One way, in code: ```python hours = 10.5 rate = 410 bill = hours * rate # 4305.0 print(f"{bill:.2f}") ``` Running this gives 4305.00. That comes to $4,305.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4305.00", "printed": "4305.00", "notation": null}
nlprog_det-setting-0073811
A 75-mile drive at a steady 50 mph takes how many minutes? ```python distance = 75 speed = 50 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` Interpreter output — 90 The trip takes 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0073812
<|start|><|user|> Prorate $1,200 of monthly rent for 21 days of a 30-day month.<|eot|> <|assistant|> rent = 1200 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 840.0 print(f"{prorated:.2f}") (Out: 840.00) The prorated rent is $840.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 21 days of a 30-day month." }, { "role": "assistant", "content": " rent = 1200\n days_in_month = 30\n days_occupied = 21\n prorated = rent * days_occupied / days_in_month # 840.0\n print(f\"{prorated:.2f}\")\n(Out: ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "840.00", "printed": "840.00", "notation": null}
nlprog_det-setting-0073813
At $28.79 an hour, what does 16 hours of work pay? Python makes this quick: ```python rate = 28.79 hours = 16 earnings = rate * hours # 460.64 print(f"{earnings:.2f}") ``` Executed, it shows 460.64. That earns $460.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "460.64", "printed": "460.64", "notation": null}
nlprog_det-setting-0073814
Find the mean of these test scores: 87, 96, 97, 78 and 72. Python makes this quick: ```python scores = [87, 96, 97, 78, 72] average = sum(scores) // len(scores) # 86 print(average) ``` (Console output: 86) The average score is 86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0073815
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Find the mean of these test scores: 93, 84, 90, 62, 76 and 57.<|eot|> <|assistant|> ```python scores = [93, 84, 90, 62, 76, 57] average = sum(scores) // len(scores) # 77 print(average) ``` # program output: 77 The average score is 77.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Find the mean of these test scores: 93, 84, 90, 62, 76 and 57." }, { "role": "assistant", "content": "```python\nscores = [93, 84, 90, 62, 76, 57]\naverage = sum(scores) // len(scores) # 77\np...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0073816
<|start|><|user|> A customer buys 3 paper reams at $8 each, 6 cables at $19 each and pays with $150. How much change is due?<|eot|> <|assistant|> The change is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 3 paper reams at $8 each, 6 cables at $19 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "The change is $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0073817
<|start|><|user|> 6 boxes hold 12 notebooks each. After 12 are handed out, how many are left?<|eot|> <|assistant|> boxes = 6 per_box = 12 given_away = 12 left = boxes * per_box - given_away # 60 print(left) # run result: 60 60 notebooks are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 boxes hold 12 notebooks each. After 12 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 6\n per_box = 12\n given_away = 12\n left = boxes * per_box - given_away # 60\n print(left)\n# run result: 60\n\n60 notebooks ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0073818
A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons? Here is a short program for it. ```python base = 15 rate = 5.1 used = 9 free = 0 bill = base + rate * max(0, used - free) # 60.9 print(f"{bill:.2f}") ``` # console output: 60.90 $60.90 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "60.90", "printed": "60.90", "notation": null}
nlprog_det-setting-0073819
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many meters are in 11 kilometers?<|eot|> <|assistant|> That is 11,000 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many meters are in 11 kilometers?" }, { "role": "assistant", "content": "That is 11,000 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "11000", "printed": "11000", "notation": null}
nlprog_det-setting-0073820
<|start|><|user|> Someone works 24 hours at $21.02 per hour. What are the earnings?<|eot|> <|assistant|> The pay is $504.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 24 hours at $21.02 per hour. What are the earnings?" }, { "role": "assistant", "content": "The pay is $504.48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "504.48", "printed": "504.48", "notation": null}
nlprog_det-setting-0073821
<|start|><|user|> After a 25% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 2 # 11250.0 print(f"{per_client:.2f}") ...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0073822
How much sales tax is charged on a $429.33 purchase at 8%? One way, in code: ```python price = 429.33 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 34.3464 print(f"{tax:.2f}") ``` Printed: 34.35 The tax is $34.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "34.35", "printed": "34.35", "notation": null}
nlprog_det-setting-0073823
Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost? Script: ```python rate = 2 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 14 print(cost) ``` (Execution result: 14) The charge is $14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0073824
After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 print(f"{per_client:.2f}") ``` Python prints 8400.00. Each clien...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0073825
A quorum is 3/5 of the 60 members, rounded up. How many members make a quorum? Let the code do the arithmetic: ```python import math members = 60 quorum = math.ceil(members * 3 / 5) # 36 print(quorum) ``` Out = 36 36 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0073826
A 17 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Translated to Python: ```python import math length = 17 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 255 print(tiles) ``` Run it and it prints 255. It takes 255 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0073827
<|start|><|system|> Functions: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> After a 25% fee is taken from a $48,000...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0073828
<|start|><|user|> $2,000 is invested at 4% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 4 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Execution prints: 2433.31 The balance is $2,433.31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 4% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 4 / 100\nyears = 5\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nExecution prints: 2433.3...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2433.31", "printed": "2433.31", "notation": null}
nlprog_det-setting-0073829
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> What day of the ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0073830
<|start|><|user|> A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 40-page copy cost?<|eot|> <|assistant|> ```python pages = 40 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 20.0 print(f"{cost:.2f}") ``` Run result: 20.00 The t...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 40-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 40\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0073831
Sara was born on October 3, 2007. How old is Sara on May 7, 2021? The age is 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0073832
A recipe for 6 people uses 240 grams of rice. How many grams are needed for 2 people? Here's the code. ```python grams = 240 serves = 6 needed_for = 2 scaled = grams * needed_for // serves # 80 print(scaled) ``` The program outputs 80. Use 80 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0073833
Leon earns a 10% commission on $44,361 of sales. What is the commission? Leon earns $4,436.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "4436.10", "printed": "4436.10", "notation": null}
nlprog_det-setting-0073834
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Each storage box holds 12 files. How many boxes are needed for 660 files?<|eot|> <|assistant|> ```python import math files = 660 per_box = 12 boxes = math.ceil(files / per_box) print(boxes) ``` (Out: 55) It takes 55 boxes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 660 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 660\nper_box = 12\nboxes = math.ceil(files / per_bo...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0073835
Under a 33% contingency agreement, what fee is owed on a $40,000 award? The fee is $13,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0073836
Which is cheaper per unit: 8 for $11.26 (A) or 15 for $31.81 (B)? The Python version: pack_a = 11.26 / 8 # 1.4075 pack_b = 31.81 / 15 # 2.1206666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) Printed result — A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0073837
<|start|><|user|> A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 41-page copy cost?<|eot|> <|assistant|> The copy costs $18.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 41-page copy cost?" }, { "role": "assistant", "content": "The copy costs $18.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "18.10", "printed": "18.10", "notation": null}
nlprog_det-setting-0073838
<|start|><|user|> Papers were served by mail on November 27, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 11, 27) response_days = 14 mail_days = 3 due = served + timedelta(days=...
chat
[ { "role": "user", "content": "Papers were served by mail on November 27, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 11, 27)\nrespon...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-12-14", "printed": "2028-12-14", "notation": null}
nlprog_det-setting-0073839
<|start|><|user|> With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) Output: 1.4 The mar...
chat
[ { "role": "user", "content": "With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 36500\n costs = 36000\n profit = revenue - costs # 500\n margin = profit / revenue * 100 # 1.369863...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0073840
<|start|><|user|> A $2,000 security deposit has deductions of $85, $120 and $200. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [85, 120, 200] refund = deposit - sum(deductions) # 1595 print(refund) ``` Shell output — 1595 The refund is $1,595.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $85, $120 and $200. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [85, 120, 200]\nrefund = deposit - sum(deductions) # 1595\nprint(refund)\n```\nShell output — 1595\n...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1595", "printed": "1595", "notation": null}
nlprog_det-setting-0073841
195 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? Python code: ```python total = 195 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Execution prints: 65 each, 0 left over The answer: 65 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "65 each, 0 left over", "printed": "65 each, 0 left over", "notation": null}
nlprog_det-setting-0073842
<|start|><|user|> A room is 22 feet by 15 feet. Flooring costs $8 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> The flooring costs $2,640.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A room is 22 feet by 15 feet. Flooring costs $8 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "The flooring costs $2,640." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2640", "printed": "2640", "notation": null}
nlprog_det-setting-0073843
The building opened in 1991. How many years had passed by 2027? The Python version: start_year = 1991 end_year = 2027 print(end_year - start_year) It prints 36, as expected. 36 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0073844
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(m...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 40000\ncosts = 36000\...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0073845
How many whole days and leftover hours are in 273 hours? In code: hours = 273 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") It prints 11 days and 9 hours. 273 hours is 11 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "11 days and 9 hours", "printed": "11 days and 9 hours", "notation": null}
nlprog_det-setting-0073846
Sales went from 200 to 190. What is the percent change? ```python old = 200 new = 190 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` (Program output: -5) It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0073847
Bilal earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week? One way, in code: ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") ``` Output of the run: 1037.50 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0073848
<|start|><|user|> Monthly: $25. Annual: $276. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` The run gives 24. $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $276. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe run gives 24.\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0073849
A shift starts at 11:45 AM and lasts 135 minutes. When does it end? It ends at 2:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2:00 PM", "printed": "2:00 PM", "notation": null}
nlprog_det-setting-0073850
4 books come back 26 days late, at $0.20 a day each. What is the fine? The fine is $20.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "20.80", "printed": "20.80", "notation": null}
nlprog_det-setting-0073851
<|start|><|user|> If a 90-minute hearing begins at 10:30 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 10 * 60 + 30 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It prints: 12:00 PM The hearing finishes at 12:00 PM....
chat
[ { "role": "user", "content": "If a 90-minute hearing begins at 10:30 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 30\nend = start + 90\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": "12:00 PM", "printed": "12:00 PM", "notation": null}
nlprog_det-setting-0073852
How much is a $59 daily meal allowance over 9 days? Coded up: ```python days = 9 meal_rate = 59 total = days * meal_rate # 531 print(total) ``` Run result — 531 That comes to $531.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "531", "printed": "531", "notation": null}
nlprog_det-setting-0073853
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
426
{"gold": "1700", "printed": "1700", "notation": null}
nlprog_det-setting-0073854
2 friends split a $120 bill plus a 18% tip evenly. How much does each pay? Written as code: ```python bill = 120 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 70.8 print(f"{each:.2f}") ``` This prints 70.80, as expected. The share is $70.80 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0073855
How much sales tax is charged on a $199.12 purchase at 9%? As Python: ```python price = 199.12 tax_rate = 9 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Run result: 17.92 The tax is $17.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "17.92", "printed": "17.92", "notation": null}
nlprog_det-setting-0073856
<|start|><|user|> At $0.70 per mile, what is the reimbursement for 577 miles?<|eot|> <|assistant|> ```python miles = 577 rate = 0.7 reimbursement = miles * rate # 403.9 print(f"{reimbursement:.2f}") ``` Out: 403.90 Hugo is owed $403.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 577 miles?" }, { "role": "assistant", "content": "```python\nmiles = 577\nrate = 0.7\nreimbursement = miles * rate # 403.9\nprint(f\"{reimbursement:.2f}\")\n```\nOut: 403.90\n\nHugo is owed $403.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "403.90", "printed": "403.90", "notation": null}
nlprog_det-setting-0073857
<|start|><|user|> Buying 2 binders at $17 each, 3 batteries at $8 each, 1 flash drives at $3 each, 4 mugs at $21 each, someone hands over $150. What change comes back?<|eot|> <|assistant|> The change is $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 2 binders at $17 each, 3 batteries at $8 each, 1 flash drives at $3 each, 4 mugs at $21 each, someone hands over $150. What change comes back?" }, { "role": "assistant", "content": "The change is $5." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073858
<|start|><|system|> You help with homework problems.<|eot|> <|user|> At 1% a month (simple), what interest builds on $1,000 over 3 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 30.0 print(f"{interest:.2f}") ``` It outputs: 3...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "At 1% a month (simple), what interest builds on $1,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninter...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0073859
<|start|><|system|> Tool definitions: {"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Sofia lends $1,000 at 6% simple interest per y...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0073860
Convert 895 GBP to USD at 1 GBP = 1.12 USD. Python code: ```python amount = 895 rate = 1.12 converted = amount * rate # 1002.4000000000001 print(f"{converted:.2f}") ``` # program output: 1002.40 That is 1,002.40 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1002.40", "printed": "1002.40", "notation": null}
nlprog_det-setting-0073861
14 desk lamps cost $3 apiece. With 5% tax added, what is the total? ```python quantity = 14 unit_price = 3 subtotal = quantity * unit_price # 42 total = subtotal * (1 + 5 / 100) # 44.1 print(f"{total:.2f}") ``` Console output — 44.10 The invoice total is $44.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "44.10", "printed": "44.10", "notation": null}
nlprog_det-setting-0073862
<|start|><|user|> Someone works 30 hours at $31.82 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 31.82 hours = 30 earnings = rate * hours # 954.6 print(f"{earnings:.2f}") ``` stdout = 954.60 That earns $954.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $31.82 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 31.82\nhours = 30\nearnings = rate * hours # 954.6\nprint(f\"{earnings:.2f}\")\n```\nstdout = 954.60\n\nThat earns $954.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "954.60", "printed": "954.60", "notation": null}
nlprog_det-setting-0073863
<|start|><|user|> Yoko earns a 10% commission on $15,087 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 15087 rate = 10 / 100 # 0.1 commission = sales * rate # 1508.7 print(f"{commission:.2f}") ``` Out: 1508.70 Yoko earns $1,508.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yoko earns a 10% commission on $15,087 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 15087\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 1508.7\nprint(f\"{commission:.2f}\")\n```\nOut:\n1508.70\n\nYoko earns $1,5...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1508.70", "printed": "1508.70", "notation": null}
nlprog_det-setting-0073864
Fixed costs are $4,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? The computation: ```python import math fixed = 4000 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` Shell output: 1000 1000 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0073865
Fines run at $250 per day up to a maximum of $2,500. How much after 15 days? The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0073867
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Meals are $74 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> days = 4 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Meals are $74 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": " days = 4\n meal_rate = 74\n lodging...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "626", "printed": "626", "notation": null}
nlprog_det-setting-0073868
Attendance was 16 out of 20. Express it as a percent. As Python: ```python present = 16 total = 20 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` What it prints: 80.0 80.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0073869
<|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": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>...
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\": {\"script\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "435", "printed": "435", "notation": null}
nlprog_det-setting-0073870
1 books come back 15 days late, at $0.10 a day each. What is the fine? per_day = 0.1 days_late = 15 books = 1 fine = per_day * days_late * books # 1.5 print(f"{fine:.2f}") Executing it gives: 1.50 The fine is $1.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1.50", "printed": "1.50", "notation": null}
nlprog_det-setting-0073871
Fines run at $25 per day up to a maximum of $1,000. How much after 27 days? Written as code: ```python per_day = 25 days = 27 cap = 1000 fine = min(per_day * days, cap) # 675 print(fine) ``` Running this gives 675. $675 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0073872
How many minutes pass from 10:19 AM to 2:04 PM on the same day? Written as code: ```python start = 10 * 60 + 19 end = 14 * 60 + 4 print(end - start) ``` Output = 225 225 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0073873
<|start|><|system|> Give the answer first.<|eot|> <|user|> At 40 miles per hour, how many minutes does a 50-mile trip take?<|eot|> <|assistant|> ```python distance = 50 speed = 40 minutes = distance / speed * 60 # 75.0 print(round(minutes)) ``` Interpreter output — 75 75 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "At 40 miles per hour, how many minutes does a 50-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 50\nspeed = 40\nminutes = distance / speed * 60 # 75.0\nprint(round(...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0073874
Monthly rent is $2,400. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent? The tenant owes $640.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "640.00", "printed": "640.00", "notation": null}
nlprog_det-setting-0073875
<|start|><|user|> The landlord deducts $45 and $45 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [45, 45] refund = deposit - sum(deductions) # 910 print(refund) ``` Run it and it prints 910. $910 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $45 and $45 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [45, 45]\nrefund = deposit - sum(deductions) # 910\nprint(refund)\n```\nRun it and it prints 910.\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "910", "printed": "910", "notation": null}
nlprog_det-setting-0073876
Joelle lends $20,000 at 5% simple interest per year for 3 years. How much interest is earned? principal = 20000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 3000.0 print(f"{interest:.2f}") Output: 3000.00 The interest is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0073877
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "940", "printed": "940", "notation": null}
nlprog_det-setting-0073878
How many whole days and leftover hours are in 340 hours? Python does the arithmetic: ```python hours = 340 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed: 14 days and 4 hours 340 hours is 14 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14 days and 4 hours", "printed": "14 days and 4 hours", "notation": null}
nlprog_det-setting-0073879
The paralegal logged 2.5 hours at a rate of $180. How much is billed? We can compute it in Python. hours = 2.5 rate = 180 bill = hours * rate # 450.0 print(f"{bill:.2f}") Run output — 450.00 That comes to $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0073880
Carmen was born on October 26, 1969. How old is Carmen on March 6, 2027? As a program: from datetime import date born = date(1969, 10, 26) # datetime.date(1969, 10, 26) on = date(2027, 3, 6) # datetime.date(2027, 3, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 57 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0073881
Monthly: $12. Annual: $114. What is saved per year by paying annually? Here is a short program for it. ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) ``` Executing it gives: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}