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-0076356
A meal costs $74.45. How much is a 22% tip? The program: ```python bill = 74.45 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 16.379 print(f"{tip:.2f}") ``` Printed: 16.38 The tip is $16.38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "16.38", "printed": "16.38", "notation": null}
nlprog_det-setting-0076357
Bilal earns a 2% commission on $87,926 of sales. What is the commission? Here is the program. ```python sales = 87926 rate = 2 / 100 # 0.02 commission = sales * rate # 1758.52 print(f"{commission:.2f}") ``` Executing it gives: 1758.52 The commission is $1,758.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1758.52", "printed": "1758.52", "notation": null}
nlprog_det-setting-0076358
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A count moves from 1,000 to 800. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 1000 new = 800 change = (new - old) / old * 100 # -20.0 print(round(change)) The script prints -20, as exp...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A count moves from 1,000 to 800. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 1000\n new = 800\n change = (...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0076359
At 2% a month (simple), what interest builds on $2,500 over 4 months? Translated to Python: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` Shell output — 200.00 $200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0076360
<|start|><|system|> Tools (call with JSON): {"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A $2,000 security deposit has d...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "1805", "printed": "1805", "notation": null}
nlprog_det-setting-0076361
2 friends split a $240 bill plus a 20% tip evenly. How much does each pay? Python does the arithmetic: ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 144.0 print(f"{each:.2f}") ``` Python prints: 144.00 The share is $144.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0076362
7 walks at 200 calories each burn how many calories in total? Coded up: ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` stdout — 1400 That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0076363
<|start|><|user|> A pack of 4 water bottles sells for $224. What does each cost?<|eot|> <|assistant|> ```python total = 224 count = 4 per_item = total // count print(per_item) ``` The printout reads 56. Each one costs $56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 water bottles sells for $224. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 224\ncount = 4\nper_item = total // count\nprint(per_item)\n```\nThe printout reads 56.\n\nEach one costs $56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0076364
Convert 5,856 GBP to USD at 1 GBP = 0.92 USD. Python, step by step: ```python amount = 5856 rate = 0.92 converted = amount * rate # 5387.52 print(f"{converted:.2f}") ``` Out — 5387.52 That is 5,387.52 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "5387.52", "printed": "5387.52", "notation": null}
nlprog_det-setting-0076365
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A printe...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0076366
How many whole days and leftover hours are in 38 hours? 38 hours is 1 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "1 days and 14 hours", "printed": "1 days and 14 hours", "notation": null}
nlprog_det-setting-0076367
How many days are there from August 5, 2027 to April 4, 2028? In Python: ```python from datetime import date first = date(2027, 8, 5) # datetime.date(2027, 8, 5) second = date(2028, 4, 4) # datetime.date(2028, 4, 4) print((second - first).days) ``` Output: 243 There are 243 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "243", "printed": "243", "notation": null}
nlprog_det-setting-0076368
Hugo lends $8,000 at 6% simple interest per year for 4 years. How much interest is earned? Computation in Python: ```python principal = 8000 rate = 6 / 100 # 0.06 years = 4 interest = principal * rate * years # 1920.0 print(f"{interest:.2f}") ``` That prints: 1920.00 The interest is $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0076369
Convert 1 h 42 min (the length of a film) to minutes. Here is the program. ```python hours = 1 minutes = 42 total_minutes = hours * 60 + minutes print(total_minutes) ``` (Printed: 102) The film lasted 102 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0076370
<|start|><|user|> A trial runs from October 17, 2023 to November 11, 2023, counting both days. How many calendar days is that?<|eot|> <|assistant|> from datetime import date first = date(2023, 10, 17) # datetime.date(2023, 10, 17) last = date(2023, 11, 11) # datetime.date(2023, 11, 11) days = (last - ...
chat
[ { "role": "user", "content": "A trial runs from October 17, 2023 to November 11, 2023, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2023, 10, 17) # datetime.date(2023, 10, 17)\n last = date(2023, 11...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0076371
8 claimants share a $2,640 settlement equally. What is each share? A few lines of Python do it: settlement = 2640 parties = 8 share = settlement // parties # 330 print(share) It prints: 330 Each share is $330.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0076372
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> 4 books come back 12 days late, at $0.25 a day each. What is the fine?<|eot|> <|assistant|> The fine is $12.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "4 books come back 12 days late, at $0.25 a day each. What is the fine?" }, { "role": "assistant", "content": "The fine is $12.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0076373
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 18.5 hours = 45 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 138.75 pay = regular + overtime # 878.75 print(f"{pay:.2f}") ``` Running this giv...
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 45\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 138.75\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "878.75", "printed": "878.75", "notation": null}
nlprog_det-setting-0076374
A car travels 268 miles in 2 hours. What is its average speed in miles per hour? Computing it: ```python distance = 268 hours = 2 speed = distance / hours # 134.0 print(round(speed)) ``` Run it and it prints 134. It averages 134 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0076375
At 1% a month (simple), what interest builds on $1,000 over 6 months? The interest is $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0076376
Rent of $900 goes up 6%. What is the new rent? The computation: ```python rent = 900 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 954.0 print(f"{new_rent:.2f}") ``` (stdout: 954.00) It rises to $954.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0076377
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 50 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 300.0 pay = regular + overtime # 1100.0 print(f"{pay:.2f}") ``` Output of the run...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 50\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 300.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1100.00", "printed": "1100.00", "notation": null}
nlprog_det-setting-0076378
A measure needs at least 60% of 111 votes. How many votes is that, rounded up? Python: ```python import math voters = 111 needed = math.ceil(voters * 60 / 100) # 67 print(needed) ``` When run, it prints 67. 67 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0076379
<|start|><|user|> Each of Tobias's walks burns 350 calories. How many calories over 4 walks?<|eot|> <|assistant|> That burns 1400 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Tobias's walks burns 350 calories. How many calories over 4 walks?" }, { "role": "assistant", "content": "That burns 1400 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0076380
<|start|><|user|> Goods bought on February 19, 2020 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 2, 19) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(en...
chat
[ { "role": "user", "content": "Goods bought on February 19, 2020 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 2, 19)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = da...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-02-19", "printed": "2023-02-19", "notation": null}
nlprog_det-setting-0076381
Convert 3,002 CHF to USD at 1 CHF = 1.31 USD. It converts to 3,932.62 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "3932.62", "printed": "3932.62", "notation": null}
nlprog_det-setting-0076383
A clerk's office charges $350 for each filing. Hana submits 2 filings. What is the total fee? As Python: ```python fee = 350 filings = 2 total = fee * filings # 700 print(total) ``` # console output: 700 The filings cost $700 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0076384
<|start|><|user|> Express 135 hours in days and hours.<|eot|> <|assistant|> hours = 135 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") When run, it prints 5 days and 15 hours, as expected. That is 5 days and 15 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 135 hours in days and hours." }, { "role": "assistant", "content": " hours = 135\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nWhen run, it prints 5 days and 15 hours, as expected.\n\nThat is 5 days and 15 hours." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "5 days and 15 hours", "printed": "5 days and 15 hours", "notation": null}
nlprog_det-setting-0076385
<|start|><|user|> A pack of 20 folders sells for $160. What does each cost?<|eot|> <|assistant|> ```python total = 160 count = 20 per_item = total // count # 8 print(per_item) ``` Running this gives 8. Each one costs $8.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 folders sells for $160. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 160\ncount = 20\nper_item = total // count # 8\nprint(per_item)\n```\nRunning this gives 8.\n\nEach one costs $8." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0076386
2 books come back 8 days late, at $0.20 a day each. What is the fine? Python: ```python per_day = 0.2 days_late = 8 books = 2 fine = per_day * days_late * books # 3.2 print(f"{fine:.2f}") ``` Out: 3.20 The fine is $3.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3.20", "printed": "3.20", "notation": null}
nlprog_det-setting-0076387
<|start|><|user|> The statute was enacted in 2005. How many years had passed by 2040?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2040 print(end_year - start_year) ``` Run result — 35 35 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2005. How many years had passed by 2040?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2040\nprint(end_year - start_year)\n```\nRun result — 35\n\n35 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0076388
Papers were served by mail on September 16, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python does the arithmetic: ```python from datetime import date, timedelta served = date(2019, 9, 16) response_days = 14 mail_days = 3 due = served + timedelta(days=response_d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2019-10-03", "printed": "2019-10-03", "notation": null}
nlprog_det-setting-0076389
<|start|><|user|> What commission does Joelle make on $69,800 in sales at 5%?<|eot|> <|assistant|> ```python sales = 69800 rate = 5 / 100 # 0.05 commission = sales * rate # 3490.0 print(f"{commission:.2f}") ``` (Run result: 3490.00) Joelle earns $3,490.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Joelle make on $69,800 in sales at 5%?" }, { "role": "assistant", "content": "```python\nsales = 69800\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 3490.0\nprint(f\"{commission:.2f}\")\n```\n(Run result: 3490.00)\n\nJoelle earns $3,490....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3490.00", "printed": "3490.00", "notation": null}
nlprog_det-setting-0076390
<|start|><|user|> How many 1-foot square tiles cover a 16 ft by 4 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 16 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` The interpreter prints: 64 64 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 16 ft by 4 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 16\nwidth = 4\ntile = 1\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nThe interpreter prints: 64\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0076391
<|start|><|user|> Count the days between November 23, 2020 and October 13, 2021.<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 11, 23) # datetime.date(2020, 11, 23) second = date(2021, 10, 13) # datetime.date(2021, 10, 13) print((second - first).days) ``` This prints: 324 There are 324 ...
chat
[ { "role": "user", "content": "Count the days between November 23, 2020 and October 13, 2021." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 11, 23) # datetime.date(2020, 11, 23)\nsecond = date(2021, 10, 13) # datetime.date(2021, 10, 13)\nprint((...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "324", "printed": "324", "notation": null}
nlprog_det-setting-0076392
A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 3 people? Python, step by step: ```python grams = 300 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 150 print(scaled) ``` The program outputs 150. 150 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0076393
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Console output: -4 That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nConsole output: -4\n\nThat is -4 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0076394
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Water costs $18 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons?<|eot|> <|assistant|> base = 18 rate = 3.5 used = 25 free = 3 bill = base + rate * max(0, used - free) # 95.0 print(f"{bill:.2f}") ...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons?" }, { "role": "assistant", "content": " base = 18\n rate = 3.5\n used = 25\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "95.00", "printed": "95.00", "notation": null}
nlprog_det-setting-0076395
Count the days between January 7, 2024 and June 10, 2024. We write it as a program: ```python from datetime import date first = date(2024, 1, 7) # datetime.date(2024, 1, 7) second = date(2024, 6, 10) # datetime.date(2024, 6, 10) print((second - first).days) ``` Executing it gives: 155 There are 155 days between the...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "155", "printed": "155", "notation": null}
nlprog_det-setting-0076396
<|start|><|user|> The rules require 3/5 of 49 members (round up) to be present. How many is that?<|eot|> <|assistant|> That is 30 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 49 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "That is 30 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0076397
A lawyer's fee is 30% of a $40,000 recovery. How large is the fee? Coded up: ```python recovery = 40000 rate = 30 / 100 # 0.3 fee = recovery * rate # 12000.0 print(f"{fee:.2f}") ``` # printed: 12000.00 The fee is $12,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0076398
<|start|><|user|> How many weekdays (Monday to Friday) fall after October 3, 2022 up to and including October 21, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 10, 3) end = date(2022, 10, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(da...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 3, 2022 up to and including October 21, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 10, 3)\nend = date(2022, 10, 21)\ncount = 0\nfor k in ran...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0076399
<|start|><|user|> A 40 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.0 weight = 40 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Out: 85.00 The charge is $85.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 40 lb package ships at $5 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.0\nweight = 40\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nOut:\n85.00\n\nThe charge is $85.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "85.00", "printed": "85.00", "notation": null}
nlprog_det-setting-0076400
How many weekdays (Monday to Friday) fall after February 10, 2022 up to and including February 27, 2022? Python version: from datetime import date, timedelta start = date(2022, 2, 10) end = date(2022, 2, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0076401
A pack of 25 staplers sells for $625. What does each cost? Computing it: total = 625 count = 25 per_item = total // count # 25 print(per_item) Executed, it shows: 25 The unit price is $25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0076403
A claim accrued on October 9, 2016. The limitations period is 5 years. On what date does it expire? Program: ```python from datetime import date accrued = date(2016, 10, 9) # datetime.date(2016, 10, 9) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 10, 9) print(expires.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2021-10-09", "printed": "2021-10-09", "notation": null}
nlprog_det-setting-0076404
Each of Rosa's runs burns 400 calories. How many calories over 4 runs? ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` Printed: 1600 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0076405
<|start|><|user|> Monthly: $29. Annual: $324. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` # output: 24 $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $324. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 324\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n# output: 24\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0076406
If a 25-minute appointment begins at 11:00 AM, what time does it finish? ```python start = 11 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` What it prints — 11:25 AM It ends at 11:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "11:25 AM", "printed": "11:25 AM", "notation": null}
nlprog_det-setting-0076407
A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 16 thousand gallons? In Python: ```python base = 15 rate = 5.1 used = 16 free = 0 bill = base + rate * max(0, used - free) # 96.6 print(f"{bill:.2f}") ``` Out: 96.60 $96.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "96.60", "printed": "96.60", "notation": null}
nlprog_det-setting-0076408
Copies cost $5 plus $0.25 for each page beyond 10. How much for 26 pages? A few lines of Python do it: ```python pages = 26 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 9.0 print(f"{cost:.2f}") ``` Executing it gives: 9.00 The copy costs $9.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0076409
<|start|><|user|> A count moves from 500 to 550. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 550 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` Run it and it prints: 10 It changed by 10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 550. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 550\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nRun it and it prints: 10\n\nIt ch...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0076410
Attendance was 153 out of 200. Express it as a percent. ```python present = 153 total = 200 percent = present / total * 100 # 76.5 print(round(percent, 1)) ``` It prints 76.5. 76.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "76.5", "printed": "76.5", "notation": null}
nlprog_det-setting-0076411
Express 287 hours in days and hours. In code: ```python hours = 287 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run result: 11 days and 23 hours 287 hours is 11 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "11 days and 23 hours", "printed": "11 days and 23 hours", "notation": null}
nlprog_det-setting-0076412
<|start|><|user|> A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 282 savings = monthly * 12 - yearly # 18 print(savings) ``` Python prints 18. $18 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 282\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\nPython prints 18.\n\n$1...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076413
4 swims at 200 calories each burn how many calories in total? In code: ```python per_session = 200 sessions = 4 total = per_session * sessions # 800 print(total) ``` Result: 800 800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0076414
7 boxes hold 24 envelopes each. After 8 are handed out, how many are left? As a program: ```python boxes = 7 per_box = 24 given_away = 8 left = boxes * per_box - given_away # 160 print(left) ``` Printed result: 160 160 envelopes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0076415
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "math_engine", "description": "Execu...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0076416
<|start|><|user|> Counting only Monday through Friday, how many business days are there after August 1, 2021 through August 27, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 8, 1) end = date(2021, 8, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after August 1, 2021 through August 27, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 8, 1)\nend = date(2021, 8, 27)\ncount = 0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0076417
Prorate $2,400 of monthly rent for 20 days of a 30-day month. The tenant owes $1,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0076418
<|start|><|user|> Split $584 between Yusuf and Chen in the ratio 1 to 3. What is Yusuf's share?<|eot|> <|assistant|> total = 584 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 146 print(share_a) The interpreter prints 146. Yusuf's share is $146.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $584 between Yusuf and Chen in the ratio 1 to 3. What is Yusuf's share?" }, { "role": "assistant", "content": " total = 584\n parts_a = 1\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 146\n print(share_a)\nThe interpreter p...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0076419
Ada lends $1,000 at 6% simple interest per year for 5 years. How much interest is earned? Python, step by step: ```python principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` Running it prints 300.00. It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0076420
Goods bought on December 9, 2019 carry a 18-month warranty. When does it expire? Python code: ```python from datetime import date start = date(2019, 12, 9) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # conso...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2021-06-09", "printed": "2021-06-09", "notation": null}
nlprog_det-setting-0076421
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 56 days?<|eot|> <|assistant|> ```python per_day = 100 days = 56 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` (Run result: 2500) The fine is $2,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 56 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 56\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\n(Run result: 2500)\n\nThe fine is $2,500."...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0076422
What does $5,000 grow to in 2 years at 3% annual compounding? We can compute it in Python. ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 5304.5 print(f"{value:.2f}") ``` Execution prints: 5304.50 It is worth $5,304.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0076423
A recipe for 8 people uses 240 grams of lentils. How many grams are needed for 4 people? In Python: ```python grams = 240 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 120 print(scaled) ``` Running this gives 120. Use 120 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0076424
Buying 2 keyboards at $15 each, 1 keyboards at $9 each, 6 calendars at $24 each, someone hands over $200. What change comes back? Here is the program. ```python items = [(2, 15), (1, 9), (6, 24)] total = sum(q * p for q, p in items) # 183 paid = 200 change = paid - total # 17 print(change) ``` Python prints 17. The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0076425
A library charges $0.15 per book per day late. What is the fine for 4 books that are 21 days late? Code: ```python per_day = 0.15 days_late = 21 books = 4 fine = per_day * days_late * books # 12.6 print(f"{fine:.2f}") ``` This prints 12.60, as expected. The fine is $12.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "12.60", "printed": "12.60", "notation": null}
nlprog_det-setting-0076426
<|start|><|user|> A 396-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 396 days = 9 per_day = pages // days # 44 print(per_day) ``` # out: 44 That is 44 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 396-page report must be reviewed in 9 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 396\ndays = 9\nper_day = pages // days # 44\nprint(per_day)\n```\n# out: 44\n\nThat is 44 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0076427
Notice was given on May 7, 2022. The notice period is 10 days. When does it run out? One way, in code: from datetime import date, timedelta start = date(2022, 5, 7) # datetime.date(2022, 5, 7) end = start + timedelta(days=10) # datetime.date(2022, 5, 17) print(end.isoformat()) The program prints 2022...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2022-05-17", "printed": "2022-05-17", "notation": null}
nlprog_det-setting-0076428
<|start|><|user|> A seminar starts at 9:20 AM and lasts 75 minutes. When does it end?<|eot|> <|assistant|> ```python start = 9 * 60 + 20 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed — 10:35 AM The seminar finishes at 10:35 AM.<|e...
chat
[ { "role": "user", "content": "A seminar starts at 9:20 AM and lasts 75 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 20\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "10:35 AM", "printed": "10:35 AM", "notation": null}
nlprog_det-setting-0076429
<|start|><|user|> An office budget of $20,000 has expenses of $3,980, $2,121, $3,136, $698. How much of the budget is left?<|eot|> <|assistant|> budget = 20000 expenses = [3980, 2121, 3136, 698] left = budget - sum(expenses) print(left) Output — 10065 $10,065 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $3,980, $2,121, $3,136, $698. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 20000\n expenses = [3980, 2121, 3136, 698]\n left = budget - sum(expenses)\n print(left)\nOutput — ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "10065", "printed": "10065", "notation": null}
nlprog_det-setting-0076430
Counting only Monday through Friday, how many business days are there after May 7, 2021 through June 14, 2021? As Python: ```python from datetime import date, timedelta start = date(2021, 5, 7) end = date(2021, 6, 14) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0076431
A hall has 26 rows of 21 seats, and 11 seats are empty. How many people are seated? Programmatically: ```python rows = 26 per_row = 21 empty = 11 seated = rows * per_row - empty # 535 print(seated) ``` The program prints: 535 535 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "535", "printed": "535", "notation": null}
nlprog_det-setting-0076432
<|start|><|user|> Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` # result: 4000.00 Depr...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 6000\nyears = 3\nper_year = (cost - salvage) / years # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0076433
The rules require 3/5 of 18 members (round up) to be present. How many is that? One way, in code: ```python import math members = 18 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` Running it prints: 11 11 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0076434
A 112-page report must be reviewed in 8 days. How many pages a day is that, evenly? Script: ```python pages = 112 days = 8 per_day = pages // days # 14 print(per_day) ``` This prints 14, as expected. 14 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0076435
<|start|><|user|> 8 folders cost $12 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> The invoice total is $103.68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 folders cost $12 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "The invoice total is $103.68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "103.68", "printed": "103.68", "notation": null}
nlprog_det-setting-0076436
At 2% a month (simple), what interest builds on $12,000 over 4 months? A few lines of Python do it: balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 960.0 print(f"{interest:.2f}") Out — 960.00 $960.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0076437
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A clerk's office charges $...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"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
[]
[]
205
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0076438
Convert 8,131 CHF to USD at 1 CHF = 1.35 USD. Computation in Python: amount = 8131 rate = 1.35 converted = amount * rate # 10976.85 print(f"{converted:.2f}") stdout = 10976.85 That is 10,976.85 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "10976.85", "printed": "10976.85", "notation": null}
nlprog_det-setting-0076439
The rules require 3/5 of 38 members (round up) to be present. How many is that? In Python: ```python import math members = 38 quorum = math.ceil(members * 3 / 5) # 23 print(quorum) ``` Running this gives: 23 23 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0076440
<|start|><|user|> How many minutes pass from 8:33 AM to 12:38 PM on the same day?<|eot|> <|assistant|> ```python start = 8 * 60 + 33 # 513 end = 12 * 60 + 38 # 758 print(end - start) ``` # console output: 245 245 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:33 AM to 12:38 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 33 # 513\nend = 12 * 60 + 38 # 758\nprint(end - start)\n```\n# console output: 245\n\n245 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "245", "printed": "245", "notation": null}
nlprog_det-setting-0076442
A library charges $0.25 per book per day late. What is the fine for 3 books that are 20 days late? ```python per_day = 0.25 days_late = 20 books = 3 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` This prints 15.00. $15.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0076443
<|start|><|user|> Shipping costs $12 plus $2.00 per pound. What does a 27-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.0 weight = 27 cost = base + per_pound * weight # 66.0 print(f"{cost:.2f}") ``` Python prints: 66.00 Shipping costs $66.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $2.00 per pound. What does a 27-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.0\nweight = 27\ncost = base + per_pound * weight # 66.0\nprint(f\"{cost:.2f}\")\n```\nPython prints: 66.00\...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "66.00", "printed": "66.00", "notation": null}
nlprog_det-setting-0076444
What percentage of $8,000 is $6,200? That is 77.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0076445
<|start|><|system|> Be concise.<|eot|> <|user|> A settlement of $1,200 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 6 share = settlement // parties # 200 print(share) ``` On running, it outputs 200. Each party receives $200.<|eot|> <|en...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A settlement of $1,200 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 6\nshare = settlement // parties # ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0076446
<|start|><|user|> A shift runs from 10:32 AM to 11:01 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 10 * 60 + 32 end = 11 * 60 + 1 print(end - start) ``` Executing it gives: 29 29 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 10:32 AM to 11:01 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 32\nend = 11 * 60 + 1\nprint(end - start)\n```\nExecuting it gives: 29\n\n29 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0076447
Goods bought on May 28, 2018 carry a 6-month warranty. When does it expire? Python makes this quick: ```python from datetime import date start = date(2018, 5, 28) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` P...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2018-11-28", "printed": "2018-11-28", "notation": null}
nlprog_det-setting-0076448
A 350-page report must be reviewed in 10 days. How many pages a day is that, evenly? Python version: ```python pages = 350 days = 10 per_day = pages // days # 35 print(per_day) ``` (Execution result: 35) That is 35 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0076449
How many of 28 members form a majority (more than half)? Program: ```python members = 28 majority = members // 2 + 1 # 15 print(majority) ``` When run, it prints: 15 That is 15 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0076450
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> After a 40% fe...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0076451
A appointment starts at 2:00 PM and lasts 90 minutes. When does it end? Programmatically: ```python start = 14 * 60 + 0 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Interpreter output — 3:30 PM The appointment finishes at 3:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "3:30 PM", "printed": "3:30 PM", "notation": null}
nlprog_det-setting-0076452
A 9-day trip pays $64 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? As Python: ```python days = 9 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1696 print(total) ``` It outputs 1696. The allowance is $1,696.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1696", "printed": "1696", "notation": null}
nlprog_det-setting-0076453
A workshop lasted 4 hours and 28 minutes. How many minutes is that? Translated to Python: ```python hours = 4 minutes = 28 total_minutes = hours * 60 + minutes print(total_minutes) ``` stdout — 268 That is 268 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "268", "printed": "268", "notation": null}
nlprog_det-setting-0076454
A shift runs from 11:25 AM to 5:39 PM. How long is it in minutes? The Python version: ```python start = 11 * 60 + 25 # 685 end = 17 * 60 + 39 # 1059 print(end - start) ``` Running it prints 374. It is 374 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "374", "printed": "374", "notation": null}
nlprog_det-setting-0076455
<|start|><|system|> Functions: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "python", ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0076456
Which is cheaper per unit: 10 for $8.50 (A) or 30 for $12.49 (B)? Program: ```python pack_a = 8.5 / 10 # 0.85 pack_b = 12.49 / 30 # 0.41633333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The program prints B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076457
What does $5,000 grow to in 5 years at 4% annual compounding? ```python principal = 5000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 6083.264512000001 print(f"{value:.2f}") ``` It outputs 6083.26. It is worth $6,083.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "6083.26", "printed": "6083.26", "notation": null}
nlprog_det-setting-0076458
At an exchange rate of 1.27 USD per GBP, how many USD is 8,054 GBP? amount = 8054 rate = 1.27 converted = amount * rate # 10228.58 print(f"{converted:.2f}") It outputs: 10228.58 It converts to 10,228.58 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10228.58", "printed": "10228.58", "notation": null}