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-0072918
<|start|><|user|> A customer buys 5 tape rolls at $8 each, 5 hard drives at $17 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(5, 8), (5, 17)] total = sum(q * p for q, p in items) # 125 paid = 150 change = paid - total # 25 print(change) ``` Result: 25 $25 comes back.<|eot|...
chat
[ { "role": "user", "content": "A customer buys 5 tape rolls at $8 each, 5 hard drives at $17 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(5, 8), (5, 17)]\ntotal = sum(q * p for q, p in items) # 125\npaid = 150\nchange = paid - total...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0072919
<|start|><|user|> A 12-month warranty starts on October 20, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 10, 20) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
chat
[ { "role": "user", "content": "A 12-month warranty starts on October 20, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 10, 20)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2028-10-20", "printed": "2028-10-20", "notation": null}
nlprog_det-setting-0072920
A clerk's office charges $50 for each filing. Quinn submits 5 filings. What is the total fee? ```python fee = 50 filings = 5 total = fee * filings # 250 print(total) ``` The program outputs: 250 $250 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0072921
Convert 8,971 USD to EUR at 1 USD = 0.74 EUR. Python version: ```python amount = 8971 rate = 0.74 converted = amount * rate # 6638.54 print(f"{converted:.2f}") ``` Run it and it prints 6638.54. It converts to 6,638.54 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "6638.54", "printed": "6638.54", "notation": null}
nlprog_det-setting-0072922
1.5 hours of work at $350 an hour: what is the total charge? Python version: hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") # output: 525.00 That comes to $525.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0072923
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Split $2,436 between Tobias and Bruna in the ratio 1 to 2. What is Tobias's share?<|eot|> <|assistant|> ```python total = 2436 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 812 print(share_a) ``` Interpreter output — 812 Tobias ...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Split $2,436 between Tobias and Bruna in the ratio 1 to 2. What is Tobias's share?" }, { "role": "assistant", "content": "```python\ntotal = 2436\nparts_a = 1\nparts_b = 2\nshare_a = total * pa...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "812", "printed": "812", "notation": null}
nlprog_det-setting-0072924
Walls total 628 sq ft and each can covers 250 sq ft. How many cans should be bought? Here's the code. ```python import math area = 628 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Execution result: 3) Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0072925
A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Script: ```python import math length = 13 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 33 print(tiles) ``` This prints: 33 33 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0072926
<|start|><|user|> Which is cheaper per unit: 8 for $7.73 (A) or 15 for $21.55 (B)?<|eot|> <|assistant|> ```python pack_a = 7.73 / 8 # 0.96625 pack_b = 21.55 / 15 # 1.4366666666666668 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Output = A Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $7.73 (A) or 15 for $21.55 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 7.73 / 8 # 0.96625\npack_b = 21.55 / 15 # 1.4366666666666668\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nOut...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0072927
What does $2,000 grow to in 2 years at 2% annual compounding? Let's compute it with Python. ```python principal = 2000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 2080.8 print(f"{value:.2f}") ``` The code prints: 2080.80 It is worth $2,080.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2080.80", "printed": "2080.80", "notation": null}
nlprog_det-setting-0072928
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours? As a program: ```python rate = 18.5 hours = 50 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 277.5 pay = regular + overtime # 1017.5 print(f"{pay:.2f}") ``` When run, it prints: 1017.50 The weekly ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1017.50", "printed": "1017.50", "notation": null}
nlprog_det-setting-0072929
What commission does Delia make on $79,515 in sales at 2%? The Python version: sales = 79515 rate = 2 / 100 # 0.02 commission = sales * rate # 1590.3 print(f"{commission:.2f}") Execution prints: 1590.30 Delia earns $1,590.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1590.30", "printed": "1590.30", "notation": null}
nlprog_det-setting-0072930
At 1% a month (simple), what interest builds on $2,500 over 4 months? Written as code: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") ``` The run gives 100.00. $100.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0072931
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many days are there ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"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": "308", "printed": "308", "notation": null}
nlprog_det-setting-0072932
A 580-page report must be reviewed in 10 days. How many pages a day is that, evenly? ```python pages = 580 days = 10 per_day = pages // days # 58 print(per_day) ``` # output: 58 That is 58 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0072933
Attendance was 13 out of 20. Express it as a percent. Let's compute it with Python. ```python present = 13 total = 20 percent = present / total * 100 # 65.0 print(round(percent, 1)) ``` The interpreter prints: 65.0 Attendance was 65.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "65.0", "printed": "65.0", "notation": null}
nlprog_det-setting-0072934
<|start|><|user|> A party has 21 days to respond to a motion served on June 2, 2028, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 6, 2) # datetime.date(2028, 6, 2) response_days = 21 mail_days = 3 due = ...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on June 2, 2028, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 6, 2) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
182
{"gold": "2028-06-26", "printed": "2028-06-26", "notation": null}
nlprog_det-setting-0072935
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
258
{"gold": "112.00", "printed": "112.00", "notation": null}
nlprog_det-setting-0072936
What average speed covers 580 miles in 2 hours? The average speed is 290 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0072937
<|start|><|user|> What percentage of $10,000 is $3,800?<|eot|> <|assistant|> ```python budget = 10000 spent = 3800 percent = spent / budget * 100 print(round(percent, 1)) ``` The script prints: 38.0 That is 38.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $3,800?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 3800\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nThe script prints: 38.0\n\nThat is 38.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "38.0", "printed": "38.0", "notation": null}
nlprog_det-setting-0072938
At 2% a month (simple), what interest builds on $1,000 over 2 months? The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0072939
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Someone born March 10, 1953 turns how old by February 14, 2020? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1953, 3, 10) # datetime.date(1953, 3, 10) on = date(2020, 2, 14) # datetime.date(20...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Someone born March 10, 1953 turns how old by February 14, 2020? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date...
nlprog_det
setting
original
null
deterministic
[]
[]
169
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0072940
20 of 20 members attended. What percent attended? Written as code: ```python present = 20 total = 20 percent = present / total * 100 # 100.0 print(round(percent, 1)) ``` The interpreter prints 100.0. Attendance was 100.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0072941
<|start|><|system|> Tools (call with JSON): {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "run_python", "description": "Executes Python cod...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
311
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0072942
606 files go into boxes of 24. How many boxes does that take? Computation in Python: ```python import math files = 606 per_box = 24 boxes = math.ceil(files / per_box) # 26 print(boxes) ``` # output: 26 It takes 26 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0072943
A client paid a $7,500 retainer. The firm has billed 4 hours at $150 per hour. How much of the retainer is left? The program: ```python retainer = 7500 hours = 4 rate = 150 left = retainer - hours * rate # 6900 print(left) ``` Console output: 6900 The remaining balance is $6,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "6900", "printed": "6900", "notation": null}
nlprog_det-setting-0072944
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after January 21, 2026 up to and including January 31, 2026?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 1, 21) end = date(2026, 1, 31) count = 0 for k in range(1, (end -...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 21, 2026 up to and including January 31, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta...
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0072945
<|start|><|user|> How many whole days and leftover hours are in 122 hours?<|eot|> <|assistant|> hours = 122 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") (Console output: 5 days and 2 hours) That is 5 days and 2 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 122 hours?" }, { "role": "assistant", "content": " hours = 122\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\n(Console output: 5 days and 2 hours)\n\nThat is 5 days and 2 hours." ...
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "5 days and 2 hours", "printed": "5 days and 2 hours", "notation": null}
nlprog_det-setting-0072946
7 boxes hold 8 flash drives each. After 13 are handed out, how many are left? Let's compute it with Python. ```python boxes = 7 per_box = 8 given_away = 13 left = boxes * per_box - given_away # 43 print(left) ``` The program prints 43, as expected. 43 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0072947
<|start|><|system|> Tools (call with JSON): {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "business_days", "description": "Count business days between two dates.",...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"business_days\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
365
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0072948
To read 630 pages in 14 days, how many pages per day are needed? Here's the code. ```python pages = 630 days = 14 per_day = pages // days # 45 print(per_day) ``` Running this gives 45. 45 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0072949
Parking is $5 per hour with a daily maximum of $18. What do 8 hours cost? Python, step by step: ```python rate = 5 hours = 8 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Run output: 18 Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072950
Goods bought on November 3, 2019 carry a 24-month warranty. When does it expire? Python, step by step: ```python from datetime import date start = date(2019, 11, 3) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2021-11-03", "printed": "2021-11-03", "notation": null}
nlprog_det-setting-0072951
A quorum is 1/3 of the 22 members, rounded up. How many members make a quorum? We can compute it in Python. ```python import math members = 22 quorum = math.ceil(members * 1 / 3) # 8 print(quorum) ``` When run, it prints 8, as expected. That is 8 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0072952
$10,000 is invested at 4% compounded yearly. What is it worth after 5 years? Program: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 12166.529024000001 print(f"{value:.2f}") ``` Run it and it prints: 12166.53 The balance is $12,166.53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12166.53", "printed": "12166.53", "notation": null}
nlprog_det-setting-0072953
A 4% increase is applied to $1,100 monthly rent. What is the new amount? ```python rent = 1100 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1144.0 print(f"{new_rent:.2f}") ``` What it prints: 1144.00 It rises to $1,144.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1144.00", "printed": "1144.00", "notation": null}
nlprog_det-setting-0072954
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A penalty of $250 a day accrues, capped at $2,500. What is owed after 58 days?<|eot|> <|assistant|> ```python per_day = 250 days = 58 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Running this gives 2500. $2,500 is owed.<|eot|> <...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A penalty of $250 a day accrues, capped at $2,500. What is owed after 58 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 58\ncap = 2500\nfine = min(per_day...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0072955
The meal allowance is $64 per day. What is it for 8 days? Here is a short program for it. ```python days = 8 meal_rate = 64 total = days * meal_rate # 512 print(total) ``` stdout = 512 The allowance is $512.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "512", "printed": "512", "notation": null}
nlprog_det-setting-0072956
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0072957
<|start|><|user|> A trial runs from April 14, 2023 to April 22, 2023, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 4, 14) # datetime.date(2023, 4, 14) last = date(2023, 4, 22) # datetime.date(2023, 4, 22) days = (last - first).days + 1...
chat
[ { "role": "user", "content": "A trial runs from April 14, 2023 to April 22, 2023, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 4, 14) # datetime.date(2023, 4, 14)\nlast = date(2023, 4, 22) # ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0072958
Count the days between May 17, 2028 and June 13, 2029. We write it as a program: from datetime import date first = date(2028, 5, 17) # datetime.date(2028, 5, 17) second = date(2029, 6, 13) # datetime.date(2029, 6, 13) print((second - first).days) (Out: 392) There are 392 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0072959
<|start|><|user|> A trial runs from April 14, 2024 to May 9, 2024, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 4, 14) # datetime.date(2024, 4, 14) last = date(2024, 5, 9) # datetime.date(2024, 5, 9) days = (last - first).days + 1 # 2...
chat
[ { "role": "user", "content": "A trial runs from April 14, 2024 to May 9, 2024, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 4, 14) # datetime.date(2024, 4, 14)\nlast = date(2024, 5, 9) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0072960
Attendance was 21 out of 40. Express it as a percent. ```python present = 21 total = 40 percent = present / total * 100 # 52.5 print(round(percent, 1)) ``` The run gives 52.5, as expected. Attendance was 52.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0072962
Which is cheaper per unit: 10 for $9.13 (A) or 30 for $16.92 (B)? Let's compute it with Python. ```python pack_a = 9.13 / 10 # 0.913 pack_b = 16.92 / 30 # 0.5640000000000001 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The program prints B, as expected. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0072963
<|start|><|user|> Parking is $5 per hour with a daily maximum of $18. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` (stdout: 18) The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $18. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\n(stdout: 18)\n\nThe charge is $18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072964
<|start|><|user|> A settlement of $4,500 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> Each share is $750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $4,500 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each share is $750." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0072965
A settlement of $2,640 is split equally among 3 parties. How much does each party receive? Here is the program. settlement = 2640 parties = 3 share = settlement // parties # 880 print(share) Printed: 880 Each share is $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0072966
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> The paralegal logged 2.5 hours at a rate of $250. How much is billed?<|eot|> <|assistant|> ```python hours = 2.5 rate = 250 bill = hours * rate # 625.0 print(f"{bill:.2f}") ``` The code prints 625.00. The bill is $625.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "The paralegal logged 2.5 hours at a rate of $250. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 250\nbill = hours * rate # 625.0\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "625.00", "printed": "625.00", "notation": null}
nlprog_det-setting-0072967
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 6 months? One way, in code: balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") stdout: 60.00 $60.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0072968
Maren earns a 4% commission on $30,394 of sales. What is the commission? As Python: ```python sales = 30394 rate = 4 / 100 # 0.04 commission = sales * rate # 1215.76 print(f"{commission:.2f}") ``` Python prints 1215.76, as expected. The commission is $1,215.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1215.76", "printed": "1215.76", "notation": null}
nlprog_det-setting-0072969
What percentage of $2,000 is $600? As Python: ```python budget = 2000 spent = 600 percent = spent / budget * 100 # 30.0 print(round(percent, 1)) ``` stdout = 30.0 That is 30.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "30.0", "printed": "30.0", "notation": null}
nlprog_det-setting-0072970
Malik buys 3 boxes of 24 lanyards each and gives away 14 lanyards. How many lanyards are left? That leaves 58 lanyards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0072971
A $2,000 security deposit has deductions of $120, $85 and $60. How much is refunded? Computing it: ```python deposit = 2000 deductions = [120, 85, 60] refund = deposit - sum(deductions) # 1735 print(refund) ``` (Output: 1735) $1,735 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1735", "printed": "1735", "notation": null}
nlprog_det-setting-0072972
<|start|><|user|> What does $2,000 grow to in 4 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 2251.01762 print(f"{value:.2f}") ``` It prints 2251.02, as expected. It is worth $2,251.02.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 4 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = principal * (1 + rate) ** years # 2251.01762\nprint(f\"{value:.2f}\")\n```\nIt prints 2251.0...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2251.02", "printed": "2251.02", "notation": null}
nlprog_det-setting-0072973
<|start|><|user|> A settlement of $18,000 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 18000 parties = 8 share = settlement // parties # 2250 print(share) ``` Printed: 2250 Each party receives $2,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $18,000 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 8\nshare = settlement // parties # 2250\nprint(share)\n```\nPrinted:\n2250\n\nEach party rece...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0072974
<|start|><|user|> A car travels 327 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 327 hours = 1.5 speed = distance / hours # 218.0 print(round(speed)) ``` Run output — 218 The average speed is 218 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 327 miles in 1.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 327\nhours = 1.5\nspeed = distance / hours # 218.0\nprint(round(speed))\n```\nRun output — 218\n\nThe average speed is 21...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "218", "printed": "218", "notation": null}
nlprog_det-setting-0072975
If a 25-minute appointment begins at 9:00 AM, what time does it finish? ```python start = 9 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # execution result: 9:25 AM The appointment finishes at 9:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "9:25 AM", "printed": "9:25 AM", "notation": null}
nlprog_det-setting-0072977
Hugo was born on April 5, 1974. How old is Hugo on December 4, 2025? Let the code do the arithmetic: ```python from datetime import date born = date(1974, 4, 5) # datetime.date(1974, 4, 5) on = date(2025, 12, 4) # datetime.date(2025, 12, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0072978
<|start|><|user|> Yoko's scores were 82, 77, 62 and 99. What is the average score?<|eot|> <|assistant|> ```python scores = [82, 77, 62, 99] average = sum(scores) // len(scores) # 80 print(average) ``` The script prints 80. The average score is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yoko's scores were 82, 77, 62 and 99. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [82, 77, 62, 99]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\nThe script prints 80.\n\nThe average score is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0072979
133 copies of a 54-page packet are printed at $0.10 per page. What is the cost? Python makes this quick: ```python pages = 54 copies = 133 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 718.2 print(f"{cost:.2f}") ``` Console: 718.20 The job costs $718.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "718.20", "printed": "718.20", "notation": null}
nlprog_det-setting-0072980
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Each of Wanjiru's bike rides burns 400 calories. How many calories over 6 bike rides?<|eot|> <|assistant|> ```python per_session = 400 sessions = 6 total = per_session * sessions # 2400 print(total) ``` Run result = 2400 That burns 2400 calories.<|eot|>...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Each of Wanjiru's bike rides burns 400 calories. How many calories over 6 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 6\ntotal = per_session ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0072982
Attendance was 16 out of 25. Express it as a percent. As Python: ```python present = 16 total = 25 percent = present / total * 100 # 64.0 print(round(percent, 1)) ``` (Console output: 64.0) Attendance was 64.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0072983
Jae earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week? We can compute it in Python. rate = 18.5 hours = 53 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 360.75 pay = regular + overtime # 1100.75 print(f"{pay:.2f}") It prints 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1100.75", "printed": "1100.75", "notation": null}
nlprog_det-setting-0072984
A party has 30 days to respond to a motion served on November 26, 2027, with 3 days added because service was by mail. When is the response due? Let the code do the arithmetic: ```python from datetime import date, timedelta served = date(2027, 11, 26) # datetime.date(2027, 11, 26) response_days = 30 mail_days = 3 due...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
184
{"gold": "2027-12-29", "printed": "2027-12-29", "notation": null}
nlprog_det-setting-0072985
How many whole days and leftover hours are in 356 hours? That is 14 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "14 days and 20 hours", "printed": "14 days and 20 hours", "notation": null}
nlprog_det-setting-0072986
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 20.0...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthl...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0072987
At $0.67 per mile, what is the reimbursement for 283 miles? Written as code: miles = 283 rate = 0.67 reimbursement = miles * rate # 189.61 print(f"{reimbursement:.2f}") Result = 189.61 Arjun is owed $189.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "189.61", "printed": "189.61", "notation": null}
nlprog_det-setting-0072989
A trial runs from December 23, 2025 to January 10, 2026, counting both days. How many calendar days is that? Here's the code. ```python from datetime import date first = date(2025, 12, 23) # datetime.date(2025, 12, 23) last = date(2026, 1, 10) # datetime.date(2026, 1, 10) days = (last - first).days + 1 # 19 print(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0072990
Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year? Depreciation is $4,666.67 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0072991
<|start|><|user|> A settlement of $1,200 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 6 share = settlement // parties # 200 print(share) ``` Executing it gives 200, as expected. Each party receives $200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $1,200 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 6\nshare = settlement // parties # 200\nprint(share)\n```\nExecuting it gives 200, as expected....
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0072992
A kettle costs $75. It is 15% off. What is the sale price? Translated to Python: ```python price = 75 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 63.75 print(f"{sale_price:.2f}") ``` Python prints 63.75. The sale price is $63.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "63.75", "printed": "63.75", "notation": null}
nlprog_det-setting-0072993
<|start|><|user|> A penalty of $250 a day accrues, capped at $5,000. What is owed after 8 days?<|eot|> <|assistant|> ```python per_day = 250 days = 8 cap = 5000 fine = min(per_day * days, cap) # 2000 print(fine) ``` Printed — 2000 $2,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 8 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 8\ncap = 5000\nfine = min(per_day * days, cap) # 2000\nprint(fine)\n```\nPrinted — 2000\n\n$2,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0072994
Each of Lena's swims burns 150 calories. How many calories over 6 swims? Python: ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` Run output: 900 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0072995
A pack of 6 markers sells for $162. What does each cost? Here is the program. ```python total = 162 count = 6 per_item = total // count # 27 print(per_item) ``` Printed result — 27 Each one costs $27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0072996
Printing costs 12 cents a page. What does it cost to print 146 copies of a 19-page handout? Let's compute it with Python. pages = 19 copies = 146 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 332.88 print(f"{cost:.2f}") # out: 332.88 The job costs $332.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "332.88", "printed": "332.88", "notation": null}
nlprog_det-setting-0072997
<|start|><|user|> 5 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 5 share = settlement // parties # 240 print(share) ``` stdout — 240 Each share is $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 5\nshare = settlement // parties # 240\nprint(share)\n```\nstdout — 240\n\nEach share is $240." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0072998
<|start|><|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") ``` Executed, it show...
chat
[ { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 37.5\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0072999
<|start|><|user|> How many days are there from March 16, 2027 to April 3, 2028?<|eot|> <|assistant|> from datetime import date first = date(2027, 3, 16) # datetime.date(2027, 3, 16) second = date(2028, 4, 3) # datetime.date(2028, 4, 3) print((second - first).days) Executing it gives 384, as expected. ...
chat
[ { "role": "user", "content": "How many days are there from March 16, 2027 to April 3, 2028?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2027, 3, 16) # datetime.date(2027, 3, 16)\n second = date(2028, 4, 3) # datetime.date(2028, 4, 3)\n print((se...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "384", "printed": "384", "notation": null}
nlprog_det-setting-0073000
<|start|><|user|> How many of 36 votes make 67% (round up)?<|eot|> <|assistant|> At least 25 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 36 votes make 67% (round up)?" }, { "role": "assistant", "content": "At least 25 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0073001
One can of paint covers 300 square feet. How many cans are needed for 513 square feet of wall? A few lines of Python do it: import math area = 513 coverage = 300 cans = math.ceil(area / coverage) print(cans) Run result — 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0073002
<|start|><|user|> Meals are $69 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?<|eot|> <|assistant|> That comes to $2,021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?" }, { "role": "assistant", "content": "That comes to $2,021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2021", "printed": "2021", "notation": null}
nlprog_det-setting-0073003
Ulla drove 25 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Python version: ```python miles = 25 rate = 0.62 reimbursement = miles * rate # 15.5 print(f"{reimbursement:.2f}") ``` (Out: 15.50) The reimbursement is $15.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15.50", "printed": "15.50", "notation": null}
nlprog_det-setting-0073004
Prorate $1,500 of monthly rent for 14 days of a 31-day month. Let the code do the arithmetic: ```python rent = 1500 days_in_month = 31 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 677.4193548387096 print(f"{prorated:.2f}") ``` Executing it gives: 677.42 The tenant owes $677.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "677.42", "printed": "677.42", "notation": null}
nlprog_det-setting-0073005
3 books come back 23 days late, at $0.25 a day each. What is the fine? $17.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0073006
A 3% increase is applied to $2,200 monthly rent. What is the new amount? A Python solution: ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` Execution result — 2266.00 It rises to $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0073007
<|start|><|system|> Give the answer first.<|eot|> <|user|> Express 206 hours in days and hours.<|eot|> <|assistant|> ```python hours = 206 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed — 8 days and 14 hours 206 hours is 8 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Express 206 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 206\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted — 8 days...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "8 days and 14 hours", "printed": "8 days and 14 hours", "notation": null}
nlprog_det-setting-0073008
What average speed covers 372 miles in 2 hours? ```python distance = 372 hours = 2 speed = distance / hours # 186.0 print(round(speed)) ``` Execution result — 186 The average speed is 186 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "186", "printed": "186", "notation": null}
nlprog_det-setting-0073009
<|start|><|user|> What commission does Ada make on $113,088 in sales at 2%?<|eot|> <|assistant|> ```python sales = 113088 rate = 2 / 100 # 0.02 commission = sales * rate # 2261.76 print(f"{commission:.2f}") ``` Running it prints 2261.76, as expected. The commission is $2,261.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Ada make on $113,088 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 113088\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 2261.76\nprint(f\"{commission:.2f}\")\n```\nRunning it prints 2261.76, as expected.\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2261.76", "printed": "2261.76", "notation": null}
nlprog_det-setting-0073010
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A $120 d...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "23.60", "printed": "23.60", "notation": null}
nlprog_det-setting-0073011
<|start|><|user|> Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 20,000 gallons?<|eot|> <|assistant|> The bill is $103.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 20,000 gallons?" }, { "role": "assistant", "content": "The bill is $103.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "103.80", "printed": "103.80", "notation": null}
nlprog_det-setting-0073012
Nadia's scores were 63, 70 and 83. What is the average score? A short script: ```python scores = [63, 70, 83] average = sum(scores) // len(scores) # 72 print(average) ``` What it prints — 72 The mean is 72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0073013
<|start|><|user|> 147 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> It takes 4 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "147 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 4 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0073014
A lawyer's fee is 35% of a $40,000 recovery. How large is the fee? We can compute it in Python. ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` Run result: 14000.00 The fee is $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0073015
What percentage of $2,000 is $600? Code: budget = 2000 spent = 600 percent = spent / budget * 100 # 30.0 print(round(percent, 1)) Console output: 30.0 That is 30.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "30.0", "printed": "30.0", "notation": null}
nlprog_det-setting-0073016
<|start|><|user|> Of a $5,000 budget, $4,000 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 4000 percent = spent / budget * 100 # 80.0 print(round(percent, 1)) ``` Shell output: 80.0 That is 80.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $5,000 budget, $4,000 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 4000\npercent = spent / budget * 100 # 80.0\nprint(round(percent, 1))\n```\nShell output: 80.0\n\nThat is 80.0% of the budget."...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0073017
Nilufar drove 45 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Nilufar is owed $29.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "29.25", "printed": "29.25", "notation": null}
nlprog_det-setting-0073020
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal. The margin is 11.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0073021
<|start|><|user|> Ada buys 11 boxes of 6 sticky pads each and gives away 20 sticky pads. How many sticky pads are left?<|eot|> <|assistant|> boxes = 11 per_box = 6 given_away = 20 left = boxes * per_box - given_away # 46 print(left) Output: 46 46 sticky pads are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ada buys 11 boxes of 6 sticky pads each and gives away 20 sticky pads. How many sticky pads are left?" }, { "role": "assistant", "content": " boxes = 11\n per_box = 6\n given_away = 20\n left = boxes * per_box - given_away # 46\n print(left)\nOutput:...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0073022
If a 25-minute class begins at 8:30 AM, what time does it finish? The class finishes at 8:55 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "8:55 AM", "printed": "8:55 AM", "notation": null}
nlprog_det-setting-0073023
At a 8% tax rate, what is the tax on $280.81? Python version: ```python price = 280.81 tax_rate = 8 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Printed: 22.46 $22.46 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "22.46", "printed": "22.46", "notation": null}