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-0079358
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 5 hours?<|eot|> <|assistant|> 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 5 hours?" }, { "role": "assistant", "content": "The charge is $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079359
How much is a $69 daily meal allowance over 8 days? Python does the arithmetic: ```python days = 8 meal_rate = 69 total = days * meal_rate # 552 print(total) ``` (Printed: 552) The allowance is $552.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "552", "printed": "552", "notation": null}
nlprog_det-setting-0079360
<|start|><|user|> After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 2 # 10500.0 print(f"{per_client:.2f}") ...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 30 / 100 # 9000.0\nremaining = award - fee # 21000.0\nper_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0079362
A car travels 448 miles in 2 hours. What is its average speed in miles per hour? One way, in code: distance = 448 hours = 2 speed = distance / hours # 224.0 print(round(speed)) Console output: 224 The average speed is 224 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "224", "printed": "224", "notation": null}
nlprog_det-setting-0079363
A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term? Python code: ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` It prints 39360, as expected. In total, $39,360 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0079364
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Filing fees are $25 per document. What do 5 filings cost?<|eot|> <|assistant|> ```python fee = 25 filings = 5 total = fee * filings # 125 print(total) ``` When run, it prints 125, as expected. $125 in filing fees.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Filing fees are $25 per document. What do 5 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 25\nfilings = 5\ntotal = fee * filings # 125\nprint(total)\n```\nWhen ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0079365
The firm was founded in 1994. How many years had passed by 2002? Code: ```python start_year = 1994 end_year = 2002 print(end_year - start_year) ``` Run it and it prints 8. 8 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079366
<|start|><|user|> Starting with 1147 ink cartridges and using 12 per day, how many remain after 7 days?<|eot|> <|assistant|> ```python stock = 1147 per_day = 12 days = 7 left = stock - per_day * days # 1063 print(left) ``` The printout reads 1063. 1063 ink cartridges are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1147 ink cartridges and using 12 per day, how many remain after 7 days?" }, { "role": "assistant", "content": "```python\nstock = 1147\nper_day = 12\ndays = 7\nleft = stock - per_day * days # 1063\nprint(left)\n```\nThe printout reads 1063.\n\n1063 in...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1063", "printed": "1063", "notation": null}
nlprog_det-setting-0079367
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0079368
3 boxes hold 8 flash drives each. After 10 are handed out, how many are left? Python does the arithmetic: ```python boxes = 3 per_box = 8 given_away = 10 left = boxes * per_box - given_away # 14 print(left) ``` # run result: 14 14 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0079369
<|start|><|user|> Papers were served by mail on March 15, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> It is due April 8, 2023.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on March 15, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "It is due April 8, 2023." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "2023-04-08", "printed": "2023-04-08", "notation": null}
nlprog_det-setting-0079370
27 clipboards cost $15 apiece. With 10% tax added, what is the total? Here is a short program for it. quantity = 27 unit_price = 15 subtotal = quantity * unit_price # 405 total = subtotal * (1 + 10 / 100) # 445.50000000000006 print(f"{total:.2f}") Run result — 445.50 The total with tax is $445.5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "445.50", "printed": "445.50", "notation": null}
nlprog_det-setting-0079371
<|start|><|system|> You have access to these functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "compute", "description": "Use for arithmetic and date math; returns stdout of ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"compute\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
354
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079372
Each storage box holds 24 files. How many boxes are needed for 623 files? Computing it: ```python import math files = 623 per_box = 24 boxes = math.ceil(files / per_box) # 26 print(boxes) ``` Program output: 26 It takes 26 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0079373
The rules require 1/3 of 20 members (round up) to be present. How many is that? In Python: ```python import math members = 20 quorum = math.ceil(members * 1 / 3) # 7 print(quorum) ``` When run, it prints 7, as expected. That is 7 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0079374
<|start|><|system|> Available functions (JSON Schema): [{"name": "sandbox_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": ["program"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0079375
Fines run at $250 per day up to a maximum of $1,000. How much after 51 days? Here is a short program for it. ```python per_day = 250 days = 51 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` It outputs: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0079376
To read 288 pages in 16 days, how many pages per day are needed? ```python pages = 288 days = 16 per_day = pages // days # 18 print(per_day) ``` It prints 18. That is 18 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0079377
<|start|><|user|> 155 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 155 total = 200 percent = present / total * 100 # 77.5 print(round(percent, 1)) ``` Program output — 77.5 77.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "155 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 155\ntotal = 200\npercent = present / total * 100 # 77.5\nprint(round(percent, 1))\n```\nProgram output — 77.5\n\n77.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0079378
A party has 30 days to respond to a motion served on July 27, 2028, with 3 days added because service was by mail. When is the response due? Let's compute it with Python. from datetime import date, timedelta served = date(2028, 7, 27) # datetime.date(2028, 7, 27) response_days = 30 mail_days = 3 d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2028-08-29", "printed": "2028-08-29", "notation": null}
nlprog_det-setting-0079379
<|start|><|user|> A settlement of $15,000 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> Each share is $3,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $15,000 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each share is $3,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0079380
Fixed costs are $2,500. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even? Coded up: ```python import math fixed = 2500 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` (Execution result: 500) 500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0079381
A meal costs $240.84. How much is a 20% tip? Written as code: bill = 240.84 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 48.168000000000006 print(f"{tip:.2f}") The program outputs: 48.17 Leave $48.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "48.17", "printed": "48.17", "notation": null}
nlprog_det-setting-0079383
What day of the week is September 21, 2014? The Python version: ```python from datetime import date hearing = date(2014, 9, 21) # datetime.date(2014, 9, 21) print(hearing.strftime("%A")) ``` stdout = Sunday September 21, 2014 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0079384
If a 6-year limitations period starts on July 14, 2012, when does it end? A Python solution: ```python from datetime import date accrued = date(2012, 7, 14) # datetime.date(2012, 7, 14) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 7, 14) print(expires.isoformat()) ``` It print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2018-07-14", "printed": "2018-07-14", "notation": null}
nlprog_det-setting-0079385
<|start|><|user|> Meals are $74 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?<|eot|> <|assistant|> days = 7 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1568 print(total) Executing it gives: 1568...
chat
[ { "role": "user", "content": "Meals are $74 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?" }, { "role": "assistant", "content": " days = 7\n meal_rate = 74\n lodging_rate = 175\n nights = days - 1 # 6\n total = days * meal_rate + nights * lodg...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1568", "printed": "1568", "notation": null}
nlprog_det-setting-0079386
<|start|><|system|> Tools you may use: {"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": "eval_python", "description": "Python san...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"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\", \"sect...
nlprog_det
setting
original
null
deterministic
[]
[]
324
{"gold": "1092.73", "printed": "1092.73", "notation": null}
nlprog_det-setting-0079387
4 bike rides at 250 calories each burn how many calories in total? Program: ```python per_session = 250 sessions = 4 total = per_session * sessions # 1000 print(total) ``` The printout reads: 1000 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0079388
Marek buys 6 boxes of 10 staplers each and gives away 1 staplers. How many staplers are left? Computing it: ```python boxes = 6 per_box = 10 given_away = 1 left = boxes * per_box - given_away # 59 print(left) ``` It outputs 59. 59 staplers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0079389
Pack A has 8 items for $6.36. Pack B has 24 items for $14.28. Which has the lower price per item? The computation: pack_a = 6.36 / 8 # 0.795 pack_b = 14.28 / 24 # 0.595 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Run output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0079390
<|start|><|user|> Someone works 36 hours at $23.94 per hour. What are the earnings?<|eot|> <|assistant|> The pay is $861.84.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $23.94 per hour. What are the earnings?" }, { "role": "assistant", "content": "The pay is $861.84." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "861.84", "printed": "861.84", "notation": null}
nlprog_det-setting-0079391
What is 30 degrees Celsius in Fahrenheit? ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Executing it gives: 86 It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0079392
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A clerk's office charges $405 for each filing. Yusuf submits 14 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 405 filings = 14 total = fee * filings # 5670 print(total) ``` When run, it prints 5670. The total fee is $5,670.<|e...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A clerk's office charges $405 for each filing. Yusuf submits 14 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 14\ntotal = fee * ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "5670", "printed": "5670", "notation": null}
nlprog_det-setting-0079393
Zainab's scores were 73, 63, 53, 83 and 98. What is the average score? Python, step by step: scores = [73, 63, 53, 83, 98] average = sum(scores) // len(scores) # 74 print(average) The run gives 74. The average score is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0079394
Beatriz and Chen share $2,104 in the ratio 1:3. How much does Beatriz get? Program: ```python total = 2104 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 526 print(share_a) ``` The run gives: 526 Beatriz's share is $526.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "526", "printed": "526", "notation": null}
nlprog_det-setting-0079395
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? Let the code do the arithmetic: rate = 16.0 hours = 41 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 24.0 pay = regular + overtime # 664.0 print(f"{pay:.2f}") Out = 664.00 K...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "664.00", "printed": "664.00", "notation": null}
nlprog_det-setting-0079396
<|start|><|user|> Buying 6 sticky pads at $5 each, 1 hard drives at $30 each, 6 toner kits at $29 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 5), (1, 30), (6, 29)] total = sum(q * p for q, p in items) # 234 paid = 250 change = paid - total # 16 print(change) ``` ...
chat
[ { "role": "user", "content": "Buying 6 sticky pads at $5 each, 1 hard drives at $30 each, 6 toner kits at $29 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 5), (1, 30), (6, 29)]\ntotal = sum(q * p for q, p in items) # 234\n...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0079397
Rafael was born on November 4, 1980. How old is Rafael on March 1, 2020? The age is 39 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0079398
<|start|><|system|> Answer in plain English.<|eot|> <|user|> A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") stdout = 21000.00 The fee is $21,000.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 60000\n rate = 35 / 100 # 0.35\n fee = recovery * rate # 21000.0...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0079399
<|start|><|system|> You may call the tools below. {"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "define_word", "...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
343
{"gold": "328", "printed": "328", "notation": null}
nlprog_det-setting-0079400
A library charges $0.20 per book per day late. What is the fine for 3 books that are 15 days late? $9.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0079401
<|start|><|user|> 6 bike rides at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Printed: 1800 That burns 1800 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 bike rides at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 6\ntotal = per_session * sessions # 1800\nprint(total)\n```\nPrinted: 1800\n\nThat burns 1800 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0079402
<|start|><|user|> A pack of 10 envelopes sells for $370. What does each cost?<|eot|> <|assistant|> ```python total = 370 count = 10 per_item = total // count # 37 print(per_item) ``` The script prints 37, as expected. The unit price is $37.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 envelopes sells for $370. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 370\ncount = 10\nper_item = total // count # 37\nprint(per_item)\n```\nThe script prints 37, as expected.\n\nThe unit price is $37." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0079403
From a $2,500 retainer, 2 hours at $275/hour have been drawn. What remains? Here is the program. ```python retainer = 2500 hours = 2 rate = 275 left = retainer - hours * rate # 1950 print(left) ``` Execution prints: 1950 The remaining balance is $1,950.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0079404
What does $1,000 grow to in 2 years at 3% annual compounding? Script: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 1060.8999999999999 print(f"{value:.2f}") ``` On running, it outputs 1060.90. It is worth $1,060.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1060.90", "printed": "1060.90", "notation": null}
nlprog_det-setting-0079405
<|start|><|user|> At an exchange rate of 1.08 USD per CHF, how many USD is 7,544 CHF?<|eot|> <|assistant|> It converts to 8,147.52 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 USD per CHF, how many USD is 7,544 CHF?" }, { "role": "assistant", "content": "It converts to 8,147.52 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "8147.52", "printed": "8147.52", "notation": null}
nlprog_det-setting-0079406
A pack of 10 badges sells for $530. What does each cost? ```python total = 530 count = 10 per_item = total // count # 53 print(per_item) ``` (stdout: 53) The unit price is $53.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0079407
What is a 22% tip on a $65.66 bill? Programmatically: ```python bill = 65.66 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 14.4452 print(f"{tip:.2f}") ``` The code prints 14.45. Leave $14.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "14.45", "printed": "14.45", "notation": null}
nlprog_det-setting-0079408
<|start|><|user|> A clerk's office charges $45 for each filing. Yara submits 4 filings. What is the total fee?<|eot|> <|assistant|> fee = 45 filings = 4 total = fee * filings # 180 print(total) What it prints — 180 The filings cost $180 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $45 for each filing. Yara submits 4 filings. What is the total fee?" }, { "role": "assistant", "content": " fee = 45\n filings = 4\n total = fee * filings # 180\n print(total)\nWhat it prints — 180\n\nThe filings cost $180 in al...
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0079409
Carmen's scores were 64, 58, 90, 72, 73 and 69. What is the average score? Code: ```python scores = [64, 58, 90, 72, 73, 69] average = sum(scores) // len(scores) # 71 print(average) ``` When run, it prints: 71 The mean is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0079410
A count moves from 1,000 to 1,050. By what percent did it change (use a minus sign for a drop)? One way, in code: ```python old = 1000 new = 1050 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` # printed result: 5 It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079411
A car travels 70 miles in 2 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 70 hours = 2 speed = distance / hours # 35.0 print(round(speed)) ``` Output: 35 The average speed is 35 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0079412
156 copies of a 45-page packet are printed at $0.05 per page. What is the cost? Python does the arithmetic: ```python pages = 45 copies = 156 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 351.0 print(f"{cost:.2f}") ``` Run result — 351.00 The job costs $351.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "351.00", "printed": "351.00", "notation": null}
nlprog_det-setting-0079413
<|start|><|user|> A 11 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 11 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 28 print(tiles) ``` Run result — 28 It takes 28 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 11 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 11\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 28\nprint(tiles)\n```\nRun result...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0079414
<|start|><|user|> Goods bought on June 23, 2024 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 6, 23) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.is...
chat
[ { "role": "user", "content": "Goods bought on June 23, 2024 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 6, 23)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2027-06-23", "printed": "2027-06-23", "notation": null}
nlprog_det-setting-0079415
How many of 90 votes make 75% (round up)? Code: ```python import math voters = 90 needed = math.ceil(voters * 75 / 100) # 68 print(needed) ``` Run output — 68 68 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0079416
5 bike rides at 250 calories each burn how many calories in total? The computation: per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) Run it and it prints: 1250 1250 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0079417
Papers were served by mail on November 22, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? A Python solution: ```python from datetime import date, timedelta served = date(2024, 11, 22) response_days = 28 mail_days = 3 due = served + timedelta(days=response_days + mai...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2024-12-23", "printed": "2024-12-23", "notation": null}
nlprog_det-setting-0079418
Each storage box holds 50 files. How many boxes are needed for 501 files? ```python import math files = 501 per_box = 50 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` Running it prints 11, as expected. 11 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0079419
<|start|><|user|> A 12 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 12 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 15 print(tiles) ``` It prints 15, as expected. 15 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 12 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 12\nwidth = 5\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 15\nprint(tiles)\n```\nIt prints 15...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079420
Find the mean of these test scores: 86, 60 and 85. As Python: ```python scores = [86, 60, 85] average = sum(scores) // len(scores) # 77 print(average) ``` (Result: 77) The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0079421
A 10 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? 100 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0079422
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Someone works 16 hours at $21.50 per ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "344.00", "printed": "344.00", "notation": null}
nlprog_det-setting-0079423
<|start|><|user|> Fiona buys 10 boxes of 8 file boxes each and gives away 15 file boxes. How many file boxes are left?<|eot|> <|assistant|> boxes = 10 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 65 print(left) Output of the run — 65 65 file boxes are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fiona buys 10 boxes of 8 file boxes each and gives away 15 file boxes. How many file boxes are left?" }, { "role": "assistant", "content": " boxes = 10\n per_box = 8\n given_away = 15\n left = boxes * per_box - given_away # 65\n print(left)\nOutput o...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0079424
One can of paint covers 300 square feet. How many cans are needed for 484 square feet of wall? In Python: import math area = 484 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) (Run result: 2) 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0079425
Split $2,359 between Olga and Amir in the ratio 2 to 5. What is Olga's share? Python does the arithmetic: ```python total = 2359 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 674 print(share_a) ``` Result: 674 Olga's share is $674.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "674", "printed": "674", "notation": null}
nlprog_det-setting-0079426
At an exchange rate of 1.08 EUR per USD, how many EUR is 431 USD? The Python version: ```python amount = 431 rate = 1.08 converted = amount * rate # 465.48 print(f"{converted:.2f}") ``` Out — 465.48 It converts to 465.48 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "465.48", "printed": "465.48", "notation": null}
nlprog_det-setting-0079427
<|start|><|user|> Shipping costs $10 plus $1.50 per pound. What does a 5-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.5 weight = 5 cost = base + per_pound * weight # 17.5 print(f"{cost:.2f}") ``` Printed: 17.50 Shipping costs $17.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $1.50 per pound. What does a 5-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.5\nweight = 5\ncost = base + per_pound * weight # 17.5\nprint(f\"{cost:.2f}\")\n```\nPrinted: 17.50\n\nShipp...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0079428
Convert 5,190 USD to EUR at 1 USD = 1.08 EUR. That is 5,605.20 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "5605.20", "printed": "5605.20", "notation": null}
nlprog_det-setting-0079429
A 4 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Python makes this quick: import math length = 4 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 16 print(tiles) Out = 16 16 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0079430
<|start|><|user|> How many 2-foot square tiles cover a 8 ft by 14 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 8 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Printed: 28 28 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 8 ft by 14 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 8\nwidth = 14\ntile = 2\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nPrinted:\n28\n\n28 tiles are n...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0079431
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A customer buys 6 keyboards at $8 each, 6 markers at $4 each, 2 toner kits at $20 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(6, 8), (6, 4), (2, 20)] total = sum(q * p for q, p in items) # 112 paid = 150 change = p...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A customer buys 6 keyboards at $8 each, 6 markers at $4 each, 2 toner kits at $20 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(6, 8...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0079432
Monthly: $12. Annual: $114. What is saved per year by paying annually? Here's the code. ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly print(savings) ``` What it prints — 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079433
The landlord deducts $45 and $60 from a $1,000 deposit. What is returned to the tenant? In Python: deposit = 1000 deductions = [45, 60] refund = deposit - sum(deductions) # 895 print(refund) Output = 895 The refund is $895.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "895", "printed": "895", "notation": null}
nlprog_det-setting-0079434
Walls total 365 sq ft and each can covers 400 sq ft. How many cans should be bought? A Python solution: ```python import math area = 365 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` # printed result: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0079435
<|start|><|user|> At 60 miles per hour, how many minutes does a 200-mile trip take?<|eot|> <|assistant|> ```python distance = 200 speed = 60 minutes = distance / speed * 60 # 200.0 print(round(minutes)) ``` (Output: 200) 200 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 200-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 200\nspeed = 60\nminutes = distance / speed * 60 # 200.0\nprint(round(minutes))\n```\n(Output: 200)\n\n200 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0079436
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> At a 9% tax rate, what is the tax on $332.12?<|eot|> <|assistant|> ```python price = 332.12 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 29.8908 print(f"{tax:.2f}") ``` The printout reads 29.89. $29.89 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "At a 9% tax rate, what is the tax on $332.12?" }, { "role": "assistant", "content": "```python\nprice = 332.12\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 29.8908\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "29.89", "printed": "29.89", "notation": null}
nlprog_det-setting-0079437
<|start|><|system|> You have access to these functions: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Someone works 20 hou...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "395.20", "printed": "395.20", "notation": null}
nlprog_det-setting-0079438
2 books come back 7 days late, at $0.25 a day each. What is the fine? Python: ```python per_day = 0.25 days_late = 7 books = 2 fine = per_day * days_late * books print(f"{fine:.2f}") ``` Out = 3.50 $3.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3.50", "printed": "3.50", "notation": null}
nlprog_det-setting-0079439
How long, in days, is it from September 21, 2027 until April 16, 2028? Python does the arithmetic: ```python from datetime import date first = date(2027, 9, 21) # datetime.date(2027, 9, 21) second = date(2028, 4, 16) # datetime.date(2028, 4, 16) print((second - first).days) ``` The script prints 208, as expected. I...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "208", "printed": "208", "notation": null}
nlprog_det-setting-0079440
Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even? Here's the code. ```python import math fixed = 4000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` Executing it gives 400, as expected. Break-even is 400 un...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0079441
<|start|><|user|> Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + interest) / months # 32...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 8 / 100 # 0.08\nmonths = 12\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0079442
<|start|><|user|> An invoice lists 18 tape rolls at $15 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 18 unit_price = 15 subtotal = quantity * unit_price # 270 total = subtotal * (1 + 6 / 100) # 286.2 print(f"{total:.2f}") The program prints: 286.20 The total...
chat
[ { "role": "user", "content": "An invoice lists 18 tape rolls at $15 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 18\n unit_price = 15\n subtotal = quantity * unit_price # 270\n total = subtotal * (1 + 6 / 100) # 286.2\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "286.20", "printed": "286.20", "notation": null}
nlprog_det-setting-0079443
A car travels 470 miles in 2 hours. What is its average speed in miles per hour? Python version: ```python distance = 470 hours = 2 speed = distance / hours # 235.0 print(round(speed)) ``` Printed — 235 It averages 235 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0079444
<|start|><|system|> Available functions (JSON Schema): {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "code_runner", "description": "Evaluat...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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
[]
[]
335
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0079445
Monthly rent is $900. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent? Programmatically: ```python rent = 900 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 522.5806451612904 print(f"{prorated:.2f}") ``` # printed result: 522.58 The prorated r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "522.58", "printed": "522.58", "notation": null}
nlprog_det-setting-0079446
<|start|><|user|> 5 walks at 400 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) ``` Run result = 2000 That burns 2000 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 walks at 400 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 5\ntotal = per_session * sessions # 2000\nprint(total)\n```\nRun result = 2000\n\nThat burns 2000 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0079447
<|start|><|user|> Water costs $15 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 3 free = 2 bill = base + rate * max(0, used - free) # 20.1 print(f"{bill:.2f}") ``` Python prints 20.10, as expected. $20.10 is owed.<|eot|...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 3\nfree = 2\nbill = base + rate * max(0, used - free) # 20.1\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "20.10", "printed": "20.10", "notation": null}
nlprog_det-setting-0079448
3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Script: ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 3 # 7500.0 print(f"{per_client:.2f}") ``` The program prints: 7500.00 Each share is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0079449
A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum? Here is the program. ```python import math members = 12 quorum = math.ceil(members * 3 / 5) # 8 print(quorum) ``` Running this gives: 8 That is 8 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079450
Notice was given on August 14, 2023. The notice period is 60 days. When does it run out? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2023, 8, 14) # datetime.date(2023, 8, 14) end = start + timedelta(days=60) # datetime.date(2023, 10, 13) print(end.isoformat()) ``` Run resu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2023-10-13", "printed": "2023-10-13", "notation": null}
nlprog_det-setting-0079451
<|start|><|system|> Available functions (JSON Schema): {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> An un...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0079452
How many meters are in 5.2 kilometers? ```python km = 5.2 meters = km * 1000 # 5200.0 print(round(meters)) ``` Output of the run: 5200 5,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "5200", "printed": "5200", "notation": null}
nlprog_det-setting-0079454
How many weekdays (Monday to Friday) fall after August 18, 2028 up to and including September 13, 2028? Program: ```python from datetime import date, timedelta start = date(2028, 8, 18) end = date(2028, 9, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0079455
How many weekdays (Monday to Friday) fall after March 10, 2027 up to and including April 10, 2027? In code: from datetime import date, timedelta start = date(2027, 3, 10) end = date(2027, 4, 10) 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
[]
[]
143
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0079456
<|start|><|user|> Fuel for 450 miles at 40 mpg, with gas at $4.12/gallon: what is the cost?<|eot|> <|assistant|> Fuel costs $46.35.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 450 miles at 40 mpg, with gas at $4.12/gallon: what is the cost?" }, { "role": "assistant", "content": "Fuel costs $46.35." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "46.35", "printed": "46.35", "notation": null}
nlprog_det-setting-0079457
<|start|><|system|> Functions: {"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Counting the first and last day, ho...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0079458
<|start|><|user|> Divide 44 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 44 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Execution prints: 8 each, 4 left over...
chat
[ { "role": "user", "content": "Divide 44 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 44\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "8 each, 4 left over", "printed": "8 each, 4 left over", "notation": null}
nlprog_det-setting-0079459
141 copies of a 10-page packet are printed at $0.05 per page. What is the cost? Coded up: ```python pages = 10 copies = 141 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` Running it prints 70.50. The job costs $70.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70.50", "printed": "70.50", "notation": null}
nlprog_det-setting-0079460
Notice was given on December 5, 2018. The notice period is 60 days. When does it run out? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2018, 12, 5) # datetime.date(2018, 12, 5) end = start + timedelta(days=60) # datetime.date(2019, 2, 3) print(end.isoformat()) ``` Output: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2019-02-03", "printed": "2019-02-03", "notation": null}