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-0063943
282 files go into boxes of 15. How many boxes does that take? The computation: import math files = 282 per_box = 15 boxes = math.ceil(files / per_box) # 19 print(boxes) Run result: 19 It takes 19 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0063944
On which weekday does March 2, 2016 fall? A Python solution: ```python from datetime import date hearing = date(2016, 3, 2) print(hearing.strftime("%A")) ``` Output: Wednesday March 2, 2016 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0063945
<|start|><|system|> Give the answer first.<|eot|> <|user|> Convert 5 h 52 min (the length of a film) to minutes.<|eot|> <|assistant|> hours = 5 minutes = 52 total_minutes = hours * 60 + minutes # 352 print(total_minutes) # program output: 352 That is 352 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Convert 5 h 52 min (the length of a film) to minutes." }, { "role": "assistant", "content": " hours = 5\n minutes = 52\n total_minutes = hours * 60 + minutes # 352\n print(total_minu...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0063946
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|> <|assistant|> The weekly pay is $1,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?" }, { "role": "assistant", "content": "The weekly pay is $1,250.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0063947
A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term? One way, in code: monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) Executed, it shows: 12600 The rent over the term is $12,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0063948
At $0.62 per mile, what is the reimbursement for 493 miles? miles = 493 rate = 0.62 reimbursement = miles * rate # 305.66 print(f"{reimbursement:.2f}") That prints: 305.66 Tomas is owed $305.66.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "305.66", "printed": "305.66", "notation": null}
nlprog_det-setting-0063949
Convert 1 h 7 min (the length of a hearing) to minutes. A few lines of Python do it: hours = 1 minutes = 7 total_minutes = hours * 60 + minutes # 67 print(total_minutes) When run, it prints 67, as expected. That is 67 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0063950
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 90 of 100 members attended...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0063951
<|start|><|user|> $1,000 is invested at 2% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 1082.43216 print(f"{value:.2f}") ``` (Out: 1082.43) It is worth $1,082.43.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$1,000 is invested at 2% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 1082.43216\nprint(f\"{value:.2f}\")\n```\n(O...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0063952
A 5% increase is applied to $1,100 monthly rent. What is the new amount? The new rent is $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0063953
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Walls total 581 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> import math area = 581 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) (Result: 3) Buy 3 cans.<|...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Walls total 581 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": " import math\n area = 581\n coverage = 250...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0063954
A trial runs from May 3, 2024 to May 11, 2024, counting both days. How many calendar days is that? 9 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0063955
Equipment costs $12,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year? In Python: ```python cost = 12000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` # output: 4000.00 Depreciation is $4,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0063956
<|start|><|user|> A trial runs from October 27, 2021 to October 30, 2021, counting both days. How many calendar days is that?<|eot|> <|assistant|> from datetime import date first = date(2021, 10, 27) # datetime.date(2021, 10, 27) last = date(2021, 10, 30) # datetime.date(2021, 10, 30) days = (last - f...
chat
[ { "role": "user", "content": "A trial runs from October 27, 2021 to October 30, 2021, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2021, 10, 27) # datetime.date(2021, 10, 27)\n last = date(2021, 10,...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0063957
<|start|><|system|> You have access to these functions: {"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "fetch_...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
428
{"gold": "2022-02-21", "printed": "2022-02-21", "notation": null}
nlprog_det-setting-0063958
One can of paint covers 300 square feet. How many cans are needed for 422 square feet of wall? Python makes this quick: ```python import math area = 422 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` The run gives 2. Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0063959
A 12 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? A few lines of Python do it: ```python import math length = 12 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) ``` It prints 21, as expected. 21 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0063960
A $150 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? ```python bill = 150 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 29.5 print(f"{each:.2f}") ``` The interpreter prints 29.50. Each person pays $29.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0063961
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Rent of $900 goes u...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0063962
A 8% increase is applied to $1,800 monthly rent. What is the new amount? Python: ```python rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") ``` (Program output: 1944.00) The new rent is $1,944.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0063963
Monthly rent is $2,400. A tenant moves in with 11 days left in a 30-day month. What is the prorated rent? Python version: ```python rent = 2400 days_in_month = 30 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 880.0 print(f"{prorated:.2f}") ``` On running, it outputs 880.00. The prorated rent i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0063964
How many meters are in 46.2 kilometers? Program: ```python km = 46.2 meters = km * 1000 # 46200.0 print(round(meters)) ``` # program output: 46200 That is 46,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "46200", "printed": "46200", "notation": null}
nlprog_det-setting-0063965
<|start|><|user|> Goods bought on June 24, 2022 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2022, 6, 24) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.is...
chat
[ { "role": "user", "content": "Goods bought on June 24, 2022 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2022, 6, 24)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-06-24", "printed": "2023-06-24", "notation": null}
nlprog_det-setting-0063966
<|start|><|user|> A desk lamp costs $300. It is 30% off. What is the sale price?<|eot|> <|assistant|> The sale price is $210.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A desk lamp costs $300. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "The sale price is $210.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0063967
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Straight-line depreciation: cost $12,000, salvage $3,000, 6 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 1500.0 print(f"{per_year:.2f}") ``` This prints 1500.00, as...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $3,000, 6 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 3000\nyears = 6\nper_year =...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0063968
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments? Script: ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` (Program output: 30) The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0063969
Xavier was born on January 6, 1954. How old is Xavier on April 7, 2020? Here is a short program for it. ```python from datetime import date born = date(1954, 1, 6) # datetime.date(1954, 1, 6) on = date(2020, 4, 7) # datetime.date(2020, 4, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0063970
<|start|><|user|> How many meters are in 65.9 kilometers?<|eot|> <|assistant|> 65,900 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 65.9 kilometers?" }, { "role": "assistant", "content": "65,900 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "65900", "printed": "65900", "notation": null}
nlprog_det-setting-0063971
<|start|><|user|> How many of 44 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 44 majority = members // 2 + 1 # 23 print(majority) ``` Shell output — 23 That is 23 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 44 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 44\nmajority = members // 2 + 1 # 23\nprint(majority)\n```\nShell output — 23\n\nThat is 23 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0063972
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? The program: ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` That prints 1.4. The margin is 1.4%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0063973
<|start|><|user|> Split $895 between Delia and Ulla in the ratio 2 to 3. What is Delia's share?<|eot|> <|assistant|> total = 895 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 358 print(share_a) Run output — 358 Delia's share is $358.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $895 between Delia and Ulla in the ratio 2 to 3. What is Delia's share?" }, { "role": "assistant", "content": " total = 895\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 358\n print(share_a)\nRun output — 358\...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "358", "printed": "358", "notation": null}
nlprog_det-setting-0063974
A storeroom has 416 staplers. The office uses 17 a day. How many are left after 4 days? Let's compute it with Python. ```python stock = 416 per_day = 17 days = 4 left = stock - per_day * days # 348 print(left) ``` This prints: 348 348 staplers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "348", "printed": "348", "notation": null}
nlprog_det-setting-0063975
<|start|><|system|> Tool definitions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "code_runner", "description": "Evaluates Python and returns the printed output....
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"code_runner\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0063976
Jae drove 59 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Jae is owed $39.53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "39.53", "printed": "39.53", "notation": null}
nlprog_det-setting-0063977
<|start|><|user|> A 4% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 1100 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1144.0 print(f"{new_rent:.2f}") Run output — 1144.00 The new rent is $1,144.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 1100\n increase = 4 / 100 # 0.04\n new_rent = rent * (1 + increase) # 1144.0\n print(f\"{new_rent:.2f}\")\nRun output — 1144.00\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1144.00", "printed": "1144.00", "notation": null}
nlprog_det-setting-0063978
<|start|><|user|> From a $10,000 retainer, 10 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 10 rate = 200 left = retainer - hours * rate # 8000 print(left) ``` Execution prints 8000. The remaining balance is $8,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 10 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 10\nrate = 200\nleft = retainer - hours * rate # 8000\nprint(left)\n```\nExecution prints 8000.\n\nThe remainin...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0063979
<|start|><|user|> How many whole days and leftover hours are in 95 hours?<|eot|> <|assistant|> ```python hours = 95 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out — 3 days and 23 hours 95 hours is 3 days and 23 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 95 hours?" }, { "role": "assistant", "content": "```python\nhours = 95\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut — 3 days and 23 hours\n\n95 hours is 3 days and 23 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "3 days and 23 hours", "printed": "3 days and 23 hours", "notation": null}
nlprog_det-setting-0063980
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"nam...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "29.38", "printed": "29.38", "notation": null}
nlprog_det-setting-0063981
A pack of 25 folders sells for $125. What does each cost? We can compute it in Python. total = 125 count = 25 per_item = total // count # 5 print(per_item) Output — 5 The unit price is $5.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0063982
Sales went from 2,500 to 1,250. What is the percent change? Code: ```python old = 2500 new = 1250 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` (Console output: -50) The change is -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0063983
<|start|><|system|> Tools (call with JSON): {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Pay is $18.50/hour, with o...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "767.75", "printed": "767.75", "notation": null}
nlprog_det-setting-0063985
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Chen earns a 5% commissio...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "4754.90", "printed": "4754.90", "notation": null}
nlprog_det-setting-0063986
<|start|><|user|> From a $5,000 retainer, 7 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 7 rate = 250 left = retainer - hours * rate # 3250 print(left) ``` Python prints: 3250 The remaining balance is $3,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 7 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 7\nrate = 250\nleft = retainer - hours * rate # 3250\nprint(left)\n```\nPython prints: 3250\n\nThe remaining balan...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3250", "printed": "3250", "notation": null}
nlprog_det-setting-0063987
A quorum is 2/3 of the 54 members, rounded up. How many members make a quorum? ```python import math members = 54 quorum = math.ceil(members * 2 / 3) print(quorum) ``` (stdout: 36) 36 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0063988
Divide 78 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? In Python: ```python total = 78 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Execution prints 15 each, 3 left over. 15 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "15 each, 3 left over", "printed": "15 each, 3 left over", "notation": null}
nlprog_det-setting-0063989
Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even? ```python import math fixed = 1200 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` Executed, it shows 300. 300 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0063991
From a $10,000 retainer, 6 hours at $275/hour have been drawn. What remains? ```python retainer = 10000 hours = 6 rate = 275 left = retainer - hours * rate # 8350 print(left) ``` The run gives: 8350 $8,350 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "8350", "printed": "8350", "notation": null}
nlprog_det-setting-0063992
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|us...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "1610.60", "printed": "1610.60", "notation": null}
nlprog_det-setting-0063993
Starting from $25,000, the team spends $892, $973. What remains? The computation: ```python budget = 25000 expenses = [892, 973] left = budget - sum(expenses) # 23135 print(left) ``` Result: 23135 $23,135 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "23135", "printed": "23135", "notation": null}
nlprog_det-setting-0063994
If a 50-minute seminar begins at 4:10 PM, what time does it finish? One way, in code: start = 16 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Out = 5:00 PM The seminar finishes at 5:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5:00 PM", "printed": "5:00 PM", "notation": null}
nlprog_det-setting-0063995
<|start|><|user|> A 522-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 522 days = 9 per_day = pages // days # 58 print(per_day) ``` The run gives: 58 That is 58 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 522-page report must be reviewed in 9 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 522\ndays = 9\nper_day = pages // days # 58\nprint(per_day)\n```\nThe run gives: 58\n\nThat is 58 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0063996
<|start|><|user|> 2 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 2 share = settlement // parties # 600 print(share) ``` (Printed result: 600) Each party receives $600.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 2\nshare = settlement // parties # 600\nprint(share)\n```\n(Printed result: 600)\n\nEach party receives $600." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0063997
Papers were served by mail on February 11, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python version: ```python from datetime import date, timedelta served = date(2021, 2, 11) # datetime.date(2021, 2, 11) response_days = 14 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2021-02-28", "printed": "2021-02-28", "notation": null}
nlprog_det-setting-0063998
Hugo's scores were 82, 61, 98, 79, 65 and 83. What is the average score? Written as code: ```python scores = [82, 61, 98, 79, 65, 83] average = sum(scores) // len(scores) # 78 print(average) ``` # printed result: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0063999
Counting only Monday through Friday, how many business days are there after April 18, 2025 through May 11, 2025? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2025, 4, 18) end = date(2025, 5, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064000
Shipping costs $12 plus $2.00 per pound. What does a 21-pound parcel cost to ship? Here's the code. ```python base = 12 per_pound = 2.0 weight = 21 cost = base + per_pound * weight # 54.0 print(f"{cost:.2f}") ``` On running, it outputs: 54.00 The charge is $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0064001
A 30-day notice period begins on January 10, 2020. On what date does it end? In code: ```python from datetime import date, timedelta start = date(2020, 1, 10) end = start + timedelta(days=30) print(end.isoformat()) ``` The script prints 2020-02-09. That date is February 9, 2020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2020-02-09", "printed": "2020-02-09", "notation": null}
nlprog_det-setting-0064002
12 boxes hold 25 ink cartridges each. After 4 are handed out, how many are left? One way, in code: ```python boxes = 12 per_box = 25 given_away = 4 left = boxes * per_box - given_away # 296 print(left) ``` # stdout: 296 296 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0064003
<|start|><|user|> Split $3,856 between Ana and Farah in the ratio 3 to 5. What is Ana's share?<|eot|> <|assistant|> total = 3856 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1446 print(share_a) stdout: 1446 Ana's share is $1,446.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,856 between Ana and Farah in the ratio 3 to 5. What is Ana's share?" }, { "role": "assistant", "content": " total = 3856\n parts_a = 3\n parts_b = 5\n share_a = total * parts_a // (parts_a + parts_b) # 1446\n print(share_a)\nstdout:\n1446\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1446", "printed": "1446", "notation": null}
nlprog_det-setting-0064004
Express 392 hours in days and hours. One way, in code: ```python hours = 392 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The script prints 16 days and 8 hours, as expected. That is 16 days and 8 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "16 days and 8 hours", "printed": "16 days and 8 hours", "notation": null}
nlprog_det-setting-0064005
A board has 19 members. A majority is more than half. How many votes make a majority? Script: ```python members = 19 majority = members // 2 + 1 # 10 print(majority) ``` Out — 10 That is 10 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0064006
<|start|><|user|> Walls total 178 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 178 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` Execution prints 1, as expected. 1 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 178 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 178\ncoverage = 400\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nExecution prints 1, as expected....
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0064007
With 21 rows of 15 chairs and 17 empty chairs, how many chairs are taken? 298 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "298", "printed": "298", "notation": null}
nlprog_det-setting-0064008
Count 10 days forward from May 9, 2023. What date is that? ```python from datetime import date, timedelta start = date(2023, 5, 9) # datetime.date(2023, 5, 9) end = start + timedelta(days=10) # datetime.date(2023, 5, 19) print(end.isoformat()) ``` Executed, it shows: 2023-05-19 That date is May 19, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2023-05-19", "printed": "2023-05-19", "notation": null}
nlprog_det-setting-0064009
Diego and Ivan share $5,184 in the ratio 3:5. How much does Diego get? Let's compute it with Python. ```python total = 5184 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1944 print(share_a) ``` (Execution result: 1944) Diego's share is $1,944.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1944", "printed": "1944", "notation": null}
nlprog_det-setting-0064010
<|start|><|user|> An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` The code prints: 300.00 $30...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ninterest = balance * monthly_rate * months # 300.0...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0064011
The meal allowance is $74 per day. What is it for 3 days? Programmatically: days = 3 meal_rate = 74 total = days * meal_rate # 222 print(total) Printed result — 222 The allowance is $222.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0064012
Convert -15 °C to Fahrenheit. A short script: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` Output = 5 It equals 5 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0064013
<|start|><|system|> Functions: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A 34 lb package ships at $12 b...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "97.00", "printed": "97.00", "notation": null}
nlprog_det-setting-0064014
<|start|><|user|> Signe buys 7 boxes of 24 calendars each and gives away 12 calendars. How many calendars are left?<|eot|> <|assistant|> That leaves 156 calendars.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Signe buys 7 boxes of 24 calendars each and gives away 12 calendars. How many calendars are left?" }, { "role": "assistant", "content": "That leaves 156 calendars." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0064015
<|start|><|user|> At $22.82 an hour, what does 16 hours of work pay?<|eot|> <|assistant|> ```python rate = 22.82 hours = 16 earnings = rate * hours # 365.12 print(f"{earnings:.2f}") ``` When run, it prints: 365.12 The pay is $365.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $22.82 an hour, what does 16 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 22.82\nhours = 16\nearnings = rate * hours # 365.12\nprint(f\"{earnings:.2f}\")\n```\nWhen run, it prints: 365.12\n\nThe pay is $365.12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "365.12", "printed": "365.12", "notation": null}
nlprog_det-setting-0064016
5 claimants share a $1,200 settlement equally. What is each share? Python makes this quick: ```python settlement = 1200 parties = 5 share = settlement // parties # 240 print(share) ``` Console output — 240 Each share is $240.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0064017
<|start|><|user|> Notice was given on October 24, 2025. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> That date is January 22, 2026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Notice was given on October 24, 2025. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "That date is January 22, 2026." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2026-01-22", "printed": "2026-01-22", "notation": null}
nlprog_det-setting-0064018
At $0.65 per mile, what is the reimbursement for 478 miles? We write it as a program: ```python miles = 478 rate = 0.65 reimbursement = miles * rate # 310.7 print(f"{reimbursement:.2f}") ``` Printed = 310.70 Eamon is owed $310.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "310.70", "printed": "310.70", "notation": null}
nlprog_det-setting-0064019
Shipping costs $8 plus $2.50 per pound. What does a 24-pound parcel cost to ship? ```python base = 8 per_pound = 2.5 weight = 24 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Printed result: 68.00 Shipping costs $68.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "68.00", "printed": "68.00", "notation": null}
nlprog_det-setting-0064020
A 18 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? import math length = 18 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 90 print(tiles) The run gives: 90 90 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0064021
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Lena was born on December 27, 1969. How old is Lena on July 7, 2021?<|eot|> <|assistant|> ```python from datetime import date born = date(1969, 12, 27) # datetime.date(1969, 12, 27) on = date(2021, 7, 7) # datetime.date(2021, 7, 7) age = on.y...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Lena was born on December 27, 1969. How old is Lena on July 7, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1969, 12, 27) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0064022
A penalty of $50 a day accrues, capped at $2,500. What is owed after 8 days? The fine is $400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0064023
A shift runs from 9:02 AM to 9:51 AM. How long is it in minutes? A Python solution: ```python start = 9 * 60 + 2 # 542 end = 9 * 60 + 51 # 591 print(end - start) ``` Executing it gives 49, as expected. 49 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0064024
Attendance was 30 out of 40. Express it as a percent. Attendance was 75.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0064025
From 2014 to 2051, how many years is that? The Python version: ```python start_year = 2014 end_year = 2051 print(end_year - start_year) ``` The script prints 37, as expected. That is 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0064026
An invoice lists 22 pens at $4 each, plus 10% sales tax. What is the invoice total? Let the code do the arithmetic: ```python quantity = 22 unit_price = 4 subtotal = quantity * unit_price # 88 total = subtotal * (1 + 10 / 100) # 96.80000000000001 print(f"{total:.2f}") ``` The script prints 96.80. The invoice total ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "96.80", "printed": "96.80", "notation": null}
nlprog_det-setting-0064027
<|start|><|user|> Starting from $20,000, the team spends $1,100, $1,332, $432, $1,061. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [1100, 1332, 432, 1061] left = budget - sum(expenses) # 16075 print(left) ``` Printed result: 16075 The remaining budget is $16,075.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $1,100, $1,332, $432, $1,061. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [1100, 1332, 432, 1061]\nleft = budget - sum(expenses) # 16075\nprint(left)\n```\nPrinted result: 16075\n...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "16075", "printed": "16075", "notation": null}
nlprog_det-setting-0064028
10.5 hours of work at $225 an hour: what is the total charge? Here's the code. ```python hours = 10.5 rate = 225 bill = hours * rate # 2362.5 print(f"{bill:.2f}") ``` Output — 2362.50 The bill is $2,362.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2362.50", "printed": "2362.50", "notation": null}
nlprog_det-setting-0064029
At 60 miles per hour, how many minutes does a 300-mile trip take? A few lines of Python do it: ```python distance = 300 speed = 60 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` That prints: 300 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0064030
<|start|><|user|> What average speed covers 514 miles in 2 hours?<|eot|> <|assistant|> distance = 514 hours = 2 speed = distance / hours print(round(speed)) Run output — 257 The average speed is 257 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 514 miles in 2 hours?" }, { "role": "assistant", "content": " distance = 514\n hours = 2\n speed = distance / hours\n print(round(speed))\nRun output — 257\n\nThe average speed is 257 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "257", "printed": "257", "notation": null}
nlprog_det-setting-0064031
A $240 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share? Here is a short program for it. ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 70.8 print(f"{each:.2f}") ``` # program output: 70.80 Each person pays $70.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0064032
A 12-month warranty starts on May 21, 2028. On what date does it end? One way, in code: ```python from datetime import date start = date(2028, 5, 21) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Out = 2029-05...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2029-05-21", "printed": "2029-05-21", "notation": null}
nlprog_det-setting-0064033
At $28.33 an hour, what does 16 hours of work pay? Written as code: ```python rate = 28.33 hours = 16 earnings = rate * hours # 453.28 print(f"{earnings:.2f}") ``` # console output: 453.28 That earns $453.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "453.28", "printed": "453.28", "notation": null}
nlprog_det-setting-0064034
What is 20 degrees Celsius in Fahrenheit? That is 68 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0064035
<|start|><|user|> A pack of 10 sticky pads sells for $170. What does each cost?<|eot|> <|assistant|> ```python total = 170 count = 10 per_item = total // count # 17 print(per_item) ``` Result: 17 Each one costs $17.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 sticky pads sells for $170. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 170\ncount = 10\nper_item = total // count # 17\nprint(per_item)\n```\nResult: 17\n\nEach one costs $17." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0064037
What day of the week is July 19, 2018? A few lines of Python do it: ```python from datetime import date hearing = date(2018, 7, 19) # datetime.date(2018, 7, 19) print(hearing.strftime("%A")) ``` Execution result: Thursday July 19, 2018 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0064038
Diego's scores were 92, 67, 62, 80 and 79. What is the average score? The program: ```python scores = [92, 67, 62, 80, 79] average = sum(scores) // len(scores) # 76 print(average) ``` This prints 76, as expected. The mean is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0064039
The landlord deducts $120 and $75 from a $800 deposit. What is returned to the tenant? The refund is $605.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "605", "printed": "605", "notation": null}
nlprog_det-setting-0064040
Scale 200 g of lentils from 4 servings to 12 servings. Computation in Python: ```python grams = 200 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 600 print(scaled) ``` Result: 600 Use 600 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0064041
<|start|><|user|> Fines run at $50 per day up to a maximum of $2,500. How much after 5 days?<|eot|> <|assistant|> per_day = 50 days = 5 cap = 2500 fine = min(per_day * days, cap) # 250 print(fine) The script prints 250, as expected. The fine is $250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $50 per day up to a maximum of $2,500. How much after 5 days?" }, { "role": "assistant", "content": " per_day = 50\n days = 5\n cap = 2500\n fine = min(per_day * days, cap) # 250\n print(fine)\nThe script prints 250, as expected.\n\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0064042
8 boxes hold 25 envelopes each. After 16 are handed out, how many are left? 184 envelopes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "184", "printed": "184", "notation": null}
nlprog_det-setting-0064043
A penalty of $50 a day accrues, capped at $1,000. What is owed after 51 days? A Python solution: ```python per_day = 50 days = 51 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Running it prints: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0064044
<|start|><|user|> An office budget of $12,000 has expenses of $2,549, $1,200. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [2549, 1200] left = budget - sum(expenses) # 8251 print(left) ``` Shell output — 8251 The remaining budget is $8,251.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $2,549, $1,200. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [2549, 1200]\nleft = budget - sum(expenses) # 8251\nprint(left)\n```\nShell output — 8251\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8251", "printed": "8251", "notation": null}
nlprog_det-setting-0064045
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A $12,000 grant pays $3,000 up front an...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}"...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "2250.00", "printed": "2250.00", "notation": null}