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-0046585
<|start|><|user|> 822 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 822 per_box = 24 boxes = math.ceil(files / per_box) print(boxes) ``` Execution prints 35. 35 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "822 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 822\nper_box = 24\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nExecution prints 35.\n\n35 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0046586
<|start|><|system|> You may call the tools below. {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Papers were serv...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
270
{"gold": "2023-11-18", "printed": "2023-11-18", "notation": null}
nlprog_det-setting-0046587
Counting the first and last day, how many days are there from March 12, 2021 through March 20, 2021? 9 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0046588
734 files go into boxes of 50. How many boxes does that take? 15 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0046589
<|start|><|user|> Counting only Monday through Friday, how many business days are there after February 2, 2018 through February 19, 2018?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 2, 2) end = date(2018, 2, 19) count = 0 for k in range(1, (end - start).days + 1): if (star...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after February 2, 2018 through February 19, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 2, 2)\nend = date(2018, 2, 19)\ncount =...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0046590
<|start|><|system|> Available functions (JSON Schema): [{"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": "run_python", "descript...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
331
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0046591
<|start|><|user|> Express 56 hours in days and hours.<|eot|> <|assistant|> ```python hours = 56 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result — 2 days and 8 hours 56 hours is 2 days and 8 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 56 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 56\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nResult — 2 days and 8 hours\n\n56 hours is 2 days and 8 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2 days and 8 hours", "printed": "2 days and 8 hours", "notation": null}
nlprog_det-setting-0046592
3 swims at 200 calories each burn how many calories in total? That burns 600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0046593
<|start|><|user|> An attorney bills 2 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2 rate = 410 bill = hours * rate # 820 print(f"{bill:.2f}") ``` Out: 820.00 The bill is $820.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 410\nbill = hours * rate # 820\nprint(f\"{bill:.2f}\")\n```\nOut:\n820.00\n\nThe bill is $820.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0046594
A car travels 450 miles in 0.5 hours. What is its average speed in miles per hour? Python: ```python distance = 450 hours = 0.5 speed = distance / hours # 900.0 print(round(speed)) ``` Program output — 900 It averages 900 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0046595
<|start|><|user|> A count moves from 400 to 360. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 400 new = 360 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Output: -10 The change is -10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 360. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 360\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nOutput: -10\n\nThe change is -10...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0046596
An invoice lists 21 clipboards at $2 each, plus 6% sales tax. What is the invoice total? Programmatically: ```python quantity = 21 unit_price = 2 subtotal = quantity * unit_price # 42 total = subtotal * (1 + 6 / 100) # 44.52 print(f"{total:.2f}") ``` (Run result: 44.52) The invoice total is $44.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "44.52", "printed": "44.52", "notation": null}
nlprog_det-setting-0046597
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A hall has 9 rows of 16 seats, and 16 seats are empty. How many people are seated?<|eot|> <|assistant|> 128 seats are taken.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A hall has 9 rows of 16 seats, and 16 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "128 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "128", "printed": "128", "notation": null}
nlprog_det-setting-0046598
How many whole days and leftover hours are in 152 hours? A Python solution: ```python hours = 152 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Output: 6 days and 8 hours) 152 hours is 6 days and 8 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "6 days and 8 hours", "printed": "6 days and 8 hours", "notation": null}
nlprog_det-setting-0046599
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "lookup_statute", "descriptio...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "2614.08", "printed": "2614.08", "notation": null}
nlprog_det-setting-0046600
<|start|><|system|> Available functions (JSON Schema): [{"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"]}}]<|eot|> <|user|> Ho...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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 cod...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "7.48", "printed": "7.48", "notation": null}
nlprog_det-setting-0046601
<|start|><|user|> How many 1-foot square tiles cover a 7 ft by 5 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 7 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 35 print(tiles) ``` Output of the run — 35 It takes 35 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 7 ft by 5 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 7\nwidth = 5\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 35\nprint(tiles)\n```\nOutput of the run — 35\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0046602
<|start|><|user|> What does $1,000 grow to in 3 years at 4% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 4 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Out: 1124.86 The balance is $1,124.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 3 years at 4% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 4 / 100\nyears = 3\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nOut: 1124.86\n\nThe balance is $1,124....
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0046603
Priya lends $8,000 at 8% simple interest per year for 4 years. How much interest is earned? The computation: ```python principal = 8000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 2560.0 print(f"{interest:.2f}") ``` # printed result: 2560.00 The interest is $2,560.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2560.00", "printed": "2560.00", "notation": null}
nlprog_det-setting-0046604
A penalty of $100 a day accrues, capped at $2,500. What is owed after 17 days? As Python: ```python per_day = 100 days = 17 cap = 2500 fine = min(per_day * days, cap) # 1700 print(fine) ``` The printout reads: 1700 The fine is $1,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1700", "printed": "1700", "notation": null}
nlprog_det-setting-0046605
<|start|><|user|> Someone works 30 hours at $21.27 per hour. What are the earnings?<|eot|> <|assistant|> rate = 21.27 hours = 30 earnings = rate * hours # 638.1 print(f"{earnings:.2f}") Executing it gives 638.10. That earns $638.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $21.27 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 21.27\n hours = 30\n earnings = rate * hours # 638.1\n print(f\"{earnings:.2f}\")\nExecuting it gives 638.10.\n\nThat earns $638.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "638.10", "printed": "638.10", "notation": null}
nlprog_det-setting-0046606
<|start|><|user|> Convert -15 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` Result: 5 That is 5 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -15 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```\nResult:\n5\n\nThat is 5 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0046607
Convert 86.7 km to meters. 86,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
19
{"gold": "86700", "printed": "86700", "notation": null}
nlprog_det-setting-0046608
A garage charges $2 an hour, never more than $18 a day. How much for 12 hours? Coded up: ```python rate = 2 hours = 12 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Printed: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0046609
How many meters are in 63 kilometers? The program: ```python km = 63 meters = km * 1000 print(round(meters)) ``` Console output — 63000 That is 63,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "63000", "printed": "63000", "notation": null}
nlprog_det-setting-0046610
<|start|><|system|> You help with homework problems.<|eot|> <|user|> 452 files go into boxes of 50. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 452 per_box = 50 boxes = math.ceil(files / per_box) # 10 print(boxes) ``` It outputs: 10 10 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "452 files go into boxes of 50. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 452\nper_box = 50\nboxes = math.ceil(files / per_box...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0046611
Walls total 1087 sq ft and each can covers 350 sq ft. How many cans should be bought? As Python: ```python import math area = 1087 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` stdout = 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0046613
Convert 40.1 km to meters. Here is the program. km = 40.1 meters = km * 1000 # 40100.0 print(round(meters)) Run output — 40100 40,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "40100", "printed": "40100", "notation": null}
nlprog_det-setting-0046614
<|start|><|user|> Count the days between October 27, 2022 and February 28, 2023.<|eot|> <|assistant|> from datetime import date first = date(2022, 10, 27) # datetime.date(2022, 10, 27) second = date(2023, 2, 28) # datetime.date(2023, 2, 28) print((second - first).days) Run it and it prints: 124 It is...
chat
[ { "role": "user", "content": "Count the days between October 27, 2022 and February 28, 2023." }, { "role": "assistant", "content": " from datetime import date\n first = date(2022, 10, 27) # datetime.date(2022, 10, 27)\n second = date(2023, 2, 28) # datetime.date(2023, 2, 28)\n prin...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0046615
What commission does Beatriz make on $101,772 in sales at 3%? Coded up: sales = 101772 rate = 3 / 100 commission = sales * rate print(f"{commission:.2f}") Shell output: 3053.16 The commission is $3,053.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "3053.16", "printed": "3053.16", "notation": null}
nlprog_det-setting-0046618
How many weekdays (Monday to Friday) fall after December 21, 2022 up to and including January 7, 2023? The Python version: ```python from datetime import date, timedelta start = date(2022, 12, 21) end = date(2023, 1, 7) 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
[]
[]
157
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0046619
<|start|><|user|> Prorate $2,400 of monthly rent for 5 days of a 31-day month.<|eot|> <|assistant|> The prorated rent is $387.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 5 days of a 31-day month." }, { "role": "assistant", "content": "The prorated rent is $387.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0046620
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A custom...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0046621
Fixed costs are $2,500. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? Here is a short program for it. ```python import math fixed = 2500 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 417 print(units) ``` Execution prints 417, as expected. Break-e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0046622
Shipping costs $5 plus $2.50 per pound. What does a 26-pound parcel cost to ship? We can compute it in Python. ```python base = 5 per_pound = 2.5 weight = 26 cost = base + per_pound * weight # 70.0 print(f"{cost:.2f}") ``` Interpreter output: 70.00 Shipping costs $70.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "70.00", "printed": "70.00", "notation": null}
nlprog_det-setting-0046623
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Buying 6 markers at $2 each, 2 ink cartridges at $22 each, 3 toner kits at $30 each, 1 batteries at $7 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 2), (2, 22), (3, 30), (1, 7)] total = sum(q * p for q, p...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Buying 6 markers at $2 each, 2 ink cartridges at $22 each, 3 toner kits at $30 each, 1 batteries at $7 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "conten...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0046624
Water costs $18 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 8,000 gallons? ```python base = 18 rate = 3.5 used = 8 free = 2 bill = base + rate * max(0, used - free) # 39.0 print(f"{bill:.2f}") ``` The script prints: 39.00 $39.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0046625
A kettle costs $45. It is 25% off. What is the sale price? Python version: price = 45 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 33.75 print(f"{sale_price:.2f}") stdout: 33.75 It costs $33.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0046626
If a 5-year limitations period starts on January 17, 2021, when does it end? Written as code: ```python from datetime import date accrued = date(2021, 1, 17) # datetime.date(2021, 1, 17) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 1, 17) print(expires.isoformat()) ``` Result:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2026-01-17", "printed": "2026-01-17", "notation": null}
nlprog_det-setting-0046627
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment? A few lines of Python do it: ```python principal = 2400 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 144.0 payment = (principal + interest) / months # 212.0 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "212.00", "printed": "212.00", "notation": null}
nlprog_det-setting-0046628
A quorum is 3/5 of the 33 members, rounded up. How many members make a quorum? One way, in code: ```python import math members = 33 quorum = math.ceil(members * 3 / 5) # 20 print(quorum) ``` Run it and it prints 20. That is 20 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0046629
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|u...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0046630
With 30% off, what does a $90 printer cost? Program: ```python price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") ``` It prints: 63.00 The sale price is $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0046631
<|start|><|user|> 6 runs at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) ``` Execution prints 2100, as expected. 2100 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 runs at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 6\ntotal = per_session * sessions # 2100\nprint(total)\n```\nExecution prints 2100, as expected.\n\n2100 calories in total."...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0046632
A $1,500 security deposit has deductions of $200 and $200. How much is refunded? Written as code: ```python deposit = 1500 deductions = [200, 200] refund = deposit - sum(deductions) print(refund) ``` Output = 1100 The refund is $1,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0046633
How many whole days and leftover hours are in 69 hours? Let's compute it with Python. ```python hours = 69 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints 2 days and 21 hours. 69 hours is 2 days and 21 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2 days and 21 hours", "printed": "2 days and 21 hours", "notation": null}
nlprog_det-setting-0046635
How many units at $25 each (variable cost $15) cover $6,000 of fixed costs? A Python solution: ```python import math fixed = 6000 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) # 600 print(units) ``` stdout — 600 600 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0046636
Count the days between August 20, 2019 and June 4, 2020. One way, in code: ```python from datetime import date first = date(2019, 8, 20) # datetime.date(2019, 8, 20) second = date(2020, 6, 4) # datetime.date(2020, 6, 4) print((second - first).days) ``` (Program output: 289) It is 289 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "289", "printed": "289", "notation": null}
nlprog_det-setting-0046637
Hugo buys 4 boxes of 10 desk lamps each and gives away 12 desk lamps. How many desk lamps are left? Here is a short program for it. ```python boxes = 4 per_box = 10 given_away = 12 left = boxes * per_box - given_away print(left) ``` Run output — 28 28 desk lamps are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0046638
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 1200 annual_rate = 10 / 100 # 0.1 months = 12 interes...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content":...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0046639
<|start|><|user|> A client paid a $2,500 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 2500 hours = 7 rate = 150 left = retainer - hours * rate # 1450 print(left) ``` # result: 1450 $1,450 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 7\nrate = 150\nleft = retainer - hours * rate # 1450\nprint(left)\n```\n# res...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1450", "printed": "1450", "notation": null}
nlprog_det-setting-0046640
<|start|><|user|> A customer buys 1 notebooks at $16 each, 5 desk lamps at $8 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(1, 16), (5, 8)] total = sum(q * p for q, p in items) # 56 paid = 100 change = paid - total # 44 print(change) ``` Out: 44 The change is $44.<|eot|> <...
chat
[ { "role": "user", "content": "A customer buys 1 notebooks at $16 each, 5 desk lamps at $8 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(1, 16), (5, 8)]\ntotal = sum(q * p for q, p in items) # 56\npaid = 100\nchange = paid - total #...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0046641
Buying 1 desk lamps at $6 each, 3 binders at $25 each, 1 markers at $10 each, someone hands over $100. What change comes back? A Python solution: ```python items = [(1, 6), (3, 25), (1, 10)] total = sum(q * p for q, p in items) # 91 paid = 100 change = paid - total # 9 print(change) ``` Running it prints 9, as expec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0046642
At $0.70 per mile, what is the reimbursement for 148 miles? ```python miles = 148 rate = 0.7 reimbursement = miles * rate # 103.6 print(f"{reimbursement:.2f}") ``` Out: 103.60 The reimbursement is $103.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "103.60", "printed": "103.60", "notation": null}
nlprog_det-setting-0046643
How much sales tax is charged on a $35.92 purchase at 5%? We can compute it in Python. ```python price = 35.92 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 1.7960000000000003 print(f"{tax:.2f}") ``` Printed = 1.80 The tax is $1.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1.80", "printed": "1.80", "notation": null}
nlprog_det-setting-0046644
152 copies of a 26-page packet are printed at $0.10 per page. What is the cost? The program: pages = 26 copies = 152 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 395.20000000000005 print(f"{cost:.2f}") Run output — 395.20 The job costs $395.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "395.20", "printed": "395.20", "notation": null}
nlprog_det-setting-0046645
<|start|><|user|> At an exchange rate of 0.74 USD per GBP, how many USD is 2,815 GBP?<|eot|> <|assistant|> ```python amount = 2815 rate = 0.74 converted = amount * rate # 2083.1 print(f"{converted:.2f}") ``` It outputs: 2083.10 It converts to 2,083.10 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.74 USD per GBP, how many USD is 2,815 GBP?" }, { "role": "assistant", "content": "```python\namount = 2815\nrate = 0.74\nconverted = amount * rate # 2083.1\nprint(f\"{converted:.2f}\")\n```\nIt outputs: 2083.10\n\nIt converts to 2,083.10 US...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2083.10", "printed": "2083.10", "notation": null}
nlprog_det-setting-0046646
<|start|><|system|> Be concise.<|eot|> <|user|> Starting from $5,000, the team spends $392, $1,694, $1,317. What remains?<|eot|> <|assistant|> $1,597 is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Starting from $5,000, the team spends $392, $1,694, $1,317. What remains?" }, { "role": "assistant", "content": "$1,597 is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "1597", "printed": "1597", "notation": null}
nlprog_det-setting-0046647
<|start|><|user|> After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 3 # 24000.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0046648
Someone works 36 hours at $31.46 per hour. What are the earnings? We write it as a program: ```python rate = 31.46 hours = 36 earnings = rate * hours # 1132.56 print(f"{earnings:.2f}") ``` It prints 1132.56. That earns $1,132.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1132.56", "printed": "1132.56", "notation": null}
nlprog_det-setting-0046649
A settlement of $18,000 is split equally among 5 parties. How much does each party receive? Each share is $3,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0046650
<|start|><|system|> Tools you may use: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return a dictionary def...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\"name\...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0046651
Prorate $1,200 of monthly rent for 11 days of a 30-day month. In Python: ```python rent = 1200 days_in_month = 30 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 440.0 print(f"{prorated:.2f}") ``` (Console output: 440.00) The tenant owes $440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "440.00", "printed": "440.00", "notation": null}
nlprog_det-setting-0046652
With 19 rows of 23 chairs and 25 empty chairs, how many chairs are taken? Python: ```python rows = 19 per_row = 23 empty = 25 seated = rows * per_row - empty print(seated) ``` The script prints: 412 412 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "412", "printed": "412", "notation": null}
nlprog_det-setting-0046653
A lawyer's fee is 33% of a $40,000 recovery. How large is the fee? ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` Shell output — 13200.00 The lawyer's fee comes to $13,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0046654
<|start|><|user|> Of a $2,000 budget, $1,600 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 2000 spent = 1600 percent = spent / budget * 100 # 80.0 print(round(percent, 1)) ``` This prints 80.0, as expected. That is 80.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $2,000 budget, $1,600 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1600\npercent = spent / budget * 100 # 80.0\nprint(round(percent, 1))\n```\nThis prints 80.0, as expected.\n\nThat is 80.0% of ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0046655
Elena was born on September 8, 1993. How old is Elena on February 17, 2030? The program: ```python from datetime import date born = date(1993, 9, 8) on = date(2030, 2, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` It prints 36, as expected. Elena is 36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0046656
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A library charges $0.25 per book per day late. What is the fine for 4 books that are 4 days late?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 4 books = 4 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` # execution result: 4.00...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 4 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 4\nbooks = 4\nfin...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0046658
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Sales went from 200 to 280. What is the percent change?<|eot|> <|assistant|> ```python old = 200 new = 280 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` What it prints: 40 It changed by 40%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Sales went from 200 to 280. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 200\nnew = 280\nchange = (new - old) / old * 100 # 40.0\nprint(round(change))\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0046659
<|start|><|system|> Tools (call with JSON): {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A trial runs from June 26, 2022 to...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"compute\", \"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
[]
[]
229
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0046660
The building opened in 2016. How many years had passed by 2056? Here is the program. ```python start_year = 2016 end_year = 2056 print(end_year - start_year) ``` Out = 40 40 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0046661
<|start|><|user|> A $2,500 security deposit has deductions of $120. How much is refunded?<|eot|> <|assistant|> The refund is $2,380.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $120. How much is refunded?" }, { "role": "assistant", "content": "The refund is $2,380." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2380", "printed": "2380", "notation": null}
nlprog_det-setting-0046662
Counting only Monday through Friday, how many business days are there after August 11, 2019 through September 2, 2019? Python, step by step: ```python from datetime import date, timedelta start = date(2019, 8, 11) end = date(2019, 9, 2) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0046663
A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share? A short script: ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 30.0 print(f"{each:.2f}") ``` This prints 30.00, as expected. Each person pays $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0046664
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A $240 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 240 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 92.0 pri...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A $240 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 240\n tip_rate = 15 /...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "92.00", "printed": "92.00", "notation": null}
nlprog_det-setting-0046665
A 4 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? The Python version: ```python import math length = 4 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 10 print(tiles) ``` Python prints 10, as expected. It takes 10 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0046668
<|start|><|system|> Functions: {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "business_days", "description": "Count ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scrip...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0046669
<|start|><|user|> A 21-day notice period begins on January 25, 2023. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 1, 25) # datetime.date(2023, 1, 25) end = start + timedelta(days=21) # datetime.date(2023, 2, 15) print(end.isoformat()) ``` The script ...
chat
[ { "role": "user", "content": "A 21-day notice period begins on January 25, 2023. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 25) # datetime.date(2023, 1, 25)\nend = start + timedelta(days=21) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2023-02-15", "printed": "2023-02-15", "notation": null}
nlprog_det-setting-0046670
A party has 21 days to respond to a motion served on December 27, 2023, with 3 days added because service was by mail. When is the response due? Here is a short program for it. ```python from datetime import date, timedelta served = date(2023, 12, 27) response_days = 21 mail_days = 3 due = served + timedelta(days=resp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2024-01-20", "printed": "2024-01-20", "notation": null}
nlprog_det-setting-0046671
<|start|><|system|> Tools you may use: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "math_engine", "description": "Executes Python code ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0046672
Convert 16.7 km to meters. Here is a short program for it. ```python km = 16.7 meters = km * 1000 print(round(meters)) ``` Run it and it prints: 16700 16,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "16700", "printed": "16700", "notation": null}
nlprog_det-setting-0046674
The statute was enacted in 1995. How many years had passed by 2024? We can compute it in Python. ```python start_year = 1995 end_year = 2024 print(end_year - start_year) ``` Execution prints 29. That is 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0046675
2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Here is the program. ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2 # 14400.0 print(f"{per_client:.2f}") ``` When run, it prints 14400.00,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0046676
Parking is $3 per hour with a daily maximum of $18. What do 1 hours cost? Python makes this quick: ```python rate = 3 hours = 1 daily_max = 18 cost = min(rate * hours, daily_max) # 3 print(cost) ``` Printed = 3 Parking costs $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0046677
Fines run at $50 per day up to a maximum of $1,000. How much after 12 days? Here is a short program for it. ```python per_day = 50 days = 12 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` (Run result: 600) The fine is $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0046678
A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)? We can compute it in Python. ```python old = 400 new = 440 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` On running, it outputs: 10 It changed by 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0046679
<|start|><|user|> From 2012 to 2032, how many years is that?<|eot|> <|assistant|> ```python start_year = 2012 end_year = 2032 print(end_year - start_year) ``` Console output: 20 20 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2012 to 2032, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2012\nend_year = 2032\nprint(end_year - start_year)\n```\nConsole output: 20\n\n20 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0046680
<|start|><|system|> Give the answer first.<|eot|> <|user|> Scale 200 g of sugar from 8 servings to 6 servings.<|eot|> <|assistant|> ```python grams = 200 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) ``` It prints 150, as expected. Use 150 g of sugar.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Scale 200 g of sugar from 8 servings to 6 servings." }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 8\nneeded_for = 6\nscaled = grams * needed_for // serves # 150\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0046681
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "get_weat...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0046682
Attendance was 72 out of 80. Express it as a percent. Script: ```python present = 72 total = 80 percent = present / total * 100 print(round(percent, 1)) ``` Printed — 90.0 90.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0046683
A 50-mile drive at a steady 50 mph takes how many minutes? Let's compute it with Python. ```python distance = 50 speed = 50 minutes = distance / speed * 60 print(round(minutes)) ``` It outputs 60. 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0046684
What is a 25% tip on a $138.40 bill? Translated to Python: ```python bill = 138.4 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 34.6 print(f"{tip:.2f}") ``` # stdout: 34.60 Leave $34.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "34.60", "printed": "34.60", "notation": null}
nlprog_det-setting-0046686
<|start|><|user|> A 24-month warranty starts on December 27, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 12, 27) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 24-month warranty starts on December 27, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 12, 27)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2029-12-27", "printed": "2029-12-27", "notation": null}
nlprog_det-setting-0046687
<|start|><|user|> A pack of 10 markers sells for $590. What does each cost?<|eot|> <|assistant|> Each one costs $59.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 markers sells for $590. What does each cost?" }, { "role": "assistant", "content": "Each one costs $59." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0046688
Counting the first and last day, how many days are there from December 14, 2028 through December 21, 2028? The computation: ```python from datetime import date first = date(2028, 12, 14) # datetime.date(2028, 12, 14) last = date(2028, 12, 21) # datetime.date(2028, 12, 21) days = (last - first).days + 1 # 8 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0046689
A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here's the code. principal = 1200 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 216.0 payment = (princip...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0046690
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> At $0.67 per mile, what is the reimbursement for 146 miles?<|eot|> <|assistant|> ```python miles = 146 rate = 0.67 reimbursement = miles * rate # 97.82000000000001 print(f"{reimbursement:.2f}") ``` Shell output — 97.82 Rafael is owed $97.82.<|eot|> <...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "At $0.67 per mile, what is the reimbursement for 146 miles?" }, { "role": "assistant", "content": "```python\nmiles = 146\nrate = 0.67\nreimbursement = miles * rate # 97.82000000000001\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "97.82", "printed": "97.82", "notation": null}
nlprog_det-setting-0046691
<|start|><|user|> A 4-day trip pays $74 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 4 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 626 print(total) ``` Output of the run — 626 ...
chat
[ { "role": "user", "content": "A 4-day trip pays $74 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 74\nlodging_rate = 110\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "626", "printed": "626", "notation": null}
nlprog_det-setting-0046692
2 books come back 28 days late, at $0.50 a day each. What is the fine? Here is a short program for it. ```python per_day = 0.5 days_late = 28 books = 2 fine = per_day * days_late * books # 28.0 print(f"{fine:.2f}") ``` The run gives 28.00. The fine is $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0046693
<|start|><|system|> Tools you may use: [{"name": "python_exec", "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"]}}]<|eot|> <|user|> Buying 4 toner kit...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "31", "printed": "31", "notation": null}