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-0063837
One can of paint covers 300 square feet. How many cans are needed for 898 square feet of wall? Coded up: import math area = 898 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) (Run result: 3) Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0063838
A $210 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share? Coded up: ```python bill = 210 tip_rate = 15 / 100 people = 2 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` What it prints: 120.75 Each person pays $120.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "120.75", "printed": "120.75", "notation": null}
nlprog_det-setting-0063839
<|start|><|user|> A hearing starts at 11:30 AM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> ```python start = 11 * 60 + 30 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` That prints 1:00 PM. The hearing finishes at 1:00 PM....
chat
[ { "role": "user", "content": "A hearing starts at 11:30 AM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 30\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0063840
21 copies of a 47-page packet are printed at $0.05 per page. What is the cost? Here's the code. pages = 47 copies = 21 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 49.35 print(f"{cost:.2f}") It prints 49.35. Printing costs $49.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "49.35", "printed": "49.35", "notation": null}
nlprog_det-setting-0063841
Buying 6 toner kits at $4 each, 6 folders at $20 each, 1 calendars at $29 each, 4 chairs at $4 each, someone hands over $200. What change comes back? Computation in Python: ```python items = [(6, 4), (6, 20), (1, 29), (4, 4)] total = sum(q * p for q, p in items) # 189 paid = 200 change = paid - total # 11 print(chan...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0063842
<|start|><|user|> A hall has 6 rows of 18 seats, and 31 seats are empty. How many people are seated?<|eot|> <|assistant|> rows = 6 per_row = 18 empty = 31 seated = rows * per_row - empty # 77 print(seated) Printed: 77 77 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 6 rows of 18 seats, and 31 seats are empty. How many people are seated?" }, { "role": "assistant", "content": " rows = 6\n per_row = 18\n empty = 31\n seated = rows * per_row - empty # 77\n print(seated)\nPrinted: 77\n\n77 people are seate...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0063843
<|start|><|user|> 128 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 128 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed = 16 each, 0 left over The answer: 16 ea...
chat
[ { "role": "user", "content": "128 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 128\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "16 each, 0 left over", "printed": "16 each, 0 left over", "notation": null}
nlprog_det-setting-0063844
After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? In code: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` # output: 9600.00 Each c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0063845
Water costs $20 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 25,000 gallons? Python makes this quick: ```python base = 20 rate = 4.2 used = 25 free = 2 bill = base + rate * max(0, used - free) # 116.60000000000001 print(f"{bill:.2f}") ``` The interpreter prints: 116.60 $116.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "116.60", "printed": "116.60", "notation": null}
nlprog_det-setting-0063846
Counting only Monday through Friday, how many business days are there after March 20, 2020 through April 7, 2020? Set it up in Python: ```python from datetime import date, timedelta start = date(2020, 3, 20) end = date(2020, 4, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063847
Someone works 24 hours at $19.78 per hour. What are the earnings? The Python version: ```python rate = 19.78 hours = 24 earnings = rate * hours # 474.72 print(f"{earnings:.2f}") ``` Printed result: 474.72 That earns $474.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "474.72", "printed": "474.72", "notation": null}
nlprog_det-setting-0063848
How many minutes pass from 8:29 AM to 1:50 PM on the same day? The computation: ```python start = 8 * 60 + 29 # 509 end = 13 * 60 + 50 # 830 print(end - start) ``` Execution result — 321 It is 321 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "321", "printed": "321", "notation": null}
nlprog_det-setting-0063849
A meal costs $87.13. How much is a 10% tip? The Python version: ```python bill = 87.13 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 8.713 print(f"{tip:.2f}") ``` This prints: 8.71 Leave $8.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "8.71", "printed": "8.71", "notation": null}
nlprog_det-setting-0063850
A shift runs from 9:04 AM to 12:01 PM. How long is it in minutes? Python, step by step: ```python start = 9 * 60 + 4 # 544 end = 12 * 60 + 1 # 721 print(end - start) ``` It prints 177. 177 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "177", "printed": "177", "notation": null}
nlprog_det-setting-0063851
Malik drove 493 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? Here is the program. ```python miles = 493 rate = 0.58 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Executing it gives: 285.94 The reimbursement is $285.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "285.94", "printed": "285.94", "notation": null}
nlprog_det-setting-0063853
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Elena buys 10 boxes of 25 folders each and gives away 3 folders. How many folders are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 25 given_away = 3 left = boxes * per_box - given_away # 247 print(left) ``` stdout = 247 That l...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Elena buys 10 boxes of 25 folders each and gives away 3 folders. How many folders are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 25\ngiven_a...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0063854
Under a 25% contingency agreement, what fee is owed on a $60,000 award? The lawyer's fee comes to $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0063855
<|start|><|user|> A workshop lasted 3 hours and 14 minutes. How many minutes is that?<|eot|> <|assistant|> That is 194 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 3 hours and 14 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 194 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "194", "printed": "194", "notation": null}
nlprog_det-setting-0063856
How many days are there from November 7, 2021 to November 18, 2022? A Python solution: ```python from datetime import date first = date(2021, 11, 7) # datetime.date(2021, 11, 7) second = date(2022, 11, 18) # datetime.date(2022, 11, 18) print((second - first).days) ``` It prints 376. It is 376 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "376", "printed": "376", "notation": null}
nlprog_det-setting-0063857
Chen buys 8 boxes of 12 clipboards each and gives away 5 clipboards. How many clipboards are left? 91 clipboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "91", "printed": "91", "notation": null}
nlprog_det-setting-0063858
At an exchange rate of 0.92 USD per GBP, how many USD is 642 GBP? Code: amount = 642 rate = 0.92 converted = amount * rate # 590.64 print(f"{converted:.2f}") Program output — 590.64 That is 590.64 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "590.64", "printed": "590.64", "notation": null}
nlprog_det-setting-0063859
<|start|><|user|> What commission does Idris make on $32,922 in sales at 8%?<|eot|> <|assistant|> Idris earns $2,633.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Idris make on $32,922 in sales at 8%?" }, { "role": "assistant", "content": "Idris earns $2,633.76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2633.76", "printed": "2633.76", "notation": null}
nlprog_det-setting-0063860
An invoice lists 35 mugs at $8 each, plus 10% sales tax. What is the invoice total? ```python quantity = 35 unit_price = 8 subtotal = quantity * unit_price # 280 total = subtotal * (1 + 10 / 100) # 308.0 print(f"{total:.2f}") ``` The script prints 308.00, as expected. The invoice total is $308.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "308.00", "printed": "308.00", "notation": null}
nlprog_det-setting-0063861
<|start|><|user|> To read 600 pages in 12 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 600 days = 12 per_day = pages // days # 50 print(per_day) ``` (Console output: 50) That is 50 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 600 pages in 12 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 600\ndays = 12\nper_day = pages // days # 50\nprint(per_day)\n```\n(Console output: 50)\n\nThat is 50 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0063862
<|start|><|system|> You have access to these functions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "python", "description": "A Python interpreter. Returns standard output.", "parameter...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
287
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0063863
Each storage box holds 40 files. How many boxes are needed for 161 files? Script: ```python import math files = 161 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` Run result = 5 It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0063864
A quorum is 2/3 of the 47 members, rounded up. How many members make a quorum? ```python import math members = 47 quorum = math.ceil(members * 2 / 3) # 32 print(quorum) ``` The script prints 32, as expected. That is 32 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0063866
<|start|><|system|> Functions: {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Find the mean of these test scores: 92, 69, 8...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0063867
A pack of 6 batteries sells for $264. What does each cost? The unit price is $44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0063868
<|start|><|user|> A customer buys 4 flash drives at $25 each, 4 lanyards at $5 each, 1 chairs at $3 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 25), (4, 5), (1, 3)] total = sum(q * p for q, p in items) # 123 paid = 150 change = paid - total # 27 print(change) ``` Out: ...
chat
[ { "role": "user", "content": "A customer buys 4 flash drives at $25 each, 4 lanyards at $5 each, 1 chairs at $3 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, 25), (4, 5), (1, 3)]\ntotal = sum(q * p for q, p in items) # 123\npaid ...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0063869
The landlord deducts $85 from a $2,000 deposit. What is returned to the tenant? Python code: deposit = 2000 deductions = [85] refund = deposit - sum(deductions) # 1915 print(refund) # printed result: 1915 $1,915 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1915", "printed": "1915", "notation": null}
nlprog_det-setting-0063870
<|start|><|system|> Tools you may use: {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A 4 × 10 foot patio is tiled with 1 ft ×...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0063871
Copies cost $10 plus $0.50 for each page beyond 0. How much for 12 pages? Here is a short program for it. ```python pages = 12 base = 10 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 16.0 print(f"{cost:.2f}") ``` The script prints 16.00, as expected. The total is $16.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "16.00", "printed": "16.00", "notation": null}
nlprog_det-setting-0063872
<|start|><|user|> What commission does Kemal make on $50,788 in sales at 6%?<|eot|> <|assistant|> ```python sales = 50788 rate = 6 / 100 # 0.06 commission = sales * rate # 3047.2799999999997 print(f"{commission:.2f}") ``` Console output: 3047.28 The commission is $3,047.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Kemal make on $50,788 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 50788\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 3047.2799999999997\nprint(f\"{commission:.2f}\")\n```\nConsole output: 3047.28\n\nThe com...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3047.28", "printed": "3047.28", "notation": null}
nlprog_det-setting-0063873
<|start|><|user|> Rent of $1,500 goes up 5%. What is the new rent?<|eot|> <|assistant|> The new rent is $1,575.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,500 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $1,575.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0063874
A 6-month warranty starts on September 3, 2027. On what date does it end? The Python version: ```python from datetime import date start = date(2027, 9, 3) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Program ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2028-03-03", "printed": "2028-03-03", "notation": null}
nlprog_det-setting-0063875
<|start|><|user|> Delia has 9 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|> <|assistant|> fee = 405 filings = 9 total = fee * filings print(total) Printed result — 3645 $3,645 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Delia has 9 documents to file, and each filing costs $405. How much are the filing fees in total?" }, { "role": "assistant", "content": " fee = 405\n filings = 9\n total = fee * filings\n print(total)\nPrinted result — 3645\n\n$3,645 in filing fees." }...
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "3645", "printed": "3645", "notation": null}
nlprog_det-setting-0063877
Under a 25% contingency agreement, what fee is owed on a $12,000 award? Python version: recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") This prints: 3000.00 The fee is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0063878
If a 4-year limitations period starts on July 12, 2015, when does it end? As a program: ```python from datetime import date accrued = date(2015, 7, 12) # datetime.date(2015, 7, 12) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 7, 12) print(expires.isoformat()) ``` This prints 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2019-07-12", "printed": "2019-07-12", "notation": null}
nlprog_det-setting-0063879
<|start|><|user|> A $2,000 security deposit has deductions of $45, $85 and $75. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [45, 85, 75] refund = deposit - sum(deductions) # 1795 print(refund) ``` It outputs: 1795 $1,795 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $45, $85 and $75. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [45, 85, 75]\nrefund = deposit - sum(deductions) # 1795\nprint(refund)\n```\nIt outputs: 1795\n\n$1,79...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1795", "printed": "1795", "notation": null}
nlprog_det-setting-0063880
<|start|><|user|> 5 claimants share a $18,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 18000 parties = 5 share = settlement // parties print(share) ``` It prints 3600, as expected. Each share is $3,600.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 claimants share a $18,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 5\nshare = settlement // parties\nprint(share)\n```\nIt prints 3600, as expected.\n\nEach share is $3,600." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0063881
How many minutes pass from 7:00 AM to 7:28 AM on the same day? Coded up: ```python start = 7 * 60 + 0 # 420 end = 7 * 60 + 28 # 448 print(end - start) ``` The printout reads 28. 28 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0063882
After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}") That prints 14400.00. Each...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0063883
The rules require 3/5 of 32 members (round up) to be present. How many is that? Python: ```python import math members = 32 quorum = math.ceil(members * 3 / 5) # 20 print(quorum) ``` (stdout: 20) That is 20 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0063885
Of a $2,000 budget, $1,400 has been spent. What percent is that? We can compute it in Python. ```python budget = 2000 spent = 1400 percent = spent / budget * 100 # 70.0 print(round(percent, 1)) ``` Run it and it prints: 70.0 70.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0063886
Shipping costs $10 plus $2.50 per pound. What does a 37-pound parcel cost to ship? Here is a short program for it. ```python base = 10 per_pound = 2.5 weight = 37 cost = base + per_pound * weight # 102.5 print(f"{cost:.2f}") ``` On running, it outputs 102.50. The charge is $102.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "102.50", "printed": "102.50", "notation": null}
nlprog_det-setting-0063887
<|start|><|user|> A count moves from 1,000 to 1,250. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1000 new = 1250 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` Run it and it prints: 25 The change is 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,000 to 1,250. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1000\nnew = 1250\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nRun it and it prints: 25\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0063889
A client paid a $5,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left? Here is a short program for it. ```python retainer = 5000 hours = 14 rate = 200 left = retainer - hours * rate # 2200 print(left) ``` It prints 2200. The remaining balance is $2,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0063890
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> 19 keyboards cost $2 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 19 unit_price = 2 subtotal = quantity * unit_price # 38 total = subtotal * (1 + 6 / 100) # 40.28 print(f"{total:.2f}") ``` # out: 40.28 ...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "19 keyboards cost $2 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 19\nunit_price = 2\nsubtotal = quantity * unit_price ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "40.28", "printed": "40.28", "notation": null}
nlprog_det-setting-0063891
<|start|><|user|> To read 817 pages in 19 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 817 days = 19 per_day = pages // days # 43 print(per_day) # printed result: 43 43 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 817 pages in 19 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 817\n days = 19\n per_day = pages // days # 43\n print(per_day)\n# printed result: 43\n\n43 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0063892
Prorate $900 of monthly rent for 8 days of a 30-day month. Computing it: rent = 900 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 240.0 print(f"{prorated:.2f}") Output: 240.00 The prorated rent is $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0063893
Meals are $64 per day and lodging $140 per night. What is the allowance for 9 days and 8 nights? The allowance is $1,696.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1696", "printed": "1696", "notation": null}
nlprog_det-setting-0063894
<|start|><|user|> A recipe for 8 people uses 300 grams of flour. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 300 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 150 print(scaled) ``` Python prints 150, as expected. Use 150 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 300 grams of flour. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nPython prints 150, as ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0063895
<|start|><|user|> A 5 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 5 width = 6 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) ``` Output = 30 It takes 30 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 5\nwidth = 6\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 30\nprint(tiles)\n```\nOutput = 30\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0063896
A hearing is set for November 3, 2011. What day of the week is that? ```python from datetime import date hearing = date(2011, 11, 3) # datetime.date(2011, 11, 3) print(hearing.strftime("%A")) ``` stdout — Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0063897
<|start|><|user|> Starting with 201 clipboards and using 26 per day, how many remain after 5 days?<|eot|> <|assistant|> ```python stock = 201 per_day = 26 days = 5 left = stock - per_day * days print(left) ``` Executing it gives: 71 71 clipboards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 201 clipboards and using 26 per day, how many remain after 5 days?" }, { "role": "assistant", "content": "```python\nstock = 201\nper_day = 26\ndays = 5\nleft = stock - per_day * days\nprint(left)\n```\nExecuting it gives: 71\n\n71 clipboards are left....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0063898
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. Python does the arithmetic: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` It outputs: 13.8 The margin is 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0063899
If a 25-minute shift begins at 2:45 PM, what time does it finish? It ends at 3:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "3:10 PM", "printed": "3:10 PM", "notation": null}
nlprog_det-setting-0063900
<|start|><|user|> Starting from $20,000, the team spends $2,968, $3,029, $3,544. What remains?<|eot|> <|assistant|> The remaining budget is $10,459.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $2,968, $3,029, $3,544. What remains?" }, { "role": "assistant", "content": "The remaining budget is $10,459." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "10459", "printed": "10459", "notation": null}
nlprog_det-setting-0063901
<|start|><|user|> Convert 3 h 11 min (the length of a deposition) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 11 total_minutes = hours * 60 + minutes # 191 print(total_minutes) ``` The program prints: 191 The deposition lasted 191 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 11 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 11\ntotal_minutes = hours * 60 + minutes # 191\nprint(total_minutes)\n```\nThe program prints: 191\n\nThe deposition lasted 191 minute...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0063902
A lawyer's fee is 33% of a $40,000 recovery. How large is the fee? We can compute it in Python. ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` Python prints: 13200.00 The fee is $13,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0063903
Of a $5,000 budget, $3,000 has been spent. What percent is that? In code: ```python budget = 5000 spent = 3000 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` Run result = 60.0 60.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0063904
Shipping costs $10 plus $1.20 per pound. What does a 17-pound parcel cost to ship? Set it up in Python: base = 10 per_pound = 1.2 weight = 17 cost = base + per_pound * weight # 30.4 print(f"{cost:.2f}") When run, it prints 30.40, as expected. Shipping costs $30.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "30.40", "printed": "30.40", "notation": null}
nlprog_det-setting-0063905
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Goods bought on January 8, 2026 carry...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
268
{"gold": "2027-01-08", "printed": "2027-01-08", "notation": null}
nlprog_det-setting-0063906
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many whole days and leftover hours are in 290 hours?<|eot|> <|assistant|> ```python hours = 290 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console: 12 days and 2 hours 290 hours is 12 days and 2 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many whole days and leftover hours are in 290 hours?" }, { "role": "assistant", "content": "```python\nhours = 290\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "12 days and 2 hours", "printed": "12 days and 2 hours", "notation": null}
nlprog_det-setting-0063907
A hall has 26 rows of 18 seats, and 40 seats are empty. How many people are seated? A Python solution: ```python rows = 26 per_row = 18 empty = 40 seated = rows * per_row - empty # 428 print(seated) ``` Python prints 428, as expected. 428 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "428", "printed": "428", "notation": null}
nlprog_det-setting-0063908
A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term? Code: ```python monthly_rent = 3250 months = 12 total = monthly_rent * months # 39000 print(total) ``` (Execution result: 39000) The rent over the term is $39,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0063909
6 friends split a $240 bill plus a 20% tip evenly. How much does each pay? A few lines of Python do it: ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 48.0 print(f"{each:.2f}") ``` On running, it outputs 48.00. Each person pays $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0063910
A garage charges $2 an hour, never more than $18 a day. How much for 6 hours? Python: ```python rate = 2 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Out: 12 Parking costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063911
<|start|><|user|> $5,000 is invested at 3% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> The balance is $5,627.54.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 3% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "The balance is $5,627.54." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5627.54", "printed": "5627.54", "notation": null}
nlprog_det-setting-0063912
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|u...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0063913
Starting with 941 file boxes and using 15 per day, how many remain after 16 days? Python version: ```python stock = 941 per_day = 15 days = 16 left = stock - per_day * days print(left) ``` # printed: 701 701 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "701", "printed": "701", "notation": null}
nlprog_det-setting-0063914
At $0.62 per mile, what is the reimbursement for 300 miles? Here is the program. ```python miles = 300 rate = 0.62 reimbursement = miles * rate # 186.0 print(f"{reimbursement:.2f}") ``` Run it and it prints 186.00. Pilar is owed $186.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "186.00", "printed": "186.00", "notation": null}
nlprog_det-setting-0063915
<|start|><|user|> 515 files go into boxes of 12. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 515 per_box = 12 boxes = math.ceil(files / per_box) # 43 print(boxes) ``` The program prints 43. It takes 43 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "515 files go into boxes of 12. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 515\nper_box = 12\nboxes = math.ceil(files / per_box) # 43\nprint(boxes)\n```\nThe program prints 43.\n\nIt takes 43 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0063916
<|start|><|user|> A party has 14 days to respond to a motion served on April 25, 2019, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> It is due May 12, 2019.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on April 25, 2019, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "It is due May 12, 2019." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2019-05-12", "printed": "2019-05-12", "notation": null}
nlprog_det-setting-0063917
47 copies of a 49-page packet are printed at $0.08 per page. What is the cost? Set it up in Python: ```python pages = 49 copies = 47 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 184.24 print(f"{cost:.2f}") ``` (Printed result: 184.24) The job costs $184.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "184.24", "printed": "184.24", "notation": null}
nlprog_det-setting-0063918
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A 240-mile drive at a steady 45 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 240 speed = 45 minutes = distance / speed * 60 # 320.0 print(round(minutes)) ``` It prints 320. 320 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A 240-mile drive at a steady 45 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 240\nspeed = 45\nminutes = distance / speed * 60 # 320.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0063919
<|start|><|system|> Tools you may use: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "translate", "description": "Translate text into an...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {...
nlprog_det
setting
original
null
deterministic
[]
[]
416
{"gold": "290.32", "printed": "290.32", "notation": null}
nlprog_det-setting-0063920
<|start|><|user|> A garage charges $3 an hour, never more than $20 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` What it prints — 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $20 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 11\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nWhat it prints — 20\n\nThe charge is $...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0063921
Beatriz buys 4 boxes of 10 folders each and gives away 20 folders. How many folders are left? ```python boxes = 4 per_box = 10 given_away = 20 left = boxes * per_box - given_away # 20 print(left) ``` Result = 20 20 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0063922
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year? $4,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0063923
7 swims at 300 calories each burn how many calories in total? The Python version: ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` # printed result: 2100 That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0063924
<|start|><|user|> A 4 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 4 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 44 print(tiles) ``` Printed: 44 It takes 44 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 4\nwidth = 11\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 44\nprint(tiles)\n```\nPrinted:\n44...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0063925
<|start|><|user|> At 1.5% a month (simple), what interest builds on $4,000 over 4 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` Execution result — 240.00 $240.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 4\ninterest = balance * monthly_rate * months # 240.0\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0063926
A 9-day trip pays $64 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? The allowance is $1,696.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1696", "printed": "1696", "notation": null}
nlprog_det-setting-0063927
<|start|><|user|> Rent of $1,250 goes up 8%. What is the new rent?<|eot|> <|assistant|> The new rent is $1,350.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $1,350.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0063929
<|start|><|user|> Equipment costs $30,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> Depreciation is $10,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "Depreciation is $10,000.00 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0063930
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "code_runner...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "20.04", "printed": "20.04", "notation": null}
nlprog_det-setting-0063931
<|start|><|user|> A water bill is $20 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?<|eot|> <|assistant|> ```python base = 20 rate = 5.1 used = 7 free = 3 bill = base + rate * max(0, used - free) # 40.4 print(f"{bill:.2f}") ``` # stdout: 40.40 The bill is $40.40....
chat
[ { "role": "user", "content": "A water bill is $20 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 20\nrate = 5.1\nused = 7\nfree = 3\nbill = base + rate * max(0, used - free) # 40.4\np...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "40.40", "printed": "40.40", "notation": null}
nlprog_det-setting-0063932
How much sales tax is charged on a $467.64 purchase at 9%? Script: price = 467.64 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 42.087599999999995 print(f"{tax:.2f}") stdout: 42.09 The tax is $42.09.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "42.09", "printed": "42.09", "notation": null}
nlprog_det-setting-0063933
A customer buys 1 desk lamps at $19 each, 4 file boxes at $10 each, 2 cables at $26 each, 1 ink cartridges at $3 each and pays with $150. How much change is due? The change is $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0063934
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> What day of the week is October 4, 2016?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2016, 10, 4) # datetime.date(2016, 10, 4) print(hearing.strftime("%A")) ``` The printout reads Tuesday. It is a Tuesday.<|eot|> <|en...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "What day of the week is October 4, 2016?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2016, 10, 4) # datetime.date(2016, 10, 4)\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0063935
<|start|><|user|> 7 walks at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` Run result: 1400 That burns 1400 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 walks at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions # 1400\nprint(total)\n```\nRun result: 1400\n\nThat burns 1400 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0063936
What is a 22% tip on a $39.12 bill? As Python: ```python bill = 39.12 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 8.606399999999999 print(f"{tip:.2f}") ``` It outputs: 8.61 The tip is $8.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "8.61", "printed": "8.61", "notation": null}
nlprog_det-setting-0063937
A library charges $0.50 per book per day late. What is the fine for 2 books that are 26 days late? Script: per_day = 0.5 days_late = 26 books = 2 fine = per_day * days_late * books # 26.0 print(f"{fine:.2f}") The script prints 26.00. The fine is $26.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "26.00", "printed": "26.00", "notation": null}
nlprog_det-setting-0063938
83 copies of a 17-page packet are printed at $0.15 per page. What is the cost? Program: pages = 17 copies = 83 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 211.65 print(f"{cost:.2f}") The script prints: 211.65 The job costs $211.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "211.65", "printed": "211.65", "notation": null}
nlprog_det-setting-0063939
A lawyer's fee is 33% of a $60,000 recovery. How large is the fee? The lawyer's fee comes to $19,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0063940
<|start|><|user|> How many days are there from June 19, 2019 to February 20, 2020?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 6, 19) # datetime.date(2019, 6, 19) second = date(2020, 2, 20) # datetime.date(2020, 2, 20) print((second - first).days) ``` Execution prints 246, as expected....
chat
[ { "role": "user", "content": "How many days are there from June 19, 2019 to February 20, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 6, 19) # datetime.date(2019, 6, 19)\nsecond = date(2020, 2, 20) # datetime.date(2020, 2, 20)\nprint((se...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "246", "printed": "246", "notation": null}
nlprog_det-setting-0063941
Filing fees are $405 per document. What do 10 filings cost? Set it up in Python: ```python fee = 405 filings = 10 total = fee * filings # 4050 print(total) ``` Execution prints 4050. The filings cost $4,050 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "4050", "printed": "4050", "notation": null}
nlprog_det-setting-0063942
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name":...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "34", "printed": "34", "notation": null}