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-0064480
Meals are $79 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights? In Python: days = 3 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 457 print(total) # out: 457 That comes to $457.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "457", "printed": "457", "notation": null}
nlprog_det-setting-0064481
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Priya and Abel share $4,928 in the ratio 3:4. How much does Priya get?<|eot|> <|assistant|> total = 4928 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 2112 print(share_a) # console output: 2112 Priya's share...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Priya and Abel share $4,928 in the ratio 3:4. How much does Priya get?" }, { "role": "assistant", "content": " total = 4928\n parts_a = 3\n parts_b = 4\n share_a = total * parts_a ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2112", "printed": "2112", "notation": null}
nlprog_det-setting-0064482
<|start|><|user|> How many meters are in 1.3 kilometers?<|eot|> <|assistant|> ```python km = 1.3 meters = km * 1000 # 1300.0 print(round(meters)) ``` Out = 1300 That is 1,300 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 1.3 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 1.3\nmeters = km * 1000 # 1300.0\nprint(round(meters))\n```\nOut = 1300\n\nThat is 1,300 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0064483
<|start|><|user|> At a 6% tax rate, what is the tax on $870.41?<|eot|> <|assistant|> ```python price = 870.41 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 52.224599999999995 print(f"{tax:.2f}") ``` Printed: 52.22 $52.22 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $870.41?" }, { "role": "assistant", "content": "```python\nprice = 870.41\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 52.224599999999995\nprint(f\"{tax:.2f}\")\n```\nPrinted: 52.22\n\n$52.22 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "52.22", "printed": "52.22", "notation": null}
nlprog_det-setting-0064484
<|start|><|system|> You may call the tools below. [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A pack of 12 hard dri...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0064485
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 83 copies of a 49-page handout?<|eot|> <|assistant|> The job costs $406.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 83 copies of a 49-page handout?" }, { "role": "assistant", "content": "The job costs $406.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "406.70", "printed": "406.70", "notation": null}
nlprog_det-setting-0064486
A party has 30 days to respond to a motion served on July 22, 2026, with 3 days added because service was by mail. When is the response due? The computation: ```python from datetime import date, timedelta served = date(2026, 7, 22) # datetime.date(2026, 7, 22) response_days = 30 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2026-08-24", "printed": "2026-08-24", "notation": null}
nlprog_det-setting-0064487
89 of 100 members attended. What percent attended? Here is a short program for it. ```python present = 89 total = 100 percent = present / total * 100 # 89.0 print(round(percent, 1)) ``` # stdout: 89.0 89.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "89.0", "printed": "89.0", "notation": null}
nlprog_det-setting-0064489
A board has 41 members. A majority is more than half. How many votes make a majority? ```python members = 41 majority = members // 2 + 1 # 21 print(majority) ``` Execution prints: 21 21 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0064490
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Convert 1 h 16 min (the length of a film) to minutes.<|eot|> <|assistant|> The film lasted 76 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Convert 1 h 16 min (the length of a film) to minutes." }, { "role": "assistant", "content": "The film lasted 76 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0064491
Starting from $25,000, the team spends $2,280, $1,055, $2,038, $3,647. What remains? A short script: budget = 25000 expenses = [2280, 1055, 2038, 3647] left = budget - sum(expenses) # 15980 print(left) The script prints: 15980 $15,980 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "15980", "printed": "15980", "notation": null}
nlprog_det-setting-0064492
<|start|><|user|> Maren buys 3 boxes of 6 keyboards each and gives away 15 keyboards. How many keyboards are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 6 given_away = 15 left = boxes * per_box - given_away # 3 print(left) ``` Python prints: 3 That leaves 3 keyboards.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Maren buys 3 boxes of 6 keyboards each and gives away 15 keyboards. How many keyboards are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 6\ngiven_away = 15\nleft = boxes * per_box - given_away # 3\nprint(left)\n```\nPython prints: 3\n...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0064493
Count 60 days forward from August 8, 2026. What date is that? It ends on October 7, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "2026-10-07", "printed": "2026-10-07", "notation": null}
nlprog_det-setting-0064494
<|start|><|user|> Starting from $20,000, the team spends $1,249, $390, $2,125. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [1249, 390, 2125] left = budget - sum(expenses) # 16236 print(left) ``` # output: 16236 $16,236 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $1,249, $390, $2,125. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [1249, 390, 2125]\nleft = budget - sum(expenses) # 16236\nprint(left)\n```\n# output: 16236\n\n$16,236 is left." ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "16236", "printed": "16236", "notation": null}
nlprog_det-setting-0064495
<|start|><|user|> Goods bought on March 27, 2024 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 3, 27) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on March 27, 2024 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 3, 27)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2027-03-27", "printed": "2027-03-27", "notation": null}
nlprog_det-setting-0064496
A settlement of $84,000 is split equally among 8 parties. How much does each party receive? The computation: ```python settlement = 84000 parties = 8 share = settlement // parties # 10500 print(share) ``` Executed, it shows 10500. Each share is $10,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0064497
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|us...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "11 each, 5 left over", "printed": "11 each, 5 left over", "notation": null}
nlprog_det-setting-0064498
Fines run at $50 per day up to a maximum of $2,500. How much after 60 days? Set it up in Python: ```python per_day = 50 days = 60 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Run it and it prints: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0064499
How many minutes pass from 8:41 AM to 11:48 AM on the same day? Program: start = 8 * 60 + 41 # 521 end = 11 * 60 + 48 # 708 print(end - start) It outputs: 187 187 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0064500
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Of a $4,000 budget, $2,900 has been spent. What percent is that?<|eot|> <|assistant|> budget = 4000 spent = 2900 percent = spent / budget * 100 # 72.5 print(round(percent, 1)) # result: 72.5 That is 72.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Of a $4,000 budget, $2,900 has been spent. What percent is that?" }, { "role": "assistant", "content": " budget = 4000\n spent = 2900\n percent = spent / budget * 100 # 72.5\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "72.5", "printed": "72.5", "notation": null}
nlprog_det-setting-0064501
If a 2-year limitations period starts on August 15, 2013, when does it end? ```python from datetime import date accrued = date(2013, 8, 15) # datetime.date(2013, 8, 15) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 8, 15) print(expires.isoformat()) ``` Execution prints 2015-08-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2015-08-15", "printed": "2015-08-15", "notation": null}
nlprog_det-setting-0064502
<|start|><|user|> 12 calendars cost $4 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 12 unit_price = 4 subtotal = quantity * unit_price # 48 total = subtotal * (1 + 6 / 100) # 50.88 print(f"{total:.2f}") ``` When run, it prints 50.88. The invoice total is $50.88.<|eot|> <|en...
chat
[ { "role": "user", "content": "12 calendars cost $4 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 12\nunit_price = 4\nsubtotal = quantity * unit_price # 48\ntotal = subtotal * (1 + 6 / 100) # 50.88\nprint(f\"{total:.2f}\")\n```\nWhen ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "50.88", "printed": "50.88", "notation": null}
nlprog_det-setting-0064504
Which is cheaper per unit: 6 for $4.81 (A) or 18 for $25.20 (B)? Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0064505
A settlement of $2,640 is split equally among 3 parties. How much does each party receive? One way, in code: ```python settlement = 2640 parties = 3 share = settlement // parties # 880 print(share) ``` Python prints: 880 Each party receives $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0064506
What is a 25% tip on a $31.46 bill? Set it up in Python: ```python bill = 31.46 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 7.865 print(f"{tip:.2f}") ``` Out — 7.87 Leave $7.87.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "7.87", "printed": "7.87", "notation": null}
nlprog_det-setting-0064507
Straight-line depreciation: cost $30,000, salvage $2,000, 10 years. How much per year? Depreciation is $2,800.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0064509
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 98-page copy cost?<|eot|> <|assistant|> ```python pages = 98 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 98-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 98\nbase = ...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "23.80", "printed": "23.80", "notation": null}
nlprog_det-setting-0064510
<|start|><|system|> Available functions (JSON Schema): [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute", "descr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
380
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0064511
At 50 miles per hour, how many minutes does a 50-mile trip take? Computation in Python: ```python distance = 50 speed = 50 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Interpreter output: 60 The trip takes 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0064513
216 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? ```python total = 216 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program prints: 43 each, 1 left over The answer: 43 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "43 each, 1 left over", "printed": "43 each, 1 left over", "notation": null}
nlprog_det-setting-0064514
Uma's scores were 59, 59, 82 and 92. What is the average score? The mean is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0064515
A film lasted 3 hours and 50 minutes. How many minutes is that? Coded up: ```python hours = 3 minutes = 50 total_minutes = hours * 60 + minutes print(total_minutes) ``` Out — 230 That is 230 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "230", "printed": "230", "notation": null}
nlprog_det-setting-0064516
<|start|><|user|> Beatriz's scores were 56, 88, 56, 87, 56 and 71. What is the average score?<|eot|> <|assistant|> ```python scores = [56, 88, 56, 87, 56, 71] average = sum(scores) // len(scores) # 69 print(average) ``` Console output — 69 The average score is 69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Beatriz's scores were 56, 88, 56, 87, 56 and 71. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [56, 88, 56, 87, 56, 71]\naverage = sum(scores) // len(scores) # 69\nprint(average)\n```\nConsole output — 69\n\nThe average score...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0064517
A 225-mile drive at a steady 45 mph takes how many minutes? Python code: ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Output of the run: 300 The trip takes 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0064518
A customer buys 3 lanyards at $30 each, 2 paper reams at $14 each, 3 clipboards at $29 each, 4 cables at $13 each and pays with $300. How much change is due? Python, step by step: ```python items = [(3, 30), (2, 14), (3, 29), (4, 13)] total = sum(q * p for q, p in items) # 257 paid = 300 change = paid - total # 43 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0064519
A jacket costs $250. It is 30% off. What is the sale price? The sale price is $175.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0064520
Count the days between July 21, 2026 and January 27, 2027. The computation: ```python from datetime import date first = date(2026, 7, 21) # datetime.date(2026, 7, 21) second = date(2027, 1, 27) # datetime.date(2027, 1, 27) print((second - first).days) ``` It outputs: 190 There are 190 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "190", "printed": "190", "notation": null}
nlprog_det-setting-0064521
Convert 30 °C to Fahrenheit. Program: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` The run gives: 86 It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0064522
<|start|><|system|> Tools you may use: {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "business_days", "description": "Count...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
280
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0064523
<|start|><|user|> The rules require 2/3 of 46 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 46 quorum = math.ceil(members * 2 / 3) # 31 print(quorum) ``` Result: 31 That is 31 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 46 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 46\nquorum = math.ceil(members * 2 / 3) # 31\nprint(quorum)\n```\nResult:\n31\n\nThat is 31 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0064524
<|start|><|user|> A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 84 savings = monthly * 12 - yearly # 24 print(savings) ``` (Printed: 24) $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 84\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n(Printed: 24)\n\n$24 is sav...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0064525
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 10. How much for 67 pages?<|eot|> <|assistant|> ```python pages = 67 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.7 print(f"{cost:.2f}") ``` The code prints 15.70. The copy costs $15.70.<|eot|> <|end...
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 10. How much for 67 pages?" }, { "role": "assistant", "content": "```python\npages = 67\nbase = 10\nper_page = 0.1\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 15.7\nprint(f\"{cost:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "15.70", "printed": "15.70", "notation": null}
nlprog_det-setting-0064526
An office budget of $12,000 has expenses of $543, $1,055, $1,690. How much of the budget is left? Written as code: ```python budget = 12000 expenses = [543, 1055, 1690] left = budget - sum(expenses) # 8712 print(left) ``` (Program output: 8712) The remaining budget is $8,712.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8712", "printed": "8712", "notation": null}
nlprog_det-setting-0064527
Amir's scores were 89, 82, 95, 92, 86, 57 and 52. What is the average score? Translated to Python: ```python scores = [89, 82, 95, 92, 86, 57, 52] average = sum(scores) // len(scores) # 79 print(average) ``` What it prints: 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0064528
From a $5,000 retainer, 11 hours at $250/hour have been drawn. What remains? The computation: ```python retainer = 5000 hours = 11 rate = 250 left = retainer - hours * rate # 2250 print(left) ``` Output = 2250 $2,250 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0064529
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?<|eot|> <|assistant|> rate = 16.0 hours = 50 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 880.0 print(f"{pay:.2f}") stdout: ...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?" }, { "role": "assistant", "content": " rate = 16.0\n hours = 50\n regular = 40 * rate # 640.0\n overtime = (hours - 40) * rate * 1.5 # 240.0\n pay = re...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0064530
<|start|><|user|> 153 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 153 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The printout reads: 30 each, 3 left over The ans...
chat
[ { "role": "user", "content": "153 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 153\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "30 each, 3 left over", "printed": "30 each, 3 left over", "notation": null}
nlprog_det-setting-0064531
A recipe for 6 people uses 240 grams of pasta. How many grams are needed for 2 people? Code: ```python grams = 240 serves = 6 needed_for = 2 scaled = grams * needed_for // serves # 80 print(scaled) ``` Execution prints 80, as expected. 80 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0064532
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 15000 costs = 12500 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 16.666666666666664 pr...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 15000\ncosts = 12500\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0064533
<|start|><|user|> Parking is $4 per hour with a daily maximum of $15. What do 8 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Out: 15 Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $15. What do 8 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 8\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nOut: 15\n\nParking costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064534
Rania earns a 2% commission on $82,428 of sales. What is the commission? Python, step by step: ```python sales = 82428 rate = 2 / 100 # 0.02 commission = sales * rate # 1648.56 print(f"{commission:.2f}") ``` (Result: 1648.56) Rania earns $1,648.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1648.56", "printed": "1648.56", "notation": null}
nlprog_det-setting-0064535
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $2,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 1600.0 print(f"{per_year:.2f}") ``` (Printed result: 1600.00) Depreciation is $1,600.00 per year.<|eot|> ...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $2,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 10\nper_year = (cost - salvage) / years # 1600.0\nprint(f\"{per_year:.2f}\")\n```\n(Printe...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0064536
11 boxes hold 10 cables each. After 16 are handed out, how many are left? That leaves 94 cables.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0064537
A 10 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Here is a short program for it. ```python import math length = 10 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 40 print(tiles) ``` Run result = 40 It takes 40 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0064538
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> What average speed covers 101 miles in 0.5 hours?<|eot|> <|assistant|> It averages 202 miles per hour.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "What average speed covers 101 miles in 0.5 hours?" }, { "role": "assistant", "content": "It averages 202 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0064540
Which is cheaper per unit: 8 for $12.14 (A) or 20 for $22.45 (B)? Python: ```python pack_a = 12.14 / 8 # 1.5175 pack_b = 22.45 / 20 # 1.1225 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Result = B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0064541
Counting the first and last day, how many days are there from September 8, 2027 through September 20, 2027? In Python: ```python from datetime import date first = date(2027, 9, 8) # datetime.date(2027, 9, 8) last = date(2027, 9, 20) # datetime.date(2027, 9, 20) days = (last - first).days + 1 # 13 print(days) ``` (R...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0064542
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0064543
692 files go into boxes of 12. How many boxes does that take? The program: ```python import math files = 692 per_box = 12 boxes = math.ceil(files / per_box) # 58 print(boxes) ``` Python prints 58, as expected. 58 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0064544
<|start|><|user|> Count the days between June 18, 2027 and April 17, 2028.<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 6, 18) # datetime.date(2027, 6, 18) second = date(2028, 4, 17) # datetime.date(2028, 4, 17) print((second - first).days) ``` The script prints: 304 It is 304 days.<|e...
chat
[ { "role": "user", "content": "Count the days between June 18, 2027 and April 17, 2028." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 6, 18) # datetime.date(2027, 6, 18)\nsecond = date(2028, 4, 17) # datetime.date(2028, 4, 17)\nprint((second - f...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "304", "printed": "304", "notation": null}
nlprog_det-setting-0064545
<|start|><|user|> A settlement of $84,000 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 84000 parties = 5 share = settlement // parties # 16800 print(share) ``` Python prints 16800, as expected. Each share is $16,800.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $84,000 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 84000\nparties = 5\nshare = settlement // parties # 16800\nprint(share)\n```\nPython prints 16800, as expected...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "16800", "printed": "16800", "notation": null}
nlprog_det-setting-0064546
<|start|><|user|> At an exchange rate of 1.12 USD per GBP, how many USD is 1,506 GBP?<|eot|> <|assistant|> ```python amount = 1506 rate = 1.12 converted = amount * rate # 1686.7200000000003 print(f"{converted:.2f}") ``` It prints 1686.72, as expected. It converts to 1,686.72 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 USD per GBP, how many USD is 1,506 GBP?" }, { "role": "assistant", "content": "```python\namount = 1506\nrate = 1.12\nconverted = amount * rate # 1686.7200000000003\nprint(f\"{converted:.2f}\")\n```\nIt prints 1686.72, as expected.\n\nIt...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1686.72", "printed": "1686.72", "notation": null}
nlprog_det-setting-0064547
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 116-page copy cost? Set it up in Python: ```python pages = 116 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 24.6 print(f"{cost:.2f}") ``` The program outputs: 24.60 The total is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "24.60", "printed": "24.60", "notation": null}
nlprog_det-setting-0064548
A client paid a $10,000 retainer. The firm has billed 12 hours at $150 per hour. How much of the retainer is left? Coded up: ```python retainer = 10000 hours = 12 rate = 150 left = retainer - hours * rate # 8200 print(left) ``` Result: 8200 The remaining balance is $8,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "8200", "printed": "8200", "notation": null}
nlprog_det-setting-0064549
<|start|><|system|> You have access to these functions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"eval_python\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
371
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0064550
3 books come back 21 days late, at $0.20 a day each. What is the fine? The computation: ```python per_day = 0.2 days_late = 21 books = 3 fine = per_day * days_late * books print(f"{fine:.2f}") ``` stdout: 12.60 The fine is $12.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "12.60", "printed": "12.60", "notation": null}
nlprog_det-setting-0064551
Joelle's scores were 98, 72, 89, 92 and 89. What is the average score? As Python: scores = [98, 72, 89, 92, 89] average = sum(scores) // len(scores) print(average) Run result: 88 The mean is 88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0064552
A customer buys 1 notebooks at $25 each, 4 lanyards at $15 each, 3 paper reams at $26 each, 6 paper reams at $17 each and pays with $300. How much change is due? We can compute it in Python. ```python items = [(1, 25), (4, 15), (3, 26), (6, 17)] total = sum(q * p for q, p in items) # 265 paid = 300 change = paid - to...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0064553
At a 8% tax rate, what is the tax on $756.12? In Python: ```python price = 756.12 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 60.4896 print(f"{tax:.2f}") ``` Running this gives 60.49. $60.49 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "60.49", "printed": "60.49", "notation": null}
nlprog_det-setting-0064555
<|start|><|user|> What day of the week is January 3, 2002?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2002, 1, 3) # datetime.date(2002, 1, 3) print(hearing.strftime("%A")) ``` Shell output: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is January 3, 2002?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2002, 1, 3) # datetime.date(2002, 1, 3)\nprint(hearing.strftime(\"%A\"))\n```\nShell output: Thursday\n\nIt is a Thursday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0064556
An invoice lists 30 rulers at $5 each, plus 7% sales tax. What is the invoice total? As a program: ```python quantity = 30 unit_price = 5 subtotal = quantity * unit_price # 150 total = subtotal * (1 + 7 / 100) # 160.5 print(f"{total:.2f}") ``` stdout — 160.50 The total with tax is $160.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "160.50", "printed": "160.50", "notation": null}
nlprog_det-setting-0064557
The paralegal logged 7 hours at a rate of $250. How much is billed? The Python version: ```python hours = 7 rate = 250 bill = hours * rate # 1750 print(f"{bill:.2f}") ``` Running it prints 1750.00, as expected. The bill is $1,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0064558
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 52 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 288.0 pay = regular + overtime # 9...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 52\nregular = 40 * ra...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "928.00", "printed": "928.00", "notation": null}
nlprog_det-setting-0064559
<|start|><|system|> You have access to these functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calc\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "14 days and 15 hours", "printed": "14 days and 15 hours", "notation": null}
nlprog_det-setting-0064560
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Each of Hana's bike rides burns 250 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) ``` Console output — 1750 That burns 1750 calories.<|eot|...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Each of Hana's bike rides burns 250 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 7\ntotal = per_session * s...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0064562
A claim accrued on July 1, 2021. The limitations period is 4 years. On what date does it expire? Here's the code. ```python from datetime import date accrued = date(2021, 7, 1) # datetime.date(2021, 7, 1) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 7, 1) print(expires.isoform...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2025-07-01", "printed": "2025-07-01", "notation": null}
nlprog_det-setting-0064563
<|start|><|user|> 6 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> Each party receives $6,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each party receives $6,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0064564
<|start|><|user|> Joelle has 15 documents to file, and each filing costs $50. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 50 filings = 15 total = fee * filings # 750 print(total) ``` On running, it outputs: 750 The total fee is $750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Joelle has 15 documents to file, and each filing costs $50. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 15\ntotal = fee * filings # 750\nprint(total)\n```\nOn running, it outputs: 750\n\nThe total fee...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0064565
At $26.81 an hour, what does 38 hours of work pay? A few lines of Python do it: ```python rate = 26.81 hours = 38 earnings = rate * hours # 1018.78 print(f"{earnings:.2f}") ``` Run result = 1018.78 The pay is $1,018.78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1018.78", "printed": "1018.78", "notation": null}
nlprog_det-setting-0064566
Printing costs 15 cents a page. What does it cost to print 25 copies of a 56-page handout? We can compute it in Python. ```python pages = 56 copies = 25 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 210.0 print(f"{cost:.2f}") ``` It prints 210.00. The job costs $210.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0064567
Convert 20.2 km to meters. ```python km = 20.2 meters = km * 1000 # 20200.0 print(round(meters)) ``` Output = 20200 That is 20,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "20200", "printed": "20200", "notation": null}
nlprog_det-setting-0064568
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> If a 5-year limitations period starts on September 24, 2016, when does it end?<|eot|> <|assistant|> The period expires on September 24, 2021.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "If a 5-year limitations period starts on September 24, 2016, when does it end?" }, { "role": "assistant", "content": "The period expires on September 24, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2021-09-24", "printed": "2021-09-24", "notation": null}
nlprog_det-setting-0064569
One can of paint covers 250 square feet. How many cans are needed for 515 square feet of wall? In Python: ```python import math area = 515 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` The run gives: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0064570
Convert 21.4 km to meters. ```python km = 21.4 meters = km * 1000 # 21400.0 print(round(meters)) ``` On running, it outputs 21400. 21,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "21400", "printed": "21400", "notation": null}
nlprog_det-setting-0064571
3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Let's compute it with Python. ```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}") ``` # run result: 15000....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0064573
With 15% off, what does a $45 chair cost? Python, step by step: ```python price = 45 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 38.25 print(f"{sale_price:.2f}") ``` The printout reads: 38.25 The sale price is $38.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "38.25", "printed": "38.25", "notation": null}
nlprog_det-setting-0064574
A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 119-page copy cost? Computation in Python: pages = 119 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 16.9 print(f"{cost:.2f}") (Result: 16.90) The total is $1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "16.90", "printed": "16.90", "notation": null}
nlprog_det-setting-0064575
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> The rules require 3/5 of 36 members (round up) to be present. How many is that?<|eot|> <|assistant|> That is 22 members.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "The rules require 3/5 of 36 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "That is 22 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0064576
12 boxes hold 10 cables each. After 11 are handed out, how many are left? Let the code do the arithmetic: ```python boxes = 12 per_box = 10 given_away = 11 left = boxes * per_box - given_away # 109 print(left) ``` The interpreter prints 109. That leaves 109 cables.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0064577
<|start|><|user|> Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` Result: 1.4 The margi...
chat
[ { "role": "user", "content": "Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 1.3698630...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0064578
Nilufar drove 97 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? In Python: ```python miles = 97 rate = 0.58 reimbursement = miles * rate # 56.26 print(f"{reimbursement:.2f}") ``` # result: 56.26 The reimbursement is $56.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "56.26", "printed": "56.26", "notation": null}
nlprog_det-setting-0064579
5 claimants share a $36,000 settlement equally. What is each share? We can compute it in Python. ```python settlement = 36000 parties = 5 share = settlement // parties # 7200 print(share) ``` Result: 7200 Each party receives $7,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0064580
The landlord deducts $120 and $85 from a $2,000 deposit. What is returned to the tenant? $1,795 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1795", "printed": "1795", "notation": null}
nlprog_det-setting-0064581
To read 190 pages in 19 days, how many pages per day are needed? Program: ```python pages = 190 days = 19 per_day = pages // days # 10 print(per_day) ``` Shell output — 10 That is 10 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0064582
<|start|><|user|> How many meters are in 32.4 kilometers?<|eot|> <|assistant|> ```python km = 32.4 meters = km * 1000 # 32400.0 print(round(meters)) ``` What it prints: 32400 That is 32,400 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 32.4 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 32.4\nmeters = km * 1000 # 32400.0\nprint(round(meters))\n```\nWhat it prints: 32400\n\nThat is 32,400 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "32400", "printed": "32400", "notation": null}
nlprog_det-setting-0064583
At $0.67 per mile, what is the reimbursement for 177 miles? Here is the program. ```python miles = 177 rate = 0.67 reimbursement = miles * rate # 118.59 print(f"{reimbursement:.2f}") ``` This prints 118.59, as expected. The reimbursement is $118.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "118.59", "printed": "118.59", "notation": null}
nlprog_det-setting-0064584
<|start|><|user|> Convert 76.1 km to meters.<|eot|> <|assistant|> That is 76,100 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 76.1 km to meters." }, { "role": "assistant", "content": "That is 76,100 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "76100", "printed": "76100", "notation": null}
nlprog_det-setting-0064585
With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal. Set it up in Python: revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) That prints 1.4. Profit is 1.4% of r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0064586
A garage charges $5 an hour, never more than $15 a day. How much for 9 hours? ```python rate = 5 hours = 9 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Shell output — 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064587
<|start|><|user|> How many whole days and leftover hours are in 257 hours?<|eot|> <|assistant|> ```python hours = 257 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Printed: 10 days and 17 hours) 257 hours is 10 days and 17 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 257 hours?" }, { "role": "assistant", "content": "```python\nhours = 257\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Printed: 10 days and 17 hours)\n\n257 hours is 10 days and 17 hour...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "10 days and 17 hours", "printed": "10 days and 17 hours", "notation": null}