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-0050328
How many whole days and leftover hours are in 106 hours? That is 4 days and 10 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "4 days and 10 hours", "printed": "4 days and 10 hours", "notation": null}
nlprog_det-setting-0050329
<|start|><|user|> A 33 lb package ships at $8 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> Shipping costs $47.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 33 lb package ships at $8 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "Shipping costs $47.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "47.60", "printed": "47.60", "notation": null}
nlprog_det-setting-0050330
A recipe for 6 people uses 200 grams of pasta. How many grams are needed for 12 people? Here's the code. ```python grams = 200 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 400 print(scaled) ``` Printed = 400 400 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0050333
<|start|><|user|> Rent of $1,250 goes up 6%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1250 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1325.0 print(f"{new_rent:.2f}") ``` The run gives 1325.00, as expected. It rises to $1,325.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1325.0\nprint(f\"{new_rent:.2f}\")\n```\nThe run gives 1325.00, as expected.\n\nIt rises t...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1325.00", "printed": "1325.00", "notation": null}
nlprog_det-setting-0050335
<|start|><|user|> A car travels 544 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> It averages 272 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 544 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "It averages 272 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0050336
Elena earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? As Python: ```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}") ``` (Printed: 1100.00) The weekly pay is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1100.00", "printed": "1100.00", "notation": null}
nlprog_det-setting-0050337
A clerk's office charges $75 for each filing. Marek submits 2 filings. What is the total fee? The total fee is $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0050338
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 103-page copy cost?<|eot|> <|assistant|> pages = 103 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 14.3 print(f"{cost:.2f}") (Program output...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 103-page copy cost?" }, { "role": "assistant", "content": " pages = 103\n base = 5\n per_page = 0.1\n free_pages = 10\n cost = base + max(0, pages - free_pages) *...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "14.30", "printed": "14.30", "notation": null}
nlprog_det-setting-0050340
<|start|><|user|> Convert 7,825 CHF to USD at 1 CHF = 1.08 USD.<|eot|> <|assistant|> ```python amount = 7825 rate = 1.08 converted = amount * rate # 8451.0 print(f"{converted:.2f}") ``` The program prints: 8451.00 That is 8,451.00 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 7,825 CHF to USD at 1 CHF = 1.08 USD." }, { "role": "assistant", "content": "```python\namount = 7825\nrate = 1.08\nconverted = amount * rate # 8451.0\nprint(f\"{converted:.2f}\")\n```\nThe program prints: 8451.00\n\nThat is 8,451.00 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "8451.00", "printed": "8451.00", "notation": null}
nlprog_det-setting-0050342
Buying 3 markers at $27 each, 2 calendars at $11 each, 5 water bottles at $19 each, 3 calendars at $14 each, someone hands over $250. What change comes back? Programmatically: items = [(3, 27), (2, 11), (5, 19), (3, 14)] total = sum(q * p for q, p in items) # 240 paid = 250 change = paid - total # 10...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0050343
A 7-day trip pays $79 a day for meals and $110 a night for lodging (6 nights). What is the total allowance? The Python version: days = 7 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1213 print(total) Running it prints: 1213 The al...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1213", "printed": "1213", "notation": null}
nlprog_det-setting-0050344
At an exchange rate of 1.12 CAD per USD, how many CAD is 4,254 USD? We write it as a program: amount = 4254 rate = 1.12 converted = amount * rate # 4764.4800000000005 print(f"{converted:.2f}") This prints 4764.48, as expected. It converts to 4,764.48 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4764.48", "printed": "4764.48", "notation": null}
nlprog_det-setting-0050345
<|start|><|user|> A count moves from 2,500 to 3,125. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2500 new = 3125 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` It prints 25. It changed by 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,500 to 3,125. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 3125\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nIt prints 25.\n\nIt changed...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0050346
<|start|><|user|> Counting the first and last day, how many days are there from March 9, 2024 through April 1, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 3, 9) # datetime.date(2024, 3, 9) last = date(2024, 4, 1) # datetime.date(2024, 4, 1) days = (last - first).days + 1 # 24 pr...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from March 9, 2024 through April 1, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 3, 9) # datetime.date(2024, 3, 9)\nlast = date(2024, 4, 1) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0050347
Under a 35% contingency agreement, what fee is owed on a $60,000 award? Python makes this quick: ```python recovery = 60000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Printed result — 21000.00 The lawyer's fee comes to $21,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0050348
A 8% increase is applied to $900 monthly rent. What is the new amount? Let's compute it with Python. ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` The program outputs: 972.00 It rises to $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0050349
A 400-mile drive at a steady 60 mph takes how many minutes? Written as code: ```python distance = 400 speed = 60 minutes = distance / speed * 60 # 400.0 print(round(minutes)) ``` # out: 400 400 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0050350
<|start|><|user|> A workshop lasted 3 hours and 7 minutes. How many minutes is that?<|eot|> <|assistant|> The workshop lasted 187 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 3 hours and 7 minutes. How many minutes is that?" }, { "role": "assistant", "content": "The workshop lasted 187 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0050351
Hugo buys 10 boxes of 24 ink cartridges each and gives away 7 ink cartridges. How many ink cartridges are left? Python makes this quick: ```python boxes = 10 per_box = 24 given_away = 7 left = boxes * per_box - given_away print(left) ``` (Result: 233) 233 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "233", "printed": "233", "notation": null}
nlprog_det-setting-0050352
<|start|><|user|> A deposition lasted 1 hours and 16 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 1 minutes = 16 total_minutes = hours * 60 + minutes # 76 print(total_minutes) The script prints 76. That is 76 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 1 hours and 16 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 1\n minutes = 16\n total_minutes = hours * 60 + minutes # 76\n print(total_minutes)\nThe script prints 76.\n\nThat is 76 minutes." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0050353
<|start|><|user|> Express 208 hours in days and hours.<|eot|> <|assistant|> ```python hours = 208 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # execution result: 8 days and 16 hours 208 hours is 8 days and 16 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 208 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 208\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# execution result: 8 days and 16 hours\n\n208 hours is 8 days and 16 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "8 days and 16 hours", "printed": "8 days and 16 hours", "notation": null}
nlprog_det-setting-0050354
A hearing lasted 3 hours and 36 minutes. How many minutes is that? A short script: ```python hours = 3 minutes = 36 total_minutes = hours * 60 + minutes # 216 print(total_minutes) ``` Python prints 216. That is 216 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "216", "printed": "216", "notation": null}
nlprog_det-setting-0050355
A $48,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? Computation in Python: ```python grant = 48000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 3750.0 print(f"{each:.2f}") ``` Run result — 3750.00 $3,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0050356
Counting the first and last day, how many days are there from July 26, 2018 through August 11, 2018? A Python solution: ```python from datetime import date first = date(2018, 7, 26) # datetime.date(2018, 7, 26) last = date(2018, 8, 11) # datetime.date(2018, 8, 11) days = (last - first).days + 1 # 17 print(days) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0050357
At an exchange rate of 1.12 CAD per USD, how many CAD is 5,349 USD? We write it as a program: ```python amount = 5349 rate = 1.12 converted = amount * rate # 5990.880000000001 print(f"{converted:.2f}") ``` The script prints: 5990.88 It converts to 5,990.88 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5990.88", "printed": "5990.88", "notation": null}
nlprog_det-setting-0050358
<|start|><|user|> The firm was founded in 1997. How many years had passed by 2034?<|eot|> <|assistant|> start_year = 1997 end_year = 2034 print(end_year - start_year) Run output — 37 37 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 1997. How many years had passed by 2034?" }, { "role": "assistant", "content": " start_year = 1997\n end_year = 2034\n print(end_year - start_year)\nRun output — 37\n\n37 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0050359
<|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": "lookup_statute", "description": "Lo...
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
[]
[]
423
{"gold": "17417", "printed": "17417", "notation": null}
nlprog_det-setting-0050360
4 swims at 300 calories each burn how many calories in total? Here is the program. ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` Console: 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0050361
Walls total 981 sq ft and each can covers 250 sq ft. How many cans should be bought? A Python solution: import math area = 981 coverage = 250 cans = math.ceil(area / coverage) print(cans) It outputs: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0050362
A car travels 319 miles in 0.5 hours. What is its average speed in miles per hour? Here is the program. ```python distance = 319 hours = 0.5 speed = distance / hours # 638.0 print(round(speed)) ``` Console output — 638 The average speed is 638 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "638", "printed": "638", "notation": null}
nlprog_det-setting-0050364
<|start|><|system|> Functions: {"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> After an initial $0, the remainder of a $...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0050365
What is a 10% tip on a $125.77 bill? The tip is $12.58.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "12.58", "printed": "12.58", "notation": null}
nlprog_det-setting-0050366
A meal costs $131.61. How much is a 20% tip? The tip is $26.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "26.32", "printed": "26.32", "notation": null}
nlprog_det-setting-0050367
Eamon earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week? Eamon earns $1,075.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1075.00", "printed": "1075.00", "notation": null}
nlprog_det-setting-0050368
A claim accrued on June 26, 2019. The limitations period is 6 years. On what date does it expire? Code: ```python from datetime import date accrued = date(2019, 6, 26) # datetime.date(2019, 6, 26) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 6, 26) print(expires.isoformat()) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2025-06-26", "printed": "2025-06-26", "notation": null}
nlprog_det-setting-0050369
A room is 8 feet by 9 feet. Flooring costs $6 per square foot. What does it cost to floor the room? The flooring costs $432.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "432", "printed": "432", "notation": null}
nlprog_det-setting-0050370
<|start|><|system|> Tool definitions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "obje...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"convert_units\", \"description\": \"Conver...
nlprog_det
setting
original
null
deterministic
[]
[]
386
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0050371
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Prorate $2,400 of monthly rent for 7 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 541.9354838709677 print(f"{prorated:.2f}") ``` That prints: 54...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Prorate $2,400 of monthly rent for 7 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 7\nprorated = rent * days_oc...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "541.94", "printed": "541.94", "notation": null}
nlprog_det-setting-0050372
A $9,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Coded up: principal = 9000 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + in...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "795.00", "printed": "795.00", "notation": null}
nlprog_det-setting-0050373
<|start|><|user|> What commission does Jonas make on $50,210 in sales at 6%?<|eot|> <|assistant|> ```python sales = 50210 rate = 6 / 100 # 0.06 commission = sales * rate # 3012.6 print(f"{commission:.2f}") ``` Execution prints 3012.60, as expected. Jonas earns $3,012.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Jonas make on $50,210 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 50210\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 3012.6\nprint(f\"{commission:.2f}\")\n```\nExecution prints 3012.60, as expected.\n\nJona...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3012.60", "printed": "3012.60", "notation": null}
nlprog_det-setting-0050374
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) print(units) ``` It outputs: 120 Break-even is 120 units.<|e...
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable))\np...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0050375
1 books come back 28 days late, at $0.50 a day each. What is the fine? As Python: ```python per_day = 0.5 days_late = 28 books = 1 fine = per_day * days_late * books # 14.0 print(f"{fine:.2f}") ``` # program output: 14.00 $14.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "14.00", "printed": "14.00", "notation": null}
nlprog_det-setting-0050376
A quorum is 1/3 of the 15 members, rounded up. How many members make a quorum? A few lines of Python do it: ```python import math members = 15 quorum = math.ceil(members * 1 / 3) # 5 print(quorum) ``` Interpreter output — 5 That is 5 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0050377
With 17 rows of 18 chairs and 26 empty chairs, how many chairs are taken? 280 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0050378
<|start|><|system|> Tool definitions: [{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0050379
A lawyer's fee is 35% of a $40,000 recovery. How large is the fee? Program: ```python recovery = 40000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Python prints: 14000.00 The lawyer's fee comes to $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0050380
What is the total rent on a 24-month lease at $1,640 a month? Python: ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` Printed: 39360 The rent over the term is $39,360.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0050381
Express 159 hours in days and hours. ```python hours = 159 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The program prints: 6 days and 15 hours 159 hours is 6 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "6 days and 15 hours", "printed": "6 days and 15 hours", "notation": null}
nlprog_det-setting-0050382
A 18-month warranty starts on September 22, 2023. On what date does it end? Computing it: ```python from datetime import date start = date(2023, 9, 22) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The interpr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2025-03-22", "printed": "2025-03-22", "notation": null}
nlprog_det-setting-0050383
A meal costs $132.88. How much is a 18% tip? One way, in code: ```python bill = 132.88 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 23.9184 print(f"{tip:.2f}") ``` Running it prints: 23.92 Leave $23.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "23.92", "printed": "23.92", "notation": null}
nlprog_det-setting-0050384
<|start|><|user|> How many of 72 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 72 needed = math.ceil(voters * 60 / 100) # 44 print(needed) ``` # stdout: 44 44 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 72 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 72\nneeded = math.ceil(voters * 60 / 100) # 44\nprint(needed)\n```\n# stdout: 44\n\n44 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0050385
How many units at $25 each (variable cost $15) cover $2,500 of fixed costs? As a program: ```python import math fixed = 2500 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` stdout: 250 Break-even is 250 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0050386
<|start|><|user|> How much sales tax is charged on a $228.21 purchase at 7%?<|eot|> <|assistant|> $15.97 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $228.21 purchase at 7%?" }, { "role": "assistant", "content": "$15.97 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "15.97", "printed": "15.97", "notation": null}
nlprog_det-setting-0050387
A claim accrued on January 15, 2019. The limitations period is 6 years. On what date does it expire? Translated to Python: ```python from datetime import date accrued = date(2019, 1, 15) # datetime.date(2019, 1, 15) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 1, 15) print(exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2025-01-15", "printed": "2025-01-15", "notation": null}
nlprog_det-setting-0050388
Fixed costs are $9,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even? The program: ```python import math fixed = 9000 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` Output: 900 900 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0050389
A car travels 336 miles in 3 hours. What is its average speed in miles per hour? Here is the program. ```python distance = 336 hours = 3 speed = distance / hours # 112.0 print(round(speed)) ``` Program output: 112 It averages 112 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "112", "printed": "112", "notation": null}
nlprog_det-setting-0050390
<|start|><|user|> With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 37000 costs = 36000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 2.7027027027027026 print(round(margin, 1)) Program output: 2...
chat
[ { "role": "user", "content": "With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 37000\n costs = 36000\n profit = revenue - costs # 1000\n margin = profit / revenue * 100 # 2.70270...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0050391
A car travels 240 miles in 1.5 hours. What is its average speed in miles per hour? Here is a short program for it. ```python distance = 240 hours = 1.5 speed = distance / hours print(round(speed)) ``` The code prints 160. The average speed is 160 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0050392
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> At an exchange rate of 1.27 CAD per USD, how many CAD is 5,175 USD?<|eot|> <|assistant|> ```python amount = 5175 rate = 1.27 converted = amount * rate # 6572.25 print(f"{converted:.2f}") ``` Running it prints 6572.25, as expected. That is 6,572.25 ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "At an exchange rate of 1.27 CAD per USD, how many CAD is 5,175 USD?" }, { "role": "assistant", "content": "```python\namount = 5175\nrate = 1.27\nconverted = amount * rate # 6572.25\n...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "6572.25", "printed": "6572.25", "notation": null}
nlprog_det-setting-0050393
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A 6% increase is applie...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "1908.00", "printed": "1908.00", "notation": null}
nlprog_det-setting-0050394
After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part? Python code: grant = 24000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") # program output: 6000.00 $6,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0050395
<|start|><|user|> What is the total rent on a 36-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 36 total = monthly_rent * months # 59040 print(total) ``` # printed result: 59040 The rent over the term is $59,040.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 36-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\n# printed result: 59040\n\nThe rent over the term is $59,040....
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0050396
At $26.50 an hour, what does 16 hours of work pay? Set it up in Python: ```python rate = 26.5 hours = 16 earnings = rate * hours # 424.0 print(f"{earnings:.2f}") ``` That prints 424.00. The pay is $424.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "424.00", "printed": "424.00", "notation": null}
nlprog_det-setting-0050397
Copies cost $15 plus $0.25 for each page beyond 10. How much for 63 pages? ```python pages = 63 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 28.25 print(f"{cost:.2f}") ``` # printed: 28.25 The total is $28.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "28.25", "printed": "28.25", "notation": null}
nlprog_det-setting-0050398
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Paula drove 232 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 232 rate = 0.62 reimbursement = miles * rate # 143.84 print(f"{reimbursement:.2f}") Shell output — 143.8...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Paula drove 232 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 232\n rate = 0.62\n reimbur...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "143.84", "printed": "143.84", "notation": null}
nlprog_det-setting-0050399
At an exchange rate of 1.08 USD per EUR, how many USD is 4,729 EUR? Program: ```python amount = 4729 rate = 1.08 converted = amount * rate # 5107.320000000001 print(f"{converted:.2f}") ``` # program output: 5107.32 It converts to 5,107.32 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5107.32", "printed": "5107.32", "notation": null}
nlprog_det-setting-0050400
How many minutes pass from 7:50 AM to 12:34 PM on the same day? Coded up: ```python start = 7 * 60 + 50 # 470 end = 12 * 60 + 34 # 754 print(end - start) ``` Run output: 284 284 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "284", "printed": "284", "notation": null}
nlprog_det-setting-0050401
Straight-line depreciation: cost $24,000, salvage $2,000, 6 years. How much per year? Python: cost = 24000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 3666.6666666666665 print(f"{per_year:.2f}") The program prints: 3666.67 $3,666.67 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0050402
Fines run at $250 per day up to a maximum of $2,500. How much after 8 days? Python: ```python per_day = 250 days = 8 cap = 2500 fine = min(per_day * days, cap) # 2000 print(fine) ``` # stdout: 2000 $2,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0050403
Starting from $8,000, the team spends $782, $1,782, $2,188, $1,097. What remains? Here's the code. ```python budget = 8000 expenses = [782, 1782, 2188, 1097] left = budget - sum(expenses) # 2151 print(left) ``` This prints 2151. The remaining budget is $2,151.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "2151", "printed": "2151", "notation": null}
nlprog_det-setting-0050404
A trial runs from July 16, 2021 to July 29, 2021, counting both days. How many calendar days is that? Let the code do the arithmetic: ```python from datetime import date first = date(2021, 7, 16) # datetime.date(2021, 7, 16) last = date(2021, 7, 29) # datetime.date(2021, 7, 29) days = (last - first).days + 1 # 14 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0050405
A 125-mile drive at a steady 50 mph takes how many minutes? A Python solution: ```python distance = 125 speed = 50 minutes = distance / speed * 60 # 150.0 print(round(minutes)) ``` Printed result — 150 The trip takes 150 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0050406
A trial runs from June 26, 2020 to July 14, 2020, counting both days. How many calendar days is that? Coded up: ```python from datetime import date first = date(2020, 6, 26) # datetime.date(2020, 6, 26) last = date(2020, 7, 14) # datetime.date(2020, 7, 14) days = (last - first).days + 1 # 19 print(days) ``` The pro...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0050409
How many 2-foot square tiles cover a 16 ft by 15 ft floor (round up)? The computation: ```python import math length = 16 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 60 print(tiles) ``` (Printed result: 60) It takes 60 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0050410
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Find the mean of these test scores: ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0050411
Printing costs 10 cents a page. What does it cost to print 99 copies of a 40-page handout? ```python pages = 40 copies = 99 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 396.0 print(f"{cost:.2f}") ``` This prints 396.00. Printing costs $396.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "396.00", "printed": "396.00", "notation": null}
nlprog_det-setting-0050412
<|start|><|system|> Tools (call with JSON): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "define_word", "description": "Ret...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
376
{"gold": "232", "printed": "232", "notation": null}
nlprog_det-setting-0050413
<|start|><|user|> An attorney bills 2 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> The bill is $820.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "The bill is $820.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0050414
Express 159 hours in days and hours. Python version: hours = 159 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Run output: 6 days and 15 hours 159 hours is 6 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "6 days and 15 hours", "printed": "6 days and 15 hours", "notation": null}
nlprog_det-setting-0050415
The rules require 3/5 of 53 members (round up) to be present. How many is that? ```python import math members = 53 quorum = math.ceil(members * 3 / 5) # 32 print(quorum) ``` Executed, it shows: 32 32 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0050416
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = ...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 720...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0050417
74 of 80 members attended. What percent attended? 92.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0050418
Each of Diego's runs burns 250 calories. How many calories over 7 runs? That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0050419
<|start|><|system|> Give the answer first.<|eot|> <|user|> The statute was enacted in 1996. How many years had passed by 2031?<|eot|> <|assistant|> That is 35 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "The statute was enacted in 1996. How many years had passed by 2031?" }, { "role": "assistant", "content": "That is 35 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0050420
<|start|><|system|> Available functions (JSON Schema): [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "convert_units", "descr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
420
{"gold": "112", "printed": "112", "notation": null}
nlprog_det-setting-0050422
How long, in days, is it from January 19, 2018 until July 25, 2018? Python version: ```python from datetime import date first = date(2018, 1, 19) # datetime.date(2018, 1, 19) second = date(2018, 7, 25) # datetime.date(2018, 7, 25) print((second - first).days) ``` (Output: 187) There are 187 days between the two dat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0050423
A meeting lasted 4 hours and 14 minutes. How many minutes is that? Python version: hours = 4 minutes = 14 total_minutes = hours * 60 + minutes # 254 print(total_minutes) # console output: 254 The meeting lasted 254 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0050424
<|start|><|user|> A $240 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 48.0 print(f"{each:.2f}") ``` Execution result — 48.00 Each person pays $48.00....
chat
[ { "role": "user", "content": "A $240 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill * (1 + tip_rate) / people # 48.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0050425
Fines run at $50 per day up to a maximum of $2,500. How much after 40 days? Code: ```python per_day = 50 days = 40 cap = 2500 fine = min(per_day * days, cap) # 2000 print(fine) ``` # execution result: 2000 $2,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0050426
A 3% increase is applied to $1,500 monthly rent. What is the new amount? A short script: ```python rent = 1500 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1545.0 print(f"{new_rent:.2f}") ``` Printed result: 1545.00 The new rent is $1,545.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1545.00", "printed": "1545.00", "notation": null}
nlprog_det-setting-0050427
Water costs $20 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 13,000 gallons? Written as code: ```python base = 20 rate = 3.5 used = 13 free = 3 bill = base + rate * max(0, used - free) # 55.0 print(f"{bill:.2f}") ``` Execution result — 55.00 $55.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "55.00", "printed": "55.00", "notation": null}
nlprog_det-setting-0050429
<|start|><|user|> 589 files go into boxes of 12. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 589 per_box = 12 boxes = math.ceil(files / per_box) # 50 print(boxes) ``` Run result — 50 It takes 50 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "589 files go into boxes of 12. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 589\nper_box = 12\nboxes = math.ceil(files / per_box) # 50\nprint(boxes)\n```\nRun result — 50\n\nIt takes 50 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050430
A quorum is 2/3 of the 27 members, rounded up. How many members make a quorum? ```python import math members = 27 quorum = math.ceil(members * 2 / 3) # 18 print(quorum) ``` Program output — 18 That is 18 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050431
Attendance was 21 out of 25. Express it as a percent. A few lines of Python do it: ```python present = 21 total = 25 percent = present / total * 100 print(round(percent, 1)) ``` # printed: 84.0 Attendance was 84.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0050432
Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even? A short script: ```python import math fixed = 1200 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) # 200 print(units) ``` (Out: 200) Break-even is 200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0050433
<|start|><|user|> An invoice lists 32 headsets at $12 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 32 unit_price = 12 subtotal = quantity * unit_price # 384 total = subtotal * (1 + 6 / 100) # 407.04 print(f"{total:.2f}") (stdout: 407.04) The invoice total is...
chat
[ { "role": "user", "content": "An invoice lists 32 headsets at $12 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 32\n unit_price = 12\n subtotal = quantity * unit_price # 384\n total = subtotal * (1 + 6 / 100) # 407.04\n pr...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "407.04", "printed": "407.04", "notation": null}
nlprog_det-setting-0050434
<|start|><|user|> A car travels 106 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 106 hours = 2 speed = distance / hours # 53.0 print(round(speed)) The program outputs: 53 The average speed is 53 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 106 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 106\n hours = 2\n speed = distance / hours # 53.0\n print(round(speed))\nThe program outputs: 53\n\nThe average speed is ...
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0050435
How many whole days and leftover hours are in 328 hours? ```python hours = 328 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Program output: 13 days and 16 hours) 328 hours is 13 days and 16 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "13 days and 16 hours", "printed": "13 days and 16 hours", "notation": null}
nlprog_det-setting-0050436
<|start|><|user|> Attendance was 27 out of 40. Express it as a percent.<|eot|> <|assistant|> ```python present = 27 total = 40 percent = present / total * 100 # 67.5 print(round(percent, 1)) ``` stdout: 67.5 67.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 27 out of 40. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 27\ntotal = 40\npercent = present / total * 100 # 67.5\nprint(round(percent, 1))\n```\nstdout: 67.5\n\n67.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "67.5", "printed": "67.5", "notation": null}
nlprog_det-setting-0050437
If a 5-year limitations period starts on May 6, 2016, when does it end? A short script: ```python from datetime import date accrued = date(2016, 5, 6) # datetime.date(2016, 5, 6) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 5, 6) print(expires.isoformat()) ``` Out: 2021-05-06 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-05-06", "printed": "2021-05-06", "notation": null}