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-0058297
Convert 84.2 km to meters. Here is a short program for it. ```python km = 84.2 meters = km * 1000 print(round(meters)) ``` Output of the run — 84200 84,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "84200", "printed": "84200", "notation": null}
nlprog_det-setting-0058298
How many weekdays (Monday to Friday) fall after October 11, 2026 up to and including October 17, 2026? There are 5 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058299
<|start|><|user|> A party has 14 days to respond to a motion served on January 10, 2021, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 1, 10) # datetime.date(2021, 1, 10) response_days = 14 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on January 10, 2021, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 1, 10) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2021-01-27", "printed": "2021-01-27", "notation": null}
nlprog_det-setting-0058300
A claim accrued on March 2, 2018. The limitations period is 5 years. On what date does it expire? One way, in code: ```python from datetime import date accrued = date(2018, 3, 2) # datetime.date(2018, 3, 2) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 3, 2) print(expires.isofo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-03-02", "printed": "2023-03-02", "notation": null}
nlprog_det-setting-0058301
<|start|><|user|> How many of 42 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 42 needed = math.ceil(voters * 75 / 100) # 32 print(needed) ``` Run output — 32 At least 32 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 42 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 42\nneeded = math.ceil(voters * 75 / 100) # 32\nprint(needed)\n```\nRun output — 32\n\nAt least 32 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0058302
<|start|><|user|> How many of 262 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 262 needed = math.ceil(voters * 60 / 100) print(needed) ``` When run, it prints 158, as expected. 158 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 262 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 262\nneeded = math.ceil(voters * 60 / 100)\nprint(needed)\n```\nWhen run, it prints 158, as expected.\n\n158 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "158", "printed": "158", "notation": null}
nlprog_det-setting-0058303
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term? Here is a short program for it. ```python monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) ``` Interpreter output: 30600 In total, $30,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0058304
To read 371 pages in 7 days, how many pages per day are needed? ```python pages = 371 days = 7 per_day = pages // days # 53 print(per_day) ``` The program prints 53. 53 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0058305
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_sta...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0058306
<|start|><|user|> A meeting lasted 1 hours and 12 minutes. How many minutes is that?<|eot|> <|assistant|> hours = 1 minutes = 12 total_minutes = hours * 60 + minutes # 72 print(total_minutes) (Run result: 72) The meeting lasted 72 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 1 hours and 12 minutes. How many minutes is that?" }, { "role": "assistant", "content": " hours = 1\n minutes = 12\n total_minutes = hours * 60 + minutes # 72\n print(total_minutes)\n(Run result: 72)\n\nThe meeting lasted 72 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0058307
Walls total 429 sq ft and each can covers 300 sq ft. How many cans should be bought? Here is a short program for it. ```python import math area = 429 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` That prints: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0058309
5 swims at 250 calories each burn how many calories in total? Translated to Python: ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` Output: 1250 That burns 1250 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0058310
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 6 months? A few lines of Python do it: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` Run output — 480.00 $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0058311
A quorum is 2/3 of the 21 members, rounded up. How many members make a quorum? Let the code do the arithmetic: ```python import math members = 21 quorum = math.ceil(members * 2 / 3) # 14 print(quorum) ``` What it prints — 14 14 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0058312
Convert 10 °C to Fahrenheit. It equals 50 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0058313
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "get_weather", "description...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "531.10", "printed": "531.10", "notation": null}
nlprog_det-setting-0058314
<|start|><|user|> An office budget of $12,000 has expenses of $678, $1,576, $1,776, $647. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [678, 1576, 1776, 647] left = budget - sum(expenses) print(left) ``` Result: 7323 The remaining budget is $7,323.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $678, $1,576, $1,776, $647. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [678, 1576, 1776, 647]\nleft = budget - sum(expenses)\nprint(left)\n```\nResult: 7323...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "7323", "printed": "7323", "notation": null}
nlprog_det-setting-0058315
Count 10 days forward from April 28, 2021. What date is that? Code: ```python from datetime import date, timedelta start = date(2021, 4, 28) # datetime.date(2021, 4, 28) end = start + timedelta(days=10) # datetime.date(2021, 5, 8) print(end.isoformat()) ``` Running it prints: 2021-05-08 It ends on May 8, 2021.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2021-05-08", "printed": "2021-05-08", "notation": null}
nlprog_det-setting-0058316
<|start|><|user|> With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 9000 costs = 8000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` The run gives 11.1. The mar...
chat
[ { "role": "user", "content": "With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 9000\ncosts = 8000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 11.1111111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0058317
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "run_python", "description": "Run Python code in a sandbox...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"ru...
nlprog_det
setting
original
null
deterministic
[]
[]
328
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0058318
Rania earns a 3% commission on $13,869 of sales. What is the commission? Python code: ```python sales = 13869 rate = 3 / 100 # 0.03 commission = sales * rate # 416.07 print(f"{commission:.2f}") ``` Printed result: 416.07 Rania earns $416.07.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "416.07", "printed": "416.07", "notation": null}
nlprog_det-setting-0058319
<|start|><|user|> Convert 95 km to meters.<|eot|> <|assistant|> 95,000 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 95 km to meters." }, { "role": "assistant", "content": "95,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "95000", "printed": "95000", "notation": null}
nlprog_det-setting-0058320
A pack of 6 file boxes sells for $30. What does each cost? Computation in Python: ```python total = 30 count = 6 per_item = total // count # 5 print(per_item) ``` When run, it prints: 5 Each one costs $5.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058321
How many 1-foot square tiles cover a 9 ft by 12 ft floor (round up)? 108 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0058322
<|start|><|user|> What simple interest does $1,000 earn at 8% a year over 2 years?<|eot|> <|assistant|> principal = 1000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 160.0 print(f"{interest:.2f}") This prints 160.00, as expected. It earns $160.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 8% a year over 2 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 8 / 100 # 0.08\n years = 2\n interest = principal * rate * years # 160.0\n print(f\"{interest:.2f}\")\nThis prints 160...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0058323
<|start|><|system|> Functions: [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate te...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"...
nlprog_det
setting
original
null
deterministic
[]
[]
341
{"gold": "11:30 AM", "printed": "11:30 AM", "notation": null}
nlprog_det-setting-0058324
<|start|><|system|> Functions: {"name": "compute", "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"]}} {"name": "convert_units", "description...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"compute\", \"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\":...
nlprog_det
setting
original
null
deterministic
[]
[]
363
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0058325
A workshop lasted 2 hours and 33 minutes. How many minutes is that? ```python hours = 2 minutes = 33 total_minutes = hours * 60 + minutes # 153 print(total_minutes) ``` (Printed result: 153) That is 153 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0058327
<|start|><|user|> Someone works 12 hours at $26.64 per hour. What are the earnings?<|eot|> <|assistant|> rate = 26.64 hours = 12 earnings = rate * hours # 319.68 print(f"{earnings:.2f}") Run it and it prints 319.68. That earns $319.68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $26.64 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 26.64\n hours = 12\n earnings = rate * hours # 319.68\n print(f\"{earnings:.2f}\")\nRun it and it prints 319.68.\n\nThat earns $319.68." }...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "319.68", "printed": "319.68", "notation": null}
nlprog_det-setting-0058328
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "description": ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0058329
An invoice lists 11 tape rolls at $4 each, plus 8% sales tax. What is the invoice total? The Python version: ```python quantity = 11 unit_price = 4 subtotal = quantity * unit_price # 44 total = subtotal * (1 + 8 / 100) # 47.52 print(f"{total:.2f}") ``` Execution prints 47.52. The total with tax is $47.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "47.52", "printed": "47.52", "notation": null}
nlprog_det-setting-0058330
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? ```python rate = 18.5 hours = 43 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 83.25 pay = regular + overtime # 823.25 print(f"{pay:.2f}") ``` The printout reads 823.25. Ana earns $823.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "823.25", "printed": "823.25", "notation": null}
nlprog_det-setting-0058331
The paralegal logged 4 hours at a rate of $225. How much is billed? Set it up in Python: ```python hours = 4 rate = 225 bill = hours * rate # 900 print(f"{bill:.2f}") ``` Result: 900.00 The bill is $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0058332
At $15.72 an hour, what does 30 hours of work pay? Here's the code. ```python rate = 15.72 hours = 30 earnings = rate * hours print(f"{earnings:.2f}") ``` Execution prints: 471.60 The pay is $471.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "471.60", "printed": "471.60", "notation": null}
nlprog_det-setting-0058333
4 claimants share a $18,000 settlement equally. What is each share? Python does the arithmetic: settlement = 18000 parties = 4 share = settlement // parties # 4500 print(share) Python prints 4500, as expected. Each party receives $4,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0058334
After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part? The computation: grant = 12000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") The run gives 2000.00, as expected. Each installment is $2,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0058335
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 1080....
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_ra...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0058336
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Scale 450 g of sugar from 6 servings to 2 servings.<|eot|> <|assistant|> ```python grams = 450 serves = 6 needed_for = 2 scaled = grams * needed_for // serves # 150 print(scaled) ``` Python prints: 150 150 grams of sugar are needed.<|eot|> <|...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Scale 450 g of sugar from 6 servings to 2 servings." }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 6\nneeded_for = 2\nscaled = grams * needed_for // serv...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0058337
<|start|><|user|> Zoe earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?<|eot|> <|assistant|> Zoe earns $1,045.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zoe earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?" }, { "role": "assistant", "content": "Zoe earns $1,045.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1045.25", "printed": "1045.25", "notation": null}
nlprog_det-setting-0058338
At $0.67 per mile, what is the reimbursement for 365 miles? As Python: ```python miles = 365 rate = 0.67 reimbursement = miles * rate # 244.55 print(f"{reimbursement:.2f}") ``` Out — 244.55 Bilal is owed $244.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "244.55", "printed": "244.55", "notation": null}
nlprog_det-setting-0058339
How many whole days and leftover hours are in 103 hours? We can compute it in Python. hours = 103 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Execution prints 4 days and 7 hours, as expected. 103 hours is 4 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "4 days and 7 hours", "printed": "4 days and 7 hours", "notation": null}
nlprog_det-setting-0058340
Beatriz earns a 5% commission on $75,506 of sales. What is the commission? Script: ```python sales = 75506 rate = 5 / 100 # 0.05 commission = sales * rate # 3775.3 print(f"{commission:.2f}") ``` On running, it outputs 3775.30. Beatriz earns $3,775.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3775.30", "printed": "3775.30", "notation": null}
nlprog_det-setting-0058341
On which weekday does February 13, 2006 fall? Here is a short program for it. ```python from datetime import date hearing = date(2006, 2, 13) # datetime.date(2006, 2, 13) print(hearing.strftime("%A")) ``` # printed: Monday It is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0058342
Each of Priya's swims burns 350 calories. How many calories over 5 swims? Python version: per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) Running it prints 1750. That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0058343
26 labels cost $24 apiece. With 7% tax added, what is the total? Programmatically: ```python quantity = 26 unit_price = 24 subtotal = quantity * unit_price # 624 total = subtotal * (1 + 7 / 100) # 667.6800000000001 print(f"{total:.2f}") ``` It outputs 667.68. The invoice total is $667.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "667.68", "printed": "667.68", "notation": null}
nlprog_det-setting-0058344
Marek's scores were 67, 66, 91, 78 and 83. What is the average score? ```python scores = [67, 66, 91, 78, 83] average = sum(scores) // len(scores) # 77 print(average) ``` Running this gives 77. The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0058345
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> 592 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 592 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` The script prints 15. It takes 15 boxes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "592 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 592\nper_box = 40\nboxes = math.ceil(files / per_box)...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0058346
One can of paint covers 300 square feet. How many cans are needed for 611 square feet of wall? Computing it: import math area = 611 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) Output = 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0058347
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calc", "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": ["prog...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0058348
Sara lends $2,500 at 8% simple interest per year for 5 years. How much interest is earned? Script: ```python principal = 2500 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 1000.0 print(f"{interest:.2f}") ``` Running it prints: 1000.00 The interest is $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0058349
<|start|><|user|> Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` Executing it gives 4500...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0058350
What average speed covers 191 miles in 0.5 hours? In code: ```python distance = 191 hours = 0.5 speed = distance / hours # 382.0 print(round(speed)) ``` Printed result: 382 The average speed is 382 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "382", "printed": "382", "notation": null}
nlprog_det-setting-0058351
$10,000 is invested at 2% compounded yearly. What is it worth after 2 years? Python does the arithmetic: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 10404.0 print(f"{value:.2f}") ``` What it prints — 10404.00 The balance is $10,404.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0058352
<|start|><|system|> Tool definitions: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Someone born July 10, 2008 turns how ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"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
[]
[]
237
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0058353
An invoice lists 28 ink cartridges at $12 each, plus 7% sales tax. What is the invoice total? A Python solution: ```python quantity = 28 unit_price = 12 subtotal = quantity * unit_price # 336 total = subtotal * (1 + 7 / 100) # 359.52000000000004 print(f"{total:.2f}") ``` (Output: 359.52) The invoice total is $359.5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "359.52", "printed": "359.52", "notation": null}
nlprog_det-setting-0058355
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The margin is 11.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0058356
A meal costs $110.65. How much is a 10% tip? Python, step by step: bill = 110.65 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 11.065000000000001 print(f"{tip:.2f}") # out: 11.07 The tip is $11.07.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "11.07", "printed": "11.07", "notation": null}
nlprog_det-setting-0058357
A $96 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share? Script: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 57.599999999999994 print(f"{each:.2f}") ``` Running it prints: 57.60 The share is $57.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "57.60", "printed": "57.60", "notation": null}
nlprog_det-setting-0058359
<|start|><|user|> A hall has 10 rows of 12 seats, and 19 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 10 per_row = 12 empty = 19 seated = rows * per_row - empty print(seated) ``` When run, it prints: 101 101 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 10 rows of 12 seats, and 19 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 10\nper_row = 12\nempty = 19\nseated = rows * per_row - empty\nprint(seated)\n```\nWhen run, it prints: 101\n\n101 seats are ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0058360
The building opened in 2006. How many years had passed by 2031? Translated to Python: start_year = 2006 end_year = 2031 print(end_year - start_year) Execution prints 25, as expected. 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0058361
How long, in days, is it from August 25, 2023 until November 13, 2023? Coded up: from datetime import date first = date(2023, 8, 25) # datetime.date(2023, 8, 25) second = date(2023, 11, 13) # datetime.date(2023, 11, 13) print((second - first).days) Output: 80 It is 80 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0058362
<|start|><|user|> A settlement of $1,200 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 5 share = settlement // parties # 240 print(share) ``` The script prints 240. Each share is $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $1,200 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 5\nshare = settlement // parties # 240\nprint(share)\n```\nThe script prints 240.\n\nEach share...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0058363
Someone born June 17, 1993 turns how old by September 24, 2027? Give the age in whole years. Programmatically: ```python from datetime import date born = date(1993, 6, 17) # datetime.date(1993, 6, 17) on = date(2027, 9, 24) # datetime.date(2027, 9, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0058364
<|start|><|user|> A hall has 18 rows of 11 seats, and 7 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 18 per_row = 11 empty = 7 seated = rows * per_row - empty # 191 print(seated) ``` On running, it outputs 191. 191 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 18 rows of 11 seats, and 7 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 18\nper_row = 11\nempty = 7\nseated = rows * per_row - empty # 191\nprint(seated)\n```\nOn running, it outputs 191.\n\n191 se...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0058365
Straight-line depreciation: cost $18,000, salvage $3,000, 5 years. How much per year? A short script: ```python cost = 18000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` (Output: 3000.00) $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0058366
4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Here is the program. ```python award = 72000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` Printed: 10800.00 Each share is $10,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0058367
What is -15 degrees Celsius in Fahrenheit? We write it as a program: celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) # output: 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058368
17 of 20 members attended. What percent attended? Python, step by step: ```python present = 17 total = 20 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` Running it prints 85.0. 85.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0058369
<|start|><|user|> Straight-line depreciation: cost $24,000, salvage $3,000, 3 years. How much per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` Run result — 7000.00 Depreciation is $7,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $24,000, salvage $3,000, 3 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 3000\nyears = 3\nper_year = (cost - salvage) / years # 7000.0\nprint(f\"{per_year:.2f}\")\n```\nRun resul...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0058370
The meal allowance is $69 per day. What is it for 5 days? That comes to $345.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0058371
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["progra...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
365
{"gold": "2028-10-02", "printed": "2028-10-02", "notation": null}
nlprog_det-setting-0058372
A meal costs $159.18. How much is a 22% tip? Let's compute it with Python. ```python bill = 159.18 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 35.019600000000004 print(f"{tip:.2f}") ``` Result = 35.02 The tip is $35.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "35.02", "printed": "35.02", "notation": null}
nlprog_det-setting-0058373
A 21 lb package ships at $5 base plus $2.50/lb. What is the charge? Python version: ```python base = 5 per_pound = 2.5 weight = 21 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Shell output — 57.50 Shipping costs $57.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0058374
The meal allowance is $69 per day. What is it for 5 days? As a program: ```python days = 5 meal_rate = 69 total = days * meal_rate # 345 print(total) ``` When run, it prints 345, as expected. The allowance is $345.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0058375
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 5 months? balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 750.0 print(f"{interest:.2f}") Python prints 750.00, as expected. The interest is $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0058377
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 43 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 90.0 pay = regular + overtime # 890.0 print(f"{pay:.2f}") ``` Result = 890.00 Ke...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 43\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 90.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0058378
<|start|><|system|> You can call tools. Available tools: {"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "bus...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
404
{"gold": "2020-09-17", "printed": "2020-09-17", "notation": null}
nlprog_det-setting-0058379
<|start|><|user|> Count 90 days forward from January 14, 2023. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 1, 14) # datetime.date(2023, 1, 14) end = start + timedelta(days=90) # datetime.date(2023, 4, 14) print(end.isoformat()) ``` Executing it gives: 2023...
chat
[ { "role": "user", "content": "Count 90 days forward from January 14, 2023. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 14) # datetime.date(2023, 1, 14)\nend = start + timedelta(days=90) # datetime.date(2023, 4...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2023-04-14", "printed": "2023-04-14", "notation": null}
nlprog_det-setting-0058380
How many meters are in 40 kilometers? ```python km = 40 meters = km * 1000 # 40000 print(round(meters)) ``` Printed: 40000 40,000 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "40000", "printed": "40000", "notation": null}
nlprog_det-setting-0058381
<|start|><|user|> A shift runs from 7:48 AM to 10:37 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 7 * 60 + 48 end = 10 * 60 + 37 print(end - start) ``` Shell output: 169 169 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:48 AM to 10:37 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 48\nend = 10 * 60 + 37\nprint(end - start)\n```\nShell output: 169\n\n169 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "169", "printed": "169", "notation": null}
nlprog_det-setting-0058382
<|start|><|user|> A quorum is 3/5 of the 57 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> 35 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 57 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "35 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0058384
Goods bought on December 12, 2018 carry a 36-month warranty. When does it expire? Computation in Python: from datetime import date start = date(2018, 12, 12) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(en...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2021-12-12", "printed": "2021-12-12", "notation": null}
nlprog_det-setting-0058385
At $0.70 per mile, what is the reimbursement for 357 miles? Python version: ```python miles = 357 rate = 0.7 reimbursement = miles * rate # 249.89999999999998 print(f"{reimbursement:.2f}") ``` Output = 249.90 The reimbursement is $249.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "249.90", "printed": "249.90", "notation": null}
nlprog_det-setting-0058386
An attorney bills 2.5 hours at $350 per hour. What is the bill? As a program: ```python hours = 2.5 rate = 350 bill = hours * rate print(f"{bill:.2f}") ``` (Program output: 875.00) That comes to $875.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "875.00", "printed": "875.00", "notation": null}
nlprog_det-setting-0058387
What average speed covers 312 miles in 1.5 hours? As Python: ```python distance = 312 hours = 1.5 speed = distance / hours # 208.0 print(round(speed)) ``` That prints: 208 The average speed is 208 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "208", "printed": "208", "notation": null}
nlprog_det-setting-0058388
<|start|><|system|> You have access to these functions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python", "description": "A Python ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
328
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0058389
<|start|><|user|> The landlord deducts $120 and $45 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [120, 45] refund = deposit - sum(deductions) print(refund) ``` Console output — 2335 The refund is $2,335.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $120 and $45 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [120, 45]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nConsole output — 2335\n\nThe re...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2335", "printed": "2335", "notation": null}
nlprog_det-setting-0058390
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 15 thousand gallons? The bill is $57.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0058391
A customer buys 5 folders at $2 each, 3 sticky pads at $24 each, 5 batteries at $6 each, 1 keyboards at $29 each and pays with $150. How much change is due? Python makes this quick: ```python items = [(5, 2), (3, 24), (5, 6), (1, 29)] total = sum(q * p for q, p in items) # 141 paid = 150 change = paid - total # 9 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0058392
A 6 × 11 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Script: import math length = 6 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 66 print(tiles) Out: 66 It takes 66 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0058393
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Pilar's scores were 51, 87, 63, 56, 85, 60 and 81. What is the average score?<|eot|> <|assistant|> ```python scores = [51, 87, 63, 56, 85, 60, 81] average = sum(scores) // len(scores) # 69 print(average) ``` The program prints 69, as expected. T...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Pilar's scores were 51, 87, 63, 56, 85, 60 and 81. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [51, 87, 63, 56, 85, 60, 81]\naverage = sum(...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0058395
186 files go into boxes of 50. How many boxes does that take? As a program: ```python import math files = 186 per_box = 50 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` On running, it outputs 4. It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0058396
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "define_word", "description": "Return a dictiona...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "14822", "printed": "14822", "notation": null}
nlprog_det-setting-0058397
With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal. A Python solution: ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Out — 33.3 The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0058398
Someone born January 6, 2008 turns how old by September 19, 2028? Give the age in whole years. The program: ```python from datetime import date born = date(2008, 1, 6) # datetime.date(2008, 1, 6) on = date(2028, 9, 19) # datetime.date(2028, 9, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0058399
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Buying 6 staplers at $5 each, 6 paper ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
266
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0058400
With 19 rows of 20 chairs and 25 empty chairs, how many chairs are taken? 355 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "355", "printed": "355", "notation": null}
nlprog_det-setting-0058401
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
440
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0058402
At $26.48 an hour, what does 20 hours of work pay? The Python version: rate = 26.48 hours = 20 earnings = rate * hours # 529.6 print(f"{earnings:.2f}") It outputs: 529.60 That earns $529.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "529.60", "printed": "529.60", "notation": null}
nlprog_det-setting-0058403
Papers were served by mail on July 1, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? As a program: from datetime import date, timedelta served = date(2018, 7, 1) # datetime.date(2018, 7, 1) response_days = 21 mail_days = 3 due = served + timedel...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "2018-07-25", "printed": "2018-07-25", "notation": null}