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-0079143
What day of the week is June 11, 1998? Set it up in Python: ```python from datetime import date hearing = date(1998, 6, 11) # datetime.date(1998, 6, 11) print(hearing.strftime("%A")) ``` It prints: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0079145
A recipe for 6 people uses 150 grams of sugar. How many grams are needed for 8 people? One way, in code: ```python grams = 150 serves = 6 needed_for = 8 scaled = grams * needed_for // serves print(scaled) ``` The script prints 200, as expected. Use 200 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0079146
3 books come back 28 days late, at $0.20 a day each. What is the fine? Python does the arithmetic: ```python per_day = 0.2 days_late = 28 books = 3 fine = per_day * days_late * books # 16.8 print(f"{fine:.2f}") ``` Printed: 16.80 The fine is $16.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "16.80", "printed": "16.80", "notation": null}
nlprog_det-setting-0079147
<|start|><|user|> A shift runs from 7:40 AM to 12:07 PM. How long is it in minutes?<|eot|> <|assistant|> 267 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:40 AM to 12:07 PM. How long is it in minutes?" }, { "role": "assistant", "content": "267 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "267", "printed": "267", "notation": null}
nlprog_det-setting-0079148
<|start|><|user|> Sales went from 800 to 640. What is the percent change?<|eot|> <|assistant|> ```python old = 800 new = 640 change = (new - old) / old * 100 print(round(change)) ``` Execution prints -20, as expected. It changed by -20%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 800 to 640. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 800\nnew = 640\nchange = (new - old) / old * 100\nprint(round(change))\n```\nExecution prints -20, as expected.\n\nIt changed by -20%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0079149
A party has 21 days to respond to a motion served on January 25, 2019, with 3 days added because service was by mail. When is the response due? In code: ```python from datetime import date, timedelta served = date(2019, 1, 25) # datetime.date(2019, 1, 25) response_days = 21 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2019-02-18", "printed": "2019-02-18", "notation": null}
nlprog_det-setting-0079151
<|start|><|system|> You can call tools. Available tools: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "run_python", "descri...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "38.62", "printed": "38.62", "notation": null}
nlprog_det-setting-0079153
<|start|><|user|> A hall has 18 rows of 15 seats, and 36 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 18 per_row = 15 empty = 36 seated = rows * per_row - empty print(seated) ``` # result: 234 234 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 18 rows of 15 seats, and 36 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 18\nper_row = 15\nempty = 36\nseated = rows * per_row - empty\nprint(seated)\n```\n# result: 234\n\n234 seats are taken." }...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "234", "printed": "234", "notation": null}
nlprog_det-setting-0079154
On which weekday does September 28, 2005 fall? Python version: ```python from datetime import date hearing = date(2005, 9, 28) # datetime.date(2005, 9, 28) print(hearing.strftime("%A")) ``` Printed — Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0079155
A 2% increase is applied to $1,100 monthly rent. What is the new amount? As Python: ```python rent = 1100 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1122.0 print(f"{new_rent:.2f}") ``` When run, it prints 1122.00. It rises to $1,122.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1122.00", "printed": "1122.00", "notation": null}
nlprog_det-setting-0079156
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") ...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 3000\nin...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0079157
Walls total 976 sq ft and each can covers 250 sq ft. How many cans should be bought? Python makes this quick: ```python import math area = 976 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` When run, it prints 4. Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079158
A bicycle helmet costs $60. It is 40% off. What is the sale price? Python does the arithmetic: ```python price = 60 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` This prints 36.00. The sale price is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0079159
The rules require 2/3 of 37 members (round up) to be present. How many is that? Python does the arithmetic: ```python import math members = 37 quorum = math.ceil(members * 2 / 3) # 25 print(quorum) ``` (Program output: 25) 25 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0079160
At an exchange rate of 1.35 CAD per USD, how many CAD is 1,745 USD? amount = 1745 rate = 1.35 converted = amount * rate # 2355.75 print(f"{converted:.2f}") Shell output: 2355.75 That is 2,355.75 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2355.75", "printed": "2355.75", "notation": null}
nlprog_det-setting-0079161
3 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Program: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") ``` The printout reads: 16800.00 Each share ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0079162
What commission does Priya make on $76,211 in sales at 8%? Set it up in Python: sales = 76211 rate = 8 / 100 # 0.08 commission = sales * rate # 6096.88 print(f"{commission:.2f}") Interpreter output — 6096.88 The commission is $6,096.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "6096.88", "printed": "6096.88", "notation": null}
nlprog_det-setting-0079163
<|start|><|system|> You may call the tools below. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "calc", "description": "Python sandbox f...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0079164
3 friends split a $96 bill plus a 18% tip evenly. How much does each pay? In Python: ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 37.76 print(f"{each:.2f}") ``` Output: 37.76 The share is $37.76 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "37.76", "printed": "37.76", "notation": null}
nlprog_det-setting-0079165
Notice was given on January 12, 2021. The notice period is 45 days. When does it run out? The Python version: ```python from datetime import date, timedelta start = date(2021, 1, 12) # datetime.date(2021, 1, 12) end = start + timedelta(days=45) # datetime.date(2021, 2, 26) print(end.isoformat()) ``` The code prints:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2021-02-26", "printed": "2021-02-26", "notation": null}
nlprog_det-setting-0079166
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? The Python version: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080.0 print(f"{interest:.2f}") ``` Running this gives 1080.00. The inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0079167
<|start|><|user|> What does $5,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 5306.040000000001 print(f"{value:.2f}") ``` It outputs: 5306.04 It is worth $5,306.04.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 5306.040000000001\nprint(f\"{value:.2f}\")\n```\nIt output...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5306.04", "printed": "5306.04", "notation": null}
nlprog_det-setting-0079168
<|start|><|user|> A penalty of $100 a day accrues, capped at $1,000. What is owed after 57 days?<|eot|> <|assistant|> The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 57 days?" }, { "role": "assistant", "content": "The fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0079169
$2,000 is invested at 3% compounded yearly. What is it worth after 2 years? ```python principal = 2000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 2121.7999999999997 print(f"{value:.2f}") ``` # result: 2121.80 It is worth $2,121.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2121.80", "printed": "2121.80", "notation": null}
nlprog_det-setting-0079170
Someone works 16 hours at $19.19 per hour. What are the earnings? Written as code: ```python rate = 19.19 hours = 16 earnings = rate * hours print(f"{earnings:.2f}") ``` It prints 307.04, as expected. That earns $307.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "307.04", "printed": "307.04", "notation": null}
nlprog_det-setting-0079171
An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 3 months? $150.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0079172
The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant? Programmatically: ```python deposit = 1000 deductions = [85] refund = deposit - sum(deductions) # 915 print(refund) ``` The script prints 915. The refund is $915.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "915", "printed": "915", "notation": null}
nlprog_det-setting-0079173
A meeting starts at 2:20 PM and lasts 135 minutes. When does it end? Python, step by step: ```python start = 14 * 60 + 20 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Output of the run — 4:35 PM The meeting finishes at 4:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "4:35 PM", "printed": "4:35 PM", "notation": null}
nlprog_det-setting-0079174
A hearing is set for March 3, 2004. What day of the week is that? In code: ```python from datetime import date hearing = date(2004, 3, 3) # datetime.date(2004, 3, 3) print(hearing.strftime("%A")) ``` Executing it gives: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0079175
<|start|><|user|> A lawyer's fee is 25% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") ``` # printed: 3000.00 The lawyer's fee comes to $3,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 25% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 3000.0\nprint(f\"{fee:.2f}\")\n```\n# printed: 3000.00\n\nThe lawyer's fee comes ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0079176
<|start|><|user|> A meal costs $60.48. How much is a 18% tip?<|eot|> <|assistant|> ```python bill = 60.48 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 10.886399999999998 print(f"{tip:.2f}") ``` This prints 10.89. Leave $10.89.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $60.48. How much is a 18% tip?" }, { "role": "assistant", "content": "```python\nbill = 60.48\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 10.886399999999998\nprint(f\"{tip:.2f}\")\n```\nThis prints 10.89.\n\nLeave $10.89." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "10.89", "printed": "10.89", "notation": null}
nlprog_det-setting-0079177
<|start|><|user|> To read 663 pages in 13 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 663 days = 13 per_day = pages // days # 51 print(per_day) ``` Printed = 51 That is 51 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 663 pages in 13 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 663\ndays = 13\nper_day = pages // days # 51\nprint(per_day)\n```\nPrinted = 51\n\nThat is 51 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0079178
Parking is $4 per hour with a daily maximum of $18. What do 11 hours cost? Here is the program. ```python rate = 4 hours = 11 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Result = 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0079179
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Count the days between November 20, 2022 and June 12, 2023.<|eot|> <|assistant|> There are 204 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Count the days between November 20, 2022 and June 12, 2023." }, { "role": "assistant", "content": "There are 204 days between the two dates." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0079180
Starting from $12,000, the team spends $2,625, $853, $3,281, $1,794. What remains? A short script: ```python budget = 12000 expenses = [2625, 853, 3281, 1794] left = budget - sum(expenses) print(left) ``` The program prints 3447, as expected. $3,447 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3447", "printed": "3447", "notation": null}
nlprog_det-setting-0079181
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A party has 28 days to respond to a motion served on March 2, 2018, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2018, 3, 2) # datetime....
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A party has 28 days to respond to a motion served on March 2, 2018, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "`...
nlprog_det
setting
original
null
deterministic
[]
[]
187
{"gold": "2018-04-02", "printed": "2018-04-02", "notation": null}
nlprog_det-setting-0079182
<|start|><|system|> Functions: [{"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"]}}]<|eot|> <|user|> An attorney bill...
chat
[ { "role": "system", "content": "Functions:\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 source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0079183
At a 9% tax rate, what is the tax on $471.13? The Python version: ```python price = 471.13 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 42.4017 print(f"{tax:.2f}") ``` # run result: 42.40 The tax is $42.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "42.40", "printed": "42.40", "notation": null}
nlprog_det-setting-0079184
Prorate $2,400 of monthly rent for 5 days of a 30-day month. Code: ```python rent = 2400 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 400.0 print(f"{prorated:.2f}") ``` The printout reads 400.00. The tenant owes $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0079185
What average speed covers 494 miles in 2 hours? As a program: ```python distance = 494 hours = 2 speed = distance / hours # 247.0 print(round(speed)) ``` Result = 247 The average speed is 247 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0079186
How many of 174 votes make 60% (round up)? Let the code do the arithmetic: ```python import math voters = 174 needed = math.ceil(voters * 60 / 100) # 105 print(needed) ``` (Console output: 105) At least 105 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0079187
A 240-mile drive at a steady 40 mph takes how many minutes? ```python distance = 240 speed = 40 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Printed: 360 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0079188
What is 25 degrees Celsius in Fahrenheit? We can compute it in Python. ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Printed: 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0079189
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 87-page copy cost?<|eot|> <|assistant|> ```python pages = 87 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 26.75 print(f"{cost:.2f}") ``` The code prints: 26.75 The...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 87-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 87\nbase = 5\nper_page = 0.25\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page #...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "26.75", "printed": "26.75", "notation": null}
nlprog_det-setting-0079190
<|start|><|system|> You have access to these functions: {"name": "python", "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"]}}<|eot|> <|user|...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0079191
<|start|><|user|> Count 14 days forward from July 11, 2024. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 7, 11) # datetime.date(2024, 7, 11) end = start + timedelta(days=14) # datetime.date(2024, 7, 25) print(end.isoformat()) ``` stdout = 2024-07-25 That d...
chat
[ { "role": "user", "content": "Count 14 days forward from July 11, 2024. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 7, 11) # datetime.date(2024, 7, 11)\nend = start + timedelta(days=14) # datetime.date(2024, 7, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2024-07-25", "printed": "2024-07-25", "notation": null}
nlprog_det-setting-0079192
6 boxes hold 8 cables each. After 17 are handed out, how many are left? Python does the arithmetic: boxes = 6 per_box = 8 given_away = 17 left = boxes * per_box - given_away # 31 print(left) Output — 31 That leaves 31 cables.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0079193
Straight-line depreciation: cost $30,000, salvage $6,000, 10 years. How much per year? Let the code do the arithmetic: ```python cost = 30000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 2400.0 print(f"{per_year:.2f}") ``` Result — 2400.00 Depreciation is $2,400.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0079194
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Shipping ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "32.40", "printed": "32.40", "notation": null}
nlprog_det-setting-0079195
<|start|><|user|> A shift runs from 10:39 AM to 11:06 AM. How long is it in minutes?<|eot|> <|assistant|> start = 10 * 60 + 39 # 639 end = 11 * 60 + 6 # 666 print(end - start) Executing it gives: 27 It is 27 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 10:39 AM to 11:06 AM. How long is it in minutes?" }, { "role": "assistant", "content": " start = 10 * 60 + 39 # 639\n end = 11 * 60 + 6 # 666\n print(end - start)\nExecuting it gives: 27\n\nIt is 27 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0079196
<|start|><|user|> How many weekdays (Monday to Friday) fall after December 10, 2023 up to and including December 31, 2023?<|eot|> <|assistant|> There are 15 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after December 10, 2023 up to and including December 31, 2023?" }, { "role": "assistant", "content": "There are 15 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079197
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Under a 30% contingency agreement, what fee is owed on a $25,000 award?<|eot|> <|assistant|> ```python recovery = 25000 rate = 30 / 100 # 0.3 fee = recovery * rate # 7500.0 print(f"{fee:.2f}") ``` Executing it gives 7500.00, as expected. The fee is...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Under a 30% contingency agreement, what fee is owed on a $25,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 30 / 100 # 0.3\nfee = recovery * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0079198
<|start|><|user|> Equal monthly payments repay $9,000 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 1080.0 payment = (principal + interest) / months # 4...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "420.00", "printed": "420.00", "notation": null}
nlprog_det-setting-0079199
<|start|><|user|> Shipping costs $5 plus $2.00 per pound. What does a 4-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.0 weight = 4 cost = base + per_pound * weight # 13.0 print(f"{cost:.2f}") ``` It prints: 13.00 Shipping costs $13.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.00 per pound. What does a 4-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.0\nweight = 4\ncost = base + per_pound * weight # 13.0\nprint(f\"{cost:.2f}\")\n```\nIt prints: 13.00\n\nShipp...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "13.00", "printed": "13.00", "notation": null}
nlprog_det-setting-0079200
<|start|><|user|> A pack of 12 folders sells for $48. What does each cost?<|eot|> <|assistant|> ```python total = 48 count = 12 per_item = total // count print(per_item) ``` # result: 4 The unit price is $4.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 12 folders sells for $48. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 48\ncount = 12\nper_item = total // count\nprint(per_item)\n```\n# result: 4\n\nThe unit price is $4." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079201
A shift runs from 10:01 AM to 12:36 PM. How long is it in minutes? The computation: ```python start = 10 * 60 + 1 end = 12 * 60 + 36 print(end - start) ``` Printed — 155 It is 155 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "155", "printed": "155", "notation": null}
nlprog_det-setting-0079203
Olga and Ada share $4,123 in the ratio 3:4. How much does Olga get? In Python: ```python total = 4123 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1767 print(share_a) ``` It outputs: 1767 Olga's share is $1,767.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1767", "printed": "1767", "notation": null}
nlprog_det-setting-0079204
Split $3,425 between Nadia and Mateo in the ratio 2 to 3. What is Nadia's share? The computation: ```python total = 3425 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1370 print(share_a) ``` On running, it outputs 1370. Nadia's share is $1,370.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1370", "printed": "1370", "notation": null}
nlprog_det-setting-0079205
Quinn buys 3 boxes of 25 scissors each and gives away 3 scissors. How many scissors are left? 72 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0079206
A bicycle helmet costs $250. It is 25% off. What is the sale price? Here's the code. ```python price = 250 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 187.5 print(f"{sale_price:.2f}") ``` That prints: 187.50 It costs $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0079208
100 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? Computing it: ```python total = 100 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # printed: 16 each, 4 left over 16 each, 4 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16 each, 4 left over", "printed": "16 each, 4 left over", "notation": null}
nlprog_det-setting-0079209
Olga's scores were 81, 76, 74, 52, 91, 75 and 90. What is the average score? Computation in Python: ```python scores = [81, 76, 74, 52, 91, 75, 90] average = sum(scores) // len(scores) # 77 print(average) ``` Result — 77 The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0079210
The paralegal logged 12 hours at a rate of $250. How much is billed? Python version: ```python hours = 12 rate = 250 bill = hours * rate # 3000 print(f"{bill:.2f}") ``` Shell output — 3000.00 That comes to $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0079211
A $6,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? The computation: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0079212
<|start|><|system|> You can call tools. Available tools: [{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 220 volunteer...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "31 each, 3 left over", "printed": "31 each, 3 left over", "notation": null}
nlprog_det-setting-0079213
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> 100 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 100 total = 200 percent = present / total * 100 # 50.0 print(round(percent, 1)) ``` Executing it gives 50.0. 50.0% attended.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "100 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 100\ntotal = 200\npercent = present / total * 100 # 50.0\nprint(round(percent, ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0079214
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Scale 450 g of oats from...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0079215
<|start|><|user|> Walls total 626 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 626 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` (Run result: 2) Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 626 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 626\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\n(Run result: 2)\n\nBuy 2 cans." ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0079216
<|start|><|user|> Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 4,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 5.1 used = 4 free = 2 bill = base + rate * max(0, used - free) # 28.2 print(f"{bill:.2f}") ``` # program output: 28.20 $28.20 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 4,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 5.1\nused = 4\nfree = 2\nbill = base + rate * max(0, used - free) # 28.2\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "28.20", "printed": "28.20", "notation": null}
nlprog_det-setting-0079217
A 19 lb package ships at $5 base plus $1.20/lb. What is the charge? Set it up in Python: ```python base = 5 per_pound = 1.2 weight = 19 cost = base + per_pound * weight # 27.8 print(f"{cost:.2f}") ``` It prints: 27.80 Shipping costs $27.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "27.80", "printed": "27.80", "notation": null}
nlprog_det-setting-0079218
Eamon earns a 4% commission on $8,206 of sales. What is the commission? Programmatically: ```python sales = 8206 rate = 4 / 100 # 0.04 commission = sales * rate # 328.24 print(f"{commission:.2f}") ``` # out: 328.24 The commission is $328.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "328.24", "printed": "328.24", "notation": null}
nlprog_det-setting-0079219
A room is 25 feet by 18 feet. Flooring costs $4 per square foot. What does it cost to floor the room? The flooring costs $1,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0079220
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0079222
Signe was born on October 28, 1979. How old is Signe on December 8, 2029? The age is 50 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0079223
<|start|><|user|> How many days are there from September 4, 2020 to June 13, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 9, 4) # datetime.date(2020, 9, 4) second = date(2021, 6, 13) # datetime.date(2021, 6, 13) print((second - first).days) ``` The program outputs: 282 There are ...
chat
[ { "role": "user", "content": "How many days are there from September 4, 2020 to June 13, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 9, 4) # datetime.date(2020, 9, 4)\nsecond = date(2021, 6, 13) # datetime.date(2021, 6, 13)\nprint((seco...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "282", "printed": "282", "notation": null}
nlprog_det-setting-0079224
<|start|><|user|> If a 40-minute appointment begins at 12:20 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 12 * 60 + 20 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Shell output — 1:00 PM The appointment finishes a...
chat
[ { "role": "user", "content": "If a 40-minute appointment begins at 12:20 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 20\nend = start + 40\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
[]
[]
131
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0079225
Convert 4 h 54 min (the length of a hearing) to minutes. We can compute it in Python. ```python hours = 4 minutes = 54 total_minutes = hours * 60 + minutes # 294 print(total_minutes) ``` Execution result: 294 That is 294 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "294", "printed": "294", "notation": null}
nlprog_det-setting-0079226
3 boxes hold 6 hard drives each. After 13 are handed out, how many are left? The program: boxes = 3 per_box = 6 given_away = 13 left = boxes * per_box - given_away # 5 print(left) (Execution result: 5) 5 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079228
Counting only Monday through Friday, how many business days are there after August 10, 2027 through August 29, 2027? We can compute it in Python. ```python from datetime import date, timedelta start = date(2027, 8, 10) end = date(2027, 8, 29) count = 0 for k in range(1, (end - start).days + 1): if (start + timedel...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079229
An attorney bills 2 hours at $410 per hour. What is the bill? The Python version: ```python hours = 2 rate = 410 bill = hours * rate # 820 print(f"{bill:.2f}") ``` Run result: 820.00 The bill is $820.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0079230
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> What does $2,000 grow to in 4 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 2251.01762 print(f"{value:.2f}") ``` The printout reads 2251.02. ...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "What does $2,000 grow to in 4 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = principal * ...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2251.02", "printed": "2251.02", "notation": null}
nlprog_det-setting-0079231
Fixed costs are $1,200. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even? Programmatically: ```python import math fixed = 1200 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` Run result — 240 240 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0079232
After an initial $3,000, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part? We can compute it in Python. ```python grant = 12000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 750.0 print(f"{each:.2f}") ``` The script prints: 750.00 Each installment is $750.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0079233
How many whole days and leftover hours are in 254 hours? Python makes this quick: ```python hours = 254 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads 10 days and 14 hours. 254 hours is 10 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "10 days and 14 hours", "printed": "10 days and 14 hours", "notation": null}
nlprog_det-setting-0079234
A quorum is 1/3 of the 39 members, rounded up. How many members make a quorum? Computation in Python: ```python import math members = 39 quorum = math.ceil(members * 1 / 3) # 13 print(quorum) ``` Output of the run: 13 That is 13 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079235
<|start|><|user|> A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $39,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $39,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0079236
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> With 20% off, what does a $180 backpack cost?<|eot|> <|assistant|> ```python price = 180 discount = 20 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Out — 144.00 The sale price is $144.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "With 20% off, what does a $180 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 180\ndiscount = 20 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sa...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0079237
Mateo and Abel share $5,152 in the ratio 3:5. How much does Mateo get? Script: ```python total = 5152 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1932 print(share_a) ``` Interpreter output — 1932 Mateo's share is $1,932.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1932", "printed": "1932", "notation": null}
nlprog_det-setting-0079238
<|start|><|user|> A 196-page report must be reviewed in 14 days. How many pages a day is that, evenly?<|eot|> <|assistant|> That is 14 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 196-page report must be reviewed in 14 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "That is 14 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0079239
A lawyer's fee is 25% of a $150,000 recovery. How large is the fee? As a program: ```python recovery = 150000 rate = 25 / 100 # 0.25 fee = recovery * rate # 37500.0 print(f"{fee:.2f}") ``` # result: 37500.00 The fee is $37,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "37500.00", "printed": "37500.00", "notation": null}
nlprog_det-setting-0079240
Water costs $18 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons? Python: base = 18 rate = 4.2 used = 22 free = 0 bill = base + rate * max(0, used - free) # 110.4 print(f"{bill:.2f}") Execution prints 110.40, as expected. $110.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "110.40", "printed": "110.40", "notation": null}
nlprog_det-setting-0079241
A 16 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? ```python import math length = 16 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Printed = 224 224 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "224", "printed": "224", "notation": null}
nlprog_det-setting-0079242
A shift runs from 8:36 AM to 11:22 AM. How long is it in minutes? Let's compute it with Python. ```python start = 8 * 60 + 36 # 516 end = 11 * 60 + 22 # 682 print(end - start) ``` # printed: 166 It is 166 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0079243
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "eval_pytho...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0079244
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months? Program: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 1440.0 print(f"{interest:.2f}") ``` # out: 1440.00 The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0079245
What average speed covers 442 miles in 1 hours? Here is the program. distance = 442 hours = 1 speed = distance / hours # 442.0 print(round(speed)) When run, it prints 442, as expected. The average speed is 442 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "442", "printed": "442", "notation": null}
nlprog_det-setting-0079246
A board has 25 members. A majority is more than half. How many votes make a majority? The program: ```python members = 25 majority = members // 2 + 1 # 13 print(majority) ``` Shell output: 13 13 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079247
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Printing costs 10 ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "312.00", "printed": "312.00", "notation": null}
nlprog_det-setting-0079248
What simple interest does $20,000 earn at 2% a year over 6 years? The interest is $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0079249
<|start|><|user|> Count the days between February 2, 2018 and February 19, 2019.<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 2, 2) # datetime.date(2018, 2, 2) second = date(2019, 2, 19) # datetime.date(2019, 2, 19) print((second - first).days) ``` When run, it prints: 382 There are 38...
chat
[ { "role": "user", "content": "Count the days between February 2, 2018 and February 19, 2019." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 2, 2) # datetime.date(2018, 2, 2)\nsecond = date(2019, 2, 19) # datetime.date(2019, 2, 19)\nprint((second...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "382", "printed": "382", "notation": null}