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-0083735
Prorate $1,500 of monthly rent for 18 days of a 31-day month. As Python: ```python rent = 1500 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 870.9677419354839 print(f"{prorated:.2f}") ``` It prints 870.97. The prorated rent is $870.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "870.97", "printed": "870.97", "notation": null}
nlprog_det-setting-0083737
A client paid a $7,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? Python, step by step: ```python retainer = 7500 hours = 6 rate = 150 left = retainer - hours * rate # 6600 print(left) ``` Run result — 6600 The remaining balance is $6,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6600", "printed": "6600", "notation": null}
nlprog_det-setting-0083738
<|start|><|user|> The landlord deducts $85 and $75 from a $1,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [85, 75] refund = deposit - sum(deductions) # 1340 print(refund) ``` It prints 1340, as expected. The refund is $1,340.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $85 and $75 from a $1,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [85, 75]\nrefund = deposit - sum(deductions) # 1340\nprint(refund)\n```\nIt prints 1340, as expect...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1340", "printed": "1340", "notation": null}
nlprog_det-setting-0083739
A client paid a $2,500 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left? In code: ```python retainer = 2500 hours = 10 rate = 200 left = retainer - hours * rate # 500 print(left) ``` Printed result: 500 $500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0083740
<|start|><|system|> Functions: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather", "description": "Get the weathe...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}},...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0083741
Sami was born on August 10, 1953. How old is Sami on May 16, 2022? A few lines of Python do it: ```python from datetime import date born = date(1953, 8, 10) # datetime.date(1953, 8, 10) on = date(2022, 5, 16) # datetime.date(2022, 5, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 68...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0083742
<|start|><|user|> A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` # run result: 3960.00 The fee is $3,960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 3960.0\nprint(f\"{fee:.2f}\")\n```\n# run result: 3960.00\n\nThe fee is $3,960.00...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0083743
What simple interest does $1,000 earn at 3% a year over 4 years? The Python version: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 4 interest = principal * rate * years # 120.0 print(f"{interest:.2f}") ``` The script prints: 120.00 It earns $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0083744
<|start|><|user|> 2 friends split a $210 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 123.89999999999999 print(f"{each:.2f}") ``` This prints: 123.90 Each person pays $123.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $210 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 2\neach = bill * (1 + tip_rate) / people # 123.89999999999999\nprint(f\"{each:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "123.90", "printed": "123.90", "notation": null}
nlprog_det-setting-0083745
Filing fees are $405 per document. What do 13 filings cost? Program: ```python fee = 405 filings = 13 total = fee * filings # 5265 print(total) ``` On running, it outputs 5265. The filings cost $5,265 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "5265", "printed": "5265", "notation": null}
nlprog_det-setting-0083746
<|start|><|user|> Starting with 1411 staplers and using 6 per day, how many remain after 4 days?<|eot|> <|assistant|> ```python stock = 1411 per_day = 6 days = 4 left = stock - per_day * days # 1387 print(left) ``` (Program output: 1387) 1387 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1411 staplers and using 6 per day, how many remain after 4 days?" }, { "role": "assistant", "content": "```python\nstock = 1411\nper_day = 6\ndays = 4\nleft = stock - per_day * days # 1387\nprint(left)\n```\n(Program output: 1387)\n\n1387 remain." }...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1387", "printed": "1387", "notation": null}
nlprog_det-setting-0083747
With 40% off, what does a $80 chair cost? The Python version: ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Run it and it prints 48.00. It costs $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0083748
<|start|><|system|> You have access to these functions: [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filin...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "34.30", "printed": "34.30", "notation": null}
nlprog_det-setting-0083749
Rent of $1,500 goes up 3%. What is the new rent? The new rent is $1,545.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1545.00", "printed": "1545.00", "notation": null}
nlprog_det-setting-0083750
A measure needs at least 67% of 14 votes. How many votes is that, rounded up? The program: ```python import math voters = 14 needed = math.ceil(voters * 67 / 100) # 10 print(needed) ``` (Result: 10) 10 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0083751
With 10% off, what does a $300 bicycle helmet cost? Here's the code. ```python price = 300 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 270.0 print(f"{sale_price:.2f}") ``` The printout reads: 270.00 It costs $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0083752
<|start|><|user|> Scale 150 g of oats from 4 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 450 print(scaled) ``` When run, it prints 450. Use 450 g of oats.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of oats from 4 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 12\nscaled = grams * needed_for // serves # 450\nprint(scaled)\n```\nWhen run, it prints 450.\n\nUse 450 g of oats." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0083753
A client paid a $2,500 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left? The remaining balance is $1,150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1150", "printed": "1150", "notation": null}
nlprog_det-setting-0083754
<|start|><|user|> What is the total rent on a 36-month lease at $1,200 a month?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 36 total = monthly_rent * months # 43200 print(total) ``` Execution result: 43200 The rent over the term is $43,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 36-month lease at $1,200 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 36\ntotal = monthly_rent * months # 43200\nprint(total)\n```\nExecution result: 43200\n\nThe rent over the term is $43,200....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "43200", "printed": "43200", "notation": null}
nlprog_det-setting-0083755
A 240-mile drive at a steady 40 mph takes how many minutes? In Python: ```python distance = 240 speed = 40 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Running this gives: 360 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0083756
<|start|><|system|> Tools you may use: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> What is a 15% tip on a $211.95 bill?<|e...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"py_exec\", \"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
[]
[]
214
{"gold": "31.79", "printed": "31.79", "notation": null}
nlprog_det-setting-0083757
15 of 20 members attended. What percent attended? Computing it: ```python present = 15 total = 20 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` # execution result: 75.0 Attendance was 75.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0083758
Counting the first and last day, how many days are there from December 9, 2020 through January 1, 2021? In code: ```python from datetime import date first = date(2020, 12, 9) # datetime.date(2020, 12, 9) last = date(2021, 1, 1) # datetime.date(2021, 1, 1) days = (last - first).days + 1 # 24 print(days) ``` Python p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0083759
Yoko's scores were 97, 65, 100, 50, 88, 84 and 90. What is the average score? scores = [97, 65, 100, 50, 88, 84, 90] average = sum(scores) // len(scores) # 82 print(average) # result: 82 The mean is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0083760
Shipping costs $8 plus $1.20 per pound. What does a 21-pound parcel cost to ship? The charge is $33.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "33.20", "printed": "33.20", "notation": null}
nlprog_det-setting-0083761
<|start|><|user|> Which is cheaper per unit: 6 for $13.14 (A) or 20 for $7.32 (B)?<|eot|> <|assistant|> Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $13.14 (A) or 20 for $7.32 (B)?" }, { "role": "assistant", "content": "Pack B is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0083762
Beatriz buys 9 boxes of 6 headsets each and gives away 2 headsets. How many headsets are left? We write it as a program: ```python boxes = 9 per_box = 6 given_away = 2 left = boxes * per_box - given_away # 52 print(left) ``` The script prints 52, as expected. That leaves 52 headsets.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0083763
<|start|><|user|> A 8-day trip pays $74 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> The allowance is $1,572.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8-day trip pays $74 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "The allowance is $1,572." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "1572", "printed": "1572", "notation": null}
nlprog_det-setting-0083764
<|start|><|user|> At $0.65 per mile, what is the reimbursement for 406 miles?<|eot|> <|assistant|> The reimbursement is $263.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.65 per mile, what is the reimbursement for 406 miles?" }, { "role": "assistant", "content": "The reimbursement is $263.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "263.90", "printed": "263.90", "notation": null}
nlprog_det-setting-0083765
Convert 61.1 km to meters. A short script: ```python km = 61.1 meters = km * 1000 # 61100.0 print(round(meters)) ``` Interpreter output: 61100 61,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "61100", "printed": "61100", "notation": null}
nlprog_det-setting-0083766
Nadia earns a 6% commission on $111,418 of sales. What is the commission? Set it up in Python: ```python sales = 111418 rate = 6 / 100 # 0.06 commission = sales * rate # 6685.08 print(f"{commission:.2f}") ``` # out: 6685.08 Nadia earns $6,685.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "6685.08", "printed": "6685.08", "notation": null}
nlprog_det-setting-0083767
A 14-day notice period begins on April 4, 2026. On what date does it end? Here is a short program for it. from datetime import date, timedelta start = date(2026, 4, 4) # datetime.date(2026, 4, 4) end = start + timedelta(days=14) # datetime.date(2026, 4, 18) print(end.isoformat()) The program outputs ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2026-04-18", "printed": "2026-04-18", "notation": null}
nlprog_det-setting-0083768
A clerk's office charges $150 for each filing. Pilar submits 18 filings. What is the total fee? We can compute it in Python. fee = 150 filings = 18 total = fee * filings # 2700 print(total) Interpreter output: 2700 $2,700 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2700", "printed": "2700", "notation": null}
nlprog_det-setting-0083769
<|start|><|user|> A trial runs from October 10, 2019 to October 25, 2019, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 10, 10) # datetime.date(2019, 10, 10) last = date(2019, 10, 25) # datetime.date(2019, 10, 25) days = (last - first)....
chat
[ { "role": "user", "content": "A trial runs from October 10, 2019 to October 25, 2019, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 10, 10) # datetime.date(2019, 10, 10)\nlast = date(2019, 10, ...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0083770
A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 180-mile trip? The trip uses $27.54 of gas.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "27.54", "printed": "27.54", "notation": null}
nlprog_det-setting-0083771
<|start|><|user|> With 24 rows of 21 chairs and 11 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 493 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 24 rows of 21 chairs and 11 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "493 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "493", "printed": "493", "notation": null}
nlprog_det-setting-0083772
With 22 rows of 22 chairs and 37 empty chairs, how many chairs are taken? 447 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "447", "printed": "447", "notation": null}
nlprog_det-setting-0083773
At an exchange rate of 1.12 CAD per USD, how many CAD is 1,751 USD? Program: ```python amount = 1751 rate = 1.12 converted = amount * rate # 1961.1200000000001 print(f"{converted:.2f}") ``` Python prints 1961.12, as expected. That is 1,961.12 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1961.12", "printed": "1961.12", "notation": null}
nlprog_det-setting-0083774
Of a $8,000 budget, $1,800 has been spent. What percent is that? Here is a short program for it. budget = 8000 spent = 1800 percent = spent / budget * 100 # 22.5 print(round(percent, 1)) # printed: 22.5 22.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "22.5", "printed": "22.5", "notation": null}
nlprog_det-setting-0083775
Buying 2 desk lamps at $13 each, 5 tape rolls at $27 each, 1 cables at $11 each, 4 headsets at $15 each, someone hands over $250. What change comes back? Program: ```python items = [(2, 13), (5, 27), (1, 11), (4, 15)] total = sum(q * p for q, p in items) # 232 paid = 250 change = paid - total # 18 print(change) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0083776
<|start|><|system|> You may call the tools below. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "description": "A Python ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
311
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0083777
Rafael and Yoko share $368 in the ratio 3:5. How much does Rafael get? ```python total = 368 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 138 print(share_a) ``` Output = 138 Rafael's share is $138.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0083778
A shift runs from 9:24 AM to 10:06 AM. How long is it in minutes? Script: ```python start = 9 * 60 + 24 # 564 end = 10 * 60 + 6 # 606 print(end - start) ``` Printed: 42 It is 42 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0083779
26 headsets cost $3 apiece. With 8% tax added, what is the total? We can compute it in Python. ```python quantity = 26 unit_price = 3 subtotal = quantity * unit_price # 78 total = subtotal * (1 + 8 / 100) # 84.24000000000001 print(f"{total:.2f}") ``` Run output: 84.24 The total with tax is $84.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "84.24", "printed": "84.24", "notation": null}
nlprog_det-setting-0083780
<|start|><|user|> Convert 5 h 43 min (the length of a deposition) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 43 total_minutes = hours * 60 + minutes # 343 print(total_minutes) ``` # run result: 343 The deposition lasted 343 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 43 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 43\ntotal_minutes = hours * 60 + minutes # 343\nprint(total_minutes)\n```\n# run result: 343\n\nThe deposition lasted 343 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "343", "printed": "343", "notation": null}
nlprog_det-setting-0083781
Convert 2 h 11 min (the length of a training session) to minutes. Python code: ```python hours = 2 minutes = 11 total_minutes = hours * 60 + minutes # 131 print(total_minutes) ``` Python prints: 131 The training session lasted 131 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "131", "printed": "131", "notation": null}
nlprog_det-setting-0083783
One can of paint covers 350 square feet. How many cans are needed for 401 square feet of wall? Computation in Python: import math area = 401 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) Execution result: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0083784
<|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) ``` Executing it gives 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```\nExecuting it gives 50400.\n\nThe rent over the term is $50,40...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0083785
How many whole days and leftover hours are in 76 hours? Python: ```python hours = 76 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Execution prints 3 days and 4 hours. That is 3 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "3 days and 4 hours", "printed": "3 days and 4 hours", "notation": null}
nlprog_det-setting-0083786
Diego earns a 3% commission on $95,995 of sales. What is the commission? Script: ```python sales = 95995 rate = 3 / 100 # 0.03 commission = sales * rate # 2879.85 print(f"{commission:.2f}") ``` Execution result: 2879.85 The commission is $2,879.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2879.85", "printed": "2879.85", "notation": null}
nlprog_det-setting-0083787
Copies cost $5 plus $0.10 for each page beyond 10. How much for 72 pages? The copy costs $11.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "11.20", "printed": "11.20", "notation": null}
nlprog_det-setting-0083788
If a 25-minute hearing begins at 8:40 AM, what time does it finish? Coded up: ```python start = 8 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Console output — 9:05 AM The hearing finishes at 9:05 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9:05 AM", "printed": "9:05 AM", "notation": null}
nlprog_det-setting-0083789
Walls total 1023 sq ft and each can covers 400 sq ft. How many cans should be bought? ```python import math area = 1023 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Program output: 3) Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0083790
<|start|><|user|> Buying 4 staplers at $24 each, 5 chairs at $12 each, 2 envelopes at $25 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 24), (5, 12), (2, 25)] total = sum(q * p for q, p in items) # 206 paid = 250 change = paid - total # 44 print(change) ``` The int...
chat
[ { "role": "user", "content": "Buying 4 staplers at $24 each, 5 chairs at $12 each, 2 envelopes at $25 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(4, 24), (5, 12), (2, 25)]\ntotal = sum(q * p for q, p in items) # 206\npaid = ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0083791
<|start|><|user|> 212 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> It takes 9 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "212 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 9 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0083793
A claim accrued on March 6, 2024. The limitations period is 2 years. On what date does it expire? Computing it: ```python from datetime import date accrued = date(2024, 3, 6) # datetime.date(2024, 3, 6) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 3, 6) print(expires.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2026-03-06", "printed": "2026-03-06", "notation": null}
nlprog_det-setting-0083794
<|start|><|user|> An invoice lists 9 flash drives at $4 each, plus 5% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 9 unit_price = 4 subtotal = quantity * unit_price # 36 total = subtotal * (1 + 5 / 100) # 37.800000000000004 print(f"{total:.2f}") When run, it prints: 37.80 ...
chat
[ { "role": "user", "content": "An invoice lists 9 flash drives at $4 each, plus 5% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 9\n unit_price = 4\n subtotal = quantity * unit_price # 36\n total = subtotal * (1 + 5 / 100) # 37.800000000000...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "37.80", "printed": "37.80", "notation": null}
nlprog_det-setting-0083795
A 21-day notice period begins on December 8, 2022. On what date does it end? Python version: from datetime import date, timedelta start = date(2022, 12, 8) # datetime.date(2022, 12, 8) end = start + timedelta(days=21) # datetime.date(2022, 12, 29) print(end.isoformat()) # printed result: 2022-12-29 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2022-12-29", "printed": "2022-12-29", "notation": null}
nlprog_det-setting-0083796
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Python does the arithmetic: ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` The printout reads 20.0. The margin is 20....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0083797
A count moves from 2,000 to 1,700. By what percent did it change (use a minus sign for a drop)? The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0083798
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> From a $7,500 retainer, 3 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 7500 hours = 3 rate = 200 left = retainer - hours * rate # 6900 print(left) ``` Python prints: 6900 $6,900 of the retainer is left.<|eot|> ...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "From a $7,500 retainer, 3 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 3\nrate = 200\nleft = retainer - hours * r...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "6900", "printed": "6900", "notation": null}
nlprog_det-setting-0083800
Buying 6 clipboards at $7 each, 3 chairs at $24 each, 5 keyboards at $9 each, someone hands over $200. What change comes back? The change is $41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0083801
<|start|><|user|> What is 25 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` The run gives: 77 It equals 77 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 25 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nThe run gives: 77\n\nIt equals 77 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0083802
<|start|><|user|> Reza buys 5 boxes of 24 notebooks each and gives away 20 notebooks. How many notebooks are left?<|eot|> <|assistant|> 100 notebooks are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Reza buys 5 boxes of 24 notebooks each and gives away 20 notebooks. How many notebooks are left?" }, { "role": "assistant", "content": "100 notebooks are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0083804
<|start|><|user|> Equal monthly payments repay $2,400 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> The monthly payment is $110.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 5% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "The monthly payment is $110.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0083805
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 797 square feet of wall?<|eot|> <|assistant|> import math area = 797 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) This prints 4. Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 797 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 797\n coverage = 250\n cans = math.ceil(area / coverage) # 4\n print(cans)\nThis prints 4.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0083806
Starting from $25,000, the team spends $406, $340, $462, $1,340. What remains? As a program: ```python budget = 25000 expenses = [406, 340, 462, 1340] left = budget - sum(expenses) # 22452 print(left) ``` Executed, it shows 22452. The remaining budget is $22,452.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "22452", "printed": "22452", "notation": null}
nlprog_det-setting-0083807
<|start|><|user|> Convert 24.3 km to meters.<|eot|> <|assistant|> ```python km = 24.3 meters = km * 1000 # 24300.0 print(round(meters)) ``` The script prints 24300. 24,300 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 24.3 km to meters." }, { "role": "assistant", "content": "```python\nkm = 24.3\nmeters = km * 1000 # 24300.0\nprint(round(meters))\n```\nThe script prints 24300.\n\n24,300 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "24300", "printed": "24300", "notation": null}
nlprog_det-setting-0083808
If a 6-year limitations period starts on February 13, 2016, when does it end? Translated to Python: ```python from datetime import date accrued = date(2016, 2, 13) # datetime.date(2016, 2, 13) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 2, 13) print(expires.isoformat()) ``` O...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2022-02-13", "printed": "2022-02-13", "notation": null}
nlprog_det-setting-0083809
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours? Computation in Python: ```python rate = 16.0 hours = 42 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 48.0 pay = regular + overtime # 688.0 print(f"{pay:.2f}") ``` # stdout: 688.00 Oskar earns $688...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "688.00", "printed": "688.00", "notation": null}
nlprog_det-setting-0083810
<|start|><|user|> After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 15000.0 print(f"{each:.2f}") ``` Execution prints 15000.00, as expected. $15,000.00...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 0\ninstallments = 4\neach = (grant - up_front) / installments # 15000.0\nprint(f\"{each:.2...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0083811
An office budget of $12,000 has expenses of $1,665, $3,205. How much of the budget is left? We write it as a program: budget = 12000 expenses = [1665, 3205] left = budget - sum(expenses) # 7130 print(left) Run it and it prints: 7130 $7,130 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "7130", "printed": "7130", "notation": null}
nlprog_det-setting-0083812
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? The program: award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") When run, it p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0083813
<|start|><|system|> Tools you may use: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "ob...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"business_days\", \"description\": \"Count bus...
nlprog_det
setting
original
null
deterministic
[]
[]
384
{"gold": "2021-07-15", "printed": "2021-07-15", "notation": null}
nlprog_det-setting-0083814
After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Programmatically: award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 3 # 15000.0 print(f"{per_client:.2f}") Python pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0083815
<|start|><|user|> After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> grant = 60000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 15000.0 print(f"{each:.2f}") (Console output: 15000.00) Each installment ...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": " grant = 60000\n up_front = 0\n installments = 4\n each = (grant - up_front) / installments # 15000.0\n print(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0083816
<|start|><|user|> Attendance was 178 out of 200. Express it as a percent.<|eot|> <|assistant|> Attendance was 89.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 178 out of 200. Express it as a percent." }, { "role": "assistant", "content": "Attendance was 89.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "89.0", "printed": "89.0", "notation": null}
nlprog_det-setting-0083817
12 boxes hold 8 cables each. After 17 are handed out, how many are left? ```python boxes = 12 per_box = 8 given_away = 17 left = boxes * per_box - given_away # 79 print(left) ``` Executed, it shows 79. 79 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0083818
<|start|><|system|> Functions: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "run_python", "description": "Python sandbox fo...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"section\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0083820
<|start|><|user|> Shipping costs $8 plus $1.20 per pound. What does a 17-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 8 per_pound = 1.2 weight = 17 cost = base + per_pound * weight # 28.4 print(f"{cost:.2f}") ``` Executed, it shows: 28.40 The charge is $28.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $8 plus $1.20 per pound. What does a 17-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 1.2\nweight = 17\ncost = base + per_pound * weight # 28.4\nprint(f\"{cost:.2f}\")\n```\nExecuted, it shows: 28....
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "28.40", "printed": "28.40", "notation": null}
nlprog_det-setting-0083821
At 1% a month (simple), what interest builds on $7,500 over 5 months? A few lines of Python do it: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 375.0 print(f"{interest:.2f}") ``` Printed: 375.00 The interest is $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0083822
<|start|><|user|> Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|> <|assistant|> Parking costs $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?" }, { "role": "assistant", "content": "Parking costs $5." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0083823
Goods bought on December 6, 2023 carry a 36-month warranty. When does it expire? Python does the arithmetic: ```python from datetime import date start = date(2023, 12, 6) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2026-12-06", "printed": "2026-12-06", "notation": null}
nlprog_det-setting-0083824
<|start|><|system|> Be brief and correct.<|eot|> <|user|> 4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 96000\n fee = award * 25 / 100 # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0083825
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python_exec", "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": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"de...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "2.00", "printed": "2.00", "notation": null}
nlprog_det-setting-0083826
What is 0 degrees Celsius in Fahrenheit? ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` It prints 32. That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0083827
A claim accrued on August 25, 2017. The limitations period is 5 years. On what date does it expire? Python does the arithmetic: from datetime import date accrued = date(2017, 8, 25) # datetime.date(2017, 8, 25) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 8, 25...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2022-08-25", "printed": "2022-08-25", "notation": null}
nlprog_det-setting-0083828
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many minutes pass...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "415", "printed": "415", "notation": null}
nlprog_det-setting-0083829
Mateo earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week? ```python rate = 20.0 hours = 46 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 180.0 pay = regular + overtime # 980.0 print(f"{pay:.2f}") ``` Output: 980.00 Mateo earns $980.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "980.00", "printed": "980.00", "notation": null}
nlprog_det-setting-0083830
<|start|><|user|> Prorate $2,400 of monthly rent for 21 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1680.0 print(f"{prorated:.2f}") ``` # printed: 1680.00 The tenant owes $1,680.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 21 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 21\nprorated = rent * days_occupied / days_in_month # 1680.0\nprint(f\"{prorated:.2f}\")\n```\n# printed...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1680.00", "printed": "1680.00", "notation": null}
nlprog_det-setting-0083831
<|start|><|user|> A count moves from 2,500 to 2,750. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 2500 new = 2750 change = (new - old) / old * 100 # 10.0 print(round(change)) Result = 10 The change is 10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,500 to 2,750. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 2500\n new = 2750\n change = (new - old) / old * 100 # 10.0\n print(round(change))\nResult = 10\n\nThe change i...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0083832
<|start|><|user|> The bridge was finished in 1997. How many years had passed by 2027?<|eot|> <|assistant|> ```python start_year = 1997 end_year = 2027 print(end_year - start_year) ``` Executing it gives 30. 30 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 1997. How many years had passed by 2027?" }, { "role": "assistant", "content": "```python\nstart_year = 1997\nend_year = 2027\nprint(end_year - start_year)\n```\nExecuting it gives 30.\n\n30 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0083833
<|start|><|user|> A customer buys 2 water bottles at $26 each, 3 staplers at $13 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(2, 26), (3, 13)] total = sum(q * p for q, p in items) # 91 paid = 100 change = paid - total # 9 print(change) ``` (Result: 9) $9 comes back.<|eot|...
chat
[ { "role": "user", "content": "A customer buys 2 water bottles at $26 each, 3 staplers at $13 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(2, 26), (3, 13)]\ntotal = sum(q * p for q, p in items) # 91\npaid = 100\nchange = paid - tota...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0083834
An office budget of $25,000 has expenses of $1,181, $3,219, $3,708, $2,525. How much of the budget is left? Set it up in Python: ```python budget = 25000 expenses = [1181, 3219, 3708, 2525] left = budget - sum(expenses) print(left) ``` Result: 14367 $14,367 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "14367", "printed": "14367", "notation": null}
nlprog_det-setting-0083835
8 hours of work at $250 an hour: what is the total charge? One way, in code: ```python hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") ``` Program output — 2000.00 The bill is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0083836
<|start|><|user|> A customer buys 6 scissors at $11 each, 3 toner kits at $17 each, 3 markers at $11 each and pays with $200. How much change is due?<|eot|> <|assistant|> ```python items = [(6, 11), (3, 17), (3, 11)] total = sum(q * p for q, p in items) # 150 paid = 200 change = paid - total # 50 print(change) ``` Ex...
chat
[ { "role": "user", "content": "A customer buys 6 scissors at $11 each, 3 toner kits at $17 each, 3 markers at $11 each and pays with $200. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(6, 11), (3, 17), (3, 11)]\ntotal = sum(q * p for q, p in items) # 150\npa...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0083838
<|start|><|user|> A 37 lb package ships at $5 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.5 weight = 37 cost = base + per_pound * weight # 97.5 print(f"{cost:.2f}") ``` What it prints — 97.50 The charge is $97.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 37 lb package ships at $5 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.5\nweight = 37\ncost = base + per_pound * weight # 97.5\nprint(f\"{cost:.2f}\")\n```\nWhat it prints — 97.50\n\nThe charge ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "97.50", "printed": "97.50", "notation": null}
nlprog_det-setting-0083839
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 33 / 100 # 0.33 fee = recovery * rate # 19800.0 print(f"{fee:.2f}") ``` Output: 19800.00 The fee is $19,800.00.<|eot|> <...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 33 / 100 # 0.33\nfee = recovery * ra...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0083840
Attendance was 14 out of 20. Express it as a percent. Programmatically: ```python present = 14 total = 20 percent = present / total * 100 # 70.0 print(round(percent, 1)) ``` When run, it prints: 70.0 70.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0083841
<|start|><|system|> You are a data assistant.<|eot|> <|user|> $10,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` stdout — 10404.00 The...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "$10,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = pri...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "10404.00", "printed": "10404.00", "notation": null}