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-0046694
The rules require 3/5 of 54 members (round up) to be present. How many is that? Let's compute it with Python. ```python import math members = 54 quorum = math.ceil(members * 3 / 5) # 33 print(quorum) ``` It prints 33, as expected. 33 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0046695
<|start|><|user|> What does $1,000 grow to in 4 years at 5% annual compounding?<|eot|> <|assistant|> It is worth $1,215.51.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 4 years at 5% annual compounding?" }, { "role": "assistant", "content": "It is worth $1,215.51." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0046696
38 markers cost $8 apiece. With 8% tax added, what is the total? The total with tax is $328.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "328.32", "printed": "328.32", "notation": null}
nlprog_det-setting-0046697
A client paid a $7,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left? The remaining balance is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0046698
<|start|><|system|> You are a data assistant.<|eot|> <|user|> What is a 10% tip on a $96.70 bill?<|eot|> <|assistant|> Leave $9.67.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "What is a 10% tip on a $96.70 bill?" }, { "role": "assistant", "content": "Leave $9.67." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "9.67", "printed": "9.67", "notation": null}
nlprog_det-setting-0046699
How many weekdays (Monday to Friday) fall after August 3, 2020 up to and including August 10, 2020? A short script: ```python from datetime import date, timedelta start = date(2020, 8, 3) end = date(2020, 8, 10) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0046701
<|start|><|user|> A 3% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` # printed result: 1854.00 The new rent is $1,854.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1854.0\nprint(f\"{new_rent:.2f}\")\n```\n# printed result: 1854.00...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0046702
A $150 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share? Python version: bill = 150 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 35.4 print(f"{each:.2f}") Output of the run: 35.40 The share is $35.40 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "35.40", "printed": "35.40", "notation": null}
nlprog_det-setting-0046703
<|start|><|user|> A meal costs $66.31. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 66.31 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 9.9465 print(f"{tip:.2f}") ``` When run, it prints 9.95. The tip is $9.95.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $66.31. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 66.31\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 9.9465\nprint(f\"{tip:.2f}\")\n```\nWhen run, it prints 9.95.\n\nThe tip is $9.95." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "9.95", "printed": "9.95", "notation": null}
nlprog_det-setting-0046704
How many units at $30 each (variable cost $22) cover $9,000 of fixed costs? Written as code: import math fixed = 9000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) print(units) (Execution result: 1125) Break-even is 1125 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0046705
Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year? ```python cost = 12000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Console output: 2000.00 $2,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0046706
Starting from $20,000, the team spends $531, $2,983, $1,447. What remains? Program: ```python budget = 20000 expenses = [531, 2983, 1447] left = budget - sum(expenses) # 15039 print(left) ``` Execution prints 15039, as expected. The remaining budget is $15,039.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "15039", "printed": "15039", "notation": null}
nlprog_det-setting-0046707
<|start|><|user|> 230 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> 76 each, 2 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "230 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "76 each, 2 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "76 each, 2 left over", "printed": "76 each, 2 left over", "notation": null}
nlprog_det-setting-0046708
How many whole days and leftover hours are in 391 hours? Coded up: ```python hours = 391 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` When run, it prints: 16 days and 7 hours 391 hours is 16 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "16 days and 7 hours", "printed": "16 days and 7 hours", "notation": null}
nlprog_det-setting-0046709
<|start|><|user|> A pack of 8 batteries sells for $384. What does each cost?<|eot|> <|assistant|> ```python total = 384 count = 8 per_item = total // count print(per_item) ``` Execution result: 48 The unit price is $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 8 batteries sells for $384. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 384\ncount = 8\nper_item = total // count\nprint(per_item)\n```\nExecution result: 48\n\nThe unit price is $48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0046710
<|start|><|user|> 4 swims at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` # program output: 1200 That burns 1200 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 swims at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 4\ntotal = per_session * sessions # 1200\nprint(total)\n```\n# program output: 1200\n\nThat burns 1200 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0046711
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Sta...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "1548", "printed": "1548", "notation": null}
nlprog_det-setting-0046712
At $24.86 an hour, what does 16 hours of work pay? That earns $397.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "397.76", "printed": "397.76", "notation": null}
nlprog_det-setting-0046714
Prorate $900 of monthly rent for 19 days of a 30-day month. One way, in code: ```python rent = 900 days_in_month = 30 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 570.0 print(f"{prorated:.2f}") ``` What it prints: 570.00 The tenant owes $570.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "570.00", "printed": "570.00", "notation": null}
nlprog_det-setting-0046715
A 7 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Computation in Python: ```python import math length = 7 width = 12 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) ``` Execution prints: 21 It takes 21 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0046716
A storeroom has 1748 staplers. The office uses 26 a day. How many are left after 9 days? As Python: ```python stock = 1748 per_day = 26 days = 9 left = stock - per_day * days # 1514 print(left) ``` Interpreter output: 1514 1514 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1514", "printed": "1514", "notation": null}
nlprog_det-setting-0046717
<|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": "calculator", "description": "A Python i...
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
[]
[]
425
{"gold": "23.60", "printed": "23.60", "notation": null}
nlprog_det-setting-0046718
A chair costs $250. It is 30% off. What is the sale price? We can compute it in Python. ```python price = 250 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 175.0 print(f"{sale_price:.2f}") ``` Running it prints: 175.00 It costs $175.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0046719
How many whole days and leftover hours are in 150 hours? We write it as a program: ```python hours = 150 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` What it prints — 6 days and 6 hours 150 hours is 6 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6 days and 6 hours", "printed": "6 days and 6 hours", "notation": null}
nlprog_det-setting-0046720
<|start|><|user|> 141 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 141 total = 200 percent = present / total * 100 print(round(percent, 1)) ``` The run gives 70.5, as expected. Attendance was 70.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "141 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 141\ntotal = 200\npercent = present / total * 100\nprint(round(percent, 1))\n```\nThe run gives 70.5, as expected.\n\nAttendance was 70.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "70.5", "printed": "70.5", "notation": null}
nlprog_det-setting-0046721
The landlord deducts $75 from a $1,500 deposit. What is returned to the tenant? $1,425 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1425", "printed": "1425", "notation": null}
nlprog_det-setting-0046722
6 bike rides at 200 calories each burn how many calories in total? Programmatically: per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) Execution result: 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0046723
What does $1,000 grow to in 2 years at 4% annual compounding? Python, step by step: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 1081.6000000000001 print(f"{value:.2f}") ``` It prints 1081.60. The balance is $1,081.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1081.60", "printed": "1081.60", "notation": null}
nlprog_det-setting-0046724
<|start|><|user|> Arjun and Quinn share $2,320 in the ratio 3:5. How much does Arjun get?<|eot|> <|assistant|> ```python total = 2320 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 870 print(share_a) ``` The printout reads 870. Arjun's share is $870.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Arjun and Quinn share $2,320 in the ratio 3:5. How much does Arjun get?" }, { "role": "assistant", "content": "```python\ntotal = 2320\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 870\nprint(share_a)\n```\nThe printout reads 870.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "870", "printed": "870", "notation": null}
nlprog_det-setting-0046725
<|start|><|user|> Filing fees are $90 per document. What do 18 filings cost?<|eot|> <|assistant|> ```python fee = 90 filings = 18 total = fee * filings # 1620 print(total) ``` The printout reads 1620. $1,620 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $90 per document. What do 18 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 90\nfilings = 18\ntotal = fee * filings # 1620\nprint(total)\n```\nThe printout reads 1620.\n\n$1,620 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1620", "printed": "1620", "notation": null}
nlprog_det-setting-0046726
<|start|><|user|> At a 8% tax rate, what is the tax on $331.34?<|eot|> <|assistant|> price = 331.34 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 26.507199999999997 print(f"{tax:.2f}") It prints 26.51. The tax is $26.51.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $331.34?" }, { "role": "assistant", "content": " price = 331.34\n tax_rate = 8 / 100 # 0.08\n tax = price * tax_rate # 26.507199999999997\n print(f\"{tax:.2f}\")\nIt prints 26.51.\n\nThe tax is $26.51." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "26.51", "printed": "26.51", "notation": null}
nlprog_det-setting-0046727
A garage charges $3 an hour, never more than $15 a day. How much for 7 hours? ```python rate = 3 hours = 7 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` stdout = 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0046728
<|start|><|user|> Starting with 301 mugs and using 8 per day, how many remain after 14 days?<|eot|> <|assistant|> stock = 301 per_day = 8 days = 14 left = stock - per_day * days # 189 print(left) Output of the run: 189 189 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 301 mugs and using 8 per day, how many remain after 14 days?" }, { "role": "assistant", "content": " stock = 301\n per_day = 8\n days = 14\n left = stock - per_day * days # 189\n print(left)\nOutput of the run: 189\n\n189 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0046729
The bridge was finished in 1998. How many years had passed by 2036? Here is the program. start_year = 1998 end_year = 2036 print(end_year - start_year) # stdout: 38 That is 38 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0046730
The building opened in 2000. How many years had passed by 2013? We write it as a program: ```python start_year = 2000 end_year = 2013 print(end_year - start_year) ``` This prints: 13 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0046731
<|start|><|system|> Tools you may use: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What does $1,000 grow to in 3 year...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0046732
Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? We write it as a program: ```python revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) ``` When run, it prints 28.6, as exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0046733
A lawyer's fee is 30% of a $12,000 recovery. How large is the fee? Python makes this quick: ```python recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") ``` The script prints 3600.00, as expected. The fee is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0046734
<|start|><|system|> You may call the tools below. {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "python_exec", "description": "Run Python code in a sandbox; the re...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"python_exec...
nlprog_det
setting
original
null
deterministic
[]
[]
414
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0046735
Sales went from 400 to 340. What is the percent change? ```python old = 400 new = 340 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Result: -15 The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0046736
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Count the days between September 13, 2022 and October 2, 2022.<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 9, 13) second = date(2022, 10, 2) print((second - first).days) ``` Execution prints: 19 It is 19 days.<|eot|> <|e...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Count the days between September 13, 2022 and October 2, 2022." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 9, 13)\nsecond = date(2022, ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0046737
An invoice lists 19 badges at $24 each, plus 7% sales tax. What is the invoice total? Python code: ```python quantity = 19 unit_price = 24 subtotal = quantity * unit_price # 456 total = subtotal * (1 + 7 / 100) # 487.92 print(f"{total:.2f}") ``` Printed — 487.92 The total with tax is $487.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "487.92", "printed": "487.92", "notation": null}
nlprog_det-setting-0046738
A penalty of $50 a day accrues, capped at $5,000. What is owed after 51 days? $2,550 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2550", "printed": "2550", "notation": null}
nlprog_det-setting-0046739
How many of 184 votes make 67% (round up)? A few lines of Python do it: ```python import math voters = 184 needed = math.ceil(voters * 67 / 100) # 124 print(needed) ``` (Run result: 124) 124 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0046740
Pack A has 6 items for $13.92. Pack B has 20 items for $25.16. Which has the lower price per item? We can compute it in Python. pack_a = 13.92 / 6 # 2.32 pack_b = 25.16 / 20 # 1.258 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) When run, it prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0046741
A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments? Here's the code. ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` stdout — 12 The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0046742
Printing costs 10 cents a page. What does it cost to print 146 copies of a 23-page handout? ```python pages = 23 copies = 146 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 335.8 print(f"{cost:.2f}") ``` Console: 335.80 Printing costs $335.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "335.80", "printed": "335.80", "notation": null}
nlprog_det-setting-0046744
A car travels 284 miles in 2 hours. What is its average speed in miles per hour? Python: distance = 284 hours = 2 speed = distance / hours # 142.0 print(round(speed)) # stdout: 142 The average speed is 142 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0046745
An office budget of $8,000 has expenses of $3,467, $1,384, $1,307, $2,155. How much of the budget is left? Let's compute it with Python. ```python budget = 8000 expenses = [3467, 1384, 1307, 2155] left = budget - sum(expenses) # -313 print(left) ``` Printed: -313 The remaining budget is -$313.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "-313", "printed": "-313", "notation": null}
nlprog_det-setting-0046746
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> The paralegal logged 4 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` Console: 1200.00 The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "The paralegal logged 4 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 300\nbill = hours * rate # 1200\nprint(f\"{bill:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0046747
<|start|><|user|> A printer costs $75. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 75 discount = 10 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Console output — 67.50 The sale price is $67.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $75. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 75\ndiscount = 10 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nConsole output — 67.50\n\nThe sale price is $67.50....
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0046748
<|start|><|system|> The following tools are available. Call one when it helps. {"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",...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
350
{"gold": "1276.28", "printed": "1276.28", "notation": null}
nlprog_det-setting-0046750
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` (Printed result: 32) That is 32 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n(Printed...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0046751
The landlord deducts $150 and $60 from a $1,000 deposit. What is returned to the tenant? Here is a short program for it. ```python deposit = 1000 deductions = [150, 60] refund = deposit - sum(deductions) print(refund) ``` Interpreter output — 790 The refund is $790.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "790", "printed": "790", "notation": null}
nlprog_det-setting-0046752
With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 41000 costs = 36000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 12.195121951219512 print(round(margin, 1)) ``` (Execution result: 12.2) Profit is 12.2% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0046753
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> The landlord deducts $200 from a $1,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1500 deductions = [200] refund = deposit - sum(deductions) # 1300 print(refund) ``` Printed: 1300 $1,300 is returned.<|eot|> <|...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "The landlord deducts $200 from a $1,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1500\ndeductions = [200]\nrefund = deposit -...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0046754
Shipping costs $10 plus $2.50 per pound. What does a 32-pound parcel cost to ship? Shipping costs $90.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0046755
<|start|><|user|> How many meters are in 12.4 kilometers?<|eot|> <|assistant|> ```python km = 12.4 meters = km * 1000 # 12400.0 print(round(meters)) ``` Printed: 12400 12,400 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 12.4 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 12.4\nmeters = km * 1000 # 12400.0\nprint(round(meters))\n```\nPrinted:\n12400\n\n12,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "12400", "printed": "12400", "notation": null}
nlprog_det-setting-0046756
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
260
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0046757
<|start|><|system|> Tools you may use: [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Jamal earns $22.40 an hour and ti...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\...
nlprog_det
setting
original
null
deterministic
[]
[]
243
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0046758
10.5 hours of work at $225 an hour: what is the total charge? The Python version: ```python hours = 10.5 rate = 225 bill = hours * rate # 2362.5 print(f"{bill:.2f}") ``` It prints: 2362.50 That comes to $2,362.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2362.50", "printed": "2362.50", "notation": null}
nlprog_det-setting-0046759
<|start|><|user|> A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 11250.0 print(f"{each:.2f}") ``` Python prints 11250.00. Each installment...
chat
[ { "role": "user", "content": "A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 3000\ninstallments = 4\neach = (grant - up_front) / installments # 11250.0\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0046760
<|start|><|user|> If a 3-year limitations period starts on April 2, 2017, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2017, 4, 2) # datetime.date(2017, 4, 2) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 4, 2) print(expires.isoformat...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on April 2, 2017, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2017, 4, 2) # datetime.date(2017, 4, 2)\nyears = 3\nexpires = accrued.replace(year=accrued.year + y...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2020-04-02", "printed": "2020-04-02", "notation": null}
nlprog_det-setting-0046761
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "define_word", "description": "Return a...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0046762
A 24 lb package ships at $12 base plus $2.00/lb. What is the charge? Python code: ```python base = 12 per_pound = 2.0 weight = 24 cost = base + per_pound * weight # 60.0 print(f"{cost:.2f}") ``` Printed result: 60.00 The charge is $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0046763
Convert 1 h 46 min (the length of a training session) to minutes. Coded up: hours = 1 minutes = 46 total_minutes = hours * 60 + minutes # 106 print(total_minutes) Out: 106 That is 106 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "106", "printed": "106", "notation": null}
nlprog_det-setting-0046764
<|start|><|system|> Tool definitions: {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> What day of the week is July 1, 1991?<...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python\", \"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
[]
[]
196
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0046765
Notice was given on April 17, 2025. The notice period is 90 days. When does it run out? It ends on July 16, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2025-07-16", "printed": "2025-07-16", "notation": null}
nlprog_det-setting-0046766
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Each storage box holds 12 files. How many boxes are needed for 37 files?<|eot|> <|assistant|> ```python import math files = 37 per_box = 12 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` Out: 4 It takes 4 boxes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 37 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 37\nper_box = 12\nboxes = math.ceil(files...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0046767
<|start|><|user|> What commission does Sara make on $7,603 in sales at 2%?<|eot|> <|assistant|> ```python sales = 7603 rate = 2 / 100 # 0.02 commission = sales * rate # 152.06 print(f"{commission:.2f}") ``` The program outputs 152.06. Sara earns $152.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Sara make on $7,603 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 7603\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 152.06\nprint(f\"{commission:.2f}\")\n```\nThe program outputs 152.06.\n\nSara earns $152.06...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "152.06", "printed": "152.06", "notation": null}
nlprog_det-setting-0046768
A measure needs at least 60% of 248 votes. How many votes is that, rounded up? The computation: ```python import math voters = 248 needed = math.ceil(voters * 60 / 100) # 149 print(needed) ``` # result: 149 At least 149 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0046769
How many weekdays (Monday to Friday) fall after June 7, 2023 up to and including July 5, 2023? The Python version: from datetime import date, timedelta start = date(2023, 6, 7) end = date(2023, 7, 5) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0046770
A storeroom has 1649 flash drives. The office uses 8 a day. How many are left after 5 days? As a program: ```python stock = 1649 per_day = 8 days = 5 left = stock - per_day * days # 1609 print(left) ``` Python prints: 1609 1609 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1609", "printed": "1609", "notation": null}
nlprog_det-setting-0046771
Copies cost $10 plus $0.50 for each page beyond 10. How much for 43 pages? Written as code: ```python pages = 43 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 26.5 print(f"{cost:.2f}") ``` That prints 26.50. The total is $26.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "26.50", "printed": "26.50", "notation": null}
nlprog_det-setting-0046772
A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 6 people? Python code: ```python grams = 200 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 600 print(scaled) ``` # printed: 600 Use 600 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0046773
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 2 months? In code: ```python balance = 12000 monthly_rate = 1 / 100 months = 2 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` The interpreter prints 240.00. $240.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0046775
Fixed costs are $2,500. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even? Here is a short program for it. ```python import math fixed = 2500 price = 15 variable = 5 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` (Run result: 250) Break-even is 250 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0046776
<|start|><|user|> How many meters are in 83.6 kilometers?<|eot|> <|assistant|> ```python km = 83.6 meters = km * 1000 # 83600.0 print(round(meters)) ``` # out: 83600 That is 83,600 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 83.6 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 83.6\nmeters = km * 1000 # 83600.0\nprint(round(meters))\n```\n# out: 83600\n\nThat is 83,600 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "83600", "printed": "83600", "notation": null}
nlprog_det-setting-0046777
Convert 3 h 20 min (the length of a training session) to minutes. As a program: ```python hours = 3 minutes = 20 total_minutes = hours * 60 + minutes # 200 print(total_minutes) ``` The program prints: 200 That is 200 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0046778
<|start|><|user|> How many weekdays (Monday to Friday) fall after January 6, 2020 up to and including January 16, 2020?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2020, 1, 6) end = date(2020, 1, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 6, 2020 up to and including January 16, 2020?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2020, 1, 6)\n end = date(2020, 1, 16)\n count = 0\n for k...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0046779
<|start|><|user|> If a 5-year limitations period starts on December 15, 2017, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2017, 12, 15) # datetime.date(2017, 12, 15) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 12, 15) print(expires...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on December 15, 2017, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2017, 12, 15) # datetime.date(2017, 12, 15)\nyears = 5\nexpires = accrued.replace(year=accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-12-15", "printed": "2022-12-15", "notation": null}
nlprog_det-setting-0046780
At 40 miles per hour, how many minutes does a 140-mile trip take? Here is the program. ```python distance = 140 speed = 40 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` Shell output: 210 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0046781
A 16 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? We write it as a program: ```python import math length = 16 width = 12 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 192 print(tiles) ``` Run result = 192 It takes 192 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0046782
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours? ```python rate = 16.0 hours = 51 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 264.0 pay = regular + overtime # 904.0 print(f"{pay:.2f}") ``` It outputs: 904.00 Femi earns $904.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "904.00", "printed": "904.00", "notation": null}
nlprog_det-setting-0046783
<|start|><|user|> What is the total rent on a 18-month lease at $2,100 a month?<|eot|> <|assistant|> monthly_rent = 2100 months = 18 total = monthly_rent * months # 37800 print(total) The code prints: 37800 In total, $37,800 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $2,100 a month?" }, { "role": "assistant", "content": " monthly_rent = 2100\n months = 18\n total = monthly_rent * months # 37800\n print(total)\nThe code prints: 37800\n\nIn total, $37,800 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0046784
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 40 variable = 34 units = math.ceil(fixed / (price - variable)) # 667 print(units) ``` The run gives: 667 667 units are nee...
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 40\nvariable = 34\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0046785
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment? The program: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + interest) / months # 324.0 print(f"{payment:.2f}...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0046786
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A $800 security deposit has deductions of $45 and $150. How much is refunded?<|eot|> <|assistant|> The refund is $605.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A $800 security deposit has deductions of $45 and $150. How much is refunded?" }, { "role": "assistant", "content": "The refund is $605." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "605", "printed": "605", "notation": null}
nlprog_det-setting-0046787
<|start|><|user|> A 6-day trip pays $79 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 6 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1024 print(total) ``` Output of the run — 102...
chat
[ { "role": "user", "content": "A 6-day trip pays $79 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 79\nlodging_rate = 110\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1024", "printed": "1024", "notation": null}
nlprog_det-setting-0046788
<|start|><|user|> From 1999 to 2023, how many years is that?<|eot|> <|assistant|> start_year = 1999 end_year = 2023 print(end_year - start_year) Program output: 24 24 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1999 to 2023, how many years is that?" }, { "role": "assistant", "content": " start_year = 1999\n end_year = 2023\n print(end_year - start_year)\nProgram output: 24\n\n24 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0046789
<|start|><|system|> You can call tools. Available tools: [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Starting from $5,0...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "-3703", "printed": "-3703", "notation": null}
nlprog_det-setting-0046790
A 846-page report must be reviewed in 18 days. How many pages a day is that, evenly? A few lines of Python do it: ```python pages = 846 days = 18 per_day = pages // days # 47 print(per_day) ``` Interpreter output — 47 That is 47 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0046791
<|start|><|user|> At 2% a month (simple), what interest builds on $1,000 over 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` Run output: 40.00 The interest is $40.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $1,000 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 40.0\nprint(f\"{interest:.2f}\")\n```\nR...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0046792
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Goods bought on January 3, 2020 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> The warranty ends on July 3, 2020.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Goods bought on January 3, 2020 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "The warranty ends on July 3, 2020." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "2020-07-03", "printed": "2020-07-03", "notation": null}
nlprog_det-setting-0046793
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $0, 8 years. How much per year?<|eot|> <|assistant|> Depreciation is $5,625.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $0, 8 years. How much per year?" }, { "role": "assistant", "content": "Depreciation is $5,625.00 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0046794
Buying 4 water bottles at $16 each, 6 water bottles at $26 each, 4 paper reams at $14 each, someone hands over $300. What change comes back? One way, in code: ```python items = [(4, 16), (6, 26), (4, 14)] total = sum(q * p for q, p in items) # 276 paid = 300 change = paid - total # 24 print(change) ``` (Console outp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0046795
A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 74-page copy cost? The copy costs $23.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "23.50", "printed": "23.50", "notation": null}
nlprog_det-setting-0046797
A pack of 25 hard drives sells for $500. What does each cost? Python version: total = 500 count = 25 per_item = total // count # 20 print(per_item) This prints 20. The unit price is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0046798
At 50 miles per hour, how many minutes does a 100-mile trip take? 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0046799
<|start|><|user|> Of a $8,000 budget, $600 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 8000 spent = 600 percent = spent / budget * 100 # 7.5 print(round(percent, 1)) ``` The program outputs 7.5. 7.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $8,000 budget, $600 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 600\npercent = spent / budget * 100 # 7.5\nprint(round(percent, 1))\n```\nThe program outputs 7.5.\n\n7.5% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "7.5", "printed": "7.5", "notation": null}