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-0052702
<|start|><|user|> A customer buys 4 headsets at $15 each, 3 scissors at $14 each, 1 paper reams at $3 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 15), (3, 14), (1, 3)] total = sum(q * p for q, p in items) # 105 paid = 150 change = paid - total # 45 print(change) ``` Ru...
chat
[ { "role": "user", "content": "A customer buys 4 headsets at $15 each, 3 scissors at $14 each, 1 paper reams at $3 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, 15), (3, 14), (1, 3)]\ntotal = sum(q * p for q, p in items) # 105\npa...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0052703
Copies cost $5 plus $0.50 for each page beyond 10. How much for 19 pages? Python version: ```python pages = 19 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` # printed: 9.50 The copy costs $9.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "9.50", "printed": "9.50", "notation": null}
nlprog_det-setting-0052704
<|start|><|user|> With 10% off, what does a $40 desk lamp cost?<|eot|> <|assistant|> ```python price = 40 discount = 10 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` It outputs 36.00. The sale price is $36.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 10% off, what does a $40 desk lamp cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 10 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nIt outputs 36.00.\n\nThe sale price is $36.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0052705
At an exchange rate of 1.08 CAD per USD, how many CAD is 104 USD? The Python version: ```python amount = 104 rate = 1.08 converted = amount * rate # 112.32000000000001 print(f"{converted:.2f}") ``` Executed, it shows 112.32. It converts to 112.32 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "112.32", "printed": "112.32", "notation": null}
nlprog_det-setting-0052706
The firm was founded in 1996. How many years had passed by 2035? 39 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0052707
<|start|><|user|> A 18-month warranty starts on October 22, 2021. On what date does it end?<|eot|> <|assistant|> The warranty ends on April 22, 2023.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18-month warranty starts on October 22, 2021. On what date does it end?" }, { "role": "assistant", "content": "The warranty ends on April 22, 2023." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2023-04-22", "printed": "2023-04-22", "notation": null}
nlprog_det-setting-0052708
<|start|><|user|> 3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 3 # 15000.0 print(f"{per_client:.2f}") ``` Printed resu...
chat
[ { "role": "user", "content": "3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 25 / 100 # 15000.0\nremaining = award - fee # 45000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0052709
<|start|><|user|> 71 copies of a 59-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 59 copies = 71 cost_per_page = 0.1 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The program prints 418.90. The job costs $418.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "71 copies of a 59-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 59\ncopies = 71\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nThe program prints 418....
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "418.90", "printed": "418.90", "notation": null}
nlprog_det-setting-0052710
<|start|><|user|> A shift runs from 8:20 AM to 2:16 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 20 # 500 end = 14 * 60 + 16 # 856 print(end - start) ``` It prints: 356 It is 356 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:20 AM to 2:16 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 20 # 500\nend = 14 * 60 + 16 # 856\nprint(end - start)\n```\nIt prints: 356\n\nIt is 356 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "356", "printed": "356", "notation": null}
nlprog_det-setting-0052711
<|start|><|user|> Scale 200 g of oats from 2 servings to 4 servings.<|eot|> <|assistant|> ```python grams = 200 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 400 print(scaled) ``` The run gives: 400 400 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 200 g of oats from 2 servings to 4 servings." }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 2\nneeded_for = 4\nscaled = grams * needed_for // serves # 400\nprint(scaled)\n```\nThe run gives: 400\n\n400 grams of oats are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0052712
How many 2-foot square tiles cover a 15 ft by 11 ft floor (round up)? A Python solution: import math length = 15 width = 11 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 42 print(tiles) # printed: 42 42 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0052713
A 5-day trip pays $74 a day for meals and $175 a night for lodging (4 nights). What is the total allowance? The program: ```python days = 5 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 1070 print(total) ``` (Program output: 1070) That comes to $1,070.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1070", "printed": "1070", "notation": null}
nlprog_det-setting-0052714
With 24 rows of 15 chairs and 30 empty chairs, how many chairs are taken? A short script: ```python rows = 24 per_row = 15 empty = 30 seated = rows * per_row - empty # 330 print(seated) ``` # run result: 330 330 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0052715
26 chairs cost $2 apiece. With 7% tax added, what is the total? Written as code: ```python quantity = 26 unit_price = 2 subtotal = quantity * unit_price # 52 total = subtotal * (1 + 7 / 100) # 55.64 print(f"{total:.2f}") ``` # printed result: 55.64 The invoice total is $55.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "55.64", "printed": "55.64", "notation": null}
nlprog_det-setting-0052716
<|start|><|user|> The building opened in 2020. How many years had passed by 2044?<|eot|> <|assistant|> ```python start_year = 2020 end_year = 2044 print(end_year - start_year) ``` It prints: 24 24 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2020. How many years had passed by 2044?" }, { "role": "assistant", "content": "```python\nstart_year = 2020\nend_year = 2044\nprint(end_year - start_year)\n```\nIt prints: 24\n\n24 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0052717
If a 50-minute hearing begins at 2:45 PM, what time does it finish? Python version: ```python start = 14 * 60 + 45 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` stdout: 3:35 PM It ends at 3:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "3:35 PM", "printed": "3:35 PM", "notation": null}
nlprog_det-setting-0052718
A 5% increase is applied to $2,200 monthly rent. What is the new amount? Set it up in Python: ```python rent = 2200 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 2310.0 print(f"{new_rent:.2f}") ``` It prints 2310.00, as expected. It rises to $2,310.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0052719
<|start|><|user|> The firm was founded in 2022. How many years had passed by 2042?<|eot|> <|assistant|> ```python start_year = 2022 end_year = 2042 print(end_year - start_year) ``` Executed, it shows: 20 That is 20 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 2022. How many years had passed by 2042?" }, { "role": "assistant", "content": "```python\nstart_year = 2022\nend_year = 2042\nprint(end_year - start_year)\n```\nExecuted, it shows: 20\n\nThat is 20 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0052720
<|start|><|system|> Tools (call with JSON): {"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":...
chat
[ { "role": "system", "content": "Tools (call with JSON):\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\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "299", "printed": "299", "notation": null}
nlprog_det-setting-0052721
With 14 rows of 16 chairs and 31 empty chairs, how many chairs are taken? Python version: ```python rows = 14 per_row = 16 empty = 31 seated = rows * per_row - empty # 193 print(seated) ``` Run output — 193 193 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0052722
A 300-mile drive at a steady 45 mph takes how many minutes? The program: ```python distance = 300 speed = 45 minutes = distance / speed * 60 # 400.0 print(round(minutes)) ``` # execution result: 400 400 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0052723
Copies cost $5 plus $0.50 for each page beyond 10. How much for 15 pages? The program: ```python pages = 15 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Executing it gives 7.50, as expected. The copy costs $7.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "7.50", "printed": "7.50", "notation": null}
nlprog_det-setting-0052724
<|start|><|user|> The bridge was finished in 2002. How many years had passed by 2030?<|eot|> <|assistant|> ```python start_year = 2002 end_year = 2030 print(end_year - start_year) ``` (Out: 28) 28 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2002. How many years had passed by 2030?" }, { "role": "assistant", "content": "```python\nstart_year = 2002\nend_year = 2030\nprint(end_year - start_year)\n```\n(Out: 28)\n\n28 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0052725
A 31 lb package ships at $12 base plus $2.00/lb. What is the charge? As Python: ```python base = 12 per_pound = 2.0 weight = 31 cost = base + per_pound * weight # 74.0 print(f"{cost:.2f}") ``` The program prints 74.00. Shipping costs $74.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "74.00", "printed": "74.00", "notation": null}
nlprog_det-setting-0052726
<|start|><|user|> Find the mean of these test scores: 102, 61, 89, 62, 89, 50 and 93.<|eot|> <|assistant|> ```python scores = [102, 61, 89, 62, 89, 50, 93] average = sum(scores) // len(scores) # 78 print(average) ``` Console output — 78 The average score is 78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 102, 61, 89, 62, 89, 50 and 93." }, { "role": "assistant", "content": "```python\nscores = [102, 61, 89, 62, 89, 50, 93]\naverage = sum(scores) // len(scores) # 78\nprint(average)\n```\nConsole output — 78\n\nThe average score is...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0052728
Femi has 6 documents to file, and each filing costs $405. How much are the filing fees in total? The filings cost $2,430 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2430", "printed": "2430", "notation": null}
nlprog_det-setting-0052729
With 25 rows of 12 chairs and 22 empty chairs, how many chairs are taken? A few lines of Python do it: ```python rows = 25 per_row = 12 empty = 22 seated = rows * per_row - empty # 278 print(seated) ``` Executed, it shows: 278 278 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "278", "printed": "278", "notation": null}
nlprog_det-setting-0052730
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 6 months? Translated to Python: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` The printout reads: 480.00 $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0052731
Monthly: $9. Annual: $60. What is saved per year by paying annually? Python: ```python monthly = 9 yearly = 60 savings = monthly * 12 - yearly # 48 print(savings) ``` The program outputs: 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0052732
At 1.5% a month (simple), what interest builds on $2,500 over 3 months? ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 112.5 print(f"{interest:.2f}") ``` Executed, it shows 112.50. $112.50 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0052734
<|start|><|user|> A customer buys 3 chairs at $15 each, 5 cables at $11 each, 2 badges at $15 each and pays with $150. How much change is due?<|eot|> <|assistant|> $20 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 3 chairs at $15 each, 5 cables at $11 each, 2 badges at $15 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "$20 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0052735
A $2,000 security deposit has deductions of $75, $60 and $200. How much is refunded? In code: ```python deposit = 2000 deductions = [75, 60, 200] refund = deposit - sum(deductions) # 1665 print(refund) ``` (Program output: 1665) $1,665 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1665", "printed": "1665", "notation": null}
nlprog_det-setting-0052736
Convert 5 h 52 min (the length of a training session) to minutes. Here is the program. hours = 5 minutes = 52 total_minutes = hours * 60 + minutes # 352 print(total_minutes) The run gives 352. That is 352 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0052737
<|start|><|user|> 485 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 485 per_box = 24 boxes = math.ceil(files / per_box) # 21 print(boxes) ``` Out: 21 It takes 21 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "485 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 485\nper_box = 24\nboxes = math.ceil(files / per_box) # 21\nprint(boxes)\n```\nOut: 21\n\nIt takes 21 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0052738
A hall has 22 rows of 20 seats, and 35 seats are empty. How many people are seated? Here is the program. rows = 22 per_row = 20 empty = 35 seated = rows * per_row - empty # 405 print(seated) Out — 405 405 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0052739
<|start|><|user|> With 18 rows of 23 chairs and 14 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 18 per_row = 23 empty = 14 seated = rows * per_row - empty # 400 print(seated) ``` This prints: 400 400 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 18 rows of 23 chairs and 14 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 18\nper_row = 23\nempty = 14\nseated = rows * per_row - empty # 400\nprint(seated)\n```\nThis prints: 400\n\n400 seats are taken." }...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0052741
<|start|><|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 5202.0 print(f"{value:.2f}") ``` # printed result: 5202.00 It is worth $5,202.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 5202.0\nprint(f\"{value:.2f}\")\n```\n# prin...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5202.00", "printed": "5202.00", "notation": null}
nlprog_det-setting-0052742
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "description": "Get the...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0052743
<|start|><|user|> What percentage of $2,000 is $1,700?<|eot|> <|assistant|> ```python budget = 2000 spent = 1700 percent = spent / budget * 100 # 85.0 print(round(percent, 1)) ``` Execution result: 85.0 That is 85.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,700?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1700\npercent = spent / budget * 100 # 85.0\nprint(round(percent, 1))\n```\nExecution result: 85.0\n\nThat is 85.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0052744
2 friends split a $96 bill plus a 20% tip evenly. How much does each pay? Written as code: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 57.599999999999994 print(f"{each:.2f}") ``` Running it prints 57.60. Each person pays $57.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "57.60", "printed": "57.60", "notation": null}
nlprog_det-setting-0052745
Joelle earns a 10% commission on $113,219 of sales. What is the commission? ```python sales = 113219 rate = 10 / 100 # 0.1 commission = sales * rate # 11321.900000000001 print(f"{commission:.2f}") ``` Executing it gives 11321.90. Joelle earns $11,321.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "11321.90", "printed": "11321.90", "notation": null}
nlprog_det-setting-0052746
<|start|><|user|> What is the total rent on a 18-month lease at $1,200 a month?<|eot|> <|assistant|> monthly_rent = 1200 months = 18 total = monthly_rent * months # 21600 print(total) What it prints — 21600 In total, $21,600 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $1,200 a month?" }, { "role": "assistant", "content": " monthly_rent = 1200\n months = 18\n total = monthly_rent * months # 21600\n print(total)\nWhat it prints — 21600\n\nIn total, $21,600 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0052747
The paralegal logged 4 hours at a rate of $300. How much is billed? Python does the arithmetic: ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` Running it prints 1200.00. That comes to $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0052750
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment? Each payment is $196.67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0052751
An attorney bills 2.5 hours at $300 per hour. What is the bill? Python makes this quick: ```python hours = 2.5 rate = 300 bill = hours * rate # 750.0 print(f"{bill:.2f}") ``` On running, it outputs 750.00. That comes to $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0052753
Meals are $59 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights? A Python solution: days = 7 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1463 print(total) The script prints 1463, as expected. That ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1463", "printed": "1463", "notation": null}
nlprog_det-setting-0052754
<|start|><|user|> Kemal lends $12,000 at 5% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> principal = 12000 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 3000.0 print(f"{interest:.2f}") Printed: 3000.00 It earns $3,000.00.<|eot|> <...
chat
[ { "role": "user", "content": "Kemal lends $12,000 at 5% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": " principal = 12000\n rate = 5 / 100 # 0.05\n years = 5\n interest = principal * rate * years # 3000.0\n print(f\"{int...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0052755
A 22 lb package ships at $10 base plus $1.50/lb. What is the charge? The charge is $43.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "43.00", "printed": "43.00", "notation": null}
nlprog_det-setting-0052756
<|start|><|system|> Tools you may use: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Attendance was 33 out of 50. ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "66.0", "printed": "66.0", "notation": null}
nlprog_det-setting-0052757
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "1106", "printed": "1106", "notation": null}
nlprog_det-setting-0052758
<|start|><|user|> Divide 197 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 197 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints: 21 each, 8 left over ...
chat
[ { "role": "user", "content": "Divide 197 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 197\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "21 each, 8 left over", "printed": "21 each, 8 left over", "notation": null}
nlprog_det-setting-0052759
What is the total rent on a 18-month lease at $3,250 a month? We can compute it in Python. ```python monthly_rent = 3250 months = 18 total = monthly_rent * months # 58500 print(total) ``` Running it prints: 58500 In total, $58,500 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "58500", "printed": "58500", "notation": null}
nlprog_det-setting-0052760
An office budget of $20,000 has expenses of $2,184, $2,813. How much of the budget is left? Script: ```python budget = 20000 expenses = [2184, 2813] left = budget - sum(expenses) # 15003 print(left) ``` Executing it gives: 15003 The remaining budget is $15,003.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "15003", "printed": "15003", "notation": null}
nlprog_det-setting-0052761
<|start|><|user|> A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") ``` Executing it gives 45000.00. The fee is $45,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 45000.0\nprint(f\"{fee:.2f}\")\n```\nExecuting it gives 45000.00.\n\nThe fee is ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0052762
2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? A Python solution: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 2 # 9000.0 print(f"{per_client:.2f}") ``` # result: 9000.00 Each share is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0052763
<|start|><|user|> 30 flash drives cost $9 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 30 unit_price = 9 subtotal = quantity * unit_price # 270 total = subtotal * (1 + 8 / 100) # 291.6 print(f"{total:.2f}") ``` The script prints: 291.60 The invoice total is $291.60.<|eot|> ...
chat
[ { "role": "user", "content": "30 flash drives cost $9 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 30\nunit_price = 9\nsubtotal = quantity * unit_price # 270\ntotal = subtotal * (1 + 8 / 100) # 291.6\nprint(f\"{total:.2f}\")\n```\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "291.60", "printed": "291.60", "notation": null}
nlprog_det-setting-0052764
With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal. In Python: ```python revenue = 10000 costs = 8000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` stdout: 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0052765
Quinn earns a 8% commission on $77,005 of sales. What is the commission? Programmatically: ```python sales = 77005 rate = 8 / 100 # 0.08 commission = sales * rate # 6160.400000000001 print(f"{commission:.2f}") ``` The script prints 6160.40. Quinn earns $6,160.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "6160.40", "printed": "6160.40", "notation": null}
nlprog_det-setting-0052766
<|start|><|user|> 591 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> import math files = 591 per_box = 15 boxes = math.ceil(files / per_box) # 40 print(boxes) Interpreter output — 40 It takes 40 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "591 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": " import math\n files = 591\n per_box = 15\n boxes = math.ceil(files / per_box) # 40\n print(boxes)\nInterpreter output — 40\n\nIt takes 40 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0052767
The paralegal logged 4 hours at a rate of $150. How much is billed? Let's compute it with Python. ```python hours = 4 rate = 150 bill = hours * rate # 600 print(f"{bill:.2f}") ``` # result: 600.00 That comes to $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0052768
<|start|><|user|> Counting the first and last day, how many days are there from May 24, 2025 through June 2, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 5, 24) # datetime.date(2025, 5, 24) last = date(2025, 6, 2) # datetime.date(2025, 6, 2) days = (last - first).days + 1 # 10 pr...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 24, 2025 through June 2, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 5, 24) # datetime.date(2025, 5, 24)\nlast = date(2025, 6, 2) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0052769
Each storage box holds 40 files. How many boxes are needed for 180 files? We can compute it in Python. ```python import math files = 180 per_box = 40 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` (Program output: 5) It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0052770
<|start|><|user|> How many minutes pass from 7:24 AM to 8:39 AM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 24 # 444 end = 8 * 60 + 39 # 519 print(end - start) ``` Run it and it prints: 75 It is 75 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:24 AM to 8:39 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 24 # 444\nend = 8 * 60 + 39 # 519\nprint(end - start)\n```\nRun it and it prints: 75\n\nIt is 75 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0052771
What does $10,000 grow to in 3 years at 3% annual compounding? Python, step by step: ```python principal = 10000 rate = 3 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` (Run result: 10927.27) The balance is $10,927.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "10927.27", "printed": "10927.27", "notation": null}
nlprog_det-setting-0052772
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> 6 bike rides at 300 calories eac...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0052773
Convert -10 °C to Fahrenheit. Programmatically: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Execution prints 14. That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0052774
<|start|><|user|> Shipping costs $8 plus $0.75 per pound. What does a 34-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 8 per_pound = 0.75 weight = 34 cost = base + per_pound * weight # 33.5 print(f"{cost:.2f}") ``` # execution result: 33.50 Shipping costs $33.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $8 plus $0.75 per pound. What does a 34-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 0.75\nweight = 34\ncost = base + per_pound * weight # 33.5\nprint(f\"{cost:.2f}\")\n```\n# execution result: 33...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "33.50", "printed": "33.50", "notation": null}
nlprog_det-setting-0052775
<|start|><|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` Out: 5512.50 It is worth $5,512.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 5512.5\nprint(f\"{value:.2f}\")\n```\nOut: 5...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0052776
<|start|><|system|> You may call the tools below. [{"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": "python_exec", "description"...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "2020-08-12", "printed": "2020-08-12", "notation": null}
nlprog_det-setting-0052777
The landlord deducts $200, $75 and $60 from a $1,000 deposit. What is returned to the tenant? Python, step by step: ```python deposit = 1000 deductions = [200, 75, 60] refund = deposit - sum(deductions) # 665 print(refund) ``` The printout reads: 665 $665 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "665", "printed": "665", "notation": null}
nlprog_det-setting-0052778
Hana and Grace share $5,866 in the ratio 2:5. How much does Hana get? Python makes this quick: ```python total = 5866 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1676 print(share_a) ``` What it prints — 1676 Hana gets $1,676.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1676", "printed": "1676", "notation": null}
nlprog_det-setting-0052779
<|start|><|user|> Buying 3 water bottles at $12 each, 6 water bottles at $4 each, 2 folders at $2 each, 2 pens at $29 each, someone hands over $150. What change comes back?<|eot|> <|assistant|> ```python items = [(3, 12), (6, 4), (2, 2), (2, 29)] total = sum(q * p for q, p in items) # 122 paid = 150 change = paid - to...
chat
[ { "role": "user", "content": "Buying 3 water bottles at $12 each, 6 water bottles at $4 each, 2 folders at $2 each, 2 pens at $29 each, someone hands over $150. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(3, 12), (6, 4), (2, 2), (2, 29)]\ntotal = sum(q * p...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0052780
Equipment costs $24,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year? Python version: ```python cost = 24000 salvage = 0 years = 3 per_year = (cost - salvage) / years # 8000.0 print(f"{per_year:.2f}") ``` The interpreter prints: 8000.00 $8,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0052781
A 25 lb package ships at $5 base plus $0.75/lb. What is the charge? Python: ```python base = 5 per_pound = 0.75 weight = 25 cost = base + per_pound * weight # 23.75 print(f"{cost:.2f}") ``` (Printed result: 23.75) Shipping costs $23.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "23.75", "printed": "23.75", "notation": null}
nlprog_det-setting-0052782
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Flooring at $4/sq ft for a 10 ft × 18 ft room costs how much?<|eot|> <|assistant|> The flooring costs $720.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Flooring at $4/sq ft for a 10 ft × 18 ft room costs how much?" }, { "role": "assistant", "content": "The flooring costs $720." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0052783
Equipment costs $18,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year? We write it as a program: ```python cost = 18000 salvage = 0 years = 5 per_year = (cost - salvage) / years # 3600.0 print(f"{per_year:.2f}") ``` Run result: 3600.00 Depreciation is $3,60...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0052784
Starting with 1183 water bottles and using 37 per day, how many remain after 10 days? Let the code do the arithmetic: ```python stock = 1183 per_day = 37 days = 10 left = stock - per_day * days # 813 print(left) ``` This prints 813, as expected. 813 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "813", "printed": "813", "notation": null}
nlprog_det-setting-0052785
The rules require 1/3 of 51 members (round up) to be present. How many is that? That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0052786
How many of 14 members form a majority (more than half)? Python does the arithmetic: members = 14 majority = members // 2 + 1 print(majority) The run gives 8, as expected. 8 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0052787
<|start|><|system|> Tool definitions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"define_word\", \"description\": \"Return a ...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "6 days and 14 hours", "printed": "6 days and 14 hours", "notation": null}
nlprog_det-setting-0052788
The bridge was finished in 2008. How many years had passed by 2022? The program: ```python start_year = 2008 end_year = 2022 print(end_year - start_year) ``` Executed, it shows 14. 14 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0052789
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` # out: -4 It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "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```\n# out: -4\n\nIt equals -...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0052790
A 36 lb package ships at $12 base plus $0.75/lb. What is the charge? A short script: ```python base = 12 per_pound = 0.75 weight = 36 cost = base + per_pound * weight # 39.0 print(f"{cost:.2f}") ``` Printed: 39.00 Shipping costs $39.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0052791
<|start|><|system|> Tool definitions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python_exec", "description": "Python sandbox for cal...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
331
{"gold": "107.00", "printed": "107.00", "notation": null}
nlprog_det-setting-0052792
Farah's scores were 77, 59 and 98. What is the average score? Script: ```python scores = [77, 59, 98] average = sum(scores) // len(scores) # 78 print(average) ``` # run result: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0052793
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Delia drove 297 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 297 rate = 0.58 reimbursement = miles * rate # 172.26 print(f"{reimbursement:.2f}") ``` (Execution result: 172.26) ...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Delia drove 297 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 297\nrate = 0.58\nreimbursement ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "172.26", "printed": "172.26", "notation": null}
nlprog_det-setting-0052794
A 5% increase is applied to $1,500 monthly rent. What is the new amount? Python, step by step: ```python rent = 1500 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1575.0 print(f"{new_rent:.2f}") ``` That prints 1575.00. The new rent is $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0052795
<|start|><|user|> Shipping costs $12 plus $2.50 per pound. What does a 38-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.5 weight = 38 cost = base + per_pound * weight # 107.0 print(f"{cost:.2f}") ``` On running, it outputs 107.00. Shipping costs $107.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $2.50 per pound. What does a 38-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.5\nweight = 38\ncost = base + per_pound * weight # 107.0\nprint(f\"{cost:.2f}\")\n```\nOn running, it outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "107.00", "printed": "107.00", "notation": null}
nlprog_det-setting-0052796
<|start|><|user|> If a 2-year limitations period starts on March 12, 2013, when does it end?<|eot|> <|assistant|> from datetime import date accrued = date(2013, 3, 12) # datetime.date(2013, 3, 12) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 3, 12) print(exp...
chat
[ { "role": "user", "content": "If a 2-year limitations period starts on March 12, 2013, when does it end?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2013, 3, 12) # datetime.date(2013, 3, 12)\n years = 2\n expires = accrued.replace(year=accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2015-03-12", "printed": "2015-03-12", "notation": null}
nlprog_det-setting-0052797
<|start|><|user|> A board has 49 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 49 majority = members // 2 + 1 # 25 print(majority) ``` (Printed result: 25) That is 25 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 49 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 49\nmajority = members // 2 + 1 # 25\nprint(majority)\n```\n(Printed result: 25)\n\nThat is 25 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0052798
How many days are there from July 12, 2026 to April 14, 2027? Let the code do the arithmetic: ```python from datetime import date first = date(2026, 7, 12) second = date(2027, 4, 14) print((second - first).days) ``` Execution prints: 276 It is 276 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0052799
<|start|><|system|> Tools (call with JSON): [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python", "description": "A Python interpreter. Returns standard output...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "1320", "printed": "1320", "notation": null}
nlprog_det-setting-0052800
What percentage of $10,000 is $3,600? A few lines of Python do it: ```python budget = 10000 spent = 3600 percent = spent / budget * 100 # 36.0 print(round(percent, 1)) ``` Run result: 36.0 That is 36.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36.0", "printed": "36.0", "notation": null}
nlprog_det-setting-0052801
A party has 21 days to respond to a motion served on April 28, 2028, with 3 days added because service was by mail. When is the response due? Here is a short program for it. from datetime import date, timedelta served = date(2028, 4, 28) # datetime.date(2028, 4, 28) response_days = 21 mail_days = 3 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "2028-05-22", "printed": "2028-05-22", "notation": null}
nlprog_det-setting-0052803
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 1600.0 print(f"{prorated:.2f}") ``` On running, it outputs 1600....
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 1600.0...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0052804
Tobias and Ivan share $3,488 in the ratio 3:5. How much does Tobias get? ```python total = 3488 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1308 print(share_a) ``` (Execution result: 1308) Tobias gets $1,308.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1308", "printed": "1308", "notation": null}
nlprog_det-setting-0052805
A hall has 30 rows of 9 seats, and 9 seats are empty. How many people are seated? 261 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "261", "printed": "261", "notation": null}
nlprog_det-setting-0052806
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(rou...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 38500\ncosts = 36000\nprofit =...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0052807
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
384
{"gold": "3 each, 4 left over", "printed": "3 each, 4 left over", "notation": null}
nlprog_det-setting-0052808
184 volunteers are split into 9 equal teams. How many are on each team, and how many are left over? Code: ```python total = 184 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result = 20 each, 4 left over The answer: 20 each, 4 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "20 each, 4 left over", "printed": "20 each, 4 left over", "notation": null}