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-0062662
<|start|><|user|> A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` # printed: 24000.00 The fee is $24,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 24000.0\nprint(f\"{fee:.2f}\")\n```\n# printed: 24000.00\n\nThe fee is $24,000.00....
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0062663
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay? Let's compute it with Python. ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 24.0 print(f"{each:.2f}") ``` The program prints 24.00. Each person pays $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0062664
A $2,400 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? The computation: ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "76.67", "printed": "76.67", "notation": null}
nlprog_det-setting-0062665
A customer buys 6 clipboards at $22 each, 3 scissors at $16 each and pays with $200. How much change is due? Written as code: ```python items = [(6, 22), (3, 16)] total = sum(q * p for q, p in items) # 180 paid = 200 change = paid - total # 20 print(change) ``` The script prints 20, as expected. The change is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0062666
<|start|><|user|> A pack of 5 markers sells for $65. What does each cost?<|eot|> <|assistant|> ```python total = 65 count = 5 per_item = total // count # 13 print(per_item) ``` (Out: 13) The unit price is $13.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 markers sells for $65. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 65\ncount = 5\nper_item = total // count # 13\nprint(per_item)\n```\n(Out: 13)\n\nThe unit price is $13." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0062667
<|start|><|system|> Functions: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A penalty of $50 a day accrues...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0062668
Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? As Python: revenue = 16500 costs = 12500 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 24.242424242424242 print(round(margin, 1)) That prints: 24.2 The margin is 24.2%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0062669
Farah was born on September 3, 1973. How old is Farah on March 10, 2025? A Python solution: ```python from datetime import date born = date(1973, 9, 3) # datetime.date(1973, 9, 3) on = date(2025, 3, 10) # datetime.date(2025, 3, 10) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 51 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0062670
Notice was given on July 1, 2021. The notice period is 120 days. When does it run out? Computation in Python: ```python from datetime import date, timedelta start = date(2021, 7, 1) # datetime.date(2021, 7, 1) end = start + timedelta(days=120) # datetime.date(2021, 10, 29) print(end.isoformat()) ``` Run output — 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2021-10-29", "printed": "2021-10-29", "notation": null}
nlprog_det-setting-0062671
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 7-page copy cost? Set it up in Python: ```python pages = 7 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` On running, it outputs: 5.00 The copy costs $5.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0062672
Express 340 hours in days and hours. Python does the arithmetic: ```python hours = 340 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` stdout = 14 days and 4 hours 340 hours is 14 days and 4 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "14 days and 4 hours", "printed": "14 days and 4 hours", "notation": null}
nlprog_det-setting-0062673
After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python does the arithmetic: ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 print(f"{per_client:.2f}") ``` The sc...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0062674
A customer buys 2 file boxes at $2 each, 2 headsets at $10 each, 6 mugs at $7 each, 1 folders at $27 each and pays with $100. How much change is due? The Python version: ```python items = [(2, 2), (2, 10), (6, 7), (1, 27)] total = sum(q * p for q, p in items) # 93 paid = 100 change = paid - total # 7 print(change) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0062675
<|start|><|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Interpreter output — 32 It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nInterpreter output — 32\n\nIt equals 32 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0062676
<|start|><|user|> A trial runs from December 1, 2028 to December 22, 2028, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 12, 1) # datetime.date(2028, 12, 1) last = date(2028, 12, 22) # datetime.date(2028, 12, 22) days = (last - first).d...
chat
[ { "role": "user", "content": "A trial runs from December 1, 2028 to December 22, 2028, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 12, 1) # datetime.date(2028, 12, 1)\nlast = date(2028, 12, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0062677
Sales went from 400 to 500. What is the percent change? Set it up in Python: ```python old = 400 new = 500 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` The printout reads: 25 The change is 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0062678
<|start|><|user|> Ana was born on October 3, 1991. How old is Ana on March 23, 2023?<|eot|> <|assistant|> ```python from datetime import date born = date(1991, 10, 3) # datetime.date(1991, 10, 3) on = date(2023, 3, 23) # datetime.date(2023, 3, 23) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
chat
[ { "role": "user", "content": "Ana was born on October 3, 1991. How old is Ana on March 23, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1991, 10, 3) # datetime.date(1991, 10, 3)\non = date(2023, 3, 23) # datetime.date(2023, 3, 23)\nage = on.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0062679
A $1,200 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? A few lines of Python do it: principal = 1200 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 120.0 paymen...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "55.00", "printed": "55.00", "notation": null}
nlprog_det-setting-0062680
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after August 11, 2024 up to and including August 16, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 8, 11) end = date(2024, 8, 16) count = 0 for k in range(1, (end -...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after August 11, 2024 up to and including August 16, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta...
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0062681
Goods bought on October 6, 2027 carry a 12-month warranty. When does it expire? The warranty ends on October 6, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2028-10-06", "printed": "2028-10-06", "notation": null}
nlprog_det-setting-0062682
<|start|><|user|> 7 rulers cost $12 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 7 unit_price = 12 subtotal = quantity * unit_price # 84 total = subtotal * (1 + 8 / 100) # 90.72 print(f"{total:.2f}") ``` The program outputs: 90.72 The invoice total is $90.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 rulers cost $12 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 7\nunit_price = 12\nsubtotal = quantity * unit_price # 84\ntotal = subtotal * (1 + 8 / 100) # 90.72\nprint(f\"{total:.2f}\")\n```\nThe prog...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "90.72", "printed": "90.72", "notation": null}
nlprog_det-setting-0062683
<|start|><|user|> Counting the first and last day, how many days are there from April 22, 2027 through April 28, 2027?<|eot|> <|assistant|> from datetime import date first = date(2027, 4, 22) # datetime.date(2027, 4, 22) last = date(2027, 4, 28) # datetime.date(2027, 4, 28) days = (last - first).days ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from April 22, 2027 through April 28, 2027?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2027, 4, 22) # datetime.date(2027, 4, 22)\n last = date(2027, 4, 28) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0062684
Yusuf buys 3 boxes of 8 tape rolls each and gives away 7 tape rolls. How many tape rolls are left? Python version: ```python boxes = 3 per_box = 8 given_away = 7 left = boxes * per_box - given_away # 17 print(left) ``` The program prints 17, as expected. 17 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0062685
Femi has 19 documents to file, and each filing costs $75. How much are the filing fees in total? Python version: ```python fee = 75 filings = 19 total = fee * filings # 1425 print(total) ``` Executing it gives 1425. $1,425 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1425", "printed": "1425", "notation": null}
nlprog_det-setting-0062686
Rent of $900 goes up 8%. What is the new rent? Written as code: ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` # stdout: 972.00 It rises to $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0062687
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` Run result — 313 Break-even is 313 u...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 20\nvariable = 12\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0062688
Convert 20 °C to Fahrenheit. ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Python prints 68. That is 68 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0062689
At a 4% tax rate, what is the tax on $533.23? As Python: ```python price = 533.23 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 21.3292 print(f"{tax:.2f}") ``` stdout — 21.33 $21.33 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "21.33", "printed": "21.33", "notation": null}
nlprog_det-setting-0062690
Find the mean of these test scores: 92, 66, 61, 75, 66, 86 and 72. We can compute it in Python. ```python scores = [92, 66, 61, 75, 66, 86, 72] average = sum(scores) // len(scores) print(average) ``` # printed result: 74 The mean is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0062691
A 90-mile drive at a steady 45 mph takes how many minutes? The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0062692
What simple interest does $8,000 earn at 8% a year over 3 years? It earns $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0062693
<|start|><|user|> A 4 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 4 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 52 print(tiles) ``` Python prints: 52 It takes 52 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 4\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 52\nprint(tiles)\n```\nPython print...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0062694
At $28.36 an hour, what does 38 hours of work pay? Here's the code. ```python rate = 28.36 hours = 38 earnings = rate * hours # 1077.68 print(f"{earnings:.2f}") ``` # out: 1077.68 The pay is $1,077.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1077.68", "printed": "1077.68", "notation": null}
nlprog_det-setting-0062695
A recipe for 4 people uses 100 grams of pasta. How many grams are needed for 12 people? The program: ```python grams = 100 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 300 print(scaled) ``` Executing it gives 300, as expected. 300 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0062696
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> 781 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> It takes 32 boxes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "781 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 32 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0062697
How many of 239 votes make 60% (round up)? ```python import math voters = 239 needed = math.ceil(voters * 60 / 100) # 144 print(needed) ``` Printed: 144 At least 144 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0062698
At $0.62 per mile, what is the reimbursement for 247 miles? In Python: ```python miles = 247 rate = 0.62 reimbursement = miles * rate # 153.14 print(f"{reimbursement:.2f}") ``` It outputs 153.14. The reimbursement is $153.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "153.14", "printed": "153.14", "notation": null}
nlprog_det-setting-0062699
From a $2,500 retainer, 5 hours at $250/hour have been drawn. What remains? $1,250 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0062700
With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal. Let's compute it with Python. ```python revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) ``` Interpreter output — 4.8 Profit...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0062701
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A $1,000 security deposit has deductions of $75 and $60. How much is refunded?<|eot|> <|assistant|> The refund is $865.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A $1,000 security deposit has deductions of $75 and $60. How much is refunded?" }, { "role": "assistant", "content": "The refund is $865." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "865", "printed": "865", "notation": null}
nlprog_det-setting-0062702
<|start|><|user|> An attorney bills 4 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 4 rate = 410 bill = hours * rate # 1640 print(f"{bill:.2f}") ``` This prints: 1640.00 The bill is $1,640.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 4 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 410\nbill = hours * rate # 1640\nprint(f\"{bill:.2f}\")\n```\nThis prints: 1640.00\n\nThe bill is $1,640.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1640.00", "printed": "1640.00", "notation": null}
nlprog_det-setting-0062703
<|start|><|user|> A recipe for 2 people uses 240 grams of lentils. How many grams are needed for 3 people?<|eot|> <|assistant|> grams = 240 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 360 print(scaled) The run gives: 360 360 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 240 grams of lentils. How many grams are needed for 3 people?" }, { "role": "assistant", "content": " grams = 240\n serves = 2\n needed_for = 3\n scaled = grams * needed_for // serves # 360\n print(scaled)\nThe run gives: 3...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0062704
Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 15,000 gallons? Code: ```python base = 12 rate = 4.2 used = 15 free = 3 bill = base + rate * max(0, used - free) # 62.400000000000006 print(f"{bill:.2f}") ``` # program output: 62.40 The bill is $62.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "62.40", "printed": "62.40", "notation": null}
nlprog_det-setting-0062705
<|start|><|user|> Reza has 15 documents to file, and each filing costs $90. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 90 filings = 15 total = fee * filings # 1350 print(total) ``` Output = 1350 $1,350 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Reza has 15 documents to file, and each filing costs $90. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 90\nfilings = 15\ntotal = fee * filings # 1350\nprint(total)\n```\nOutput = 1350\n\n$1,350 in filing fees." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0062706
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 80-page copy cost?<|eot|> <|assistant|> ```python pages = 80 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 11.0 print(f"{cost:.2f}") ``` It outputs 11.00. The tota...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 80-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 80\nbase = 5\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0062707
A 28 lb package ships at $8 base plus $1.50/lb. What is the charge? ```python base = 8 per_pound = 1.5 weight = 28 cost = base + per_pound * weight # 50.0 print(f"{cost:.2f}") ``` This prints 50.00, as expected. Shipping costs $50.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0062708
Fines run at $50 per day up to a maximum of $1,000. How much after 39 days? We write it as a program: ```python per_day = 50 days = 39 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` The code prints 1000. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0062709
<|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": "interpreter", "description": "Runs a short Python sni...
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\"]}}\n{\"...
nlprog_det
setting
original
null
deterministic
[]
[]
356
{"gold": "2031-10-26", "printed": "2031-10-26", "notation": null}
nlprog_det-setting-0062710
Attendance was 40 out of 50. Express it as a percent. 80.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0062711
Divide 45 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 45 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program prints 15 each, 0 left over. 15 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "15 each, 0 left over", "printed": "15 each, 0 left over", "notation": null}
nlprog_det-setting-0062712
How many days are there from July 2, 2021 to November 6, 2021? Let's compute it with Python. from datetime import date first = date(2021, 7, 2) # datetime.date(2021, 7, 2) second = date(2021, 11, 6) # datetime.date(2021, 11, 6) print((second - first).days) Console: 127 There are 127 days between the...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "127", "printed": "127", "notation": null}
nlprog_det-setting-0062713
<|start|><|system|> Functions: [{"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|> Straight-line depreciation: cost $18...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0062714
To read 585 pages in 15 days, how many pages per day are needed? Computing it: ```python pages = 585 days = 15 per_day = pages // days # 39 print(per_day) ``` The program prints 39. That is 39 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0062716
<|start|><|user|> Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 480.0 payment = (principal + interest) / months # 54...
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 8 / 100 # 0.08\nmonths = 12\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0062717
<|start|><|user|> A hearing lasted 1 hours and 44 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 44 total_minutes = hours * 60 + minutes # 104 print(total_minutes) ``` Output — 104 That is 104 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing lasted 1 hours and 44 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 44\ntotal_minutes = hours * 60 + minutes # 104\nprint(total_minutes)\n```\nOutput — 104\n\nThat is 104 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0062718
<|start|><|user|> How much sales tax is charged on a $784.77 purchase at 8%?<|eot|> <|assistant|> ```python price = 784.77 tax_rate = 8 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Interpreter output: 62.78 The tax is $62.78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $784.77 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 784.77\ntax_rate = 8 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nInterpreter output: 62.78\n\nThe tax is $62.78." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "62.78", "printed": "62.78", "notation": null}
nlprog_det-setting-0062720
A quorum is 2/3 of the 21 members, rounded up. How many members make a quorum? Let the code do the arithmetic: ```python import math members = 21 quorum = math.ceil(members * 2 / 3) # 14 print(quorum) ``` Console output — 14 That is 14 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0062721
Notice was given on February 5, 2027. The notice period is 60 days. When does it run out? Program: ```python from datetime import date, timedelta start = date(2027, 2, 5) # datetime.date(2027, 2, 5) end = start + timedelta(days=60) # datetime.date(2027, 4, 6) print(end.isoformat()) ``` # execution result: 2027-04-06...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2027-04-06", "printed": "2027-04-06", "notation": null}
nlprog_det-setting-0062722
<|start|><|user|> Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") ``` The code prints: 2500.0...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0062723
Printing costs 15 cents a page. What does it cost to print 177 copies of a 36-page handout? Code: ```python pages = 36 copies = 177 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 955.8 print(f"{cost:.2f}") ``` (Printed result: 955.80) The job costs $955.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "955.80", "printed": "955.80", "notation": null}
nlprog_det-setting-0062724
Goods bought on April 4, 2022 carry a 24-month warranty. When does it expire? One way, in code: ```python from datetime import date start = date(2022, 4, 4) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execut...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2024-04-04", "printed": "2024-04-04", "notation": null}
nlprog_det-setting-0062725
Copies cost $15 plus $0.50 for each page beyond 10. How much for 105 pages? pages = 105 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 62.5 print(f"{cost:.2f}") Execution result: 62.50 The total is $62.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "62.50", "printed": "62.50", "notation": null}
nlprog_det-setting-0062726
Copies cost $10 plus $0.25 for each page beyond 0. How much for 31 pages? The total is $17.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "17.75", "printed": "17.75", "notation": null}
nlprog_det-setting-0062727
Abel's scores were 81, 90, 97, 87, 99 and 74. What is the average score? The average score is 88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0062728
A recipe for 8 people uses 240 grams of rice. How many grams are needed for 6 people? One way, in code: ```python grams = 240 serves = 8 needed_for = 6 scaled = grams * needed_for // serves print(scaled) ``` (Execution result: 180) Use 180 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0062730
3 claimants share a $7,350 settlement equally. What is each share? Python, step by step: settlement = 7350 parties = 3 share = settlement // parties # 2450 print(share) Run it and it prints 2450. Each party receives $2,450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0062731
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Lena buys 9 boxes of 10 badges each and gives away 13 badges. How many badges are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 10 given_away = 13 left = boxes * per_box - given_away # 77 print(left) ``` Executed, it shows: 77 That leaves 7...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Lena buys 9 boxes of 10 badges each and gives away 13 badges. How many badges are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 10\ngiven_away = 13\nleft = ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0062732
A 8% increase is applied to $2,200 monthly rent. What is the new amount? ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` Interpreter output — 2376.00 The new rent is $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0062733
3 books come back 19 days late, at $0.25 a day each. What is the fine? In code: ```python per_day = 0.25 days_late = 19 books = 3 fine = per_day * days_late * books # 14.25 print(f"{fine:.2f}") ``` Output of the run — 14.25 The fine is $14.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "14.25", "printed": "14.25", "notation": null}
nlprog_det-setting-0062734
A 6-month warranty starts on August 27, 2027. On what date does it end? We can compute it in Python. ```python from datetime import date start = date(2027, 8, 27) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2028-02-27", "printed": "2028-02-27", "notation": null}
nlprog_det-setting-0062735
A 12 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Here's the code. ```python import math length = 12 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 132 print(tiles) ``` The script prints 132. 132 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0062736
<|start|><|user|> Under a 25% contingency agreement, what fee is owed on a $60,000 award?<|eot|> <|assistant|> ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` Output — 15000.00 The lawyer's fee comes to $15,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $60,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 15000.0\nprint(f\"{fee:.2f}\")\n```\nOutput — 15000.00\n\nThe lawyer's fee c...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0062737
What is a 18% tip on a $100.35 bill? The Python version: ```python bill = 100.35 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 18.063 print(f"{tip:.2f}") ``` When run, it prints 18.06, as expected. Leave $18.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "18.06", "printed": "18.06", "notation": null}
nlprog_det-setting-0062738
<|start|><|user|> A lease runs for 6 months at $2,875 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> In total, $17,250 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $2,875 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "In total, $17,250 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "17250", "printed": "17250", "notation": null}
nlprog_det-setting-0062739
What simple interest does $20,000 earn at 4% a year over 3 years? Python, step by step: ```python principal = 20000 rate = 4 / 100 years = 3 interest = principal * rate * years print(f"{interest:.2f}") ``` (Program output: 2400.00) The interest is $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0062740
<|start|><|user|> How many units at $25 each (variable cost $17) cover $6,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) print(units) ``` Running this gives 750. 750 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $17) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 25\nvariable = 17\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nRunning this gives 7...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0062741
6 friends split a $96 bill plus a 15% tip evenly. How much does each pay? Computing it: bill = 96 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 18.4 print(f"{each:.2f}") Run output — 18.40 The share is $18.40 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "18.40", "printed": "18.40", "notation": null}
nlprog_det-setting-0062742
A 37 lb package ships at $5 base plus $2.50/lb. What is the charge? A short script: base = 5 per_pound = 2.5 weight = 37 cost = base + per_pound * weight # 97.5 print(f"{cost:.2f}") # output: 97.50 Shipping costs $97.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "97.50", "printed": "97.50", "notation": null}
nlprog_det-setting-0062743
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours? Here is the program. ```python rate = 18.5 hours = 54 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Execution result — 1128.50 Joelle earns $1,128.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1128.50", "printed": "1128.50", "notation": null}
nlprog_det-setting-0062744
The meal allowance is $69 per day. What is it for 9 days? Script: days = 9 meal_rate = 69 total = days * meal_rate # 621 print(total) Printed result: 621 The allowance is $621.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "621", "printed": "621", "notation": null}
nlprog_det-setting-0062745
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> $2,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|> <|assistant|> It is worth $2,208.16.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "$2,000 is invested at 2% compounded yearly. What is it worth after 5 years?" }, { "role": "assistant", "content": "It is worth $2,208.16." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0062746
Tobias and Yoko share $3,150 in the ratio 2:5. How much does Tobias get? ```python total = 3150 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 900 print(share_a) ``` Execution prints: 900 Tobias gets $900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0062747
Copies cost $15 plus $0.10 for each page beyond 20. How much for 91 pages? Python code: ```python pages = 91 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 22.1 print(f"{cost:.2f}") ``` Running it prints 22.10. The copy costs $22.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "22.10", "printed": "22.10", "notation": null}
nlprog_det-setting-0062748
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Equal monthly payments repay $9,000 plus 10% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> principal = 9000 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 1...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Equal monthly payments repay $9,000 plus 10% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": " principal = 9000\n annual_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "825.00", "printed": "825.00", "notation": null}
nlprog_det-setting-0062749
A 9 lb package ships at $10 base plus $2.00/lb. What is the charge? A few lines of Python do it: base = 10 per_pound = 2.0 weight = 9 cost = base + per_pound * weight # 28.0 print(f"{cost:.2f}") Running this gives 28.00. The charge is $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0062750
An invoice lists 8 calendars at $12 each, plus 5% sales tax. What is the invoice total? Translated to Python: ```python quantity = 8 unit_price = 12 subtotal = quantity * unit_price # 96 total = subtotal * (1 + 5 / 100) # 100.80000000000001 print(f"{total:.2f}") ``` Shell output — 100.80 The invoice total is $100.8...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "100.80", "printed": "100.80", "notation": null}
nlprog_det-setting-0062751
Counting only Monday through Friday, how many business days are there after December 27, 2028 through January 13, 2029? 12 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0062752
4 claimants share a $7,348 settlement equally. What is each share? A few lines of Python do it: ```python settlement = 7348 parties = 4 share = settlement // parties # 1837 print(share) ``` (Run result: 1837) Each share is $1,837.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1837", "printed": "1837", "notation": null}
nlprog_det-setting-0062753
Equal monthly payments repay $6,000 plus 8% simple yearly interest over 36 months. How large is a payment? ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 206.66666666666666 print(f"{payment:.2f...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "206.67", "printed": "206.67", "notation": null}
nlprog_det-setting-0062754
A appointment starts at 8:20 AM and lasts 75 minutes. When does it end? Programmatically: ```python start = 8 * 60 + 20 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Out = 9:35 AM The appointment finishes at 9:35 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "9:35 AM", "printed": "9:35 AM", "notation": null}
nlprog_det-setting-0062755
Prorate $900 of monthly rent for 9 days of a 30-day month. ```python rent = 900 days_in_month = 30 days_occupied = 9 prorated = rent * days_occupied / days_in_month # 270.0 print(f"{prorated:.2f}") ``` This prints: 270.00 The prorated rent is $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0062756
4 claimants share a $15,000 settlement equally. What is each share? Python makes this quick: ```python settlement = 15000 parties = 4 share = settlement // parties # 3750 print(share) ``` Printed result — 3750 Each party receives $3,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0062757
Parking is $2 per hour with a daily maximum of $24. What do 2 hours cost? Translated to Python: ```python rate = 2 hours = 2 daily_max = 24 cost = min(rate * hours, daily_max) # 4 print(cost) ``` (Console output: 4) The charge is $4.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0062758
A desk lamp costs $80. It is 30% off. What is the sale price? Translated to Python: price = 80 discount = 30 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") Out: 56.00 The sale price is $56.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0062759
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? A short script: ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` Run result = 1.4 The margin is 1.4%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0062760
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Starting from $25,000, the team spends $3,753, $2,356, $3,327. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3753, 2356, 3327] left = budget - sum(expenses) # 15564 print(left) ``` # program output: 15564 $15,564 is left.<|eot|> <...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Starting from $25,000, the team spends $3,753, $2,356, $3,327. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3753, 2356, 3327]\nleft = budget - su...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "15564", "printed": "15564", "notation": null}
nlprog_det-setting-0062761
<|start|><|user|> Counting the first and last day, how many days are there from August 21, 2027 through September 2, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 8, 21) # datetime.date(2027, 8, 21) last = date(2027, 9, 2) # datetime.date(2027, 9, 2) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from August 21, 2027 through September 2, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 8, 21) # datetime.date(2027, 8, 21)\nlast = date(2027, 9, 2) # ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0062762
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0062763
What average speed covers 441 miles in 1 hours? ```python distance = 441 hours = 1 speed = distance / hours # 441.0 print(round(speed)) ``` The code prints: 441 It averages 441 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "441", "printed": "441", "notation": null}
nlprog_det-setting-0062764
At $19.53 an hour, what does 36 hours of work pay? As Python: ```python rate = 19.53 hours = 36 earnings = rate * hours # 703.08 print(f"{earnings:.2f}") ``` When run, it prints: 703.08 The pay is $703.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "703.08", "printed": "703.08", "notation": null}