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-0065646
A client paid a $10,000 retainer. The firm has billed 10 hours at $200 per hour. How much of the retainer is left? Python does the arithmetic: ```python retainer = 10000 hours = 10 rate = 200 left = retainer - hours * rate # 8000 print(left) ``` Executed, it shows: 8000 The remaining balance is $8,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0065647
<|start|><|user|> A 24-month warranty starts on January 5, 2028. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 1, 5) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoforma...
chat
[ { "role": "user", "content": "A 24-month warranty starts on January 5, 2028. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 1, 5)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.y...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2030-01-05", "printed": "2030-01-05", "notation": null}
nlprog_det-setting-0065648
28 batteries cost $4 apiece. With 7% tax added, what is the total? Here is a short program for it. ```python quantity = 28 unit_price = 4 subtotal = quantity * unit_price # 112 total = subtotal * (1 + 7 / 100) # 119.84 print(f"{total:.2f}") ``` Shell output: 119.84 The invoice total is $119.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "119.84", "printed": "119.84", "notation": null}
nlprog_det-setting-0065649
Fines run at $250 per day up to a maximum of $2,500. How much after 35 days? Python: ```python per_day = 250 days = 35 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` (Output: 2500) $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0065650
A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left? Python makes this quick: ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` # output: 25 $25 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0065651
Fines run at $25 per day up to a maximum of $2,500. How much after 28 days? Script: ```python per_day = 25 days = 28 cap = 2500 fine = min(per_day * days, cap) # 700 print(fine) ``` Python prints 700, as expected. $700 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0065653
What day of the week is November 25, 2030? Let's compute it with Python. ```python from datetime import date hearing = date(2030, 11, 25) # datetime.date(2030, 11, 25) print(hearing.strftime("%A")) ``` Printed result: Monday November 25, 2030 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0065654
Fines run at $50 per day up to a maximum of $2,500. How much after 44 days? Written as code: ```python per_day = 50 days = 44 cap = 2500 fine = min(per_day * days, cap) # 2200 print(fine) ``` # stdout: 2200 $2,200 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0065655
A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 12 thousand gallons? The program: ```python base = 20 rate = 5.1 used = 12 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` (stdout: 71.00) $71.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "71.00", "printed": "71.00", "notation": null}
nlprog_det-setting-0065656
An attorney bills 7 hours at $225 per hour. What is the bill? Python does the arithmetic: hours = 7 rate = 225 bill = hours * rate # 1575 print(f"{bill:.2f}") Run result = 1575.00 That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0065657
Rosa's scores were 81, 52, 68, 52, 88, 62 and 66. What is the average score? Python: ```python scores = [81, 52, 68, 52, 88, 62, 66] average = sum(scores) // len(scores) print(average) ``` It prints 67. The mean is 67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0065658
<|start|><|user|> A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $530.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $530.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "530.00", "printed": "530.00", "notation": null}
nlprog_det-setting-0065659
Ivan's scores were 58, 100 and 88. What is the average score? Here is the program. scores = [58, 100, 88] average = sum(scores) // len(scores) # 82 print(average) What it prints: 82 The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0065660
<|start|><|user|> Shipping costs $10 plus $0.75 per pound. What does a 17-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 0.75 weight = 17 cost = base + per_pound * weight # 22.75 print(f"{cost:.2f}") ``` The program prints: 22.75 The charge is $22.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $0.75 per pound. What does a 17-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 0.75\nweight = 17\ncost = base + per_pound * weight # 22.75\nprint(f\"{cost:.2f}\")\n```\nThe program prints:...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "22.75", "printed": "22.75", "notation": null}
nlprog_det-setting-0065661
A garage charges $3 an hour, never more than $18 a day. How much for 1 hours? Parking costs $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0065662
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 3000 years = 10 per_year = (cost - salvage) / years # 900.0 print(f"...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0065663
<|start|><|user|> From a $5,000 retainer, 13 hours at $150/hour have been drawn. What remains?<|eot|> <|assistant|> retainer = 5000 hours = 13 rate = 150 left = retainer - hours * rate # 3050 print(left) Interpreter output: 3050 $3,050 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 13 hours at $150/hour have been drawn. What remains?" }, { "role": "assistant", "content": " retainer = 5000\n hours = 13\n rate = 150\n left = retainer - hours * rate # 3050\n print(left)\nInterpreter output: 3050\n\n$3,050 o...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "3050", "printed": "3050", "notation": null}
nlprog_det-setting-0065664
At $0.65 per mile, what is the reimbursement for 450 miles? Written as code: ```python miles = 450 rate = 0.65 reimbursement = miles * rate # 292.5 print(f"{reimbursement:.2f}") ``` Execution prints: 292.50 Oskar is owed $292.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "292.50", "printed": "292.50", "notation": null}
nlprog_det-setting-0065665
<|start|><|user|> Each of Kemal's runs burns 400 calories. How many calories over 3 runs?<|eot|> <|assistant|> ```python per_session = 400 sessions = 3 total = per_session * sessions print(total) ``` Run result = 1200 1200 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Kemal's runs burns 400 calories. How many calories over 3 runs?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions\nprint(total)\n```\nRun result = 1200\n\n1200 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0065666
<|start|><|user|> What is the total rent on a 6-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 6 total = monthly_rent * months # 9840 print(total) ``` (Console output: 9840) The rent over the term is $9,840.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 6\ntotal = monthly_rent * months # 9840\nprint(total)\n```\n(Console output: 9840)\n\nThe rent over the term is $9,840." }...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "9840", "printed": "9840", "notation": null}
nlprog_det-setting-0065667
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 9 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 9 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` (Result: 15) The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $15 a day. How much for 9 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 9\ndaily_max = 15\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\n(Result: 15)\n\nThe charge is $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065668
$10,000 is invested at 2% compounded yearly. What is it worth after 2 years? Python, step by step: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` Printed result — 10404.00 It is worth $10,404.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0065669
Elena was born on September 10, 1981. How old is Elena on February 12, 2025? As Python: ```python from datetime import date born = date(1981, 9, 10) # datetime.date(1981, 9, 10) on = date(2025, 2, 12) # datetime.date(2025, 2, 12) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 43 print(a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0065670
The landlord deducts $45 and $45 from a $2,000 deposit. What is returned to the tenant? ```python deposit = 2000 deductions = [45, 45] refund = deposit - sum(deductions) # 1910 print(refund) ``` Printed result: 1910 The refund is $1,910.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1910", "printed": "1910", "notation": null}
nlprog_det-setting-0065671
<|start|><|user|> Fuel for 240 miles at 30 mpg, with gas at $3.45/gallon: what is the cost?<|eot|> <|assistant|> The trip uses $27.60 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 240 miles at 30 mpg, with gas at $3.45/gallon: what is the cost?" }, { "role": "assistant", "content": "The trip uses $27.60 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0065672
<|start|><|user|> Split $835 between Arjun and Lucia in the ratio 2 to 3. What is Arjun's share?<|eot|> <|assistant|> ```python total = 835 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 334 print(share_a) ``` Execution prints: 334 Arjun gets $334.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $835 between Arjun and Lucia in the ratio 2 to 3. What is Arjun's share?" }, { "role": "assistant", "content": "```python\ntotal = 835\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 334\nprint(share_a)\n```\nExecution prints: 33...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "334", "printed": "334", "notation": null}
nlprog_det-setting-0065673
<|start|><|user|> Jamal was born on August 3, 1956. How old is Jamal on July 24, 2027?<|eot|> <|assistant|> ```python from datetime import date born = date(1956, 8, 3) # datetime.date(1956, 8, 3) on = date(2027, 7, 24) # datetime.date(2027, 7, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
chat
[ { "role": "user", "content": "Jamal was born on August 3, 1956. How old is Jamal on July 24, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1956, 8, 3) # datetime.date(1956, 8, 3)\non = date(2027, 7, 24) # datetime.date(2027, 7, 24)\nage = on.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0065674
How many weekdays (Monday to Friday) fall after October 4, 2021 up to and including November 3, 2021? Program: from datetime import date, timedelta start = date(2021, 10, 4) end = date(2021, 11, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday()...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0065675
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "convert_units"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
332
{"gold": "8 days and 19 hours", "printed": "8 days and 19 hours", "notation": null}
nlprog_det-setting-0065676
<|start|><|system|> Tools you may use: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters":...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"description\": \"Execute...
nlprog_det
setting
original
null
deterministic
[]
[]
287
{"gold": "5750", "printed": "5750", "notation": null}
nlprog_det-setting-0065677
The paralegal logged 2 hours at a rate of $180. How much is billed? The program: ```python hours = 2 rate = 180 bill = hours * rate # 360 print(f"{bill:.2f}") ``` Program output — 360.00 The bill is $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0065678
<|start|><|user|> Attendance was 173 out of 200. Express it as a percent.<|eot|> <|assistant|> 86.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 173 out of 200. Express it as a percent." }, { "role": "assistant", "content": "86.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "86.5", "printed": "86.5", "notation": null}
nlprog_det-setting-0065680
Someone works 36 hours at $28.29 per hour. What are the earnings? ```python rate = 28.29 hours = 36 earnings = rate * hours # 1018.4399999999999 print(f"{earnings:.2f}") ``` The run gives 1018.44. That earns $1,018.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1018.44", "printed": "1018.44", "notation": null}
nlprog_det-setting-0065681
How many of 251 votes make 60% (round up)? As Python: ```python import math voters = 251 needed = math.ceil(voters * 60 / 100) # 151 print(needed) ``` Executing it gives 151. At least 151 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "151", "printed": "151", "notation": null}
nlprog_det-setting-0065682
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "convert_units",...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
357
{"gold": "10:20 AM", "printed": "10:20 AM", "notation": null}
nlprog_det-setting-0065683
At an exchange rate of 1.27 USD per EUR, how many USD is 4,619 EUR? Python version: ```python amount = 4619 rate = 1.27 converted = amount * rate print(f"{converted:.2f}") ``` On running, it outputs: 5866.13 That is 5,866.13 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5866.13", "printed": "5866.13", "notation": null}
nlprog_det-setting-0065684
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?<|eot|> <|assistant|> ```python rate = 18.5 hours = 42 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 55.5 pay = regular + overtime # 795.5 print(f"{pay:.2f}") ``` Result: 795.50 Bea...
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 42\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 55.5\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "795.50", "printed": "795.50", "notation": null}
nlprog_det-setting-0065685
At 30 miles per hour, how many minutes does a 200-mile trip take? Programmatically: ```python distance = 200 speed = 30 minutes = distance / speed * 60 print(round(minutes)) ``` Console output — 400 400 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0065686
A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 61-page copy cost? Python: ```python pages = 61 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 17.75 print(f"{cost:.2f}") ``` Run output — 17.75 The total is $17.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "17.75", "printed": "17.75", "notation": null}
nlprog_det-setting-0065687
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 5,100 USD to EUR at 1 ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "3774.00", "printed": "3774.00", "notation": null}
nlprog_det-setting-0065688
A recipe for 6 people uses 200 grams of lentils. How many grams are needed for 3 people? Let the code do the arithmetic: ```python grams = 200 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 100 print(scaled) ``` # run result: 100 100 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0065689
How many meters are in 72.3 kilometers? That is 72,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "72300", "printed": "72300", "notation": null}
nlprog_det-setting-0065690
<|start|><|system|> Available functions (JSON Schema): {"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|u...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
275
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0065691
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065692
A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term? As Python: ```python monthly_rent = 2100 months = 12 total = monthly_rent * months # 25200 print(total) ``` On running, it outputs: 25200 The rent over the term is $25,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0065693
<|start|><|user|> A pack of 5 rulers sells for $155. What does each cost?<|eot|> <|assistant|> ```python total = 155 count = 5 per_item = total // count # 31 print(per_item) ``` Output: 31 The unit price is $31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 rulers sells for $155. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 155\ncount = 5\nper_item = total // count # 31\nprint(per_item)\n```\nOutput:\n31\n\nThe unit price is $31." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0065694
A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments? Python: ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) ``` When run, it prints 18. The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065696
<|start|><|user|> An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") The code prints: ...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": " balance = 4000\n monthly_rate = 1.5 / 100 # 0.015\n months = 5\n interest = balance * monthly_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0065697
Starting with 431 clipboards and using 26 per day, how many remain after 16 days? Program: ```python stock = 431 per_day = 26 days = 16 left = stock - per_day * days # 15 print(left) ``` # output: 15 15 clipboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065699
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 3 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Output: 12 Parking costs $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $15 a day. How much for 3 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 3\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nOutput:\n12\n\nParking costs $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0065700
4 boxes hold 12 tape rolls each. After 11 are handed out, how many are left? In code: ```python boxes = 4 per_box = 12 given_away = 11 left = boxes * per_box - given_away # 37 print(left) ``` Executing it gives 37. That leaves 37 tape rolls.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0065701
A claim accrued on May 4, 2017. The limitations period is 4 years. On what date does it expire? Programmatically: ```python from datetime import date accrued = date(2017, 5, 4) # datetime.date(2017, 5, 4) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 5, 4) print(expires.isoform...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2021-05-04", "printed": "2021-05-04", "notation": null}
nlprog_det-setting-0065702
How many whole days and leftover hours are in 159 hours? Python: ```python hours = 159 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Running it prints 6 days and 15 hours. 159 hours is 6 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6 days and 15 hours", "printed": "6 days and 15 hours", "notation": null}
nlprog_det-setting-0065703
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> How many 2-foot square tiles cover a 14 ft by 15 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 14 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 53 print(tiles) ``` (Out: 53) 53 tiles are needed.<|eot|...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "How many 2-foot square tiles cover a 14 ft by 15 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 14\nwidth = 15\ntile = 2\ntiles = math.ceil(len...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0065704
A storeroom has 384 keyboards. The office uses 18 a day. How many are left after 10 days? ```python stock = 384 per_day = 18 days = 10 left = stock - per_day * days # 204 print(left) ``` It prints: 204 204 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0065706
How many minutes pass from 7:15 AM to 7:46 AM on the same day? Programmatically: ```python start = 7 * 60 + 15 # 435 end = 7 * 60 + 46 # 466 print(end - start) ``` It prints 31, as expected. It is 31 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0065707
Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons? We can compute it in Python. ```python base = 15 rate = 4.2 used = 21 free = 0 bill = base + rate * max(0, used - free) # 103.2 print(f"{bill:.2f}") ``` Run it and it prints: 103.20 $103.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "103.20", "printed": "103.20", "notation": null}
nlprog_det-setting-0065708
The rules require 1/3 of 54 members (round up) to be present. How many is that? In Python: ```python import math members = 54 quorum = math.ceil(members * 1 / 3) # 18 print(quorum) ``` (stdout: 18) That is 18 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065709
At a 8% tax rate, what is the tax on $445.98? Let the code do the arithmetic: ```python price = 445.98 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 35.6784 print(f"{tax:.2f}") ``` The code prints: 35.68 $35.68 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "35.68", "printed": "35.68", "notation": null}
nlprog_det-setting-0065711
A 18-month warranty starts on March 9, 2028. On what date does it end? Set it up in Python: ```python from datetime import date start = date(2028, 3, 9) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The printo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2029-09-09", "printed": "2029-09-09", "notation": null}
nlprog_det-setting-0065712
Farah lends $5,000 at 6% simple interest per year for 3 years. How much interest is earned? Python, step by step: ```python principal = 5000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 900.0 print(f"{interest:.2f}") ``` Run result — 900.00 It earns $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0065713
<|start|><|user|> A 4% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` Output — 1872.00 The new rent is $1,872.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1872.0\nprint(f\"{new_rent:.2f}\")\n```\nOutput — 1872.00\n\nThe n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0065714
Tomas lends $20,000 at 8% simple interest per year for 3 years. How much interest is earned? Computing it: ```python principal = 20000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 4800.0 print(f"{interest:.2f}") ``` Running this gives 4800.00. The interest is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0065715
<|start|><|user|> To read 280 pages in 8 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 280 days = 8 per_day = pages // days # 35 print(per_day) ``` Executing it gives 35. That is 35 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 280 pages in 8 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 280\ndays = 8\nper_day = pages // days # 35\nprint(per_day)\n```\nExecuting it gives 35.\n\nThat is 35 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0065716
Shipping costs $12 plus $0.75 per pound. What does a 22-pound parcel cost to ship? The charge is $28.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "28.50", "printed": "28.50", "notation": null}
nlprog_det-setting-0065717
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? Written as code: cost = 18000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") Running this gives: 2500.00 Depreciat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0065718
What is a 22% tip on a $186.39 bill? Here is the program. ```python bill = 186.39 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 41.0058 print(f"{tip:.2f}") ``` stdout: 41.01 The tip is $41.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "41.01", "printed": "41.01", "notation": null}
nlprog_det-setting-0065720
At 1% a month (simple), what interest builds on $7,500 over 2 months? Program: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` # result: 150.00 The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0065721
<|start|><|user|> A 6-day trip pays $74 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 6 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1319 print(total) ``` Printed = 1319 That co...
chat
[ { "role": "user", "content": "A 6-day trip pays $74 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 74\nlodging_rate = 175\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1319", "printed": "1319", "notation": null}
nlprog_det-setting-0065722
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 84 copies of a 19-page handout?<|eot|> <|assistant|> ```python pages = 19 copies = 84 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 159.60000000000002 print(f"{cost:.2f}") ``` The program prints 159.60. The job costs $159.60.<|...
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 84 copies of a 19-page handout?" }, { "role": "assistant", "content": "```python\npages = 19\ncopies = 84\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 159.60000000000002\nprint(f\"{cost:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "159.60", "printed": "159.60", "notation": null}
nlprog_det-setting-0065723
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` The printout reads 23. It equals 23 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nThe printout reads...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0065724
<|start|><|system|> Tools (call with JSON): [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute", "description...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
372
{"gold": "28400", "printed": "28400", "notation": null}
nlprog_det-setting-0065725
After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part? Python code: ```python grant = 12000 up_front = 3000 installments = 3 each = (grant - up_front) / installments print(f"{each:.2f}") ``` Run it and it prints: 3000.00 $3,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0065726
Shipping costs $8 plus $1.50 per pound. What does a 11-pound parcel cost to ship? Translated to Python: ```python base = 8 per_pound = 1.5 weight = 11 cost = base + per_pound * weight print(f"{cost:.2f}") ``` The script prints 24.50. Shipping costs $24.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "24.50", "printed": "24.50", "notation": null}
nlprog_det-setting-0065729
<|start|><|user|> Under a 35% contingency agreement, what fee is owed on a $25,000 award?<|eot|> <|assistant|> ```python recovery = 25000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Output — 8750.00 The fee is $8,750.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $25,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 35 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\nOutput — 8750.00\n\nThe fee is $8,750.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0065730
A 288-page report must be reviewed in 8 days. How many pages a day is that, evenly? Written as code: pages = 288 days = 8 per_day = pages // days # 36 print(per_day) Executed, it shows: 36 That is 36 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0065731
With 20 rows of 16 chairs and 18 empty chairs, how many chairs are taken? 302 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "302", "printed": "302", "notation": null}
nlprog_det-setting-0065732
How many units at $25 each (variable cost $20) cover $1,200 of fixed costs? In Python: import math fixed = 1200 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 240 print(units) Output — 240 240 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0065733
A 7-day trip pays $79 a day for meals and $175 a night for lodging (6 nights). What is the total allowance? The program: ```python days = 7 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1603 print(total) ``` Result: 1603 The allowance is $1,603.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1603", "printed": "1603", "notation": null}
nlprog_det-setting-0065734
Convert 8,380 EUR to USD at 1 EUR = 1.35 USD. ```python amount = 8380 rate = 1.35 converted = amount * rate # 11313.0 print(f"{converted:.2f}") ``` # stdout: 11313.00 That is 11,313.00 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "11313.00", "printed": "11313.00", "notation": null}
nlprog_det-setting-0065735
<|start|><|user|> Signe earns a 6% commission on $92,229 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 92229 rate = 6 / 100 # 0.06 commission = sales * rate # 5533.74 print(f"{commission:.2f}") ``` The interpreter prints: 5533.74 The commission is $5,533.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Signe earns a 6% commission on $92,229 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 92229\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 5533.74\nprint(f\"{commission:.2f}\")\n```\nThe interpreter prints: 5533.74...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5533.74", "printed": "5533.74", "notation": null}
nlprog_det-setting-0065736
<|start|><|user|> A 3-day trip pays $79 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?<|eot|> <|assistant|> The allowance is $587.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3-day trip pays $79 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?" }, { "role": "assistant", "content": "The allowance is $587." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "587", "printed": "587", "notation": null}
nlprog_det-setting-0065737
3 claimants share a $18,000 settlement equally. What is each share? Each party receives $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0065738
6 runs at 150 calories each burn how many calories in total? Computation in Python: ```python per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) ``` The run gives 900. 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0065739
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "loo...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0065740
<|start|><|user|> Attendance was 21 out of 40. Express it as a percent.<|eot|> <|assistant|> ```python present = 21 total = 40 percent = present / total * 100 # 52.5 print(round(percent, 1)) ``` When run, it prints 52.5, as expected. Attendance was 52.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 21 out of 40. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 21\ntotal = 40\npercent = present / total * 100 # 52.5\nprint(round(percent, 1))\n```\nWhen run, it prints 52.5, as expected.\n\nAttendance was 52.5%."...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0065741
A court charges $15 per request plus $0.25 per page after the first 0 pages. What does a 110-page copy cost? The total is $42.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0065743
<|start|><|user|> A clerk's office charges $350 for each filing. Carmen submits 5 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 350 filings = 5 total = fee * filings # 1750 print(total) ``` What it prints — 1750 The filings cost $1,750 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $350 for each filing. Carmen submits 5 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 5\ntotal = fee * filings # 1750\nprint(total)\n```\nWhat it prints — 1750\n\nThe filings cost $1,7...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0065744
<|start|><|user|> $5,000 is invested at 4% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 5408.000000000001 print(f"{value:.2f}") ``` Shell output: 5408.00 It is worth $5,408.00.<|eot|> <|end...
chat
[ { "role": "user", "content": "$5,000 is invested at 4% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 5408.000000000001\nprint(f\"{value:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "5408.00", "printed": "5408.00", "notation": null}
nlprog_det-setting-0065745
What is the total rent on a 18-month lease at $2,875 a month? A few lines of Python do it: ```python monthly_rent = 2875 months = 18 total = monthly_rent * months # 51750 print(total) ``` # printed result: 51750 In total, $51,750 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0065746
7 hours of work at $180 an hour: what is the total charge? Program: ```python hours = 7 rate = 180 bill = hours * rate # 1260 print(f"{bill:.2f}") ``` Execution prints 1260.00. That comes to $1,260.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0065747
A recipe for 6 people uses 200 grams of sugar. How many grams are needed for 3 people? Set it up in Python: ```python grams = 200 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 100 print(scaled) ``` Result — 100 Use 100 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0065748
After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Written as 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}") ``` Executed, it show...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0065749
What is the total rent on a 12-month lease at $1,475 a month? Python code: ```python monthly_rent = 1475 months = 12 total = monthly_rent * months # 17700 print(total) ``` Result: 17700 The rent over the term is $17,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "17700", "printed": "17700", "notation": null}
nlprog_det-setting-0065750
<|start|><|system|> You may call the tools below. [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> From a $10,000 re...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "9250", "printed": "9250", "notation": null}
nlprog_det-setting-0065751
At $0.58 per mile, what is the reimbursement for 475 miles? The Python version: ```python miles = 475 rate = 0.58 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Executing it gives: 275.50 The reimbursement is $275.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "275.50", "printed": "275.50", "notation": null}
nlprog_det-setting-0065752
A chair costs $45. It is 15% off. What is the sale price? Written as code: ```python price = 45 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 38.25 print(f"{sale_price:.2f}") ``` Out = 38.25 It costs $38.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "38.25", "printed": "38.25", "notation": null}
nlprog_det-setting-0065753
<|start|><|user|> Count the days between July 2, 2023 and April 19, 2024.<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 7, 2) # datetime.date(2023, 7, 2) second = date(2024, 4, 19) # datetime.date(2024, 4, 19) print((second - first).days) ``` # printed: 292 It is 292 days.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Count the days between July 2, 2023 and April 19, 2024." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 7, 2) # datetime.date(2023, 7, 2)\nsecond = date(2024, 4, 19) # datetime.date(2024, 4, 19)\nprint((second - firs...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "292", "printed": "292", "notation": null}
nlprog_det-setting-0065754
Of a $10,000 budget, $3,300 has been spent. What percent is that? Here is the program. ```python budget = 10000 spent = 3300 percent = spent / budget * 100 # 33.0 print(round(percent, 1)) ``` The program outputs 33.0. That is 33.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "33.0", "printed": "33.0", "notation": null}
nlprog_det-setting-0065755
A lawyer's fee is 30% of a $90,000 recovery. How large is the fee? The fee is $27,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "27000.00", "printed": "27000.00", "notation": null}