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-0045196
<|start|><|user|> What percentage of $2,000 is $300?<|eot|> <|assistant|> ```python budget = 2000 spent = 300 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) ``` Run result — 15.0 That is 15.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $300?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 300\npercent = spent / budget * 100 # 15.0\nprint(round(percent, 1))\n```\nRun result — 15.0\n\nThat is 15.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0045197
<|start|><|system|> Tools (call with JSON): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"description\": \"A ...
nlprog_det
setting
original
null
deterministic
[]
[]
319
{"gold": "24.50", "printed": "24.50", "notation": null}
nlprog_det-setting-0045198
How many of 78 votes make 75% (round up)? Let the code do the arithmetic: ```python import math voters = 78 needed = math.ceil(voters * 75 / 100) # 59 print(needed) ``` Executing it gives 59. At least 59 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0045199
How many days are there from April 24, 2023 to May 16, 2024? Python code: ```python from datetime import date first = date(2023, 4, 24) # datetime.date(2023, 4, 24) second = date(2024, 5, 16) # datetime.date(2024, 5, 16) print((second - first).days) ``` It prints 388. It is 388 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "388", "printed": "388", "notation": null}
nlprog_det-setting-0045200
<|start|><|system|> Give the answer first.<|eot|> <|user|> If a 90-minute appointment begins at 1:45 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 13 * 60 + 45 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Printed r...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "If a 90-minute appointment begins at 1:45 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 45\nend = start + 90\nhour, minute = divmod(end, 60)\np...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "3:15 PM", "printed": "3:15 PM", "notation": null}
nlprog_det-setting-0045201
8 boxes hold 24 scissors each. After 3 are handed out, how many are left? ```python boxes = 8 per_box = 24 given_away = 3 left = boxes * per_box - given_away # 189 print(left) ``` Run result: 189 189 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0045202
Convert 21.5 km to meters. Computation in Python: ```python km = 21.5 meters = km * 1000 # 21500.0 print(round(meters)) ``` Output of the run: 21500 That is 21,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "21500", "printed": "21500", "notation": null}
nlprog_det-setting-0045203
A garage charges $4 an hour, never more than $15 a day. How much for 8 hours? Programmatically: ```python rate = 4 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The script prints 15. The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0045204
<|start|><|user|> Convert 1 h 33 min (the length of a training session) to minutes.<|eot|> <|assistant|> ```python hours = 1 minutes = 33 total_minutes = hours * 60 + minutes # 93 print(total_minutes) ``` (Console output: 93) That is 93 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1 h 33 min (the length of a training session) to minutes." }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 33\ntotal_minutes = hours * 60 + minutes # 93\nprint(total_minutes)\n```\n(Console output: 93)\n\nThat is 93 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "93", "printed": "93", "notation": null}
nlprog_det-setting-0045205
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> At $21.87 an hour, what does 24 ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "524.88", "printed": "524.88", "notation": null}
nlprog_det-setting-0045206
<|start|><|user|> A 288-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 288 days = 18 per_day = pages // days print(per_day) ``` Run result = 16 That is 16 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 288-page report must be reviewed in 18 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 288\ndays = 18\nper_day = pages // days\nprint(per_day)\n```\nRun result = 16\n\nThat is 16 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0045208
50 of 100 members attended. What percent attended? Translated to Python: ```python present = 50 total = 100 percent = present / total * 100 # 50.0 print(round(percent, 1)) ``` Run result — 50.0 50.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0045209
Signe was born on October 22, 1990. How old is Signe on July 6, 2023? Let's compute it with Python. ```python from datetime import date born = date(1990, 10, 22) # datetime.date(1990, 10, 22) on = date(2023, 7, 6) # datetime.date(2023, 7, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0045210
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` Output — 16000.00 The fee is $16,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 16000.0\nprint(f\"{fee:.2f}\")\n```\nOutput — 16000.00\n\nThe fee is $16,000....
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0045211
To read 192 pages in 8 days, how many pages per day are needed? The program: ```python pages = 192 days = 8 per_day = pages // days # 24 print(per_day) ``` The program outputs: 24 That is 24 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0045212
<|start|><|user|> Buying 4 desk lamps at $3 each, 1 markers at $20 each, 5 scissors at $22 each, 2 toner kits at $13 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 3), (1, 20), (5, 22), (2, 13)] total = sum(q * p for q, p in items) # 168 paid = 200 change = paid - to...
chat
[ { "role": "user", "content": "Buying 4 desk lamps at $3 each, 1 markers at $20 each, 5 scissors at $22 each, 2 toner kits at $13 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(4, 3), (1, 20), (5, 22), (2, 13)]\ntotal = sum(q * p...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0045213
2 books come back 8 days late, at $0.10 a day each. What is the fine? Coded up: ```python per_day = 0.1 days_late = 8 books = 2 fine = per_day * days_late * books # 1.6 print(f"{fine:.2f}") ``` The interpreter prints: 1.60 The fine is $1.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1.60", "printed": "1.60", "notation": null}
nlprog_det-setting-0045214
At 60 miles per hour, how many minutes does a 210-mile trip take? We write it as a program: ```python distance = 210 speed = 60 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` When run, it prints: 210 The trip takes 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0045215
What is the total rent on a 36-month lease at $850 a month? Python makes this quick: ```python monthly_rent = 850 months = 36 total = monthly_rent * months print(total) ``` Result: 30600 In total, $30,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0045216
<|start|><|user|> After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 print(f"{per_clie...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 30 / 100 # 14400.0\n remaining = award - fee # 33600.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0045217
With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal. Python: ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` # stdout: 9.1 The margin is 9.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0045218
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "112.35", "printed": "112.35", "notation": null}
nlprog_det-setting-0045219
<|start|><|user|> Starting with 793 notebooks and using 7 per day, how many remain after 16 days?<|eot|> <|assistant|> ```python stock = 793 per_day = 7 days = 16 left = stock - per_day * days # 681 print(left) ``` Executed, it shows 681. 681 notebooks are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 793 notebooks and using 7 per day, how many remain after 16 days?" }, { "role": "assistant", "content": "```python\nstock = 793\nper_day = 7\ndays = 16\nleft = stock - per_day * days # 681\nprint(left)\n```\nExecuted, it shows 681.\n\n681 notebooks ar...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "681", "printed": "681", "notation": null}
nlprog_det-setting-0045220
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> An invoice lists 20 headsets at $24 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 20 unit_price = 24 subtotal = quantity * unit_price # 480 total = subtotal * (1 + 8 / 100) # 518.4000000000001 print(f"{total:.2f...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "An invoice lists 20 headsets at $24 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 20\nunit_price = 24\nsubtotal = quantity * uni...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "518.40", "printed": "518.40", "notation": null}
nlprog_det-setting-0045222
How many days are there from January 19, 2022 to May 24, 2022? The computation: from datetime import date first = date(2022, 1, 19) # datetime.date(2022, 1, 19) second = date(2022, 5, 24) # datetime.date(2022, 5, 24) print((second - first).days) It prints 125. It is 125 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0045223
Scale 450 g of sugar from 6 servings to 8 servings. Python, step by step: ```python grams = 450 serves = 6 needed_for = 8 scaled = grams * needed_for // serves # 600 print(scaled) ``` Result = 600 Use 600 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0045224
Convert 40 °C to Fahrenheit. We write it as a program: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` When run, it prints 104, as expected. It equals 104 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0045225
Starting with 579 rulers and using 20 per day, how many remain after 3 days? Script: ```python stock = 579 per_day = 20 days = 3 left = stock - per_day * days # 519 print(left) ``` When run, it prints 519. 519 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "519", "printed": "519", "notation": null}
nlprog_det-setting-0045226
A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share? As a program: ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 37.76 print(f"{each:.2f}") ``` Console output — 37.76 The share is $37.76 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "37.76", "printed": "37.76", "notation": null}
nlprog_det-setting-0045227
<|start|><|system|> Tools (call with JSON): [{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A 390-p...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0045228
A settlement of $36,000 is split equally among 2 parties. How much does each party receive? Here is the program. settlement = 36000 parties = 2 share = settlement // parties # 18000 print(share) Run it and it prints: 18000 Each share is $18,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0045229
3 books come back 25 days late, at $0.20 a day each. What is the fine? Let the code do the arithmetic: ```python per_day = 0.2 days_late = 25 books = 3 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` Program output — 15.00 $15.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0045230
Pack A has 10 items for $3.15. Pack B has 20 items for $28.39. Which has the lower price per item? A short script: ```python pack_a = 3.15 / 10 # 0.315 pack_b = 28.39 / 20 # 1.4195 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Executing it gives: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0045231
Counting the first and last day, how many days are there from July 7, 2026 through July 30, 2026? A Python solution: ```python from datetime import date first = date(2026, 7, 7) # datetime.date(2026, 7, 7) last = date(2026, 7, 30) # datetime.date(2026, 7, 30) days = (last - first).days + 1 # 24 print(days) ``` Exec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0045233
<|start|><|user|> A storeroom has 201 clipboards. The office uses 9 a day. How many are left after 8 days?<|eot|> <|assistant|> ```python stock = 201 per_day = 9 days = 8 left = stock - per_day * days # 129 print(left) ``` The program outputs: 129 129 clipboards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 201 clipboards. The office uses 9 a day. How many are left after 8 days?" }, { "role": "assistant", "content": "```python\nstock = 201\nper_day = 9\ndays = 8\nleft = stock - per_day * days # 129\nprint(left)\n```\nThe program outputs: 129\n\n129 cli...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0045234
A settlement of $36,000 is split equally among 3 parties. How much does each party receive? Python: ```python settlement = 36000 parties = 3 share = settlement // parties # 12000 print(share) ``` Run output: 12000 Each party receives $12,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0045235
At $0.65 per mile, what is the reimbursement for 301 miles? Here's the code. ```python miles = 301 rate = 0.65 reimbursement = miles * rate # 195.65 print(f"{reimbursement:.2f}") ``` (Execution result: 195.65) The reimbursement is $195.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "195.65", "printed": "195.65", "notation": null}
nlprog_det-setting-0045236
4 claimants share a $84,000 settlement equally. What is each share? As a program: ```python settlement = 84000 parties = 4 share = settlement // parties print(share) ``` Executed, it shows 21000. Each share is $21,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0045237
After a 40% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Set it up in Python: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2 # 14400.0 print(f"{per_client:.2f}") ``` Printed resu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0045238
<|start|><|user|> A settlement of $960 is split equally among 4 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 960 parties = 4 share = settlement // parties # 240 print(share) ``` # out: 240 Each share is $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $960 is split equally among 4 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 960\nparties = 4\nshare = settlement // parties # 240\nprint(share)\n```\n# out: 240\n\nEach share is $240." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0045239
From a $7,500 retainer, 2 hours at $150/hour have been drawn. What remains? ```python retainer = 7500 hours = 2 rate = 150 left = retainer - hours * rate # 7200 print(left) ``` (Program output: 7200) The remaining balance is $7,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0045240
Each storage box holds 15 files. How many boxes are needed for 278 files? Code: ```python import math files = 278 per_box = 15 boxes = math.ceil(files / per_box) # 19 print(boxes) ``` Run output: 19 It takes 19 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0045241
With 40% off, what does a $40 filing cabinet cost? The sale price is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0045242
<|start|><|user|> 4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 4 # 10800.0 print(f"{per_client:.2f}") ``` The printout...
chat
[ { "role": "user", "content": "4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0045243
Find the mean of these test scores: 102, 58, 56, 71 and 83. Here is a short program for it. scores = [102, 58, 56, 71, 83] average = sum(scores) // len(scores) # 74 print(average) The program outputs: 74 The average score is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0045244
An invoice lists 15 clipboards at $6 each, plus 6% sales tax. What is the invoice total? The total with tax is $95.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "95.40", "printed": "95.40", "notation": null}
nlprog_det-setting-0045245
How many units at $15 each (variable cost $9) cover $2,500 of fixed costs? Programmatically: ```python import math fixed = 2500 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) # 417 print(units) ``` Console output: 417 417 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0045246
A $12,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment? We can compute it in Python. ```python grant = 12000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 3333.3333333333335 print(f"{each:.2f}") ``` Execution prints 3333.33, as expected. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0045247
Each of Cyrus's runs burns 250 calories. How many calories over 5 runs? Python does the arithmetic: ```python per_session = 250 sessions = 5 total = per_session * sessions print(total) ``` The run gives: 1250 That burns 1250 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0045248
At $0.67 per mile, what is the reimbursement for 412 miles? As Python: ```python miles = 412 rate = 0.67 reimbursement = miles * rate # 276.04 print(f"{reimbursement:.2f}") ``` # stdout: 276.04 Mateo is owed $276.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "276.04", "printed": "276.04", "notation": null}
nlprog_det-setting-0045249
Fixed costs are $6,000. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even? Here is the program. ```python import math fixed = 6000 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Run output: 750 Break-even is 750 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0045250
Express 89 hours in days and hours. Python, step by step: ```python hours = 89 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console: 3 days and 17 hours That is 3 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "3 days and 17 hours", "printed": "3 days and 17 hours", "notation": null}
nlprog_det-setting-0045251
After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Here is a short program for it. ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` (Output: 2000.00) $2,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0045252
A meal costs $134.53. How much is a 20% tip? Translated to Python: ```python bill = 134.53 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 26.906000000000002 print(f"{tip:.2f}") ``` Printed result: 26.91 Leave $26.91.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "26.91", "printed": "26.91", "notation": null}
nlprog_det-setting-0045253
A seminar starts at 4:30 PM and lasts 150 minutes. When does it end? Set it up in Python: ```python start = 16 * 60 + 30 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Console output: 7:00 PM The seminar finishes at 7:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "7:00 PM", "printed": "7:00 PM", "notation": null}
nlprog_det-setting-0045254
<|start|><|user|> A backpack costs $80. It is 15% off. What is the sale price?<|eot|> <|assistant|> ```python price = 80 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 68.0 print(f"{sale_price:.2f}") ``` Printed: 68.00 The sale price is $68.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $80. It is 15% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 80\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 68.0\nprint(f\"{sale_price:.2f}\")\n```\nPrinted:\n68.00\n\nThe sale price ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "68.00", "printed": "68.00", "notation": null}
nlprog_det-setting-0045255
What is the total rent on a 18-month lease at $2,100 a month? In total, $37,800 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0045256
If a 3-year limitations period starts on February 5, 2014, when does it end? Program: ```python from datetime import date accrued = date(2014, 2, 5) # datetime.date(2014, 2, 5) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 2, 5) print(expires.isoformat()) ``` # result: 2017-02-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2017-02-05", "printed": "2017-02-05", "notation": null}
nlprog_det-setting-0045257
Convert 86.9 km to meters. Python does the arithmetic: km = 86.9 meters = km * 1000 # 86900.0 print(round(meters)) Printed: 86900 86,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "86900", "printed": "86900", "notation": null}
nlprog_det-setting-0045258
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> How many of 165 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 165 needed = math.ceil(voters * 67 / 100) # 111 print(needed) ``` Running it prints: 111 111 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "How many of 165 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 165\nneeded = math.ceil(voters * 67 / 100) # 111\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "111", "printed": "111", "notation": null}
nlprog_det-setting-0045259
186 copies of a 34-page packet are printed at $0.12 per page. What is the cost? Let's compute it with Python. ```python pages = 34 copies = 186 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 758.88 print(f"{cost:.2f}") ``` This prints 758.88, as expected. Printing costs $758.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "758.88", "printed": "758.88", "notation": null}
nlprog_det-setting-0045260
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Find the mean of these test scores: 87, 73, 52, 95 and 88.<|eot|> <|assistant|> ```python scores = [87, 73, 52, 95, 88] average = sum(scores) // len(scores) # 79 print(average) ``` The script prints: 79 The mean is 79.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Find the mean of these test scores: 87, 73, 52, 95 and 88." }, { "role": "assistant", "content": "```python\nscores = [87, 73, 52, 95, 88]\naverage = sum(scores) // len(scores) # 79\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0045261
<|start|><|user|> How much is a $59 daily meal allowance over 7 days?<|eot|> <|assistant|> days = 7 meal_rate = 59 total = days * meal_rate # 413 print(total) # printed result: 413 That comes to $413.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $59 daily meal allowance over 7 days?" }, { "role": "assistant", "content": " days = 7\n meal_rate = 59\n total = days * meal_rate # 413\n print(total)\n# printed result: 413\n\nThat comes to $413." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "413", "printed": "413", "notation": null}
nlprog_det-setting-0045262
<|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
[]
[]
397
{"gold": "1769", "printed": "1769", "notation": null}
nlprog_det-setting-0045263
<|start|><|user|> The rules require 1/3 of 27 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 27 quorum = math.ceil(members * 1 / 3) # 9 print(quorum) ``` Executing it gives 9. That is 9 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 27 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 27\nquorum = math.ceil(members * 1 / 3) # 9\nprint(quorum)\n```\nExecuting it gives 9.\n\nThat is 9 members." ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0045264
Buying 3 mugs at $28 each, 1 toner kits at $11 each, 2 labels at $17 each, 3 calendars at $29 each, someone hands over $250. What change comes back? In code: ```python items = [(3, 28), (1, 11), (2, 17), (3, 29)] total = sum(q * p for q, p in items) # 216 paid = 250 change = paid - total # 34 print(change) ``` Pytho...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0045265
Which is cheaper per unit: 12 for $6.13 (A) or 24 for $6.72 (B)? We can compute it in Python. ```python pack_a = 6.13 / 12 # 0.5108333333333334 pack_b = 6.72 / 24 # 0.27999999999999997 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Run it and it prints: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0045266
How many meters are in 14.9 kilometers? Translated to Python: km = 14.9 meters = km * 1000 # 14900.0 print(round(meters)) (stdout: 14900) 14,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "14900", "printed": "14900", "notation": null}
nlprog_det-setting-0045267
A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments? monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) When run, it prints 24, as expected. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0045268
<|start|><|user|> Divide 32 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 32 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Printed: 4 each, 4 left over 4 eac...
chat
[ { "role": "user", "content": "Divide 32 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 32\n groups = 7\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4 each, 4 left over", "printed": "4 each, 4 left over", "notation": null}
nlprog_det-setting-0045269
Water costs $20 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 23,000 gallons? ```python base = 20 rate = 5.1 used = 23 free = 0 bill = base + rate * max(0, used - free) # 137.3 print(f"{bill:.2f}") ``` Execution result: 137.30 $137.30 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "137.30", "printed": "137.30", "notation": null}
nlprog_det-setting-0045270
Fixed costs are $6,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even? Break-even is 1500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0045271
Printing costs 15 cents a page. What does it cost to print 56 copies of a 54-page handout? As a program: ```python pages = 54 copies = 56 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 453.59999999999997 print(f"{cost:.2f}") ``` # printed: 453.60 Printing costs $453.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "453.60", "printed": "453.60", "notation": null}
nlprog_det-setting-0045272
A trial runs from January 14, 2027 to January 29, 2027, counting both days. How many calendar days is that? A short script: ```python from datetime import date first = date(2027, 1, 14) # datetime.date(2027, 1, 14) last = date(2027, 1, 29) # datetime.date(2027, 1, 29) days = (last - first).days + 1 # 16 print(days)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0045273
A recipe for 4 people uses 450 grams of flour. How many grams are needed for 6 people? Written as code: ```python grams = 450 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 675 print(scaled) ``` (Out: 675) 675 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0045275
A service costs $15 a month or $150 a year. How much does the yearly plan save over 12 monthly payments? Here is a short program for it. ```python monthly = 15 yearly = 150 savings = monthly * 12 - yearly print(savings) ``` Result — 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0045276
<|start|><|user|> At 50 miles per hour, how many minutes does a 250-mile trip take?<|eot|> <|assistant|> ```python distance = 250 speed = 50 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Shell output — 300 The trip takes 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 50 miles per hour, how many minutes does a 250-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 250\nspeed = 50\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\nShell output — 300\n\nThe trip takes 300 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0045277
<|start|><|user|> What percentage of $2,000 is $1,000?<|eot|> <|assistant|> ```python budget = 2000 spent = 1000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) ``` (Run result: 50.0) That is 50.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,000?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1000\npercent = spent / budget * 100 # 50.0\nprint(round(percent, 1))\n```\n(Run result: 50.0)\n\nThat is 50.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0045278
From a $10,000 retainer, 7 hours at $275/hour have been drawn. What remains? Here's the code. ```python retainer = 10000 hours = 7 rate = 275 left = retainer - hours * rate # 8075 print(left) ``` The code prints 8075. The remaining balance is $8,075.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "8075", "printed": "8075", "notation": null}
nlprog_det-setting-0045279
How many days are there from July 2, 2024 to February 26, 2025? Translated to Python: ```python from datetime import date first = date(2024, 7, 2) # datetime.date(2024, 7, 2) second = date(2025, 2, 26) # datetime.date(2025, 2, 26) print((second - first).days) ``` (Printed: 239) It is 239 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "239", "printed": "239", "notation": null}
nlprog_det-setting-0045280
Of a $5,000 budget, $100 has been spent. What percent is that? Python does the arithmetic: budget = 5000 spent = 100 percent = spent / budget * 100 # 2.0 print(round(percent, 1)) Output of the run: 2.0 2.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "2.0", "printed": "2.0", "notation": null}
nlprog_det-setting-0045282
A 480-page report must be reviewed in 12 days. How many pages a day is that, evenly? Computing it: ```python pages = 480 days = 12 per_day = pages // days print(per_day) ``` Printed: 40 40 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0045283
<|start|><|system|> Functions: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A hall has 22 rows of 18 seats, and 29 seats are ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]" }, { ...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "367", "printed": "367", "notation": null}
nlprog_det-setting-0045285
Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent? ```python rent = 1200 days_in_month = 30 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 520.0 print(f"{prorated:.2f}") ``` # out: 520.00 The tenant owes $520.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "520.00", "printed": "520.00", "notation": null}
nlprog_det-setting-0045286
<|start|><|system|> You may call the tools below. [{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "descrip...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
345
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0045287
Counting the first and last day, how many days are there from January 7, 2020 through January 30, 2020? Python makes this quick: ```python from datetime import date first = date(2020, 1, 7) # datetime.date(2020, 1, 7) last = date(2020, 1, 30) # datetime.date(2020, 1, 30) days = (last - first).days + 1 # 24 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0045288
Straight-line depreciation: cost $12,000, salvage $6,000, 5 years. How much per year? $1,200.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0045289
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Walls total 1203 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1203 coverage = 300 cans = math.ceil(area / coverage) # 5 print(cans) ``` Output of the run: 5 5 cans are ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Walls total 1203 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1203\ncoverage = 300\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0045290
Monthly rent is $900. A tenant moves in with 22 days left in a 31-day month. What is the prorated rent? Here is a short program for it. ```python rent = 900 days_in_month = 31 days_occupied = 22 prorated = rent * days_occupied / days_in_month # 638.7096774193549 print(f"{prorated:.2f}") ``` Run it and it prints 638.7...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "638.71", "printed": "638.71", "notation": null}
nlprog_det-setting-0045291
<|start|><|user|> A quorum is 1/3 of the 22 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> import math members = 22 quorum = math.ceil(members * 1 / 3) # 8 print(quorum) Running this gives: 8 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 22 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": " import math\n members = 22\n quorum = math.ceil(members * 1 / 3) # 8\n print(quorum)\nRunning this gives: 8\n\n8 members are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0045292
<|start|><|user|> Printing costs 15 cents a page. What does it cost to print 98 copies of a 21-page handout?<|eot|> <|assistant|> ```python pages = 21 copies = 98 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 308.7 print(f"{cost:.2f}") ``` Output: 308.70 Printing costs $308.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 98 copies of a 21-page handout?" }, { "role": "assistant", "content": "```python\npages = 21\ncopies = 98\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 308.7\nprint(f\"{cost:.2f}\")\n```\nO...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "308.70", "printed": "308.70", "notation": null}
nlprog_det-setting-0045294
<|start|><|user|> How many minutes pass from 9:57 AM to 10:58 AM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 57 # 597 end = 10 * 60 + 58 # 658 print(end - start) ``` Shell output — 61 It is 61 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:57 AM to 10:58 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 57 # 597\nend = 10 * 60 + 58 # 658\nprint(end - start)\n```\nShell output — 61\n\nIt is 61 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0045295
<|start|><|user|> Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> Depreciation is $3,200.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "Depreciation is $3,200.00 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0045296
The paralegal logged 2 hours at a rate of $180. How much is billed? Python makes this quick: hours = 2 rate = 180 bill = hours * rate # 360 print(f"{bill:.2f}") Execution prints 360.00. That comes to $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0045297
<|start|><|user|> A recipe for 4 people uses 300 grams of sugar. How many grams are needed for 10 people?<|eot|> <|assistant|> grams = 300 serves = 4 needed_for = 10 scaled = grams * needed_for // serves # 750 print(scaled) # result: 750 750 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 300 grams of sugar. How many grams are needed for 10 people?" }, { "role": "assistant", "content": " grams = 300\n serves = 4\n needed_for = 10\n scaled = grams * needed_for // serves # 750\n print(scaled)\n# result: 750\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0045298
<|start|><|user|> From 2009 to 2030, how many years is that?<|eot|> <|assistant|> ```python start_year = 2009 end_year = 2030 print(end_year - start_year) ``` The program outputs: 21 That is 21 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2009 to 2030, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2009\nend_year = 2030\nprint(end_year - start_year)\n```\nThe program outputs: 21\n\nThat is 21 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0045299
Chen and Rania share $3,066 in the ratio 2:5. How much does Chen get? As a program: ```python total = 3066 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 876 print(share_a) ``` Console output — 876 Chen gets $876.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "876", "printed": "876", "notation": null}
nlprog_det-setting-0045300
<|start|><|user|> After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 4 # 10800.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0045301
A measure needs at least 67% of 179 votes. How many votes is that, rounded up? Here is the program. ```python import math voters = 179 needed = math.ceil(voters * 67 / 100) # 120 print(needed) ``` The script prints 120, as expected. 120 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0045302
A 36-month warranty starts on May 1, 2024. On what date does it end? ```python from datetime import date start = date(2024, 5, 1) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Output of the run: 2027-05-01 It...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2027-05-01", "printed": "2027-05-01", "notation": null}