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-0068101
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 41000 costs = 36000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` (Out: ...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 41000\ncosts = 36000\nprof...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0068102
Monthly: $19. Annual: $204. What is saved per year by paying annually? The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0068103
Prorate $1,800 of monthly rent for 18 days of a 31-day month. Programmatically: ```python rent = 1800 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` (Output: 1045.16) The prorated rent is $1,045.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1045.16", "printed": "1045.16", "notation": null}
nlprog_det-setting-0068105
<|start|><|user|> Split $260 between Cyrus and Nadia in the ratio 2 to 3. What is Cyrus's share?<|eot|> <|assistant|> ```python total = 260 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 104 print(share_a) ``` Printed result: 104 Cyrus gets $104.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $260 between Cyrus and Nadia in the ratio 2 to 3. What is Cyrus's share?" }, { "role": "assistant", "content": "```python\ntotal = 260\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 104\nprint(share_a)\n```\nPrinted result: 104\...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0068106
<|start|><|system|> You may call the tools below. [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Attendance was ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0068107
Walls total 983 sq ft and each can covers 400 sq ft. How many cans should be bought? Here is a short program for it. ```python import math area = 983 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Result: 3) Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0068108
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "26550", "printed": "26550", "notation": null}
nlprog_det-setting-0068109
6 friends split a $96 bill plus a 20% tip evenly. How much does each pay? A short script: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 19.2 print(f"{each:.2f}") ``` The printout reads 19.20. Each person pays $19.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "19.20", "printed": "19.20", "notation": null}
nlprog_det-setting-0068110
<|start|><|user|> A claim accrued on May 27, 2013. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 5, 27) # datetime.date(2013, 5, 27) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 5, 2...
chat
[ { "role": "user", "content": "A claim accrued on May 27, 2013. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2013, 5, 27) # datetime.date(2013, 5, 27)\nyears = 5\nexpires = accrued.repl...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2018-05-27", "printed": "2018-05-27", "notation": null}
nlprog_det-setting-0068111
$5,000 is invested at 4% compounded yearly. What is it worth after 2 years? Programmatically: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 5408.000000000001 print(f"{value:.2f}") ``` The program outputs 5408.00. It is worth $5,408.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "5408.00", "printed": "5408.00", "notation": null}
nlprog_det-setting-0068112
<|start|><|user|> A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 11-page copy cost?<|eot|> <|assistant|> ```python pages = 11 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 5.0 print(f"{cost:.2f}") ``` Output: 5.00 The total is $...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 11-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 11\nbase = 5\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0068113
Convert 4,762 GBP to USD at 1 GBP = 1.08 USD. ```python amount = 4762 rate = 1.08 converted = amount * rate # 5142.96 print(f"{converted:.2f}") ``` Python prints 5142.96, as expected. It converts to 5,142.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "5142.96", "printed": "5142.96", "notation": null}
nlprog_det-setting-0068114
How many of 50 members form a majority (more than half)? Python version: ```python members = 50 majority = members // 2 + 1 # 26 print(majority) ``` That prints 26. 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0068115
Starting from $25,000, the team spends $3,645, $2,437. What remains? Set it up in Python: ```python budget = 25000 expenses = [3645, 2437] left = budget - sum(expenses) # 18918 print(left) ``` Executing it gives: 18918 $18,918 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18918", "printed": "18918", "notation": null}
nlprog_det-setting-0068116
How many weekdays (Monday to Friday) fall after August 1, 2028 up to and including August 16, 2028? There are 11 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0068117
<|start|><|system|> Tools you may use: {"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Straight-line depreciatio...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0068118
An invoice lists 25 envelopes at $5 each, plus 6% sales tax. What is the invoice total? Let the code do the arithmetic: quantity = 25 unit_price = 5 subtotal = quantity * unit_price # 125 total = subtotal * (1 + 6 / 100) # 132.5 print(f"{total:.2f}") It outputs: 132.50 The invoice total is $132....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "132.50", "printed": "132.50", "notation": null}
nlprog_det-setting-0068119
<|start|><|user|> Walls total 421 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 421 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` # out: 2 Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 421 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 421\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\n# out: 2\n\nBuy 2 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0068120
<|start|><|user|> What simple interest does $5,000 earn at 8% a year over 6 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 8 / 100 # 0.08 years = 6 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") ``` Output = 2400.00 The interest is $2,400.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 8% a year over 6 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 8 / 100 # 0.08\nyears = 6\ninterest = principal * rate * years # 2400.0\nprint(f\"{interest:.2f}\")\n```\nOutput = 2400.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0068121
What is -10 degrees Celsius in Fahrenheit? ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Interpreter output — 14 That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0068122
<|start|><|user|> A meal costs $222.36. How much is a 20% tip?<|eot|> <|assistant|> ```python bill = 222.36 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 44.47200000000001 print(f"{tip:.2f}") ``` Running it prints: 44.47 Leave $44.47.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $222.36. How much is a 20% tip?" }, { "role": "assistant", "content": "```python\nbill = 222.36\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 44.47200000000001\nprint(f\"{tip:.2f}\")\n```\nRunning it prints: 44.47\n\nLeave $44.47." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "44.47", "printed": "44.47", "notation": null}
nlprog_det-setting-0068123
<|start|><|user|> Which is cheaper per unit: 6 for $12.02 (A) or 18 for $7.25 (B)?<|eot|> <|assistant|> ```python pack_a = 12.02 / 6 # 2.0033333333333334 pack_b = 7.25 / 18 # 0.4027777777777778 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The interpreter prints B. Pack B is cheaper per item.<|...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $12.02 (A) or 18 for $7.25 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 12.02 / 6 # 2.0033333333333334\npack_b = 7.25 / 18 # 0.4027777777777778\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0068124
If a 90-minute class begins at 8:40 AM, what time does it finish? Let the code do the arithmetic: ```python start = 8 * 60 + 40 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 10:10 AM. The class finishes at 10:10 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "10:10 AM", "printed": "10:10 AM", "notation": null}
nlprog_det-setting-0068125
What is the total rent on a 18-month lease at $850 a month? Script: ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` The run gives 15300, as expected. In total, $15,300 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0068126
Under a 33% contingency agreement, what fee is owed on a $150,000 award? ```python recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") ``` The run gives 49500.00, as expected. The lawyer's fee comes to $49,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0068127
Convert 15 °C to Fahrenheit. Here is the program. ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` (Console output: 59) That is 59 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0068128
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 94-page copy cost? Set it up in Python: ```python pages = 94 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 13.4 print(f"{cost:.2f}") ``` The program outputs: 13.40 The total is $13...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "13.40", "printed": "13.40", "notation": null}
nlprog_det-setting-0068129
A film lasted 4 hours and 35 minutes. How many minutes is that? Python: ```python hours = 4 minutes = 35 total_minutes = hours * 60 + minutes # 275 print(total_minutes) ``` # printed: 275 The film lasted 275 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0068130
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> $1,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 1124.864 print(f"{value:.2f}") ``` Running it...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "$1,000 is invested at 4% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 3\n...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0068131
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year?<|eot|> <|assistant|> cost = 12000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") The script prints 2500.00, as expected. Depreciation is $2,500.00...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year?" }, { "role": "assistant", "content": " cost = 12000\n salvage = 2000\n years = 4\n per_year = (cost - salvage) / years # 2500.0\n print(f\"{per_year:.2f}\")\nThe s...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0068132
A trial runs from December 11, 2019 to January 3, 2020, counting both days. How many calendar days is that? Python: ```python from datetime import date first = date(2019, 12, 11) # datetime.date(2019, 12, 11) last = date(2020, 1, 3) # datetime.date(2020, 1, 3) days = (last - first).days + 1 # 24 print(days) ``` On ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0068133
At an exchange rate of 1.12 CAD per USD, how many CAD is 1,482 USD? The computation: amount = 1482 rate = 1.12 converted = amount * rate # 1659.8400000000001 print(f"{converted:.2f}") Run it and it prints 1659.84. That is 1,659.84 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1659.84", "printed": "1659.84", "notation": null}
nlprog_det-setting-0068134
At $24.10 an hour, what does 36 hours of work pay? Written as code: rate = 24.1 hours = 36 earnings = rate * hours # 867.6 print(f"{earnings:.2f}") On running, it outputs: 867.60 That earns $867.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "867.60", "printed": "867.60", "notation": null}
nlprog_det-setting-0068135
From a $5,000 retainer, 7 hours at $275/hour have been drawn. What remains? Here's the code. ```python retainer = 5000 hours = 7 rate = 275 left = retainer - hours * rate # 3075 print(left) ``` Output of the run — 3075 $3,075 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3075", "printed": "3075", "notation": null}
nlprog_det-setting-0068136
A 195-page report must be reviewed in 15 days. How many pages a day is that, evenly? Let's compute it with Python. ```python pages = 195 days = 15 per_day = pages // days # 13 print(per_day) ``` Printed result: 13 13 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0068137
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 13 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 13 rate = 275 left = retainer - hours * rate # 6425 print(left) ``` # out...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 13 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 100...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6425", "printed": "6425", "notation": null}
nlprog_det-setting-0068138
Divide 234 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? One way, in code: ```python total = 234 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Out: 78 each, 0 left over) The answer: 78 each, 0 lef...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "78 each, 0 left over", "printed": "78 each, 0 left over", "notation": null}
nlprog_det-setting-0068139
From 2015 to 2023, how many years is that? Coded up: ```python start_year = 2015 end_year = 2023 print(end_year - start_year) ``` Executing it gives: 8 8 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068140
A library charges $0.20 per book per day late. What is the fine for 2 books that are 14 days late? The computation: ```python per_day = 0.2 days_late = 14 books = 2 fine = per_day * days_late * books # 5.6000000000000005 print(f"{fine:.2f}") ``` stdout: 5.60 $5.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "5.60", "printed": "5.60", "notation": null}
nlprog_det-setting-0068141
How many minutes pass from 10:54 AM to 12:12 PM on the same day? Let's compute it with Python. ```python start = 10 * 60 + 54 end = 12 * 60 + 12 print(end - start) ``` The run gives: 78 It is 78 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0068142
At $16.26 an hour, what does 38 hours of work pay? That earns $617.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "617.88", "printed": "617.88", "notation": null}
nlprog_det-setting-0068143
A clerk's office charges $125 for each filing. Kaito submits 6 filings. What is the total fee? Python version: ```python fee = 125 filings = 6 total = fee * filings # 750 print(total) ``` The code prints: 750 The filings cost $750 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0068144
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A 18-month warranty starts on October 26, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 10, 26) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start....
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A 18-month warranty starts on October 26, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 10, 26)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "2027-04-26", "printed": "2027-04-26", "notation": null}
nlprog_det-setting-0068145
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Someone works 38 hours at $27.66 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 27.66 hours = 38 earnings = rate * hours # 1051.08 print(f"{earnings:.2f}") ``` Console output — 1051.08 That earns $1,051.08.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Someone works 38 hours at $27.66 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 27.66\nhours = 38\nearnings = rate * hours # 1051.08\nprint(f\"{earnings...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1051.08", "printed": "1051.08", "notation": null}
nlprog_det-setting-0068146
A penalty of $50 a day accrues, capped at $2,500. What is owed after 53 days? Code: ```python per_day = 50 days = 53 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Run it and it prints: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0068147
<|start|><|user|> A party has 21 days to respond to a motion served on July 28, 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, 7, 28) # datetime.date(2028, 7, 28) response_days = 21 mail_days = 3 due...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on July 28, 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, 7, 28) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2028-08-21", "printed": "2028-08-21", "notation": null}
nlprog_det-setting-0068148
99 copies of a 45-page packet are printed at $0.05 per page. What is the cost? pages = 45 copies = 99 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") Console output — 222.75 The job costs $222.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "222.75", "printed": "222.75", "notation": null}
nlprog_det-setting-0068149
A 425-page report must be reviewed in 17 days. How many pages a day is that, evenly? ```python pages = 425 days = 17 per_day = pages // days # 25 print(per_day) ``` Executing it gives: 25 25 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0068150
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Monthly: $15. Annual: $156. What is saved pe...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"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
[]
[]
203
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0068151
A hall has 28 rows of 9 seats, and 20 seats are empty. How many people are seated? In Python: ```python rows = 28 per_row = 9 empty = 20 seated = rows * per_row - empty # 232 print(seated) ``` The run gives 232, as expected. 232 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "232", "printed": "232", "notation": null}
nlprog_det-setting-0068152
<|start|><|user|> From 2022 to 2030, how many years is that?<|eot|> <|assistant|> ```python start_year = 2022 end_year = 2030 print(end_year - start_year) ``` # printed: 8 8 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2022 to 2030, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2022\nend_year = 2030\nprint(end_year - start_year)\n```\n# printed: 8\n\n8 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068153
<|start|><|user|> A car travels 470 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 470 hours = 2 speed = distance / hours # 235.0 print(round(speed)) ``` When run, it prints 235. It averages 235 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 470 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 470\nhours = 2\nspeed = distance / hours # 235.0\nprint(round(speed))\n```\nWhen run, it prints 235.\n\nIt averages 235 mil...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0068154
The paralegal logged 1.5 hours at a rate of $180. How much is billed? ```python hours = 1.5 rate = 180 bill = hours * rate # 270.0 print(f"{bill:.2f}") ``` Executed, it shows 270.00. The bill is $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0068155
Count 45 days forward from December 4, 2018. What date is that? ```python from datetime import date, timedelta start = date(2018, 12, 4) # datetime.date(2018, 12, 4) end = start + timedelta(days=45) # datetime.date(2019, 1, 18) print(end.isoformat()) ``` Out = 2019-01-18 It ends on January 18, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2019-01-18", "printed": "2019-01-18", "notation": null}
nlprog_det-setting-0068156
<|start|><|system|> Functions: [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Buying 1 clipboards at $6 each, 5 paper r...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0068157
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours? We write it as a program: ```python rate = 20.0 hours = 48 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 1040.0 print(f"{pay:.2f}") ``` Out: 1040.00 The weekly pay ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0068158
What does $10,000 grow to in 3 years at 2% annual compounding? A few lines of Python do it: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 10612.080000000002 print(f"{value:.2f}") ``` Output: 10612.08 The balance is $10,612.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0068159
What commission does Ivan make on $114,243 in sales at 8%? Computing it: ```python sales = 114243 rate = 8 / 100 # 0.08 commission = sales * rate # 9139.44 print(f"{commission:.2f}") ``` What it prints — 9139.44 Ivan earns $9,139.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "9139.44", "printed": "9139.44", "notation": null}
nlprog_det-setting-0068161
<|start|><|user|> Bruna lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> The interest is $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bruna lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "The interest is $200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0068162
Scale 150 g of sugar from 4 servings to 10 servings. As a program: grams = 150 serves = 4 needed_for = 10 scaled = grams * needed_for // serves # 375 print(scaled) The interpreter prints: 375 Use 375 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0068163
3 friends split a $180 bill plus a 18% tip evenly. How much does each pay? ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 70.8 print(f"{each:.2f}") ``` The code prints 70.80. Each person pays $70.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70.80", "printed": "70.80", "notation": null}
nlprog_det-setting-0068164
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Convert 5 h 40 min (the length of a hearing) to minutes.<|eot|> <|assistant|> hours = 5 minutes = 40 total_minutes = hours * 60 + minutes # 340 print(total_minutes) Printed result — 340 That is 340 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Convert 5 h 40 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": " hours = 5\n minutes = 40\n total_minutes = hours * 60 + minutes # 340\n print(t...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "340", "printed": "340", "notation": null}
nlprog_det-setting-0068166
<|start|><|user|> Prorate $2,400 of monthly rent for 23 days of a 31-day month.<|eot|> <|assistant|> rent = 2400 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1780.6451612903227 print(f"{prorated:.2f}") When run, it prints 1780.65, as expected. The tenant ...
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 23 days of a 31-day month." }, { "role": "assistant", "content": " rent = 2400\n days_in_month = 31\n days_occupied = 23\n prorated = rent * days_occupied / days_in_month # 1780.6451612903227\n print(f\"{prorated:.2...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1780.65", "printed": "1780.65", "notation": null}
nlprog_det-setting-0068167
<|start|><|user|> At 1.5% a month (simple), what interest builds on $1,000 over 4 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` Program output: 60.00 $60.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $1,000 over 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 4\ninterest = balance * monthly_rate * months # 60.0\nprint(f\"{interest:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0068168
At $0.67 per mile, what is the reimbursement for 523 miles? Python does the arithmetic: miles = 523 rate = 0.67 reimbursement = miles * rate # 350.41 print(f"{reimbursement:.2f}") The run gives 350.41. Rafael is owed $350.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "350.41", "printed": "350.41", "notation": null}
nlprog_det-setting-0068169
A measure needs at least 75% of 241 votes. How many votes is that, rounded up? Written as code: ```python import math voters = 241 needed = math.ceil(voters * 75 / 100) # 181 print(needed) ``` Execution prints: 181 At least 181 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "181", "printed": "181", "notation": null}
nlprog_det-setting-0068171
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 48 days?<|eot|> <|assistant|> ```python per_day = 25 days = 48 cap = 5000 fine = min(per_day * days, cap) # 1200 print(fine) ``` What it prints — 1200 The fine is $1,200.<|eot|> <|...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 48 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 48\ncap = 5000\nfine = min(per_day *...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0068172
<|start|><|user|> Quinn's scores were 55, 65, 58 and 70. What is the average score?<|eot|> <|assistant|> The average score is 62.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Quinn's scores were 55, 65, 58 and 70. What is the average score?" }, { "role": "assistant", "content": "The average score is 62." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0068173
What day of the week is February 21, 2016? Set it up in Python: ```python from datetime import date hearing = date(2016, 2, 21) # datetime.date(2016, 2, 21) print(hearing.strftime("%A")) ``` Executing it gives Sunday, as expected. February 21, 2016 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0068174
Convert 5 h 41 min (the length of a training session) to minutes. We write it as a program: ```python hours = 5 minutes = 41 total_minutes = hours * 60 + minutes # 341 print(total_minutes) ``` Python prints 341, as expected. That is 341 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "341", "printed": "341", "notation": null}
nlprog_det-setting-0068175
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Of a $4,000 budget, $3,200 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 3200 percent = spent / budget * 100 print(round(percent, 1)) ``` Run it and it prints: 80.0 80.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Of a $4,000 budget, $3,200 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3200\npercent = spent / budget * 100\nprint(round(percent...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0068176
What is the total rent on a 36-month lease at $2,875 a month? Computation in Python: monthly_rent = 2875 months = 36 total = monthly_rent * months print(total) # run result: 103500 The rent over the term is $103,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "103500", "printed": "103500", "notation": null}
nlprog_det-setting-0068177
At 50 miles per hour, how many minutes does a 50-mile trip take? The trip takes 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0068178
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Yusuf earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 43 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 72.0 pay = regular +...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Yusuf earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 43\nre...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0068179
<|start|><|user|> How many whole days and leftover hours are in 241 hours?<|eot|> <|assistant|> That is 10 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 241 hours?" }, { "role": "assistant", "content": "That is 10 days and 1 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "10 days and 1 hours", "printed": "10 days and 1 hours", "notation": null}
nlprog_det-setting-0068180
How many weekdays (Monday to Friday) fall after April 25, 2023 up to and including June 3, 2023? Computation in Python: ```python from datetime import date, timedelta start = date(2023, 4, 25) end = date(2023, 6, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0068182
<|start|><|user|> If a 105-minute hearing begins at 1:00 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 13 * 60 + 0 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives 2:45 PM, as expected. The hearing ...
chat
[ { "role": "user", "content": "If a 105-minute hearing begins at 1:00 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 0\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
[]
[]
136
{"gold": "2:45 PM", "printed": "2:45 PM", "notation": null}
nlprog_det-setting-0068184
At 2% a month (simple), what interest builds on $4,000 over 3 months? The computation: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` The code prints: 240.00 $240.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0068185
An attorney bills 10.5 hours at $150 per hour. What is the bill? That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0068186
<|start|><|user|> Attendance was 12 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 12 total = 25 percent = present / total * 100 # 48.0 print(round(percent, 1)) ``` Console output — 48.0 48.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 12 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 12\ntotal = 25\npercent = present / total * 100 # 48.0\nprint(round(percent, 1))\n```\nConsole output — 48.0\n\n48.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0068187
<|start|><|user|> 200 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> The answer: 33 each, 2 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "200 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "The answer: 33 each, 2 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "33 each, 2 left over", "printed": "33 each, 2 left over", "notation": null}
nlprog_det-setting-0068188
<|start|><|user|> With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) ``` This prints: 6.5 The ma...
chat
[ { "role": "user", "content": "With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 38500\ncosts = 36000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 6.4935064935...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0068189
If a 90-minute class begins at 10:15 AM, what time does it finish? Python makes this quick: ```python start = 10 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints 11:45 AM. It ends at 11:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "11:45 AM", "printed": "11:45 AM", "notation": null}
nlprog_det-setting-0068190
What is a 25% tip on a $163.88 bill? Computation in Python: ```python bill = 163.88 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 40.97 print(f"{tip:.2f}") ``` (Program output: 40.97) Leave $40.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "40.97", "printed": "40.97", "notation": null}
nlprog_det-setting-0068191
A garage charges $4 an hour, never more than $15 a day. How much for 2 hours? In Python: ```python rate = 4 hours = 2 daily_max = 15 cost = min(rate * hours, daily_max) # 8 print(cost) ``` The program outputs: 8 The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068192
The landlord deducts $85, $120 and $200 from a $1,500 deposit. What is returned to the tenant? The refund is $1,095.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1095", "printed": "1095", "notation": null}
nlprog_det-setting-0068194
<|start|><|system|> Tool definitions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"lookup_statute\", \"description\": \"Look up...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0068195
A 6-month warranty starts on June 16, 2022. On what date does it end? The warranty ends on December 16, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2022-12-16", "printed": "2022-12-16", "notation": null}
nlprog_det-setting-0068197
Goods bought on July 28, 2021 carry a 24-month warranty. When does it expire? One way, in code: ```python from datetime import date start = date(2021, 7, 28) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2023-07-28", "printed": "2023-07-28", "notation": null}
nlprog_det-setting-0068198
<|start|><|user|> Of a $5,000 budget, $3,700 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 3700 percent = spent / budget * 100 print(round(percent, 1)) ``` (stdout: 74.0) 74.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $5,000 budget, $3,700 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 3700\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\n(stdout: 74.0)\n\n74.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0068199
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 10 boxes hold ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0068201
Under a 40% contingency agreement, what fee is owed on a $150,000 award? ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` (Run result: 60000.00) The lawyer's fee comes to $60,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0068203
From a $2,500 retainer, 8 hours at $250/hour have been drawn. What remains? Program: ```python retainer = 2500 hours = 8 rate = 250 left = retainer - hours * rate # 500 print(left) ``` This prints 500. The remaining balance is $500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0068204
<|start|><|user|> Express 87 hours in days and hours.<|eot|> <|assistant|> ```python hours = 87 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Run result: 3 days and 15 hours) That is 3 days and 15 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 87 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 87\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Run result: 3 days and 15 hours)\n\nThat is 3 days and 15 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "3 days and 15 hours", "printed": "3 days and 15 hours", "notation": null}
nlprog_det-setting-0068205
Sales went from 400 to 460. What is the percent change? In Python: ```python old = 400 new = 460 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` # result: 15 The change is 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0068206
<|start|><|user|> What is a 22% tip on a $44.21 bill?<|eot|> <|assistant|> bill = 44.21 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 9.7262 print(f"{tip:.2f}") (Console output: 9.73) The tip is $9.73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 22% tip on a $44.21 bill?" }, { "role": "assistant", "content": " bill = 44.21\n tip_rate = 22 / 100 # 0.22\n tip = bill * tip_rate # 9.7262\n print(f\"{tip:.2f}\")\n(Console output: 9.73)\n\nThe tip is $9.73." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "9.73", "printed": "9.73", "notation": null}
nlprog_det-setting-0068207
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Running it prints -4, as expected. That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nRunning it prints -4, as expected.\n\nThat is -4 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0068208
Which is cheaper per unit: 12 for $10.49 (A) or 18 for $22.99 (B)? Python code: ```python pack_a = 10.49 / 12 pack_b = 22.99 / 18 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` (Printed: A) A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0068209
<|start|><|user|> How many units at $30 each (variable cost $25) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` The code prints 240. 240 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $25) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 30\nvariable = 25\nunits = math.ceil(fixed / (price - variable)) # 240\nprint(units)\n```\nThe code prin...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0068210
7 hours of work at $410 an hour: what is the total charge? The Python version: hours = 7 rate = 410 bill = hours * rate # 2870 print(f"{bill:.2f}") (Result: 2870.00) That comes to $2,870.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2870.00", "printed": "2870.00", "notation": null}