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-0076248
If a 50-minute shift begins at 1:45 PM, what time does it finish? Python does the arithmetic: ```python start = 13 * 60 + 45 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` stdout: 2:35 PM It ends at 2:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2:35 PM", "printed": "2:35 PM", "notation": null}
nlprog_det-setting-0076249
2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Each client gets $25,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0076250
Filing fees are $125 per document. What do 12 filings cost? Here's the code. ```python fee = 125 filings = 12 total = fee * filings print(total) ``` The code prints 1500. The total fee is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0076251
Eamon lends $8,000 at 8% simple interest per year for 3 years. How much interest is earned? ```python principal = 8000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 1920.0 print(f"{interest:.2f}") ``` Execution prints 1920.00. It earns $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0076252
<|start|><|user|> Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) / months # 76...
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 5 / 100 # 0.05\nmonths = 36\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0076253
Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 21,000 gallons? Program: ```python base = 12 rate = 5.1 used = 21 free = 2 bill = base + rate * max(0, used - free) # 108.89999999999999 print(f"{bill:.2f}") ``` The printout reads 108.90. $108.90 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "108.90", "printed": "108.90", "notation": null}
nlprog_det-setting-0076254
<|start|><|user|> A chair costs $90. It is 40% off. What is the sale price?<|eot|> <|assistant|> ```python price = 90 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` (Console output: 54.00) It costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A chair costs $90. It is 40% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\n(Console output: 54.00)\n\nIt costs $5...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0076255
<|start|><|user|> 20 folders cost $24 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 20 unit_price = 24 subtotal = quantity * unit_price # 480 total = subtotal * (1 + 8 / 100) # 518.4000000000001 print(f"{total:.2f}") ``` When run, it prints: 518.40 The total with tax is $518...
chat
[ { "role": "user", "content": "20 folders cost $24 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 20\nunit_price = 24\nsubtotal = quantity * unit_price # 480\ntotal = subtotal * (1 + 8 / 100) # 518.4000000000001\nprint(f\"{total:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "518.40", "printed": "518.40", "notation": null}
nlprog_det-setting-0076256
<|start|><|user|> How many units at $40 each (variable cost $30) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` Running it prints 400, as expected. Break-even is 400 units.<|eot|> <|end|...
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $30) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) # 400\nprint(units)\n```\nRunning it pr...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0076257
Marek earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? Computing it: ```python rate = 18.5 hours = 54 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 388.5 pay = regular + overtime # 1128.5 print(f"{pay:.2f}") ``` This prints 1128.50, as expected. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1128.50", "printed": "1128.50", "notation": null}
nlprog_det-setting-0076258
A meal costs $133.09. How much is a 22% tip? Here's the code. bill = 133.09 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 29.2798 print(f"{tip:.2f}") The code prints 29.28. The tip is $29.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "29.28", "printed": "29.28", "notation": null}
nlprog_det-setting-0076259
On which weekday does September 28, 2008 fall? Let the code do the arithmetic: ```python from datetime import date hearing = date(2008, 9, 28) print(hearing.strftime("%A")) ``` When run, it prints: Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0076260
<|start|><|user|> Equal monthly payments repay $1,200 plus 10% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) / months # 4...
chat
[ { "role": "user", "content": "Equal monthly payments repay $1,200 plus 10% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 10 / 100 # 0.1\nmonths = 36\ninterest = principal * annual_rate * months / ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "43.33", "printed": "43.33", "notation": null}
nlprog_det-setting-0076262
<|start|><|user|> Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 12,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 5.1 used = 12 free = 2 bill = base + rate * max(0, used - free) # 69.0 print(f"{bill:.2f}") ``` Running it prints 69.00. The bill is $69.00.<|eot|> <...
chat
[ { "role": "user", "content": "Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 12,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 5.1\nused = 12\nfree = 2\nbill = base + rate * max(0, used - free) # 69.0\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0076263
A storeroom has 1180 envelopes. The office uses 32 a day. How many are left after 17 days? Let the code do the arithmetic: ```python stock = 1180 per_day = 32 days = 17 left = stock - per_day * days # 636 print(left) ``` Shell output — 636 636 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "636", "printed": "636", "notation": null}
nlprog_det-setting-0076264
Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? revenue = 41000 costs = 36000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 12.195121951219512 print(round(margin, 1)) Result: 12.2 The margin is 12.2%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0076265
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> How long, in days, is it from February 7, 2023 until June 11, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 2, 7) # datetime.date(2023, 2, 7) second = date(2023, 6, 11) # datetime.date(2023, 6, 11) print((second - fir...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How long, in days, is it from February 7, 2023 until June 11, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 2, 7) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0076266
10 cables cost $3 apiece. With 6% tax added, what is the total? ```python quantity = 10 unit_price = 3 subtotal = quantity * unit_price # 30 total = subtotal * (1 + 6 / 100) # 31.8 print(f"{total:.2f}") ``` Execution result: 31.80 The total with tax is $31.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "31.80", "printed": "31.80", "notation": null}
nlprog_det-setting-0076267
Nilufar lends $8,000 at 2% simple interest per year for 5 years. How much interest is earned? A Python solution: ```python principal = 8000 rate = 2 / 100 years = 5 interest = principal * rate * years print(f"{interest:.2f}") ``` stdout: 800.00 The interest is $800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0076268
A 24-month warranty starts on July 15, 2026. On what date does it end? The computation: ```python from datetime import date start = date(2026, 7, 15) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Out — 2028-07...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2028-07-15", "printed": "2028-07-15", "notation": null}
nlprog_det-setting-0076269
<|start|><|user|> Express 134 hours in days and hours.<|eot|> <|assistant|> ```python hours = 134 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The run gives 5 days and 14 hours. That is 5 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 134 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 134\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe run gives 5 days and 14 hours.\n\nThat is 5 days and 14 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5 days and 14 hours", "printed": "5 days and 14 hours", "notation": null}
nlprog_det-setting-0076270
If a 150-minute appointment begins at 2:30 PM, what time does it finish? Python code: ```python start = 14 * 60 + 30 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run it and it prints: 5:00 PM The appointment finishes at 5:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "5:00 PM", "printed": "5:00 PM", "notation": null}
nlprog_det-setting-0076271
<|start|><|user|> What day of the week is January 10, 2012?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2012, 1, 10) # datetime.date(2012, 1, 10) print(hearing.strftime("%A")) ``` Result: Tuesday It is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is January 10, 2012?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2012, 1, 10) # datetime.date(2012, 1, 10)\nprint(hearing.strftime(\"%A\"))\n```\nResult:\nTuesday\n\nIt is a Tuesday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0076272
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A garage charges $5 an hour, never more than $20 a day. How much for 10 hours?<|eot|> <|assistant|> Parking costs $20.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A garage charges $5 an hour, never more than $20 a day. How much for 10 hours?" }, { "role": "assistant", "content": "Parking costs $20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0076273
Someone works 20 hours at $24.58 per hour. What are the earnings? The computation: ```python rate = 24.58 hours = 20 earnings = rate * hours # 491.59999999999997 print(f"{earnings:.2f}") ``` The program prints 491.60, as expected. The pay is $491.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "491.60", "printed": "491.60", "notation": null}
nlprog_det-setting-0076274
From 1992 to 2004, how many years is that? A few lines of Python do it: ```python start_year = 1992 end_year = 2004 print(end_year - start_year) ``` Executed, it shows: 12 12 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076275
How many weekdays (Monday to Friday) fall after November 18, 2019 up to and including December 17, 2019? A Python solution: ```python from datetime import date, timedelta start = date(2019, 11, 18) end = date(2019, 12, 17) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0076276
How many minutes pass from 7:16 AM to 10:41 AM on the same day? As Python: ```python start = 7 * 60 + 16 # 436 end = 10 * 60 + 41 # 641 print(end - start) ``` Printed = 205 It is 205 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0076277
Fixed costs are $4,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? Python makes this quick: ```python import math fixed = 4000 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` The interpreter prints: 800 800 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0076278
Rent of $900 goes up 3%. What is the new rent? Computation in Python: ```python rent = 900 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 927.0 print(f"{new_rent:.2f}") ``` What it prints: 927.00 The new rent is $927.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0076279
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Monthly: $12. Annual: $132. What is saved per year by paying annually?<|eot|> <|assistant|> $12 is saved.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Monthly: $12. Annual: $132. What is saved per year by paying annually?" }, { "role": "assistant", "content": "$12 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076280
At 2% a month (simple), what interest builds on $1,000 over 6 months? Python, step by step: ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Executing it gives 120.00. $120.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0076281
<|start|><|user|> After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> $19,333.33 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "$19,333.33 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "19333.33", "printed": "19333.33", "notation": null}
nlprog_det-setting-0076282
A 168-page report must be reviewed in 6 days. How many pages a day is that, evenly? The Python version: ```python pages = 168 days = 6 per_day = pages // days # 28 print(per_day) ``` Output — 28 28 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0076283
Bilal buys 4 boxes of 25 tape rolls each and gives away 13 tape rolls. How many tape rolls are left? Programmatically: ```python boxes = 4 per_box = 25 given_away = 13 left = boxes * per_box - given_away print(left) ``` The script prints: 87 That leaves 87 tape rolls.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0076284
Find the mean of these test scores: 93, 87, 94, 92, 81 and 69. Let's compute it with Python. ```python scores = [93, 87, 94, 92, 81, 69] average = sum(scores) // len(scores) # 86 print(average) ``` Output: 86 The mean is 86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0076285
A $1,500 security deposit has deductions of $150. How much is refunded? The program: ```python deposit = 1500 deductions = [150] refund = deposit - sum(deductions) print(refund) ``` Result: 1350 The refund is $1,350.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0076286
29 badges cost $5 apiece. With 8% tax added, what is the total? Translated to Python: ```python quantity = 29 unit_price = 5 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` The program prints: 156.60 The total with tax is $156.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "156.60", "printed": "156.60", "notation": null}
nlprog_det-setting-0076288
A 3-day trip pays $59 a day for meals and $175 a night for lodging (2 nights). What is the total allowance? ```python days = 3 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 527 print(total) ``` Executing it gives 527, as expected. That comes to $527.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "527", "printed": "527", "notation": null}
nlprog_det-setting-0076289
A meeting starts at 3:20 PM and lasts 50 minutes. When does it end? The meeting finishes at 4:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "4:10 PM", "printed": "4:10 PM", "notation": null}
nlprog_det-setting-0076290
116 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? A Python solution: ```python total = 116 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output: 38 each, 2 left over The answer: 38 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "38 each, 2 left over", "printed": "38 each, 2 left over", "notation": null}
nlprog_det-setting-0076291
A hearing is set for July 14, 2011. What day of the week is that? ```python from datetime import date hearing = date(2011, 7, 14) # datetime.date(2011, 7, 14) print(hearing.strftime("%A")) ``` # out: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0076292
Lena's scores were 95, 91, 50, 79, 65 and 94. What is the average score? Python makes this quick: scores = [95, 91, 50, 79, 65, 94] average = sum(scores) // len(scores) # 79 print(average) stdout: 79 The mean is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0076293
<|start|><|user|> Parking is $3 per hour with a daily maximum of $18. What do 11 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 11 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` The printout reads 18. The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $18. What do 11 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 11\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nThe printout reads 18.\n\nThe charge is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076294
A 24-month warranty starts on January 17, 2026. On what date does it end? ```python from datetime import date start = date(2026, 1, 17) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Output of the run: 2028-01-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2028-01-17", "printed": "2028-01-17", "notation": null}
nlprog_det-setting-0076295
Nilufar was born on August 1, 1962. How old is Nilufar on January 26, 2020? Here is the program. ```python from datetime import date born = date(1962, 8, 1) # datetime.date(1962, 8, 1) on = date(2020, 1, 26) # datetime.date(2020, 1, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 57 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0076296
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0076297
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Prorate $1,500 of monthly rent for 10 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 483.8709677419355 print(f"{prorated:.2f}") ``` (Out: 483.87)...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Prorate $1,500 of monthly rent for 10 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 10\nprorated = rent * days_...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "483.87", "printed": "483.87", "notation": null}
nlprog_det-setting-0076298
On which weekday does July 8, 2008 fall? Here's the code. ```python from datetime import date hearing = date(2008, 7, 8) # datetime.date(2008, 7, 8) print(hearing.strftime("%A")) ``` The script prints Tuesday, as expected. It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0076299
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) This prints: 86 It equals 86 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "What is 30 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": " celsius = 30\n fahrenheit = celsius * 9 / 5 + 32 # 86.0\n print(round(fahrenheit))\nThis prints:...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0076300
<|start|><|user|> 3 books come back 22 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> The fine is $33.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 books come back 22 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "The fine is $33.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0076301
<|start|><|user|> Prorate $1,200 of monthly rent for 22 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 30 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 880.0 print(f"{prorated:.2f}") ``` Execution result — 880.00 The prorated rent is $880.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 22 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 30\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 880.0\nprint(f\"{prorated:.2f}\")\n```\nExecution ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0076302
Walls total 1023 sq ft and each can covers 350 sq ft. How many cans should be bought? Set it up in Python: ```python import math area = 1023 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Execution prints 3. 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0076303
<|start|><|user|> Convert 39.7 km to meters.<|eot|> <|assistant|> ```python km = 39.7 meters = km * 1000 # 39700.0 print(round(meters)) ``` Run result = 39700 That is 39,700 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 39.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 39.7\nmeters = km * 1000 # 39700.0\nprint(round(meters))\n```\nRun result = 39700\n\nThat is 39,700 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "39700", "printed": "39700", "notation": null}
nlprog_det-setting-0076304
<|start|><|user|> A film lasted 4 hours and 43 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 43 total_minutes = hours * 60 + minutes # 283 print(total_minutes) ``` When run, it prints 283. The film lasted 283 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 4 hours and 43 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 43\ntotal_minutes = hours * 60 + minutes # 283\nprint(total_minutes)\n```\nWhen run, it prints 283.\n\nThe film lasted 283 minutes...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "283", "printed": "283", "notation": null}
nlprog_det-setting-0076305
A settlement of $84,000 is split equally among 4 parties. How much does each party receive? Here's the code. settlement = 84000 parties = 4 share = settlement // parties # 21000 print(share) # run result: 21000 Each share is $21,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0076306
<|start|><|user|> Attendance was 83 out of 100. Express it as a percent.<|eot|> <|assistant|> ```python present = 83 total = 100 percent = present / total * 100 # 83.0 print(round(percent, 1)) ``` Interpreter output — 83.0 83.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 83 out of 100. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 83\ntotal = 100\npercent = present / total * 100 # 83.0\nprint(round(percent, 1))\n```\nInterpreter output — 83.0\n\n83.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "83.0", "printed": "83.0", "notation": null}
nlprog_det-setting-0076307
Each storage box holds 50 files. How many boxes are needed for 299 files? The Python version: ```python import math files = 299 per_box = 50 boxes = math.ceil(files / per_box) # 6 print(boxes) ``` It outputs: 6 It takes 6 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0076308
<|start|><|user|> 37 headsets cost $2 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> quantity = 37 unit_price = 2 subtotal = quantity * unit_price # 74 total = subtotal * (1 + 10 / 100) # 81.4 print(f"{total:.2f}") The script prints: 81.40 The invoice total is $81.40.<|eot|> ...
chat
[ { "role": "user", "content": "37 headsets cost $2 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": " quantity = 37\n unit_price = 2\n subtotal = quantity * unit_price # 74\n total = subtotal * (1 + 10 / 100) # 81.4\n print(f\"{total:.2f}\")\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "81.40", "printed": "81.40", "notation": null}
nlprog_det-setting-0076309
Convert 63.5 km to meters. That is 63,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "63500", "printed": "63500", "notation": null}
nlprog_det-setting-0076310
How many units at $15 each (variable cost $7) cover $9,000 of fixed costs? We write it as a program: import math fixed = 9000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 1125 print(units) # output: 1125 Break-even is 1125 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0076311
A 6-month warranty starts on May 26, 2023. On what date does it end? The warranty ends on November 26, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2023-11-26", "printed": "2023-11-26", "notation": null}
nlprog_det-setting-0076312
The paralegal logged 6.5 hours at a rate of $250. How much is billed? The bill is $1,625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0076313
<|start|><|user|> How much sales tax is charged on a $443.47 purchase at 8%?<|eot|> <|assistant|> ```python price = 443.47 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 35.4776 print(f"{tax:.2f}") ``` Out — 35.48 $35.48 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $443.47 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 443.47\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 35.4776\nprint(f\"{tax:.2f}\")\n```\nOut — 35.48\n\n$35.48 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "35.48", "printed": "35.48", "notation": null}
nlprog_det-setting-0076315
12 hours of work at $150 an hour: what is the total charge? In code: ```python hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` What it prints — 1800.00 The bill is $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0076316
<|start|><|user|> What commission does Grace make on $90,505 in sales at 8%?<|eot|> <|assistant|> ```python sales = 90505 rate = 8 / 100 # 0.08 commission = sales * rate # 7240.400000000001 print(f"{commission:.2f}") ``` Printed result — 7240.40 The commission is $7,240.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Grace make on $90,505 in sales at 8%?" }, { "role": "assistant", "content": "```python\nsales = 90505\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 7240.400000000001\nprint(f\"{commission:.2f}\")\n```\nPrinted result — 7240.40\n\nThe com...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7240.40", "printed": "7240.40", "notation": null}
nlprog_det-setting-0076317
How much sales tax is charged on a $210.70 purchase at 4%? In code: price = 210.7 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 8.427999999999999 print(f"{tax:.2f}") The printout reads 8.43. $8.43 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8.43", "printed": "8.43", "notation": null}
nlprog_det-setting-0076318
A seminar starts at 11:20 AM and lasts 90 minutes. When does it end? Python, step by step: ```python start = 11 * 60 + 20 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` When run, it prints: 12:50 PM It ends at 12:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "12:50 PM", "printed": "12:50 PM", "notation": null}
nlprog_det-setting-0076319
Counting the first and last day, how many days are there from December 6, 2023 through December 26, 2023? Python: ```python from datetime import date first = date(2023, 12, 6) # datetime.date(2023, 12, 6) last = date(2023, 12, 26) # datetime.date(2023, 12, 26) days = (last - first).days + 1 # 21 print(days) ``` Pro...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0076321
Reza earns a 10% commission on $86,823 of sales. What is the commission? Computing it: sales = 86823 rate = 10 / 100 # 0.1 commission = sales * rate # 8682.300000000001 print(f"{commission:.2f}") # stdout: 8682.30 The commission is $8,682.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "8682.30", "printed": "8682.30", "notation": null}
nlprog_det-setting-0076322
Shipping costs $12 plus $0.75 per pound. What does a 5-pound parcel cost to ship? Programmatically: base = 12 per_pound = 0.75 weight = 5 cost = base + per_pound * weight # 15.75 print(f"{cost:.2f}") Python prints 15.75. Shipping costs $15.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "15.75", "printed": "15.75", "notation": null}
nlprog_det-setting-0076323
A appointment starts at 12:45 PM and lasts 135 minutes. When does it end? Computation in Python: ```python start = 12 * 60 + 45 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out: 3:00 PM The appointment finishes at 3:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "3:00 PM", "printed": "3:00 PM", "notation": null}
nlprog_det-setting-0076324
<|start|><|user|> A customer buys 3 badges at $30 each, 4 labels at $12 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(3, 30), (4, 12)] total = sum(q * p for q, p in items) # 138 paid = 150 change = paid - total # 12 print(change) ``` The program outputs 12. $12 comes back....
chat
[ { "role": "user", "content": "A customer buys 3 badges at $30 each, 4 labels at $12 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(3, 30), (4, 12)]\ntotal = sum(q * p for q, p in items) # 138\npaid = 150\nchange = paid - total # 12\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076325
Pack A has 6 items for $8.19. Pack B has 24 items for $17.33. Which has the lower price per item? Translated to Python: pack_a = 8.19 / 6 # 1.365 pack_b = 17.33 / 24 # 0.7220833333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) The script prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076326
<|start|><|user|> A client paid a $10,000 retainer. The firm has billed 8 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 10000 hours = 8 rate = 250 left = retainer - hours * rate # 8000 print(left) Printed = 8000 $8,000 of the retainer is left.<|eot|> <|e...
chat
[ { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 8 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 10000\n hours = 8\n rate = 250\n left = retainer - hours * rate # 8000\n print(left)\...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0076328
The meal allowance is $74 per day. What is it for 8 days? Here is a short program for it. ```python days = 8 meal_rate = 74 total = days * meal_rate # 592 print(total) ``` The script prints 592, as expected. That comes to $592.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "592", "printed": "592", "notation": null}
nlprog_det-setting-0076329
If a 150-minute shift begins at 10:30 AM, what time does it finish? Here is a short program for it. ```python start = 10 * 60 + 30 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run it and it prints 1:00 PM. The shift finishes at 1:00 PM...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0076330
26 of 40 members attended. What percent attended? Script: ```python present = 26 total = 40 percent = present / total * 100 # 65.0 print(round(percent, 1)) ``` The program prints 65.0, as expected. Attendance was 65.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "65.0", "printed": "65.0", "notation": null}
nlprog_det-setting-0076331
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["progr...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
310
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0076332
200 copies of a 40-page packet are printed at $0.05 per page. What is the cost? Translated to Python: ```python pages = 40 copies = 200 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 400.0 print(f"{cost:.2f}") ``` stdout = 400.00 Printing costs $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0076335
<|start|><|user|> Goods bought on March 7, 2018 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 3, 7) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
chat
[ { "role": "user", "content": "Goods bought on March 7, 2018 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 3, 7)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2018-09-07", "printed": "2018-09-07", "notation": null}
nlprog_det-setting-0076336
<|start|><|user|> What average speed covers 140 miles in 1 hours?<|eot|> <|assistant|> The average speed is 140 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 140 miles in 1 hours?" }, { "role": "assistant", "content": "The average speed is 140 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0076337
A car travels 509 miles in 0.5 hours. What is its average speed in miles per hour? A few lines of Python do it: distance = 509 hours = 0.5 speed = distance / hours print(round(speed)) Shell output: 1018 The average speed is 1018 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1018", "printed": "1018", "notation": null}
nlprog_det-setting-0076338
Revenue is $13,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 13500 costs = 12500 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 7.4074074074074066 print(round(margin, 1)) ``` Console output: 7.4 Profit is 7.4% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "7.4", "printed": "7.4", "notation": null}
nlprog_det-setting-0076339
<|start|><|user|> 12 boxes hold 24 staplers each. After 5 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 24 given_away = 5 left = boxes * per_box - given_away # 283 print(left) ``` That prints: 283 That leaves 283 staplers.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 boxes hold 24 staplers each. After 5 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 24\ngiven_away = 5\nleft = boxes * per_box - given_away # 283\nprint(left)\n```\nThat prints: 283\n\nThat leaves 283 s...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "283", "printed": "283", "notation": null}
nlprog_det-setting-0076340
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> How many 2-foot square tiles cover a 9 ft by 7 ft floor (round up)?<|eot|> <|assistant|> 16 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "How many 2-foot square tiles cover a 9 ft by 7 ft floor (round up)?" }, { "role": "assistant", "content": "16 tiles are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0076341
Pack A has 6 items for $7.45. Pack B has 20 items for $19.85. Which has the lower price per item? pack_a = 7.45 / 6 # 1.2416666666666667 pack_b = 19.85 / 20 # 0.9925 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) It prints B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076342
Counting the first and last day, how many days are there from May 12, 2019 through May 29, 2019? Written as code: ```python from datetime import date first = date(2019, 5, 12) # datetime.date(2019, 5, 12) last = date(2019, 5, 29) # datetime.date(2019, 5, 29) days = (last - first).days + 1 # 18 print(days) ``` Out =...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076343
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Convert 57.7 km to meters.<|eot|> <|assistant|> ```python km = 57.7 meters = km * 1000 # 57700.0 print(round(meters)) ``` This prints: 57700 57,700 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Convert 57.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 57.7\nmeters = km * 1000 # 57700.0\nprint(round(meters))\n```\nThis prints: 57700\n\n57,700 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "57700", "printed": "57700", "notation": null}
nlprog_det-setting-0076344
How many minutes pass from 8:46 AM to 10:59 AM on the same day? Python: ```python start = 8 * 60 + 46 # 526 end = 10 * 60 + 59 # 659 print(end - start) ``` The program prints 133. 133 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0076346
Walls total 1302 sq ft and each can covers 350 sq ft. How many cans should be bought? Python, step by step: ```python import math area = 1302 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Run result: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0076347
A $60,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment? Set it up in Python: ```python grant = 60000 up_front = 2000 installments = 12 each = (grant - up_front) / installments print(f"{each:.2f}") ``` # stdout: 4833.33 $4,833.33 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4833.33", "printed": "4833.33", "notation": null}
nlprog_det-setting-0076348
<|start|><|system|> You can call tools. Available tools: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "lookup_statute", "description":...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0076349
<|start|><|system|> Available functions (JSON Schema): [{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> At $25...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "814.72", "printed": "814.72", "notation": null}
nlprog_det-setting-0076350
Straight-line depreciation: cost $18,000, salvage $2,000, 3 years. How much per year? In Python: ```python cost = 18000 salvage = 2000 years = 3 per_year = (cost - salvage) / years # 5333.333333333333 print(f"{per_year:.2f}") ``` What it prints: 5333.33 $5,333.33 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5333.33", "printed": "5333.33", "notation": null}
nlprog_det-setting-0076351
Notice was given on May 17, 2023. The notice period is 60 days. When does it run out? Computing it: ```python from datetime import date, timedelta start = date(2023, 5, 17) # datetime.date(2023, 5, 17) end = start + timedelta(days=60) # datetime.date(2023, 7, 16) print(end.isoformat()) ``` When run, it prints 2023-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-07-16", "printed": "2023-07-16", "notation": null}
nlprog_det-setting-0076352
<|start|><|user|> How many weekdays (Monday to Friday) fall after September 5, 2026 up to and including October 3, 2026?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 9, 5) end = date(2026, 10, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after September 5, 2026 up to and including October 3, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 9, 5)\nend = date(2026, 10, 3)\ncount = 0\nfor k in rang...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0076353
<|start|><|user|> A hearing is set for June 4, 2011. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2011, 6, 4) # datetime.date(2011, 6, 4) print(hearing.strftime("%A")) ``` Python prints Saturday, as expected. June 4, 2011 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for June 4, 2011. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2011, 6, 4) # datetime.date(2011, 6, 4)\nprint(hearing.strftime(\"%A\"))\n```\nPython prints Saturday, as ex...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0076354
<|start|><|user|> An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1.5 / 100 months = 5 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Executed, it shows: 900.00 The interes...
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100\nmonths = 5\ninterest = balance * monthly_rate * months\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0076355
<|start|><|user|> An attorney bills 1.5 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 1.5 rate = 410 bill = hours * rate # 615.0 print(f"{bill:.2f}") ``` On running, it outputs: 615.00 The bill is $615.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 1.5 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 410\nbill = hours * rate # 615.0\nprint(f\"{bill:.2f}\")\n```\nOn running, it outputs: 615.00\n\nThe bill is $615.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "615.00", "printed": "615.00", "notation": null}