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-0078062
<|start|><|user|> From 1993 to 2026, how many years is that?<|eot|> <|assistant|> ```python start_year = 1993 end_year = 2026 print(end_year - start_year) ``` # program output: 33 That is 33 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1993 to 2026, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1993\nend_year = 2026\nprint(end_year - start_year)\n```\n# program output: 33\n\nThat is 33 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0078064
<|start|><|user|> Abel was born on March 18, 1954. How old is Abel on April 26, 2029?<|eot|> <|assistant|> ```python from datetime import date born = date(1954, 3, 18) # datetime.date(1954, 3, 18) on = date(2029, 4, 26) # datetime.date(2029, 4, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
chat
[ { "role": "user", "content": "Abel was born on March 18, 1954. How old is Abel on April 26, 2029?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1954, 3, 18) # datetime.date(1954, 3, 18)\non = date(2029, 4, 26) # datetime.date(2029, 4, 26)\nage = on.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0078065
<|start|><|system|> Functions: {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Meals are $79 per day and lodging $110 per nig...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "1591", "printed": "1591", "notation": null}
nlprog_det-setting-0078066
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 86 copies of a 39-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 39 copies = 86 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 503.09999999999997 print(f"{cost:.2f}") ``` It prints: 503.10 The...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "86 copies of a 39-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 39\ncopies = 86\ncost_per_page = 0.15\ncost = pages * copi...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "503.10", "printed": "503.10", "notation": null}
nlprog_det-setting-0078067
Starting from $20,000, the team spends $312, $1,080. What remains? In code: ```python budget = 20000 expenses = [312, 1080] left = budget - sum(expenses) # 18608 print(left) ``` The program prints: 18608 The remaining budget is $18,608.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "18608", "printed": "18608", "notation": null}
nlprog_det-setting-0078068
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Copies cost $10 plus $0...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0078069
<|start|><|system|> Tools you may use: {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "search_cases", "description": "Search case law ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{...
nlprog_det
setting
original
null
deterministic
[]
[]
374
{"gold": "558", "printed": "558", "notation": null}
nlprog_det-setting-0078070
5 friends split a $96 bill plus a 15% tip evenly. How much does each pay? Python, step by step: bill = 96 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 22.08 print(f"{each:.2f}") Shell output: 22.08 Each person pays $22.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "22.08", "printed": "22.08", "notation": null}
nlprog_det-setting-0078071
<|start|><|user|> After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` Run output — 4000.00 $4,000.00 per installment.<|...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 4000.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0078072
3 books come back 17 days late, at $0.20 a day each. What is the fine? Python makes this quick: ```python per_day = 0.2 days_late = 17 books = 3 fine = per_day * days_late * books # 10.200000000000001 print(f"{fine:.2f}") ``` Executed, it shows: 10.20 $10.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "10.20", "printed": "10.20", "notation": null}
nlprog_det-setting-0078073
Of a $5,000 budget, $1,800 has been spent. What percent is that? One way, in code: ```python budget = 5000 spent = 1800 percent = spent / budget * 100 # 36.0 print(round(percent, 1)) ``` # program output: 36.0 36.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "36.0", "printed": "36.0", "notation": null}
nlprog_det-setting-0078074
<|start|><|user|> An attorney bills 1.5 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` Out = 525.00 That comes to $525.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 1.5 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 350\nbill = hours * rate # 525.0\nprint(f\"{bill:.2f}\")\n```\nOut = 525.00\n\nThat comes to $525.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0078076
254 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? Written as code: ```python total = 254 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It outputs 84 each, 2 left over. The answer: 84 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "84 each, 2 left over", "printed": "84 each, 2 left over", "notation": null}
nlprog_det-setting-0078077
Papers were served by mail on March 10, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? The response is due on April 12, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2026-04-12", "printed": "2026-04-12", "notation": null}
nlprog_det-setting-0078078
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 27-page copy cost?<|eot|> <|assistant|> ```python pages = 27 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 17.7 ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 27-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 27\nbase = 15\nper...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "17.70", "printed": "17.70", "notation": null}
nlprog_det-setting-0078079
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A 24-month warranty starts on October 16, 2024. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 10, 16) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(st...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A 24-month warranty starts on October 16, 2024. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 10, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "2026-10-16", "printed": "2026-10-16", "notation": null}
nlprog_det-setting-0078081
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 300 print(units...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0078082
<|start|><|user|> A party has 21 days to respond to a motion served on January 20, 2019, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2019, 1, 20) # datetime.date(2019, 1, 20) response_days = 21 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on January 20, 2019, 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(2019, 1, 20) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2019-02-13", "printed": "2019-02-13", "notation": null}
nlprog_det-setting-0078083
Zainab was born on July 11, 1976. How old is Zainab on October 4, 2027? Coded up: ```python from datetime import date born = date(1976, 7, 11) # datetime.date(1976, 7, 11) on = date(2027, 10, 4) # datetime.date(2027, 10, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 51 print(age) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0078084
After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part? Code: ```python grant = 30000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` stdout: 4000.00 $4,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0078085
<|start|><|user|> 7 scissors cost $6 apiece. With 7% tax added, what is the total?<|eot|> <|assistant|> The total with tax is $44.94.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 scissors cost $6 apiece. With 7% tax added, what is the total?" }, { "role": "assistant", "content": "The total with tax is $44.94." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "44.94", "printed": "44.94", "notation": null}
nlprog_det-setting-0078086
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How many ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0078087
Rent of $1,500 goes up 4%. What is the new rent? We write it as a program: rent = 1500 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1560.0 print(f"{new_rent:.2f}") What it prints — 1560.00 It rises to $1,560.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1560.00", "printed": "1560.00", "notation": null}
nlprog_det-setting-0078088
Rent of $1,500 goes up 6%. What is the new rent? Set it up in Python: ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` The program prints 1590.00, as expected. The new rent is $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0078089
A client paid a $5,000 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left? ```python retainer = 5000 hours = 7 rate = 150 left = retainer - hours * rate # 3950 print(left) ``` What it prints: 3950 The remaining balance is $3,950.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3950", "printed": "3950", "notation": null}
nlprog_det-setting-0078090
Printing costs 15 cents a page. What does it cost to print 68 copies of a 18-page handout? The job costs $183.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "183.60", "printed": "183.60", "notation": null}
nlprog_det-setting-0078091
A shift starts at 1:40 PM and lasts 75 minutes. When does it end? Programmatically: ```python start = 13 * 60 + 40 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run result — 2:55 PM It ends at 2:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2:55 PM", "printed": "2:55 PM", "notation": null}
nlprog_det-setting-0078092
<|start|><|user|> How much sales tax is charged on a $156.19 purchase at 8%?<|eot|> <|assistant|> ```python price = 156.19 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 12.4952 print(f"{tax:.2f}") ``` stdout = 12.50 The tax is $12.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $156.19 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 156.19\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 12.4952\nprint(f\"{tax:.2f}\")\n```\nstdout = 12.50\n\nThe tax is $12.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0078093
Find the mean of these test scores: 86, 93, 82 and 71. Programmatically: ```python scores = [86, 93, 82, 71] average = sum(scores) // len(scores) # 83 print(average) ``` (Printed result: 83) The mean is 83.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0078094
Split $5,404 between Noor and Omar in the ratio 2 to 5. What is Noor's share? Noor's share is $1,544.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1544", "printed": "1544", "notation": null}
nlprog_det-setting-0078095
Express 276 hours in days and hours. Set it up in Python: ```python hours = 276 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out = 11 days and 12 hours 276 hours is 11 days and 12 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11 days and 12 hours", "printed": "11 days and 12 hours", "notation": null}
nlprog_det-setting-0078096
Revenue is $10,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? A short script: ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Out: 20.0 The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0078097
<|start|><|user|> A bicycle helmet costs $120. It is 15% off. What is the sale price?<|eot|> <|assistant|> ```python price = 120 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 102.0 print(f"{sale_price:.2f}") ``` # console output: 102.00 It costs $102.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $120. It is 15% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 120\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 102.0\nprint(f\"{sale_price:.2f}\")\n```\n# console output: 102.00\...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "102.00", "printed": "102.00", "notation": null}
nlprog_det-setting-0078098
If a 90-minute shift begins at 9:30 AM, what time does it finish? Coded up: ```python start = 9 * 60 + 30 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution result — 11:00 AM The shift finishes at 11:00 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "11:00 AM", "printed": "11:00 AM", "notation": null}
nlprog_det-setting-0078100
Split $5,838 between Sami and Paula in the ratio 3 to 4. What is Sami's share? Let the code do the arithmetic: ```python total = 5838 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 2502 print(share_a) ``` Python prints 2502, as expected. Sami's share is $2,502.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2502", "printed": "2502", "notation": null}
nlprog_det-setting-0078101
One can of paint covers 250 square feet. How many cans are needed for 822 square feet of wall? Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0078102
<|start|><|system|> Tools you may use: [{"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|> A $210 dinner bill gets a 18% tip, an...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "82.60", "printed": "82.60", "notation": null}
nlprog_det-setting-0078103
12 hours of work at $150 an hour: what is the total charge? Program: ```python hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` Executed, it shows 1800.00. The bill is $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0078104
A hall has 17 rows of 8 seats, and 22 seats are empty. How many people are seated? Python makes this quick: ```python rows = 17 per_row = 8 empty = 22 seated = rows * per_row - empty # 114 print(seated) ``` The run gives 114. 114 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0078105
<|start|><|user|> A party has 28 days to respond to a motion served on January 28, 2022, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2022, 1, 28) # datetime.date(2022, 1, 28) response_days = 28 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on January 28, 2022, 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(2022, 1, 28) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2022-02-28", "printed": "2022-02-28", "notation": null}
nlprog_det-setting-0078106
A 18-month warranty starts on November 7, 2019. On what date does it end? It expires on May 7, 2021.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2021-05-07", "printed": "2021-05-07", "notation": null}
nlprog_det-setting-0078108
Ada lends $1,000 at 3% simple interest per year for 5 years. How much interest is earned? One way, in code: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 150.0 print(f"{interest:.2f}") ``` Output of the run: 150.00 It earns $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0078109
At a 5% tax rate, what is the tax on $128.69? One way, in code: ```python price = 128.69 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 6.4345 print(f"{tax:.2f}") ``` Executing it gives: 6.43 The tax is $6.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "6.43", "printed": "6.43", "notation": null}
nlprog_det-setting-0078110
How long, in days, is it from October 11, 2026 until March 2, 2027? There are 142 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0078111
A settlement of $2,640 is split equally among 3 parties. How much does each party receive? As Python: ```python settlement = 2640 parties = 3 share = settlement // parties # 880 print(share) ``` The program outputs: 880 Each share is $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0078112
<|start|><|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": "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
[]
[]
50
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0078113
One can of paint covers 250 square feet. How many cans are needed for 1033 square feet of wall? Here is a short program for it. ```python import math area = 1033 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` Run output: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0078114
A class starts at 4:45 PM and lasts 75 minutes. When does it end? One way, in code: ```python start = 16 * 60 + 45 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Interpreter output — 6:00 PM It ends at 6:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "6:00 PM", "printed": "6:00 PM", "notation": null}
nlprog_det-setting-0078116
A $1,500 security deposit has deductions of $120, $85 and $45. How much is refunded? Computation in Python: ```python deposit = 1500 deductions = [120, 85, 45] refund = deposit - sum(deductions) # 1250 print(refund) ``` Printed: 1250 $1,250 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0078117
<|start|><|user|> Mateo drove 162 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 162 rate = 0.65 reimbursement = miles * rate # 105.3 print(f"{reimbursement:.2f}") ``` Shell output: 105.30 The reimbursement is $105.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mateo drove 162 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 162\nrate = 0.65\nreimbursement = miles * rate # 105.3\nprint(f\"{reimbursement:.2f}\")\n```\nShell ou...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "105.30", "printed": "105.30", "notation": null}
nlprog_det-setting-0078118
Divide 231 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? Here is the program. ```python total = 231 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running this gives 77 each, 0 left over. The answer...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "77 each, 0 left over", "printed": "77 each, 0 left over", "notation": null}
nlprog_det-setting-0078119
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Rafael and Rosa...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "1257", "printed": "1257", "notation": null}
nlprog_det-setting-0078120
38 of 50 members attended. What percent attended? We can compute it in Python. ```python present = 38 total = 50 percent = present / total * 100 # 76.0 print(round(percent, 1)) ``` Out = 76.0 Attendance was 76.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "76.0", "printed": "76.0", "notation": null}
nlprog_det-setting-0078121
Pack A has 10 items for $9.85. Pack B has 18 items for $25.79. Which has the lower price per item? The Python version: ```python pack_a = 9.85 / 10 # 0.985 pack_b = 25.79 / 18 # 1.4327777777777777 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Console: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0078122
<|start|><|user|> Count the days between June 17, 2027 and April 22, 2028.<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 6, 17) # datetime.date(2027, 6, 17) second = date(2028, 4, 22) # datetime.date(2028, 4, 22) print((second - first).days) ``` Run output: 310 It is 310 days.<|eot|> <|...
chat
[ { "role": "user", "content": "Count the days between June 17, 2027 and April 22, 2028." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 6, 17) # datetime.date(2027, 6, 17)\nsecond = date(2028, 4, 22) # datetime.date(2028, 4, 22)\nprint((second - f...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "310", "printed": "310", "notation": null}
nlprog_det-setting-0078123
Kemal drove 573 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? ```python miles = 573 rate = 0.67 reimbursement = miles * rate # 383.91 print(f"{reimbursement:.2f}") ``` This prints 383.91, as expected. Kemal is owed $383.91.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "383.91", "printed": "383.91", "notation": null}
nlprog_det-setting-0078125
A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here's the code. ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + int...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "216.67", "printed": "216.67", "notation": null}
nlprog_det-setting-0078126
<|start|><|user|> A $24,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 24000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 3000.0 print(f"{each:.2f}") ``` # printed: 3000.00 Each installment is $3...
chat
[ { "role": "user", "content": "A $24,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 6000\ninstallments = 6\neach = (grant - up_front) / installments # 3000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0078127
A service costs $15 a month or $162 a year. How much does the yearly plan save over 12 monthly payments? Let's compute it with Python. ```python monthly = 15 yearly = 162 savings = monthly * 12 - yearly # 18 print(savings) ``` When run, it prints: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078128
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "eval_python", "description": "Runs a short Python snippet and...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"eval_p...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "3177.76", "printed": "3177.76", "notation": null}
nlprog_det-setting-0078129
A hearing starts at 8:45 AM and lasts 40 minutes. When does it end? Python: ```python start = 8 * 60 + 45 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 9:25 AM. It ends at 9:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "9:25 AM", "printed": "9:25 AM", "notation": null}
nlprog_det-setting-0078130
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours? Written as code: ```python rate = 18.5 hours = 44 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 111.0 pay = regular + overtime # 851.0 print(f"{pay:.2f}") ``` Program output — 851.00 Hugo earns $85...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "851.00", "printed": "851.00", "notation": null}
nlprog_det-setting-0078131
<|start|><|user|> Papers were served by mail on June 11, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 6, 11) # datetime.date(2021, 6, 11) response_days = 30 mail_days = 3 due =...
chat
[ { "role": "user", "content": "Papers were served by mail on June 11, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 6, 11) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2021-07-14", "printed": "2021-07-14", "notation": null}
nlprog_det-setting-0078132
Convert 3 h 13 min (the length of a film) to minutes. The program: ```python hours = 3 minutes = 13 total_minutes = hours * 60 + minutes print(total_minutes) ``` (Out: 193) That is 193 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0078133
<|start|><|user|> Monthly rent is $900. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 240.0 print(f"{prorated:.2f}") ``` # program output: 240.00 The pror...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 8\nprorated = rent * days_occupied / days_in_month # 240.0\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0078134
Notice was given on August 5, 2024. The notice period is 45 days. When does it run out? Programmatically: ```python from datetime import date, timedelta start = date(2024, 8, 5) # datetime.date(2024, 8, 5) end = start + timedelta(days=45) # datetime.date(2024, 9, 19) print(end.isoformat()) ``` Running this gives 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2024-09-19", "printed": "2024-09-19", "notation": null}
nlprog_det-setting-0078135
<|start|><|system|> Functions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"get_weather\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
338
{"gold": "42.0", "printed": "42.0", "notation": null}
nlprog_det-setting-0078136
An office budget of $8,000 has expenses of $3,348, $3,008, $580, $2,371. How much of the budget is left? Python does the arithmetic: budget = 8000 expenses = [3348, 3008, 580, 2371] left = budget - sum(expenses) # -1307 print(left) Interpreter output: -1307 -$1,307 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "-1307", "printed": "-1307", "notation": null}
nlprog_det-setting-0078137
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> What percentage of $4,000 is $600?<|eot|> <|assistant|> ```python budget = 4000 spent = 600 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) ``` This prints 15.0. 15.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "What percentage of $4,000 is $600?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 600\npercent = spent / budget * 100 # 15.0\nprint(round(percent, 1))\...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0078138
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 41 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 24.0 pay = regular + overtime # 664.0 print(f"{pay:.2f}") ``` Result — 664.00 Th...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 41\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 24.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "664.00", "printed": "664.00", "notation": null}
nlprog_det-setting-0078139
55 of 80 members attended. What percent attended? Translated to Python: ```python present = 55 total = 80 percent = present / total * 100 # 68.75 print(round(percent, 1)) ``` stdout: 68.8 Attendance was 68.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "68.8", "printed": "68.8", "notation": null}
nlprog_det-setting-0078140
Ada earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? We write it as a program: ```python rate = 22.4 hours = 50 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 336.0 pay = regular + overtime # 1232.0 print(f"{pay:.2f}") ``` # program output: 1232.00 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1232.00", "printed": "1232.00", "notation": null}
nlprog_det-setting-0078141
With 25% off, what does a $80 printer cost? Written as code: ```python price = 80 discount = 25 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` This prints 60.00. It costs $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0078143
<|start|><|user|> How many of 291 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 291 needed = math.ceil(voters * 60 / 100) # 175 print(needed) ``` stdout — 175 175 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 291 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 291\nneeded = math.ceil(voters * 60 / 100) # 175\nprint(needed)\n```\nstdout — 175\n\n175 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0078144
How many days are there from March 12, 2018 to December 31, 2018? One way, in code: from datetime import date first = date(2018, 3, 12) # datetime.date(2018, 3, 12) second = date(2018, 12, 31) # datetime.date(2018, 12, 31) print((second - first).days) Execution result — 294 There are 294 days betwee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "294", "printed": "294", "notation": null}
nlprog_det-setting-0078145
Rent of $1,500 goes up 8%. What is the new rent? As a program: ```python rent = 1500 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1620.0 print(f"{new_rent:.2f}") ``` What it prints — 1620.00 It rises to $1,620.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1620.00", "printed": "1620.00", "notation": null}
nlprog_det-setting-0078146
With 30% off, what does a $75 jacket cost? Here is a short program for it. ```python price = 75 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 52.5 print(f"{sale_price:.2f}") ``` The interpreter prints 52.50. The sale price is $52.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0078147
<|start|><|user|> Abel earns a 2% commission on $90,338 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 90338 rate = 2 / 100 # 0.02 commission = sales * rate # 1806.76 print(f"{commission:.2f}") ``` Program output — 1806.76 Abel earns $1,806.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Abel earns a 2% commission on $90,338 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 90338\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1806.76\nprint(f\"{commission:.2f}\")\n```\nProgram output — 1806.76\n\nAbel...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1806.76", "printed": "1806.76", "notation": null}
nlprog_det-setting-0078148
<|start|><|user|> A 9-day trip pays $59 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?<|eot|> <|assistant|> That comes to $1,411.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 9-day trip pays $59 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?" }, { "role": "assistant", "content": "That comes to $1,411." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "1411", "printed": "1411", "notation": null}
nlprog_det-setting-0078149
<|start|><|user|> If a 4-year limitations period starts on October 7, 2020, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2020, 10, 7) # datetime.date(2020, 10, 7) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 10, 7) print(expires.isof...
chat
[ { "role": "user", "content": "If a 4-year limitations period starts on October 7, 2020, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2020, 10, 7) # datetime.date(2020, 10, 7)\nyears = 4\nexpires = accrued.replace(year=accrued.year...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2024-10-07", "printed": "2024-10-07", "notation": null}
nlprog_det-setting-0078150
Count 14 days forward from February 5, 2028. What date is that? Program: ```python from datetime import date, timedelta start = date(2028, 2, 5) # datetime.date(2028, 2, 5) end = start + timedelta(days=14) # datetime.date(2028, 2, 19) print(end.isoformat()) ``` Interpreter output — 2028-02-19 It ends on February 19...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2028-02-19", "printed": "2028-02-19", "notation": null}
nlprog_det-setting-0078151
<|start|><|system|> Available functions (JSON Schema): {"name": "python_exec", "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"]}} {"name": "...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
326
{"gold": "1235", "printed": "1235", "notation": null}
nlprog_det-setting-0078152
<|start|><|user|> How many whole days and leftover hours are in 211 hours?<|eot|> <|assistant|> ```python hours = 211 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console: 8 days and 19 hours That is 8 days and 19 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 211 hours?" }, { "role": "assistant", "content": "```python\nhours = 211\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole:\n8 days and 19 hours\n\nThat is 8 days and 19 hours." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "8 days and 19 hours", "printed": "8 days and 19 hours", "notation": null}
nlprog_det-setting-0078153
<|start|><|system|> Functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "propert...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python\", \"description\": \"Executes Python code and ...
nlprog_det
setting
original
null
deterministic
[]
[]
271
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0078154
Divide 282 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? One way, in code: total = 282 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Console: 35 each, 2 left over The answer: 35 each, 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "35 each, 2 left over", "printed": "35 each, 2 left over", "notation": null}
nlprog_det-setting-0078155
A pack of 20 mugs sells for $1020. What does each cost? Here's the code. ```python total = 1020 count = 20 per_item = total // count # 51 print(per_item) ``` This prints: 51 Each one costs $51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0078156
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0078157
With 20% off, what does a $180 backpack cost? The sale price is $144.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0078158
Marek was born on December 5, 1963. How old is Marek on July 17, 2024? Coded up: ```python from datetime import date born = date(1963, 12, 5) # datetime.date(1963, 12, 5) on = date(2024, 7, 17) # datetime.date(2024, 7, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 60 print(age) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0078159
A $12,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment? Set it up in Python: ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments print(f"{each:.2f}") ``` Output: 1500.00 Each installment is $1,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0078160
A claim accrued on April 9, 2023. The limitations period is 2 years. On what date does it expire? Computing it: from datetime import date accrued = date(2023, 4, 9) # datetime.date(2023, 4, 9) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 4, 9) print(expires...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2025-04-09", "printed": "2025-04-09", "notation": null}
nlprog_det-setting-0078161
What is 5 degrees Celsius in Fahrenheit? It equals 41 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0078162
What does $1,000 grow to in 2 years at 3% annual compounding? Python, step by step: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 1060.8999999999999 print(f"{value:.2f}") ``` Output = 1060.90 It is worth $1,060.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1060.90", "printed": "1060.90", "notation": null}
nlprog_det-setting-0078163
A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 46-page copy cost? Python, step by step: ```python pages = 46 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 33.0 print(f"{cost:.2f}") ``` Executing it gives: 33.00 The total is $33...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0078164
<|start|><|user|> Find the mean of these test scores: 100, 72, 60, 58 and 55.<|eot|> <|assistant|> scores = [100, 72, 60, 58, 55] average = sum(scores) // len(scores) # 69 print(average) The printout reads 69. The average score is 69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 100, 72, 60, 58 and 55." }, { "role": "assistant", "content": " scores = [100, 72, 60, 58, 55]\n average = sum(scores) // len(scores) # 69\n print(average)\nThe printout reads 69.\n\nThe average score is 69." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0078165
A bicycle helmet costs $40. It is 40% off. What is the sale price? Python does the arithmetic: ```python price = 40 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 24.0 print(f"{sale_price:.2f}") ``` The interpreter prints 24.00. The sale price is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0078166
<|start|><|user|> A meeting starts at 12:45 PM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> ```python start = 12 * 60 + 45 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The printout reads: 2:30 PM The meeting finishes at...
chat
[ { "role": "user", "content": "A meeting starts at 12:45 PM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 45\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2:30 PM", "printed": "2:30 PM", "notation": null}
nlprog_det-setting-0078167
If a 75-minute shift begins at 10:00 AM, what time does it finish? The program: ```python start = 10 * 60 + 0 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running it prints 11:15 AM, as expected. The shift finishes at 11:15 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "11:15 AM", "printed": "11:15 AM", "notation": null}
nlprog_det-setting-0078168
A 6-month warranty starts on November 28, 2018. On what date does it end? It expires on May 28, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2019-05-28", "printed": "2019-05-28", "notation": null}
nlprog_det-setting-0078169
From a $2,500 retainer, 10 hours at $150/hour have been drawn. What remains? The remaining balance is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1000", "printed": "1000", "notation": null}