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-0082881
A measure needs at least 60% of 29 votes. How many votes is that, rounded up? Program: ```python import math voters = 29 needed = math.ceil(voters * 60 / 100) # 18 print(needed) ``` # result: 18 18 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0082882
17 keyboards cost $6 apiece. With 7% tax added, what is the total? Code: ```python quantity = 17 unit_price = 6 subtotal = quantity * unit_price # 102 total = subtotal * (1 + 7 / 100) # 109.14 print(f"{total:.2f}") ``` Result: 109.14 The total with tax is $109.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "109.14", "printed": "109.14", "notation": null}
nlprog_det-setting-0082883
<|start|><|user|> A count moves from 400 to 420. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 400 new = 420 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` When run, it prints 5. It changed by 5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 420. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 420\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nWhen run, it prints 5.\n\nIt chang...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082884
Find the mean of these test scores: 89, 67, 90, 70, 76 and 100. A few lines of Python do it: ```python scores = [89, 67, 90, 70, 76, 100] average = sum(scores) // len(scores) # 82 print(average) ``` The program prints 82. The mean is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0082885
Which is cheaper per unit: 8 for $8.11 (A) or 15 for $10.83 (B)? B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082886
<|start|><|system|> Tools (call with JSON): [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> With 5 rows of 20 chairs and 18 empty ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0082887
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Get the wea...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"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
[]
[]
331
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0082888
<|start|><|user|> From a $7,500 retainer, 12 hours at $150/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 7500 hours = 12 rate = 150 left = retainer - hours * rate # 5700 print(left) ``` The program prints: 5700 $5,700 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $7,500 retainer, 12 hours at $150/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 12\nrate = 150\nleft = retainer - hours * rate # 5700\nprint(left)\n```\nThe program prints: 5700\n\n$5,700 of th...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "5700", "printed": "5700", "notation": null}
nlprog_det-setting-0082889
Rent of $1,500 goes up 5%. What is the new rent? ```python rent = 1500 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1575.0 print(f"{new_rent:.2f}") ``` Program output — 1575.00 It rises to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0082890
<|start|><|user|> Someone born July 7, 1996 turns how old by August 22, 2029? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1996, 7, 7) # datetime.date(1996, 7, 7) on = date(2029, 8, 22) # datetime.date(2029, 8, 22) age = on.year - born.year - ((on.month, on.day) < ...
chat
[ { "role": "user", "content": "Someone born July 7, 1996 turns how old by August 22, 2029? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1996, 7, 7) # datetime.date(1996, 7, 7)\non = date(2029, 8, 22) # datetime.date(2029, ...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0082891
<|start|><|user|> A 18 lb package ships at $5 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 0.75 weight = 18 cost = base + per_pound * weight # 18.5 print(f"{cost:.2f}") ``` The program outputs: 18.50 Shipping costs $18.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18 lb package ships at $5 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 0.75\nweight = 18\ncost = base + per_pound * weight # 18.5\nprint(f\"{cost:.2f}\")\n```\nThe program outputs: 18.50\n\nShippi...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "18.50", "printed": "18.50", "notation": null}
nlprog_det-setting-0082892
A appointment starts at 4:15 PM and lasts 50 minutes. When does it end? Python, step by step: ```python start = 16 * 60 + 15 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run result: 5:05 PM The appointment finishes at 5:05 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "5:05 PM", "printed": "5:05 PM", "notation": null}
nlprog_det-setting-0082893
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months? ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Result — 450.00 $450.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0082894
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A water bill is $18 plus $3.50 per tho...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "91.50", "printed": "91.50", "notation": null}
nlprog_det-setting-0082895
A lawyer's fee is 25% of a $12,000 recovery. How large is the fee? Python: ```python recovery = 12000 rate = 25 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Execution result — 3000.00 The lawyer's fee comes to $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0082896
With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal. As a program: ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Output = 20.0 The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0082897
Pack A has 12 items for $4.22. Pack B has 30 items for $6.16. Which has the lower price per item? Coded up: ```python pack_a = 4.22 / 12 # 0.3516666666666666 pack_b = 6.16 / 30 # 0.20533333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Execution prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082898
Monthly rent is $2,400. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent? The Python version: ```python rent = 2400 days_in_month = 30 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 1040.0 print(f"{prorated:.2f}") ``` Run output: 1040.00 The prorated rent is $1,0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0082899
<|start|><|system|> Available functions (JSON Schema): {"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> How many whole days and...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "8 days and 12 hours", "printed": "8 days and 12 hours", "notation": null}
nlprog_det-setting-0082900
<|start|><|user|> Scale 450 g of pasta from 6 servings to 4 servings.<|eot|> <|assistant|> ```python grams = 450 serves = 6 needed_for = 4 scaled = grams * needed_for // serves # 300 print(scaled) ``` The run gives: 300 300 grams of pasta are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 450 g of pasta from 6 servings to 4 servings." }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 6\nneeded_for = 4\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\nThe run gives: 300\n\n300 grams of pasta are needed." }...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0082901
<|start|><|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` On running, it outputs 23. That is 23 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nOn running, it outputs 23.\n\nThat is 23 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0082902
<|start|><|user|> Count 60 days forward from June 8, 2023. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 6, 8) # datetime.date(2023, 6, 8) end = start + timedelta(days=60) # datetime.date(2023, 8, 7) print(end.isoformat()) ``` When run, it prints: 2023-08-07...
chat
[ { "role": "user", "content": "Count 60 days forward from June 8, 2023. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 6, 8) # datetime.date(2023, 6, 8)\nend = start + timedelta(days=60) # datetime.date(2023, 8, 7)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2023-08-07", "printed": "2023-08-07", "notation": null}
nlprog_det-setting-0082903
<|start|><|system|> Available functions (JSON Schema): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "sandbox_python", "desc...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "457", "printed": "457", "notation": null}
nlprog_det-setting-0082904
Beatriz has 11 documents to file, and each filing costs $75. How much are the filing fees in total? Translated to Python: ```python fee = 75 filings = 11 total = fee * filings # 825 print(total) ``` Console output — 825 $825 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "825", "printed": "825", "notation": null}
nlprog_det-setting-0082905
How long, in days, is it from June 2, 2026 until February 8, 2027? Set it up in Python: ```python from datetime import date first = date(2026, 6, 2) # datetime.date(2026, 6, 2) second = date(2027, 2, 8) # datetime.date(2027, 2, 8) print((second - first).days) ``` (Result: 251) It is 251 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "251", "printed": "251", "notation": null}
nlprog_det-setting-0082906
What day of the week is August 19, 2026? Set it up in Python: ```python from datetime import date hearing = date(2026, 8, 19) # datetime.date(2026, 8, 19) print(hearing.strftime("%A")) ``` Out: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0082907
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A quorum is 1/3 of the 43 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 43 quorum = math.ceil(members * 1 / 3) # 15 print(quorum) ``` (Run result: 15) That is 15 members.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A quorum is 1/3 of the 43 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 43\nquorum = math.ceil(members * 1 / 3) # ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082908
<|start|><|user|> A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> In total, $5,100 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "In total, $5,100 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0082909
<|start|><|user|> To read 825 pages in 15 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 825 days = 15 per_day = pages // days # 55 print(per_day) ``` The interpreter prints 55. That is 55 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 825 pages in 15 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 825\ndays = 15\nper_day = pages // days # 55\nprint(per_day)\n```\nThe interpreter prints 55.\n\nThat is 55 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0082910
A trial runs from March 28, 2023 to April 15, 2023, counting both days. How many calendar days is that? Let the code do the arithmetic: ```python from datetime import date first = date(2023, 3, 28) # datetime.date(2023, 3, 28) last = date(2023, 4, 15) # datetime.date(2023, 4, 15) days = (last - first).days + 1 # 19...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0082911
<|start|><|user|> With 21 rows of 13 chairs and 15 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 21 per_row = 13 empty = 15 seated = rows * per_row - empty # 258 print(seated) ``` Printed result — 258 258 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 21 rows of 13 chairs and 15 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 21\nper_row = 13\nempty = 15\nseated = rows * per_row - empty # 258\nprint(seated)\n```\nPrinted result — 258\n\n258 people are seated...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "258", "printed": "258", "notation": null}
nlprog_det-setting-0082912
A training session lasted 3 hours and 27 minutes. How many minutes is that? Computing it: ```python hours = 3 minutes = 27 total_minutes = hours * 60 + minutes # 207 print(total_minutes) ``` Execution prints 207, as expected. That is 207 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0082913
How many whole days and leftover hours are in 198 hours? In code: ```python hours = 198 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # console output: 8 days and 6 hours 198 hours is 8 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "8 days and 6 hours", "printed": "8 days and 6 hours", "notation": null}
nlprog_det-setting-0082914
Convert 25 °C to Fahrenheit. Script: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Printed: 77 It equals 77 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0082915
<|start|><|user|> Of a $10,000 budget, $2,900 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 2900 percent = spent / budget * 100 # 28.999999999999996 print(round(percent, 1)) ``` # output: 29.0 29.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $2,900 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 2900\npercent = spent / budget * 100 # 28.999999999999996\nprint(round(percent, 1))\n```\n# output: 29.0\n\n29.0% has been sp...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "29.0", "printed": "29.0", "notation": null}
nlprog_det-setting-0082916
<|start|><|system|> Functions: {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "convert_units", "description": "Convert a quant...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}\n{...
nlprog_det
setting
original
null
deterministic
[]
[]
333
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0082917
Kaito earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 47-hour week? Kaito earns $934.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "934.25", "printed": "934.25", "notation": null}
nlprog_det-setting-0082918
Nilufar drove 455 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? ```python miles = 455 rate = 0.58 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Executed, it shows: 263.90 The reimbursement is $263.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "263.90", "printed": "263.90", "notation": null}
nlprog_det-setting-0082919
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Fix...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0082920
<|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"]}} {"name": "business_days", "description": "Count busines...
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
[]
[]
307
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0082921
<|start|><|system|> Available functions (JSON Schema): [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather", "descrip...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0082922
What average speed covers 121 miles in 0.5 hours? It averages 242 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "242", "printed": "242", "notation": null}
nlprog_det-setting-0082923
<|start|><|user|> With 21 rows of 15 chairs and 40 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 21 per_row = 15 empty = 40 seated = rows * per_row - empty # 275 print(seated) ``` Run result: 275 275 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 21 rows of 15 chairs and 40 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 21\nper_row = 15\nempty = 40\nseated = rows * per_row - empty # 275\nprint(seated)\n```\nRun result: 275\n\n275 seats are taken." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0082924
<|start|><|user|> 2 books come back 14 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 14 books = 2 fine = per_day * days_late * books # 4.2 print(f"{fine:.2f}") ``` Output: 4.20 $4.20 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 14 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 14\nbooks = 2\nfine = per_day * days_late * books # 4.2\nprint(f\"{fine:.2f}\")\n```\nOutput: 4.20\n\n$4.20 is owed....
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4.20", "printed": "4.20", "notation": null}
nlprog_det-setting-0082925
Counting only Monday through Friday, how many business days are there after September 26, 2019 through October 29, 2019? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2019, 9, 26) end = date(2019, 10, 29) count = 0 for k in range(1, (end - start).days + 1): if (start +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0082926
A 6-day trip pays $79 a day for meals and $140 a night for lodging (5 nights). What is the total allowance? That comes to $1,174.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1174", "printed": "1174", "notation": null}
nlprog_det-setting-0082927
A filing cabinet costs $250. It is 10% off. What is the sale price? The sale price is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0082928
<|start|><|system|> Available functions (JSON Schema): {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute", "de...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "585", "printed": "585", "notation": null}
nlprog_det-setting-0082929
<|start|><|user|> 98 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 98 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints: 10 each, 8 left over 10 each, 8 lef...
chat
[ { "role": "user", "content": "98 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 98\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "10 each, 8 left over", "printed": "10 each, 8 left over", "notation": null}
nlprog_det-setting-0082930
Count the days between September 17, 2019 and January 24, 2020. The Python version: ```python from datetime import date first = date(2019, 9, 17) # datetime.date(2019, 9, 17) second = date(2020, 1, 24) # datetime.date(2020, 1, 24) print((second - first).days) ``` (Out: 129) There are 129 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0082931
<|start|><|user|> After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each share is $7,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each share is $7,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0082933
<|start|><|user|> What does $2,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") ``` # console output: 2208.16 The balance is $2,208.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 2208.1616064\nprint(f\"{value:.2f}\")\n```\n# console outp...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0082934
<|start|><|user|> A garage charges $5 an hour, never more than $15 a day. How much for 12 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 12 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The script prints 15. The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $15 a day. How much for 12 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 12\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nThe script prints 15.\n\nThe charge is...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082935
At an exchange rate of 1.27 EUR per USD, how many EUR is 7,273 USD? The Python version: ```python amount = 7273 rate = 1.27 converted = amount * rate # 9236.710000000001 print(f"{converted:.2f}") ``` Result: 9236.71 That is 9,236.71 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "9236.71", "printed": "9236.71", "notation": null}
nlprog_det-setting-0082936
Rafael earns a 10% commission on $16,065 of sales. What is the commission? Coded up: ```python sales = 16065 rate = 10 / 100 # 0.1 commission = sales * rate # 1606.5 print(f"{commission:.2f}") ``` Output: 1606.50 The commission is $1,606.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1606.50", "printed": "1606.50", "notation": null}
nlprog_det-setting-0082937
What does $10,000 grow to in 4 years at 4% annual compounding? ```python principal = 10000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 11698.585600000002 print(f"{value:.2f}") ``` Out — 11698.59 It is worth $11,698.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0082938
<|start|><|user|> A 38 lb package ships at $5 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.5 weight = 38 cost = base + per_pound * weight # 100.0 print(f"{cost:.2f}") ``` Executing it gives 100.00, as expected. The charge is $100.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 38 lb package ships at $5 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.5\nweight = 38\ncost = base + per_pound * weight # 100.0\nprint(f\"{cost:.2f}\")\n```\nExecuting it gives 100.00, as expect...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0082939
Buying 1 markers at $16 each, 4 staplers at $8 each, 1 water bottles at $7 each, 5 labels at $24 each, someone hands over $200. What change comes back? A short script: ```python items = [(1, 16), (4, 8), (1, 7), (5, 24)] total = sum(q * p for q, p in items) # 175 paid = 200 change = paid - total # 25 print(change) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0082940
Starting with 1891 ink cartridges and using 13 per day, how many remain after 19 days? Script: ```python stock = 1891 per_day = 13 days = 19 left = stock - per_day * days # 1644 print(left) ``` The printout reads 1644. 1644 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1644", "printed": "1644", "notation": null}
nlprog_det-setting-0082941
<|start|><|user|> What percentage of $8,000 is $1,400?<|eot|> <|assistant|> ```python budget = 8000 spent = 1400 percent = spent / budget * 100 print(round(percent, 1)) ``` Running it prints 17.5, as expected. 17.5% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $1,400?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 1400\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nRunning it prints 17.5, as expected.\n\n17.5% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "17.5", "printed": "17.5", "notation": null}
nlprog_det-setting-0082942
Someone born April 15, 1984 turns how old by October 7, 2026? Give the age in whole years. Coded up: ```python from datetime import date born = date(1984, 4, 15) # datetime.date(1984, 4, 15) on = date(2026, 10, 7) # datetime.date(2026, 10, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0082943
A $2,500 security deposit has deductions of $85. How much is refunded? Python, step by step: ```python deposit = 2500 deductions = [85] refund = deposit - sum(deductions) # 2415 print(refund) ``` The program outputs: 2415 The refund is $2,415.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2415", "printed": "2415", "notation": null}
nlprog_det-setting-0082944
<|start|><|user|> 21 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 21 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The run gives 2 each, 3 left over, as expected. Th...
chat
[ { "role": "user", "content": "21 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 21\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2 each, 3 left over", "printed": "2 each, 3 left over", "notation": null}
nlprog_det-setting-0082945
How many minutes pass from 7:43 AM to 10:45 AM on the same day? The computation: start = 7 * 60 + 43 # 463 end = 10 * 60 + 45 # 645 print(end - start) Out: 182 182 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0082946
<|start|><|user|> The firm was founded in 1998. How many years had passed by 2015?<|eot|> <|assistant|> ```python start_year = 1998 end_year = 2015 print(end_year - start_year) ``` # program output: 17 That is 17 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 1998. How many years had passed by 2015?" }, { "role": "assistant", "content": "```python\nstart_year = 1998\nend_year = 2015\nprint(end_year - start_year)\n```\n# program output: 17\n\nThat is 17 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0082947
<|start|><|user|> Nadia lends $20,000 at 5% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 20000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` Python prints 2000.00. The interest is $2,000.00.<|...
chat
[ { "role": "user", "content": "Nadia lends $20,000 at 5% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 5 / 100 # 0.05\nyears = 2\ninterest = principal * rate * years # 2000.0\nprint(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0082948
Viktor buys 9 boxes of 8 rulers each and gives away 3 rulers. How many rulers are left? The computation: ```python boxes = 9 per_box = 8 given_away = 3 left = boxes * per_box - given_away # 69 print(left) ``` The script prints 69, as expected. 69 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0082949
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Fixed costs are $1,200. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 240 units.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 240 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0082950
A library charges $0.20 per book per day late. What is the fine for 4 books that are 15 days late? Python does the arithmetic: ```python per_day = 0.2 days_late = 15 books = 4 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` What it prints: 12.00 The fine is $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0082951
How many meters are in 29.7 kilometers? Code: km = 29.7 meters = km * 1000 # 29700.0 print(round(meters)) When run, it prints 29700, as expected. That is 29,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "29700", "printed": "29700", "notation": null}
nlprog_det-setting-0082952
Fines run at $25 per day up to a maximum of $2,500. How much after 15 days? One way, in code: ```python per_day = 25 days = 15 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Result: 375 The fine is $375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0082953
What day of the week is May 20, 2013? ```python from datetime import date hearing = date(2013, 5, 20) # datetime.date(2013, 5, 20) print(hearing.strftime("%A")) ``` Executed, it shows Monday. May 20, 2013 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0082955
What is the total rent on a 36-month lease at $975 a month? Python, step by step: monthly_rent = 975 months = 36 total = monthly_rent * months # 35100 print(total) The program prints 35100, as expected. The rent over the term is $35,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "35100", "printed": "35100", "notation": null}
nlprog_det-setting-0082956
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 14333.333333333334 print(f"{per_year:.2f}") ``` The printout reads 14333.33. Depreciation is $14,333.33 per...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years # 14333.333333333334\nprint(f\"{per_year:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "14333.33", "printed": "14333.33", "notation": null}
nlprog_det-setting-0082957
Count 14 days forward from August 4, 2024. What date is that? Python does the arithmetic: from datetime import date, timedelta start = date(2024, 8, 4) # datetime.date(2024, 8, 4) end = start + timedelta(days=14) # datetime.date(2024, 8, 18) print(end.isoformat()) Shell output: 2024-08-18 The period...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2024-08-18", "printed": "2024-08-18", "notation": null}
nlprog_det-setting-0082959
Shipping costs $8 plus $2.50 per pound. What does a 9-pound parcel cost to ship? Python code: ```python base = 8 per_pound = 2.5 weight = 9 cost = base + per_pound * weight # 30.5 print(f"{cost:.2f}") ``` The code prints: 30.50 The charge is $30.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "30.50", "printed": "30.50", "notation": null}
nlprog_det-setting-0082960
With 14 rows of 18 chairs and 4 empty chairs, how many chairs are taken? In Python: ```python rows = 14 per_row = 18 empty = 4 seated = rows * per_row - empty print(seated) ``` Result — 248 248 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "248", "printed": "248", "notation": null}
nlprog_det-setting-0082961
A $96 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? One way, in code: ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 56.64 print(f"{each:.2f}") ``` # printed result: 56.64 The share is $56.64 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0082962
An attorney bills 6.5 hours at $300 per hour. What is the bill? The bill is $1,950.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1950.00", "printed": "1950.00", "notation": null}
nlprog_det-setting-0082963
<|start|><|user|> A 15 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> It takes 12 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 15 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "It takes 12 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082964
Noor was born on December 27, 1955. How old is Noor on September 18, 2028? ```python from datetime import date born = date(1955, 12, 27) # datetime.date(1955, 12, 27) on = date(2028, 9, 18) # datetime.date(2028, 9, 18) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 72 print(age) ``` Run...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0082965
Shipping costs $12 plus $0.75 per pound. What does a 21-pound parcel cost to ship? Here is a short program for it. ```python base = 12 per_pound = 0.75 weight = 21 cost = base + per_pound * weight # 27.75 print(f"{cost:.2f}") ``` Out: 27.75 The charge is $27.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "27.75", "printed": "27.75", "notation": null}
nlprog_det-setting-0082966
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "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"]}}, {"name": "convert_u...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "18.02", "printed": "18.02", "notation": null}
nlprog_det-setting-0082967
Someone born May 24, 1998 turns how old by September 25, 2026? Give the age in whole years. Written as code: ```python from datetime import date born = date(1998, 5, 24) # datetime.date(1998, 5, 24) on = date(2026, 9, 25) # datetime.date(2026, 9, 25) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0082968
At $0.65 per mile, what is the reimbursement for 419 miles? Let the code do the arithmetic: ```python miles = 419 rate = 0.65 reimbursement = miles * rate # 272.35 print(f"{reimbursement:.2f}") ``` Running it prints: 272.35 Bilal is owed $272.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "272.35", "printed": "272.35", "notation": null}
nlprog_det-setting-0082969
<|start|><|system|> You may call the tools below. {"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|> With 10 rows of 21 chairs an...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "203", "printed": "203", "notation": null}
nlprog_det-setting-0082971
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "py_exec", "description": "Executes a Python program and returns its 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\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "29 each, 3 left over", "printed": "29 each, 3 left over", "notation": null}
nlprog_det-setting-0082973
A $180 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share? A few lines of Python do it: bill = 180 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 34.49999999999999 print(f"{each:.2f}") The run gives: 34.50 The share is $34....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0082974
A 36 lb package ships at $10 base plus $0.75/lb. What is the charge? Translated to Python: ```python base = 10 per_pound = 0.75 weight = 36 cost = base + per_pound * weight # 37.0 print(f"{cost:.2f}") ``` (Console output: 37.00) The charge is $37.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "37.00", "printed": "37.00", "notation": null}
nlprog_det-setting-0082975
<|start|><|user|> Convert 26.6 km to meters.<|eot|> <|assistant|> ```python km = 26.6 meters = km * 1000 # 26600.0 print(round(meters)) ``` # printed result: 26600 26,600 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 26.6 km to meters." }, { "role": "assistant", "content": "```python\nkm = 26.6\nmeters = km * 1000 # 26600.0\nprint(round(meters))\n```\n# printed result: 26600\n\n26,600 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "26600", "printed": "26600", "notation": null}
nlprog_det-setting-0082976
A clerk's office charges $50 for each filing. Nilufar submits 5 filings. What is the total fee? Here is the program. ```python fee = 50 filings = 5 total = fee * filings # 250 print(total) ``` Execution prints: 250 The filings cost $250 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0082977
<|start|><|user|> A 100-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 100 speed = 50 minutes = distance / speed * 60 print(round(minutes)) ``` # console output: 120 The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 100-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 100\nspeed = 50\nminutes = distance / speed * 60\nprint(round(minutes))\n```\n# console output: 120\n\nThe trip takes 120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0082979
<|start|><|user|> A room is 25 feet by 9 feet. Flooring costs $8 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> The flooring costs $1,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A room is 25 feet by 9 feet. Flooring costs $8 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "The flooring costs $1,800." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0082980
<|start|><|system|> Tools you may use: [{"name": "compute", "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": "convert_units", "d...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"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\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
431
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0082981
Scale 450 g of pasta from 2 servings to 12 servings. We write it as a program: ```python grams = 450 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 2700 print(scaled) ``` Executed, it shows: 2700 Use 2700 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2700", "printed": "2700", "notation": null}
nlprog_det-setting-0082982
A 31 lb package ships at $10 base plus $2.00/lb. What is the charge? Computing it: base = 10 per_pound = 2.0 weight = 31 cost = base + per_pound * weight # 72.0 print(f"{cost:.2f}") # printed result: 72.00 Shipping costs $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0082983
<|start|><|user|> Goran and Carmen share $1,260 in the ratio 2:3. How much does Goran get?<|eot|> <|assistant|> ```python total = 1260 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 504 print(share_a) ``` The run gives: 504 Goran gets $504.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goran and Carmen share $1,260 in the ratio 2:3. How much does Goran get?" }, { "role": "assistant", "content": "```python\ntotal = 1260\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 504\nprint(share_a)\n```\nThe run gives: 504\n\nGor...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "504", "printed": "504", "notation": null}
nlprog_det-setting-0082984
Quinn and Yusuf share $2,624 in the ratio 3:5. How much does Quinn get? Python version: ```python total = 2624 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 984 print(share_a) ``` When run, it prints 984. Quinn gets $984.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "984", "printed": "984", "notation": null}
nlprog_det-setting-0082985
Vera earns a 5% commission on $21,378 of sales. What is the commission? Computation in Python: ```python sales = 21378 rate = 5 / 100 # 0.05 commission = sales * rate # 1068.9 print(f"{commission:.2f}") ``` The run gives: 1068.90 The commission is $1,068.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1068.90", "printed": "1068.90", "notation": null}
nlprog_det-setting-0082986
<|start|><|user|> Pack A has 12 items for $5.65. Pack B has 15 items for $13.36. Which has the lower price per item?<|eot|> <|assistant|> Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 12 items for $5.65. Pack B has 15 items for $13.36. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack A is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "A", "printed": "A", "notation": null}