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-0079676
A pack of 4 folders sells for $92. What does each cost? As Python: ```python total = 92 count = 4 per_item = total // count # 23 print(per_item) ``` Execution prints 23. The unit price is $23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0079678
Buying 3 tape rolls at $25 each, 5 folders at $5 each, 1 binders at $21 each, someone hands over $150. What change comes back? Here is the program. ```python items = [(3, 25), (5, 5), (1, 21)] total = sum(q * p for q, p in items) # 121 paid = 150 change = paid - total # 29 print(change) ``` # run result: 29 $29 com...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0079679
A meal costs $124.24. How much is a 15% tip? Programmatically: ```python bill = 124.24 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 18.636 print(f"{tip:.2f}") ``` Running this gives: 18.64 The tip is $18.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "18.64", "printed": "18.64", "notation": null}
nlprog_det-setting-0079680
<|start|><|user|> From 2019 to 2038, how many years is that?<|eot|> <|assistant|> ```python start_year = 2019 end_year = 2038 print(end_year - start_year) ``` This prints 19. That is 19 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2019 to 2038, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2019\nend_year = 2038\nprint(end_year - start_year)\n```\nThis prints 19.\n\nThat is 19 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0079681
How many meters are in 44.9 kilometers? 44,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "44900", "printed": "44900", "notation": null}
nlprog_det-setting-0079682
1 books come back 20 days late, at $0.20 a day each. What is the fine? Script: ```python per_day = 0.2 days_late = 20 books = 1 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` Running it prints 4.00. The fine is $4.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0079683
A recipe for 8 people uses 300 grams of lentils. How many grams are needed for 2 people? ```python grams = 300 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 75 print(scaled) ``` Console: 75 75 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0079684
<|start|><|user|> $2,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") Result: 2185.45 It is worth $2,185.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 3% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": " principal = 2000\n rate = 3 / 100 # 0.03\n years = 3\n value = principal * (1 + rate) ** years # 2185.454\n print(f\"{value:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0079685
What average speed covers 116 miles in 1 hours? It averages 116 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "116", "printed": "116", "notation": null}
nlprog_det-setting-0079686
If a 5-year limitations period starts on February 10, 2012, when does it end? Python, step by step: ```python from datetime import date accrued = date(2012, 2, 10) # datetime.date(2012, 2, 10) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 2, 10) print(expires.isoformat()) ``` E...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2017-02-10", "printed": "2017-02-10", "notation": null}
nlprog_det-setting-0079687
<|start|><|user|> A bicycle helmet costs $60. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` What it prints — 54.00 It costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $60. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\nWhat it prints — 54.00\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0079688
Convert 5 h 9 min (the length of a workshop) to minutes. The workshop lasted 309 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "309", "printed": "309", "notation": null}
nlprog_det-setting-0079689
Mateo drove 178 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Programmatically: ```python miles = 178 rate = 0.7 reimbursement = miles * rate # 124.6 print(f"{reimbursement:.2f}") ``` The program outputs: 124.60 Mateo is owed $124.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "124.60", "printed": "124.60", "notation": null}
nlprog_det-setting-0079690
A 17 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Coded up: ```python import math length = 17 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 13 print(tiles) ``` What it prints: 13 13 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079691
A party has 28 days to respond to a motion served on November 20, 2018, with 3 days added because service was by mail. When is the response due? It is due December 21, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2018-12-21", "printed": "2018-12-21", "notation": null}
nlprog_det-setting-0079692
Monthly: $9. Annual: $60. What is saved per year by paying annually? Coded up: ```python monthly = 9 yearly = 60 savings = monthly * 12 - yearly print(savings) ``` Printed — 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0079693
A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 77-page copy cost? Code: ```python pages = 77 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.7 print(f"{cost:.2f}") ``` Console output — 12.70 The total is $12.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "12.70", "printed": "12.70", "notation": null}
nlprog_det-setting-0079694
A meal costs $50.12. How much is a 10% tip? As a program: ```python bill = 50.12 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 5.0120000000000005 print(f"{tip:.2f}") ``` Program output: 5.01 Leave $5.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5.01", "printed": "5.01", "notation": null}
nlprog_det-setting-0079695
<|start|><|system|> Tool definitions: {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A customer buys 6 mugs at $7 each, 3 chairs a...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079696
<|start|><|user|> A 12-month warranty starts on March 3, 2028. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 3, 3) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
chat
[ { "role": "user", "content": "A 12-month warranty starts on March 3, 2028. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 3, 3)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2029-03-03", "printed": "2029-03-03", "notation": null}
nlprog_det-setting-0079697
<|start|><|user|> Starting with 1282 calendars and using 10 per day, how many remain after 4 days?<|eot|> <|assistant|> ```python stock = 1282 per_day = 10 days = 4 left = stock - per_day * days # 1242 print(left) ``` Python prints 1242, as expected. 1242 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1282 calendars and using 10 per day, how many remain after 4 days?" }, { "role": "assistant", "content": "```python\nstock = 1282\nper_day = 10\ndays = 4\nleft = stock - per_day * days # 1242\nprint(left)\n```\nPython prints 1242, as expected.\n\n1242...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1242", "printed": "1242", "notation": null}
nlprog_det-setting-0079698
How many of 187 votes make 60% (round up)? Code: ```python import math voters = 187 needed = math.ceil(voters * 60 / 100) # 113 print(needed) ``` Printed — 113 At least 113 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "113", "printed": "113", "notation": null}
nlprog_det-setting-0079699
Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Programmatically: ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Interpreter output: 23.8 Profit is 23.8%...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0079700
<|start|><|user|> Rent of $900 goes up 4%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 4 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The interpreter prints 936.00. It rises to $936.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 4%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 4 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nThe interpreter prints 936.00.\n\nIt rises to $936.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0079701
<|start|><|system|> You may call the tools below. {"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Priya buys 5 boxes ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0079702
A quorum is 2/3 of the 19 members, rounded up. How many members make a quorum? Python makes this quick: import math members = 19 quorum = math.ceil(members * 2 / 3) # 13 print(quorum) Result: 13 That is 13 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079703
A 14 lb package ships at $8 base plus $2.00/lb. What is the charge? Let the code do the arithmetic: ```python base = 8 per_pound = 2.0 weight = 14 cost = base + per_pound * weight # 36.0 print(f"{cost:.2f}") ``` Shell output — 36.00 The charge is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0079704
How much sales tax is charged on a $845.93 purchase at 4%? The Python version: ```python price = 845.93 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 33.837199999999996 print(f"{tax:.2f}") ``` Run output — 33.84 The tax is $33.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "33.84", "printed": "33.84", "notation": null}
nlprog_det-setting-0079705
Find the mean of these test scores: 50, 73 and 51. A short script: ```python scores = [50, 73, 51] average = sum(scores) // len(scores) # 58 print(average) ``` (Result: 58) The mean is 58.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0079706
<|start|><|user|> From a $5,000 retainer, 9 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 9 rate = 250 left = retainer - hours * rate # 2750 print(left) ``` Executed, it shows 2750. The remaining balance is $2,750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 9 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 9\nrate = 250\nleft = retainer - hours * rate # 2750\nprint(left)\n```\nExecuted, it shows 2750.\n\nThe remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2750", "printed": "2750", "notation": null}
nlprog_det-setting-0079707
<|start|><|system|> Tools you may use: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "code_runner", "description": "Executes Python code ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
310
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079708
A garage charges $4 an hour, never more than $18 a day. How much for 2 hours? Here's the code. ```python rate = 4 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 8 print(cost) ``` # printed result: 8 The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079709
<|start|><|user|> Delia's scores were 56, 86, 71 and 87. What is the average score?<|eot|> <|assistant|> scores = [56, 86, 71, 87] average = sum(scores) // len(scores) # 75 print(average) Program output — 75 The mean is 75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Delia's scores were 56, 86, 71 and 87. What is the average score?" }, { "role": "assistant", "content": " scores = [56, 86, 71, 87]\n average = sum(scores) // len(scores) # 75\n print(average)\nProgram output — 75\n\nThe mean is 75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0079710
<|start|><|user|> To read 306 pages in 9 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 306 days = 9 per_day = pages // days # 34 print(per_day) ``` Run it and it prints 34. 34 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 306 pages in 9 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 306\ndays = 9\nper_day = pages // days # 34\nprint(per_day)\n```\nRun it and it prints 34.\n\n34 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0079712
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours? The weekly pay is $920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0079713
892 files go into boxes of 24. How many boxes does that take? We can compute it in Python. import math files = 892 per_box = 24 boxes = math.ceil(files / per_box) # 38 print(boxes) The script prints: 38 38 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0079714
Each of Vera's bike rides burns 150 calories. How many calories over 6 bike rides? We can compute it in Python. ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` (Printed: 900) 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0079715
Convert -20 °C to Fahrenheit. Python makes this quick: ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Executed, it shows: -4 It equals -4 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0079716
A quorum is 3/5 of the 17 members, rounded up. How many members make a quorum? The Python version: ```python import math members = 17 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` The script prints: 11 11 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0079717
Starting with 766 notebooks and using 14 per day, how many remain after 3 days? We can compute it in Python. ```python stock = 766 per_day = 14 days = 3 left = stock - per_day * days # 724 print(left) ``` Python prints 724, as expected. 724 notebooks are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "724", "printed": "724", "notation": null}
nlprog_det-setting-0079718
Which is cheaper per unit: 8 for $5.69 (A) or 24 for $31.88 (B)? We can compute it in Python. ```python pack_a = 5.69 / 8 pack_b = 31.88 / 24 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` It prints A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0079720
<|start|><|user|> How many whole days and leftover hours are in 69 hours?<|eot|> <|assistant|> ```python hours = 69 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` When run, it prints 2 days and 21 hours, as expected. 69 hours is 2 days and 21 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 69 hours?" }, { "role": "assistant", "content": "```python\nhours = 69\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhen run, it prints 2 days and 21 hours, as expected.\n\n69 hours is ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2 days and 21 hours", "printed": "2 days and 21 hours", "notation": null}
nlprog_det-setting-0079721
What does $1,000 grow to in 2 years at 5% annual compounding? The balance is $1,102.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1102.50", "printed": "1102.50", "notation": null}
nlprog_det-setting-0079722
What average speed covers 30 miles in 1 hours? In Python: ```python distance = 30 hours = 1 speed = distance / hours # 30.0 print(round(speed)) ``` Run it and it prints 30. The average speed is 30 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079723
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 65-page copy cost? Code: ```python pages = 65 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 19.5 print(f"{cost:.2f}") ``` Out: 19.50 The copy costs $19.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0079724
What is the total rent on a 6-month lease at $2,875 a month? Python version: ```python monthly_rent = 2875 months = 6 total = monthly_rent * months # 17250 print(total) ``` Program output: 17250 The rent over the term is $17,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17250", "printed": "17250", "notation": null}
nlprog_det-setting-0079725
<|start|><|user|> With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Out: 11.1 Profit is 11....
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0079726
How many of 115 votes make 60% (round up)? Computing it: ```python import math voters = 115 needed = math.ceil(voters * 60 / 100) # 69 print(needed) ``` When run, it prints 69. 69 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0079727
Starting with 546 hard drives and using 34 per day, how many remain after 14 days? Python, step by step: ```python stock = 546 per_day = 34 days = 14 left = stock - per_day * days # 70 print(left) ``` The run gives 70. 70 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0079728
<|start|><|user|> Someone born December 7, 1995 turns how old by April 9, 2024? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1995, 12, 7) # datetime.date(1995, 12, 7) on = date(2024, 4, 9) # datetime.date(2024, 4, 9) age = on.year - born.year - ((on.month, on.day) ...
chat
[ { "role": "user", "content": "Someone born December 7, 1995 turns how old by April 9, 2024? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1995, 12, 7) # datetime.date(1995, 12, 7)\non = date(2024, 4, 9) # datetime.date(202...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0079729
24 copies of a 5-page packet are printed at $0.05 per page. What is the cost? pages = 5 copies = 24 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 6.0 print(f"{cost:.2f}") (Execution result: 6.00) Printing costs $6.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "6.00", "printed": "6.00", "notation": null}
nlprog_det-setting-0079730
A shift runs from 11:59 AM to 6:40 PM. How long is it in minutes? As Python: start = 11 * 60 + 59 # 719 end = 18 * 60 + 40 # 1120 print(end - start) stdout: 401 It is 401 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "401", "printed": "401", "notation": null}
nlprog_det-setting-0079731
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 44 days?<|eot|> <|assistant|> ```python per_day = 25 days = 44 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Program output: 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 44 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 44\ncap = 1000\nfine = min(per_day * days, cap)...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0079732
<|start|><|user|> 33 batteries cost $6 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> The invoice total is $207.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "33 batteries cost $6 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "The invoice total is $207.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "207.90", "printed": "207.90", "notation": null}
nlprog_det-setting-0079733
What is the total rent on a 6-month lease at $850 a month? ```python monthly_rent = 850 months = 6 total = monthly_rent * months # 5100 print(total) ``` # execution result: 5100 In total, $5,100 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0079734
2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? In Python: award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 2 # 21600.0 print(f"{per_client:.2f}") Run result — 21600.00 Each share...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "21600.00", "printed": "21600.00", "notation": null}
nlprog_det-setting-0079735
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Lena earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?<|eot|> <|assistant|> ```python rate = 20.0 hours = 53 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 390.0 pay = regular + overtime ...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Lena earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 53\nregular = 40 ...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "1190.00", "printed": "1190.00", "notation": null}
nlprog_det-setting-0079736
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0079737
What simple interest does $5,000 earn at 2% a year over 2 years? Python code: principal = 5000 rate = 2 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") Printed — 200.00 It earns $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0079738
<|start|><|system|> Functions: {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Starting from $25,000, the team spends $2,58...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}" },...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "21974", "printed": "21974", "notation": null}
nlprog_det-setting-0079739
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A $1,500 security deposit has deductions of $60, $150 and $150. How much is refunded?<|eot|> <|assistant|> $1,140 is returned.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A $1,500 security deposit has deductions of $60, $150 and $150. How much is refunded?" }, { "role": "assistant", "content": "$1,140 is returned." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "1140", "printed": "1140", "notation": null}
nlprog_det-setting-0079740
A count moves from 1,000 to 1,100. By what percent did it change (use a minus sign for a drop)? Script: ```python old = 1000 new = 1100 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` # console output: 10 It changed by 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0079741
What does $10,000 grow to in 2 years at 4% annual compounding? Python makes this quick: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 10816.000000000002 print(f"{value:.2f}") ``` (Output: 10816.00) It is worth $10,816.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "10816.00", "printed": "10816.00", "notation": null}
nlprog_det-setting-0079742
42 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? Python does the arithmetic: ```python total = 42 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # program output: 7 each, 0 left over The answer: 7 each, 0 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7 each, 0 left over", "printed": "7 each, 0 left over", "notation": null}
nlprog_det-setting-0079743
<|start|><|user|> How many weekdays (Monday to Friday) fall after October 14, 2024 up to and including October 25, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 10, 14) end = date(2024, 10, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 14, 2024 up to and including October 25, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 10, 14)\nend = date(2024, 10, 25)\ncount = 0\nfor k in r...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0079744
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A storeroom has 1824 badges. The office uses 38 a day. How many are left after 16 days?<|eot|> <|assistant|> ```python stock = 1824 per_day = 38 days = 16 left = stock - per_day * days # 1216 print(left) ``` When run, it prints 1216. 1216 badges are left.<...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A storeroom has 1824 badges. The office uses 38 a day. How many are left after 16 days?" }, { "role": "assistant", "content": "```python\nstock = 1824\nper_day = 38\ndays = 16\nleft = stock - ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1216", "printed": "1216", "notation": null}
nlprog_det-setting-0079746
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 983 square feet of wall?<|eot|> <|assistant|> ```python import math area = 983 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` It prints 3. Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 983 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 983\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nIt prints 3.\n\nBuy 3 ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0079747
What average speed covers 520 miles in 0.5 hours? Here is a short program for it. ```python distance = 520 hours = 0.5 speed = distance / hours # 1040.0 print(round(speed)) ``` Executed, it shows: 1040 It averages 1040 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1040", "printed": "1040", "notation": null}
nlprog_det-setting-0079748
<|start|><|user|> What average speed covers 246 miles in 2 hours?<|eot|> <|assistant|> distance = 246 hours = 2 speed = distance / hours # 123.0 print(round(speed)) Result — 123 The average speed is 123 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 246 miles in 2 hours?" }, { "role": "assistant", "content": " distance = 246\n hours = 2\n speed = distance / hours # 123.0\n print(round(speed))\nResult — 123\n\nThe average speed is 123 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "123", "printed": "123", "notation": null}
nlprog_det-setting-0079749
A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance? days = 4 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 656 print(total) The program outputs 656. That comes to $656.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "656", "printed": "656", "notation": null}
nlprog_det-setting-0079750
<|start|><|user|> Elena lends $1,000 at 2% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 60.0 print(f"{interest:.2f}") ``` Printed: 60.00 The interest is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Elena lends $1,000 at 2% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 3\ninterest = principal * rate * years # 60.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0079751
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 7 days?<|eot|> <|assistant|> ```python per_day = 100 days = 7 cap = 1000 fine = min(per_day * days, cap) # 700 print(fine) ``` (Output: 700) The fine is $700.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $1,000. How much after 7 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 7\ncap = 1000\nfine = min(per_day * days...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0079752
<|start|><|user|> 294 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 294 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result — 73 each, 2 left over The answer: 73 eac...
chat
[ { "role": "user", "content": "294 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 294\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "73 each, 2 left over", "printed": "73 each, 2 left over", "notation": null}
nlprog_det-setting-0079753
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 400.0 print(f"{prorated:.2f}") ``` Out: 400.00 The tenant owes $4...
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 5\nprorated = rent * days_occupied / days_in_month # 400.0\np...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0079754
Each of Jae's swims burns 400 calories. How many calories over 6 swims? 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0079755
A trial runs from June 1, 2022 to June 22, 2022, counting both days. How many calendar days is that? Here is the program. ```python from datetime import date first = date(2022, 6, 1) # datetime.date(2022, 6, 1) last = date(2022, 6, 22) # datetime.date(2022, 6, 22) days = (last - first).days + 1 # 22 print(days) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079756
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> An office budget of $12,0...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "2245", "printed": "2245", "notation": null}
nlprog_det-setting-0079757
<|start|><|user|> Nikhil buys 7 boxes of 8 rulers each and gives away 13 rulers. How many rulers are left?<|eot|> <|assistant|> boxes = 7 per_box = 8 given_away = 13 left = boxes * per_box - given_away # 43 print(left) The run gives 43, as expected. That leaves 43 rulers.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nikhil buys 7 boxes of 8 rulers each and gives away 13 rulers. How many rulers are left?" }, { "role": "assistant", "content": " boxes = 7\n per_box = 8\n given_away = 13\n left = boxes * per_box - given_away # 43\n print(left)\nThe run gives 43, as ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0079758
A 36 lb package ships at $10 base plus $2.00/lb. What is the charge? A Python solution: ```python base = 10 per_pound = 2.0 weight = 36 cost = base + per_pound * weight # 82.0 print(f"{cost:.2f}") ``` Result — 82.00 Shipping costs $82.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "82.00", "printed": "82.00", "notation": null}
nlprog_det-setting-0079759
A garage charges $4 an hour, never more than $20 a day. How much for 1 hours? Python, step by step: rate = 4 hours = 1 daily_max = 20 cost = min(rate * hours, daily_max) # 4 print(cost) Shell output: 4 The charge is $4.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079760
The paralegal logged 2 hours at a rate of $250. How much is billed? Script: hours = 2 rate = 250 bill = hours * rate # 500 print(f"{bill:.2f}") # out: 500.00 That comes to $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0079761
Water costs $12 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 15,000 gallons? $57.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0079763
Sales went from 200 to 210. What is the percent change? ```python old = 200 new = 210 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` Out: 5 The change is 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079764
A claim accrued on September 25, 2016. The limitations period is 3 years. On what date does it expire? It runs out on September 25, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2019-09-25", "printed": "2019-09-25", "notation": null}
nlprog_det-setting-0079765
<|start|><|user|> A meeting starts at 10:30 AM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> ```python start = 10 * 60 + 30 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The program prints: 12:15 PM It ends at 12:15 PM.<|...
chat
[ { "role": "user", "content": "A meeting starts at 10:30 AM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 30\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12:15 PM", "printed": "12:15 PM", "notation": null}
nlprog_det-setting-0079766
The landlord deducts $45, $75 and $75 from a $800 deposit. What is returned to the tenant? Program: deposit = 800 deductions = [45, 75, 75] refund = deposit - sum(deductions) # 605 print(refund) Out — 605 The refund is $605.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "605", "printed": "605", "notation": null}
nlprog_det-setting-0079767
Counting only Monday through Friday, how many business days are there after January 12, 2021 through January 18, 2021? We can compute it in Python. ```python from datetime import date, timedelta start = date(2021, 1, 12) end = date(2021, 1, 18) count = 0 for k in range(1, (end - start).days + 1): if (start + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079769
Papers were served by mail on August 20, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? As Python: ```python from datetime import date, timedelta served = date(2022, 8, 20) # datetime.date(2022, 8, 20) response_days = 30 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2022-09-22", "printed": "2022-09-22", "notation": null}
nlprog_det-setting-0079770
416 files go into boxes of 15. How many boxes does that take? Translated to Python: ```python import math files = 416 per_box = 15 boxes = math.ceil(files / per_box) # 28 print(boxes) ``` Execution result — 28 It takes 28 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0079771
What average speed covers 205 miles in 0.5 hours? Let the code do the arithmetic: ```python distance = 205 hours = 0.5 speed = distance / hours # 410.0 print(round(speed)) ``` Console output: 410 The average speed is 410 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "410", "printed": "410", "notation": null}
nlprog_det-setting-0079773
Fiona was born on December 5, 1992. How old is Fiona on September 11, 2029? Fiona is 36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0079774
Rafael has 15 documents to file, and each filing costs $125. How much are the filing fees in total? The Python version: ```python fee = 125 filings = 15 total = fee * filings # 1875 print(total) ``` Run result — 1875 The filings cost $1,875 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1875", "printed": "1875", "notation": null}
nlprog_det-setting-0079775
<|start|><|user|> What commission does Ada make on $85,162 in sales at 2%?<|eot|> <|assistant|> ```python sales = 85162 rate = 2 / 100 # 0.02 commission = sales * rate # 1703.24 print(f"{commission:.2f}") ``` Output — 1703.24 The commission is $1,703.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Ada make on $85,162 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 85162\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1703.24\nprint(f\"{commission:.2f}\")\n```\nOutput — 1703.24\n\nThe commission is $1,703.24...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1703.24", "printed": "1703.24", "notation": null}
nlprog_det-setting-0079776
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Scale 240 g of lentils from 2 servings to 4 servings.<|eot|> <|assistant|> ```python grams = 240 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 480 print(scaled) ``` Out = 480 480 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Scale 240 g of lentils from 2 servings to 4 servings." }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 2\nneeded_for = 4\nscaled = grams * needed_for // serves # 480...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0079777
A $96 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share? A few lines of Python do it: ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 55.199999999999996 print(f"{each:.2f}") ``` Running it prints: 55.20 The share is $55.20 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "55.20", "printed": "55.20", "notation": null}
nlprog_det-setting-0079778
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Someone born September 11, 1993 turns how old by July 12, 2020? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1993, 9, 11) # datetime.date(1993, 9, 11) on = date(2020, 7, 12) # datetime.date(20...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Someone born September 11, 1993 turns how old by July 12, 2020? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date...
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0079779
What simple interest does $20,000 earn at 2% a year over 3 years? ```python principal = 20000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` Result: 1200.00 It earns $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0079780
An office budget of $5,000 has expenses of $2,421, $3,253, $3,905. How much of the budget is left? Written as code: ```python budget = 5000 expenses = [2421, 3253, 3905] left = budget - sum(expenses) # -4579 print(left) ``` Result: -4579 -$4,579 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "-4579", "printed": "-4579", "notation": null}
nlprog_det-setting-0079781
<|start|><|user|> A 32 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.2 weight = 32 cost = base + per_pound * weight # 48.4 print(f"{cost:.2f}") ``` Program output: 48.40 The charge is $48.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 32 lb package ships at $10 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.2\nweight = 32\ncost = base + per_pound * weight # 48.4\nprint(f\"{cost:.2f}\")\n```\nProgram output: 48.40\n\nThe charge...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "48.40", "printed": "48.40", "notation": null}
nlprog_det-setting-0079782
<|start|><|user|> Rent of $1,250 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` Run result = 1350.00 It rises to $1,350.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1350.0\nprint(f\"{new_rent:.2f}\")\n```\nRun result = 1350.00\n\nIt rises to $1,350.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1350.00", "printed": "1350.00", "notation": null}