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-0076999
What average speed covers 529 miles in 0.5 hours? In code: ```python distance = 529 hours = 0.5 speed = distance / hours # 1058.0 print(round(speed)) ``` The interpreter prints: 1058 The average speed is 1058 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1058", "printed": "1058", "notation": null}
nlprog_det-setting-0077000
Marek drove 283 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? A short script: ```python miles = 283 rate = 0.58 reimbursement = miles * rate # 164.14 print(f"{reimbursement:.2f}") ``` Program output — 164.14 Marek is owed $164.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "164.14", "printed": "164.14", "notation": null}
nlprog_det-setting-0077001
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Split $3,328 between Omar and Rosa in the ratio 1 to 3. What is Omar's share?<|eot|> <|assistant|> Omar gets $832.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Split $3,328 between Omar and Rosa in the ratio 1 to 3. What is Omar's share?" }, { "role": "assistant", "content": "Omar gets $832." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "832", "printed": "832", "notation": null}
nlprog_det-setting-0077002
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> An office budget of $8,000 has expenses of $3,204, $2,197, $2,657. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [3204, 2197, 2657] left = budget - sum(expenses) # -58 print(left) ``` Running it prints: -58 The rem...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "An office budget of $8,000 has expenses of $3,204, $2,197, $2,657. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [3204, 2197, 2657...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "-58", "printed": "-58", "notation": null}
nlprog_det-setting-0077003
Shipping costs $8 plus $1.20 per pound. What does a 19-pound parcel cost to ship? Here's the code. ```python base = 8 per_pound = 1.2 weight = 19 cost = base + per_pound * weight # 30.8 print(f"{cost:.2f}") ``` That prints 30.80. Shipping costs $30.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "30.80", "printed": "30.80", "notation": null}
nlprog_det-setting-0077004
Meals are $69 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights? The computation: ```python days = 8 meal_rate = 69 lodging_rate = 175 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1777 print(total) ``` This prints 1777. The allowance is $1,777.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1777", "printed": "1777", "notation": null}
nlprog_det-setting-0077005
<|start|><|user|> A 5 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.5 weight = 5 cost = base + per_pound * weight # 24.5 print(f"{cost:.2f}") ``` (Output: 24.50) Shipping costs $24.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5 lb package ships at $12 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.5\nweight = 5\ncost = base + per_pound * weight # 24.5\nprint(f\"{cost:.2f}\")\n```\n(Output: 24.50)\n\nShipping costs $24...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "24.50", "printed": "24.50", "notation": null}
nlprog_det-setting-0077006
<|start|><|user|> What commission does Goran make on $101,339 in sales at 2%?<|eot|> <|assistant|> ```python sales = 101339 rate = 2 / 100 # 0.02 commission = sales * rate # 2026.78 print(f"{commission:.2f}") ``` Printed: 2026.78 The commission is $2,026.78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Goran make on $101,339 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 101339\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 2026.78\nprint(f\"{commission:.2f}\")\n```\nPrinted:\n2026.78\n\nThe commission is $2,0...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2026.78", "printed": "2026.78", "notation": null}
nlprog_det-setting-0077007
144 copies of a 11-page packet are printed at $0.08 per page. What is the cost? Set it up in Python: ```python pages = 11 copies = 144 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 126.72 print(f"{cost:.2f}") ``` The program outputs: 126.72 Printing costs $126.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "126.72", "printed": "126.72", "notation": null}
nlprog_det-setting-0077008
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> How many units at $15 each (vari...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0077009
<|start|><|user|> Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Console output — 12 The charge is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nConsole output — 12\n\nThe charge is $12." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0077010
Joelle earns a 6% commission on $57,124 of sales. What is the commission? We can compute it in Python. ```python sales = 57124 rate = 6 / 100 # 0.06 commission = sales * rate # 3427.44 print(f"{commission:.2f}") ``` # out: 3427.44 Joelle earns $3,427.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "3427.44", "printed": "3427.44", "notation": null}
nlprog_det-setting-0077011
Find the mean of these test scores: 76, 68, 94 and 82. Python does the arithmetic: ```python scores = [76, 68, 94, 82] average = sum(scores) // len(scores) # 80 print(average) ``` The script prints: 80 The average score is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0077012
A $120 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Each person pays $27.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0077013
How many weekdays (Monday to Friday) fall after October 7, 2021 up to and including November 10, 2021? ```python from datetime import date, timedelta start = date(2021, 10, 7) end = date(2021, 11, 10) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0077014
197 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Translated to Python: ```python total = 197 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # stdout: 49 each, 1 left over 49 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "49 each, 1 left over", "printed": "49 each, 1 left over", "notation": null}
nlprog_det-setting-0077015
5 claimants share a $15,000 settlement equally. What is each share? Python version: ```python settlement = 15000 parties = 5 share = settlement // parties # 3000 print(share) ``` Executed, it shows 3000. Each party receives $3,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0077017
A clerk's office charges $125 for each filing. Jae submits 9 filings. What is the total fee? $1,125 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0077018
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Computation in Python: ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` Result: 10.0 Profit is 10.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0077019
<|start|><|user|> How much is a $64 daily meal allowance over 8 days?<|eot|> <|assistant|> The allowance is $512.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $64 daily meal allowance over 8 days?" }, { "role": "assistant", "content": "The allowance is $512." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "512", "printed": "512", "notation": null}
nlprog_det-setting-0077020
Under a 25% contingency agreement, what fee is owed on a $12,000 award? Let's compute it with Python. ```python recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") ``` The program prints 3000.00, as expected. The fee is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0077021
Fines run at $100 per day up to a maximum of $1,000. How much after 50 days? Python, step by step: ```python per_day = 100 days = 50 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Running it prints 1000, as expected. The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0077022
<|start|><|user|> How much sales tax is charged on a $648.14 purchase at 6%?<|eot|> <|assistant|> ```python price = 648.14 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 38.8884 print(f"{tax:.2f}") ``` Executing it gives 38.89. $38.89 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $648.14 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 648.14\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 38.8884\nprint(f\"{tax:.2f}\")\n```\nExecuting it gives 38.89.\n\n$38.89 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "38.89", "printed": "38.89", "notation": null}
nlprog_det-setting-0077023
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? The weekly pay is $712.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0077024
75 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? Programmatically: ```python total = 75 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` When run, it prints: 15 each, 0 left over 15 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "15 each, 0 left over", "printed": "15 each, 0 left over", "notation": null}
nlprog_det-setting-0077025
<|start|><|user|> A desk lamp costs $90. It is 25% off. What is the sale price?<|eot|> <|assistant|> It costs $67.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A desk lamp costs $90. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "It costs $67.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0077026
A library charges $0.25 per book per day late. What is the fine for 2 books that are 15 days late? Translated to Python: ```python per_day = 0.25 days_late = 15 books = 2 fine = per_day * days_late * books # 7.5 print(f"{fine:.2f}") ``` Output: 7.50 The fine is $7.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "7.50", "printed": "7.50", "notation": null}
nlprog_det-setting-0077027
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A clerk's office charges $50 for each filing. Grace submits 18 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 50 filings = 18 total = fee * filings # 900 print(total) ``` Output of the run — 900 The total fee is $900.<|eot|> <|end|...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A clerk's office charges $50 for each filing. Grace submits 18 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 18\ntotal = fee * filing...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0077028
Buying 5 keyboards at $4 each, 5 sticky pads at $10 each, someone hands over $100. What change comes back? Here is the program. items = [(5, 4), (5, 10)] total = sum(q * p for q, p in items) # 70 paid = 100 change = paid - total # 30 print(change) Execution prints 30, as expected. The change is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0077029
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 237 miles?<|eot|> <|assistant|> ```python miles = 237 rate = 0.62 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Run it and it prints 146.94. Tariq is owed $146.94.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 237 miles?" }, { "role": "assistant", "content": "```python\nmiles = 237\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\nRun it and it prints 146.94.\n\nTariq is owed $146.94." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "146.94", "printed": "146.94", "notation": null}
nlprog_det-setting-0077030
How many meters are in 81.8 kilometers? We write it as a program: ```python km = 81.8 meters = km * 1000 # 81800.0 print(round(meters)) ``` Output: 81800 That is 81,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "81800", "printed": "81800", "notation": null}
nlprog_det-setting-0077031
152 of 200 members attended. What percent attended? Attendance was 76.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "76.0", "printed": "76.0", "notation": null}
nlprog_det-setting-0077032
8 claimants share a $7,344 settlement equally. What is each share? The computation: ```python settlement = 7344 parties = 8 share = settlement // parties # 918 print(share) ``` The script prints 918. Each party receives $918.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0077033
<|start|><|system|> Available functions (JSON Schema): [{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0077034
7 swims at 300 calories each burn how many calories in total? Python: ```python per_session = 300 sessions = 7 total = per_session * sessions print(total) ``` stdout — 2100 2100 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0077035
Idris earns a 6% commission on $32,687 of sales. What is the commission? In code: ```python sales = 32687 rate = 6 / 100 # 0.06 commission = sales * rate # 1961.22 print(f"{commission:.2f}") ``` Printed: 1961.22 The commission is $1,961.22.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1961.22", "printed": "1961.22", "notation": null}
nlprog_det-setting-0077036
Notice was given on July 28, 2018. The notice period is 14 days. When does it run out? The program: ```python from datetime import date, timedelta start = date(2018, 7, 28) # datetime.date(2018, 7, 28) end = start + timedelta(days=14) # datetime.date(2018, 8, 11) print(end.isoformat()) ``` # execution result: 2018-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2018-08-11", "printed": "2018-08-11", "notation": null}
nlprog_det-setting-0077037
A $240 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share? Python: ```python bill = 240 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 69.0 print(f"{each:.2f}") ``` Output of the run: 69.00 Each person pays $69.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0077038
<|start|><|user|> A $12,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> $500.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $12,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": "$500.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0077039
A deposition lasted 1 hours and 8 minutes. How many minutes is that? The Python version: ```python hours = 1 minutes = 8 total_minutes = hours * 60 + minutes # 68 print(total_minutes) ``` Out: 68 The deposition lasted 68 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0077040
<|start|><|user|> Convert 35 °C to Fahrenheit.<|eot|> <|assistant|> It equals 95 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 35 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 95 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0077041
<|start|><|user|> The rules require 3/5 of 40 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 40 quorum = math.ceil(members * 3 / 5) # 24 print(quorum) ``` # console output: 24 24 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 40 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 40\nquorum = math.ceil(members * 3 / 5) # 24\nprint(quorum)\n```\n# console output: 24\n\n24 members are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0077042
<|start|><|user|> Counting only Monday through Friday, how many business days are there after June 13, 2018 through June 20, 2018?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 6, 13) end = date(2018, 6, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + ti...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after June 13, 2018 through June 20, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 6, 13)\nend = date(2018, 6, 20)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0077043
A library charges $0.25 per book per day late. What is the fine for 3 books that are 20 days late? In Python: per_day = 0.25 days_late = 20 books = 3 fine = per_day * days_late * books print(f"{fine:.2f}") Execution prints 15.00, as expected. The fine is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0077044
Counting only Monday through Friday, how many business days are there after October 25, 2020 through November 11, 2020? In Python: ```python from datetime import date, timedelta start = date(2020, 10, 25) end = date(2020, 11, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).w...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0077045
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A client paid a $7,500 retainer. The firm has billed 5 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 5 rate = 250 left = retainer - hours * rate # 6250 print(left) ``` On running, it outputs ...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 5 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 5\nra...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "6250", "printed": "6250", "notation": null}
nlprog_det-setting-0077046
At 2% a month (simple), what interest builds on $7,500 over 3 months? ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` # output: 450.00 $450.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0077047
An office budget of $8,000 has expenses of $921, $309. How much of the budget is left? The program: budget = 8000 expenses = [921, 309] left = budget - sum(expenses) # 6770 print(left) The interpreter prints 6770. $6,770 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "6770", "printed": "6770", "notation": null}
nlprog_det-setting-0077048
Copies cost $10 plus $0.10 for each page beyond 0. How much for 40 pages? Program: ```python pages = 40 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 14.0 print(f"{cost:.2f}") ``` The run gives: 14.00 The total is $14.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "14.00", "printed": "14.00", "notation": null}
nlprog_det-setting-0077049
<|start|><|user|> Shipping costs $10 plus $1.20 per pound. What does a 8-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $19.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $1.20 per pound. What does a 8-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $19.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "19.60", "printed": "19.60", "notation": null}
nlprog_det-setting-0077050
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0077051
4 books come back 29 days late, at $0.20 a day each. What is the fine? Computation in Python: ```python per_day = 0.2 days_late = 29 books = 4 fine = per_day * days_late * books # 23.200000000000003 print(f"{fine:.2f}") ``` stdout: 23.20 $23.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "23.20", "printed": "23.20", "notation": null}
nlprog_det-setting-0077052
A 200-mile drive at a steady 30 mph takes how many minutes? Translated to Python: ```python distance = 200 speed = 30 minutes = distance / speed * 60 # 400.0 print(round(minutes)) ``` The script prints 400. The trip takes 400 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0077053
A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 39-page copy cost? Set it up in Python: ```python pages = 39 base = 10 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 17.25 print(f"{cost:.2f}") ``` Printed result: 17.25 The total is $17....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0077054
A clerk's office charges $90 for each filing. Elena submits 13 filings. What is the total fee? The Python version: ```python fee = 90 filings = 13 total = fee * filings # 1170 print(total) ``` On running, it outputs: 1170 The filings cost $1,170 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1170", "printed": "1170", "notation": null}
nlprog_det-setting-0077055
At 1.5% a month (simple), what interest builds on $4,000 over 6 months? In code: balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") Output of the run — 360.00 $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0077056
<|start|><|user|> What is the total rent on a 6-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 6 total = monthly_rent * months # 5100 print(total) ``` # output: 5100 The rent over the term is $5,100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 6\ntotal = monthly_rent * months # 5100\nprint(total)\n```\n# output: 5100\n\nThe rent over the term is $5,100." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0077057
Jamal's scores were 79, 61, 52 and 84. What is the average score? The average score is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0077058
Jonas's scores were 96, 66, 72 and 70. What is the average score? Here is a short program for it. ```python scores = [96, 66, 72, 70] average = sum(scores) // len(scores) # 76 print(average) ``` On running, it outputs: 76 The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0077059
<|start|><|system|> Be concise.<|eot|> <|user|> 273 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 273 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Execution result — ...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "273 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 273\ngroups = 3\nper_group, remainder = divmod(t...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "91 each, 0 left over", "printed": "91 each, 0 left over", "notation": null}
nlprog_det-setting-0077060
A lawyer's fee is 25% of a $12,000 recovery. How large is the fee? One way, in code: recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") This prints 3000.00. The lawyer's fee comes to $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0077061
<|start|><|system|> Be concise.<|eot|> <|user|> With 15% off, what does a $60 jacket cost?<|eot|> <|assistant|> ```python price = 60 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 51.0 print(f"{sale_price:.2f}") ``` # stdout: 51.00 The sale price is $51.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "With 15% off, what does a $60 jacket cost?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 51.0\nprint(f\"{sale_price:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "51.00", "printed": "51.00", "notation": null}
nlprog_det-setting-0077062
4 runs at 400 calories each burn how many calories in total? We write it as a program: ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` Program output — 1600 That burns 1600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0077063
<|start|><|system|> You are a data assistant.<|eot|> <|user|> How many minutes pass from 11:35 AM to 2:54 PM on the same day?<|eot|> <|assistant|> ```python start = 11 * 60 + 35 # 695 end = 14 * 60 + 54 # 894 print(end - start) ``` Python prints: 199 It is 199 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "How many minutes pass from 11:35 AM to 2:54 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 35 # 695\nend = 14 * 60 + 54 # 894\nprint(end - start)\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "199", "printed": "199", "notation": null}
nlprog_det-setting-0077064
<|start|><|user|> Shipping costs $10 plus $0.75 per pound. What does a 5-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 0.75 weight = 5 cost = base + per_pound * weight # 13.75 print(f"{cost:.2f}") ``` The code prints: 13.75 Shipping costs $13.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $0.75 per pound. What does a 5-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 0.75\nweight = 5\ncost = base + per_pound * weight # 13.75\nprint(f\"{cost:.2f}\")\n```\nThe code prints: 13.7...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "13.75", "printed": "13.75", "notation": null}
nlprog_det-setting-0077065
Flooring at $12/sq ft for a 8 ft × 11 ft room costs how much? It costs $1,056.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1056", "printed": "1056", "notation": null}
nlprog_det-setting-0077066
A $1,500 security deposit has deductions of $60 and $150. How much is refunded? Translated to Python: ```python deposit = 1500 deductions = [60, 150] refund = deposit - sum(deductions) # 1290 print(refund) ``` Run it and it prints 1290. The refund is $1,290.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1290", "printed": "1290", "notation": null}
nlprog_det-setting-0077067
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Meals are $64 per day and lodging $175 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> That comes to $1,020.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Meals are $64 per day and lodging $175 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "That comes to $1,020." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "1020", "printed": "1020", "notation": null}
nlprog_det-setting-0077068
<|start|><|user|> Counting the first and last day, how many days are there from March 15, 2028 through April 3, 2028?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 3, 15) # datetime.date(2028, 3, 15) last = date(2028, 4, 3) # datetime.date(2028, 4, 3) days = (last - first).days + 1 # 20...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from March 15, 2028 through April 3, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 3, 15) # datetime.date(2028, 3, 15)\nlast = date(2028, 4, 3) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0077069
<|start|><|user|> Each of Sofia's runs burns 350 calories. How many calories over 4 runs?<|eot|> <|assistant|> ```python per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) ``` # printed: 1400 1400 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Sofia's runs burns 350 calories. How many calories over 4 runs?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 4\ntotal = per_session * sessions # 1400\nprint(total)\n```\n# printed: 1400\n\n1400 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0077070
<|start|><|user|> Starting from $5,000, the team spends $319, $2,063, $3,223. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [319, 2063, 3223] left = budget - sum(expenses) # -605 print(left) ``` When run, it prints: -605 -$605 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $319, $2,063, $3,223. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [319, 2063, 3223]\nleft = budget - sum(expenses) # -605\nprint(left)\n```\nWhen run, it prints: -605\n\n-$605 is le...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "-605", "printed": "-605", "notation": null}
nlprog_det-setting-0077071
A client paid a $10,000 retainer. The firm has billed 12 hours at $150 per hour. How much of the retainer is left? A Python solution: ```python retainer = 10000 hours = 12 rate = 150 left = retainer - hours * rate # 8200 print(left) ``` stdout: 8200 The remaining balance is $8,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8200", "printed": "8200", "notation": null}
nlprog_det-setting-0077072
After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python does the arithmetic: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 3 # 6000.0 print(f"{per_client:.2f}") ``` Result...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0077073
<|start|><|user|> Walls total 586 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 586 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` Result: 2 Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 586 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 586\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nResult:\n2\n\nBuy 2 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0077074
<|start|><|user|> What is a 22% tip on a $33.18 bill?<|eot|> <|assistant|> ```python bill = 33.18 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 7.2996 print(f"{tip:.2f}") ``` Output — 7.30 The tip is $7.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 22% tip on a $33.18 bill?" }, { "role": "assistant", "content": "```python\nbill = 33.18\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 7.2996\nprint(f\"{tip:.2f}\")\n```\nOutput — 7.30\n\nThe tip is $7.30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "7.30", "printed": "7.30", "notation": null}
nlprog_det-setting-0077075
<|start|><|user|> Walls total 413 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 413 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "2 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0077076
<|start|><|user|> Split $4,445 between Jamal and Rafael in the ratio 3 to 4. What is Jamal's share?<|eot|> <|assistant|> ```python total = 4445 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1905 print(share_a) ``` # execution result: 1905 Jamal gets $1,905.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,445 between Jamal and Rafael in the ratio 3 to 4. What is Jamal's share?" }, { "role": "assistant", "content": "```python\ntotal = 4445\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1905\nprint(share_a)\n```\n# execution res...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1905", "printed": "1905", "notation": null}
nlprog_det-setting-0077077
<|start|><|user|> A chair costs $250. It is 30% off. What is the sale price?<|eot|> <|assistant|> ```python price = 250 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 175.0 print(f"{sale_price:.2f}") ``` Executed, it shows 175.00. The sale price is $175.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A chair costs $250. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 250\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 175.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows 175.00.\n\nThe s...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0077078
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|e...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0077079
<|start|><|user|> If a 3-year limitations period starts on February 13, 2015, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2015, 2, 13) # datetime.date(2015, 2, 13) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 2, 13) print(expires.is...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on February 13, 2015, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2015, 2, 13) # datetime.date(2015, 2, 13)\nyears = 3\nexpires = accrued.replace(year=accrued.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2018-02-13", "printed": "2018-02-13", "notation": null}
nlprog_det-setting-0077080
What day of the week is December 1, 2011? A Python solution: ```python from datetime import date hearing = date(2011, 12, 1) # datetime.date(2011, 12, 1) print(hearing.strftime("%A")) ``` Running this gives: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0077081
<|start|><|user|> A recipe for 8 people uses 200 grams of flour. How many grams are needed for 12 people?<|eot|> <|assistant|> ```python grams = 200 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 300 print(scaled) ``` Run result = 300 300 grams of flour are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 200 grams of flour. How many grams are needed for 12 people?" }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\nRun result = 300\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0077082
How many days are there from March 4, 2020 to May 26, 2020? Here is a short program for it. from datetime import date first = date(2020, 3, 4) # datetime.date(2020, 3, 4) second = date(2020, 5, 26) # datetime.date(2020, 5, 26) print((second - first).days) Run result — 83 There are 83 days between th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0077083
Amir has 5 documents to file, and each filing costs $90. How much are the filing fees in total? Python makes this quick: ```python fee = 90 filings = 5 total = fee * filings # 450 print(total) ``` It prints 450. $450 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0077084
A clerk's office charges $75 for each filing. Yara submits 3 filings. What is the total fee? A short script: fee = 75 filings = 3 total = fee * filings # 225 print(total) stdout = 225 The filings cost $225 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0077085
<|start|><|user|> A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 15 quorum = math.ceil(members * 3 / 5) # 9 print(quorum) ``` This prints 9. 9 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 15\nquorum = math.ceil(members * 3 / 5) # 9\nprint(quorum)\n```\nThis prints 9.\n\n9 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0077086
<|start|><|user|> How many 2-foot square tiles cover a 12 ft by 4 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 12 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 12 print(tiles) ``` Shell output — 12 It takes 12 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 12 ft by 4 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 12\nwidth = 4\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 12\nprint(tiles)\n```\nShell output — 12\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0077087
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A pack o...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
195
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0077088
Nikhil's scores were 64, 91, 76 and 73. What is the average score? Python: ```python scores = [64, 91, 76, 73] average = sum(scores) // len(scores) # 76 print(average) ``` Printed result: 76 The mean is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0077089
A 12-month warranty starts on December 12, 2021. On what date does it end? In code: ```python from datetime import date start = date(2021, 12, 12) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed: 2022-12...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-12-12", "printed": "2022-12-12", "notation": null}
nlprog_det-setting-0077090
At a 7% tax rate, what is the tax on $790.41? The tax is $55.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "55.33", "printed": "55.33", "notation": null}
nlprog_det-setting-0077091
After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 2 # 21000.0 print(f"{per_client:.2f}") ``` It outputs: 21000.00 Each client...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0077092
After an initial $3,000, the remainder of a $24,000 grant is paid in 4 equal parts. What is each part? ```python grant = 24000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 5250.0 print(f"{each:.2f}") ``` The code prints: 5250.00 Each installment is $5,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0077093
What percentage of $4,000 is $700? Here is the program. ```python budget = 4000 spent = 700 percent = spent / budget * 100 # 17.5 print(round(percent, 1)) ``` When run, it prints 17.5. That is 17.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "17.5", "printed": "17.5", "notation": null}
nlprog_det-setting-0077094
Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 5,000 gallons? A Python solution: ```python base = 18 rate = 5.1 used = 5 free = 2 bill = base + rate * max(0, used - free) # 33.3 print(f"{bill:.2f}") ``` The printout reads: 33.30 The bill is $33.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "33.30", "printed": "33.30", "notation": null}
nlprog_det-setting-0077096
Fines run at $250 per day up to a maximum of $2,500. How much after 21 days? Computation in Python: ```python per_day = 250 days = 21 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Output: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0077097
<|start|><|user|> Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons?<|eot|> <|assistant|> base = 15 rate = 4.75 used = 9 free = 0 bill = base + rate * max(0, used - free) # 57.75 print(f"{bill:.2f}") The code prints 57.75. The bill is $57.75.<...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons?" }, { "role": "assistant", "content": " base = 15\n rate = 4.75\n used = 9\n free = 0\n bill = base + rate * max(0, used - free) # 57.75\n print(...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "57.75", "printed": "57.75", "notation": null}
nlprog_det-setting-0077098
Dara lends $5,000 at 4% simple interest per year for 2 years. How much interest is earned? The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0077099
A quorum is 1/3 of the 40 members, rounded up. How many members make a quorum? As a program: import math members = 40 quorum = math.ceil(members * 1 / 3) # 14 print(quorum) Running this gives: 14 14 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0077100
How many weekdays (Monday to Friday) fall after February 13, 2027 up to and including March 15, 2027? 21 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "21", "printed": "21", "notation": null}