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-0063630
Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The Python version: revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) (Console output: 2.4) Profit is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0063631
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> A trial runs from April 4, 2021 to April 28, 2021, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 4, 4) # datetime.date(2021, 4, 4) last = date(2021, 4, 28) # datetime....
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "A trial runs from April 4, 2021 to April 28, 2021, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0063632
What day of the week is January 3, 2010? Let the code do the arithmetic: ```python from datetime import date hearing = date(2010, 1, 3) # datetime.date(2010, 1, 3) print(hearing.strftime("%A")) ``` The script prints Sunday. January 3, 2010 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0063633
What is -20 degrees Celsius in Fahrenheit? Coded up: ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` When run, it prints -4, as expected. That is -4 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0063634
<|start|><|user|> At an exchange rate of 0.92 USD per CHF, how many USD is 7,250 CHF?<|eot|> <|assistant|> amount = 7250 rate = 0.92 converted = amount * rate # 6670.0 print(f"{converted:.2f}") It outputs: 6670.00 That is 6,670.00 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per CHF, how many USD is 7,250 CHF?" }, { "role": "assistant", "content": " amount = 7250\n rate = 0.92\n converted = amount * rate # 6670.0\n print(f\"{converted:.2f}\")\nIt outputs: 6670.00\n\nThat is 6,670.00 USD." }...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "6670.00", "printed": "6670.00", "notation": null}
nlprog_det-setting-0063635
Under a 25% contingency agreement, what fee is owed on a $40,000 award? The fee is $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0063636
The paralegal logged 2.5 hours at a rate of $180. How much is billed? ```python hours = 2.5 rate = 180 bill = hours * rate # 450.0 print(f"{bill:.2f}") ``` # out: 450.00 The bill is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0063637
<|start|><|system|> Functions: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "search_cases", "description": "Search case law by keyword.",...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"name\":...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "12600.00", "printed": "12600.00", "notation": null}
nlprog_det-setting-0063638
<|start|><|system|> Functions: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Filing fees are $125 per document. W...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0063639
Oskar and Viktor share $1,872 in the ratio 1:2. How much does Oskar get? Oskar's share is $624.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "624", "printed": "624", "notation": null}
nlprog_det-setting-0063640
A storeroom has 1876 chairs. The office uses 6 a day. How many are left after 18 days? Program: ```python stock = 1876 per_day = 6 days = 18 left = stock - per_day * days print(left) ``` Console: 1768 1768 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1768", "printed": "1768", "notation": null}
nlprog_det-setting-0063641
Walls total 794 sq ft and each can covers 300 sq ft. How many cans should be bought? One way, in code: ```python import math area = 794 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` # output: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0063642
<|start|><|user|> Convert 4,679 EUR to USD at 1 EUR = 0.74 USD.<|eot|> <|assistant|> That is 3,462.46 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4,679 EUR to USD at 1 EUR = 0.74 USD." }, { "role": "assistant", "content": "That is 3,462.46 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "3462.46", "printed": "3462.46", "notation": null}
nlprog_det-setting-0063643
Notice was given on August 23, 2023. The notice period is 60 days. When does it run out? Script: ```python from datetime import date, timedelta start = date(2023, 8, 23) end = start + timedelta(days=60) print(end.isoformat()) ``` Output: 2023-10-22 That date is October 22, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2023-10-22", "printed": "2023-10-22", "notation": null}
nlprog_det-setting-0063644
A $9,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? The Python version: ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0063645
After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` The program prints: 18000.00 Eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0063646
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> 63 copies of a 56-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 56 copies = 63 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 352.8 print(f"{cost:.2f}") ``` Output = 352.80 The job costs $3...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "63 copies of a 56-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 56\ncopies = 63\ncost_per_page = 0.1\ncost = pages * co...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "352.80", "printed": "352.80", "notation": null}
nlprog_det-setting-0063647
<|start|><|user|> A car travels 66 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 66 hours = 0.5 speed = distance / hours # 132.0 print(round(speed)) ``` Running this gives 132. The average speed is 132 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 66 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 66\nhours = 0.5\nspeed = distance / hours # 132.0\nprint(round(speed))\n```\nRunning this gives 132.\n\nThe average speed ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0063648
Delia buys 4 boxes of 6 staplers each and gives away 16 staplers. How many staplers are left? We write it as a program: ```python boxes = 4 per_box = 6 given_away = 16 left = boxes * per_box - given_away # 8 print(left) ``` The script prints: 8 8 staplers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0063649
How many 2-foot square tiles cover a 6 ft by 15 ft floor (round up)? A short script: ```python import math length = 6 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` (stdout: 23) It takes 23 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0063650
A shift starts at 1:10 PM and lasts 25 minutes. When does it end? Set it up in Python: ```python start = 13 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The program prints 1:35 PM, as expected. It ends at 1:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1:35 PM", "printed": "1:35 PM", "notation": null}
nlprog_det-setting-0063651
<|start|><|user|> Shipping costs $10 plus $2.50 per pound. What does a 4-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $20.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $2.50 per pound. What does a 4-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $20.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0063652
A 6-month warranty starts on December 17, 2019. On what date does it end? Computing it: from datetime import date start = date(2019, 12, 17) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) (Pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2020-06-17", "printed": "2020-06-17", "notation": null}
nlprog_det-setting-0063654
A 20 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? A few lines of Python do it: ```python import math length = 20 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` Result — 70 It takes 70 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0063655
How many minutes pass from 9:44 AM to 2:43 PM on the same day? In code: start = 9 * 60 + 44 end = 14 * 60 + 43 print(end - start) The program prints 299, as expected. 299 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "299", "printed": "299", "notation": null}
nlprog_det-setting-0063656
How many whole days and leftover hours are in 318 hours? ```python hours = 318 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output — 13 days and 6 hours That is 13 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "13 days and 6 hours", "printed": "13 days and 6 hours", "notation": null}
nlprog_det-setting-0063657
Goods bought on September 20, 2020 carry a 36-month warranty. When does it expire? In code: ```python from datetime import date start = date(2020, 9, 20) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # program...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2023-09-20", "printed": "2023-09-20", "notation": null}
nlprog_det-setting-0063658
What is 0 degrees Celsius in Fahrenheit? Let the code do the arithmetic: celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) (Program output: 32) It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0063660
Parking is $3 per hour with a daily maximum of $20. What do 4 hours cost? Code: ```python rate = 3 hours = 4 daily_max = 20 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Printed — 12 Parking costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063661
A client paid a $10,000 retainer. The firm has billed 12 hours at $200 per hour. How much of the retainer is left? $7,600 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "7600", "printed": "7600", "notation": null}
nlprog_det-setting-0063662
A hall has 24 rows of 13 seats, and 11 seats are empty. How many people are seated? The Python version: ```python rows = 24 per_row = 13 empty = 11 seated = rows * per_row - empty # 301 print(seated) ``` Executed, it shows 301. 301 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "301", "printed": "301", "notation": null}
nlprog_det-setting-0063663
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> The paralegal logged 2.5 hours at a rate of $350. How much is billed?<|eot|> <|assistant|> ```python hours = 2.5 rate = 350 bill = hours * rate # 875.0 print(f"{bill:.2f}") ``` The program prints: 875.00 The bill is $875.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "The paralegal logged 2.5 hours at a rate of $350. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 350\nbill = hours * rate # 875.0\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "875.00", "printed": "875.00", "notation": null}
nlprog_det-setting-0063664
<|start|><|user|> Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 24000 costs = 20000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` Execution prints 16.7. The margin is 16.7%.<|eot...
chat
[ { "role": "user", "content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0063665
<|start|><|user|> How many of 108 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 108 needed = math.ceil(voters * 60 / 100) # 65 print(needed) ``` Result — 65 At least 65 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 108 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 108\nneeded = math.ceil(voters * 60 / 100) # 65\nprint(needed)\n```\nResult — 65\n\nAt least 65 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0063666
<|start|><|system|> Tool definitions: {"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Convert 1,252 GBP to USD ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "926.48", "printed": "926.48", "notation": null}
nlprog_det-setting-0063667
The meal allowance is $69 per day. What is it for 6 days? Coded up: ```python days = 6 meal_rate = 69 total = days * meal_rate # 414 print(total) ``` # printed result: 414 That comes to $414.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "414", "printed": "414", "notation": null}
nlprog_det-setting-0063668
A 14-day notice period begins on December 20, 2023. On what date does it end? Translated to Python: ```python from datetime import date, timedelta start = date(2023, 12, 20) # datetime.date(2023, 12, 20) end = start + timedelta(days=14) # datetime.date(2024, 1, 3) print(end.isoformat()) ``` The program prints 2024-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2024-01-03", "printed": "2024-01-03", "notation": null}
nlprog_det-setting-0063669
Amir lends $2,500 at 2% simple interest per year for 2 years. How much interest is earned? Python does the arithmetic: ```python principal = 2500 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 100.0 print(f"{interest:.2f}") ``` Program output — 100.00 The interest is $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0063670
<|start|><|user|> How many meters are in 59.6 kilometers?<|eot|> <|assistant|> ```python km = 59.6 meters = km * 1000 # 59600.0 print(round(meters)) ``` # stdout: 59600 59,600 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 59.6 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 59.6\nmeters = km * 1000 # 59600.0\nprint(round(meters))\n```\n# stdout: 59600\n\n59,600 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "59600", "printed": "59600", "notation": null}
nlprog_det-setting-0063671
Walls total 1330 sq ft and each can covers 400 sq ft. How many cans should be bought? Let the code do the arithmetic: import math area = 1330 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) Output: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0063672
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> How much sales tax is charged on a $51.35 purchase at 9%?<|eot|> <|assistant|> ```python price = 51.35 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 4.6215 print(f"{tax:.2f}") ``` Run output — 4.62 $4.62 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "How much sales tax is charged on a $51.35 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 51.35\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_ra...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4.62", "printed": "4.62", "notation": null}
nlprog_det-setting-0063673
<|start|><|user|> Divide 77 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 77 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result — 25 each, 2 left over 25 eac...
chat
[ { "role": "user", "content": "Divide 77 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 77\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "25 each, 2 left over", "printed": "25 each, 2 left over", "notation": null}
nlprog_det-setting-0063674
Nadia was born on November 19, 2007. How old is Nadia on January 28, 2021? In Python: ```python from datetime import date born = date(2007, 11, 19) # datetime.date(2007, 11, 19) on = date(2021, 1, 28) # datetime.date(2021, 1, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 13 print(a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0063675
A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments? A few lines of Python do it: monthly = 25 yearly = 288 savings = monthly * 12 - yearly # 12 print(savings) Execution result: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0063676
<|start|><|system|> Tools you may use: [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Split $3,5...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "1430", "printed": "1430", "notation": null}
nlprog_det-setting-0063677
<|start|><|system|> You can call tools. Available tools: {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "search_cases", "descri...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0063678
<|start|><|user|> Emeka lends $5,000 at 5% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> The interest is $1,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Emeka lends $5,000 at 5% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "The interest is $1,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0063679
<|start|><|user|> At an exchange rate of 1.35 USD per EUR, how many USD is 2,593 EUR?<|eot|> <|assistant|> ```python amount = 2593 rate = 1.35 converted = amount * rate # 3500.55 print(f"{converted:.2f}") ``` Out: 3500.55 It converts to 3,500.55 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 USD per EUR, how many USD is 2,593 EUR?" }, { "role": "assistant", "content": "```python\namount = 2593\nrate = 1.35\nconverted = amount * rate # 3500.55\nprint(f\"{converted:.2f}\")\n```\nOut: 3500.55\n\nIt converts to 3,500.55 USD." ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3500.55", "printed": "3500.55", "notation": null}
nlprog_det-setting-0063680
A storeroom has 1855 notebooks. The office uses 5 a day. How many are left after 7 days? stock = 1855 per_day = 5 days = 7 left = stock - per_day * days # 1820 print(left) Output: 1820 1820 notebooks are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1820", "printed": "1820", "notation": null}
nlprog_det-setting-0063681
<|start|><|user|> Filing fees are $75 per document. What do 11 filings cost?<|eot|> <|assistant|> fee = 75 filings = 11 total = fee * filings # 825 print(total) Out: 825 The total fee is $825.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $75 per document. What do 11 filings cost?" }, { "role": "assistant", "content": " fee = 75\n filings = 11\n total = fee * filings # 825\n print(total)\nOut:\n825\n\nThe total fee is $825." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "825", "printed": "825", "notation": null}
nlprog_det-setting-0063682
Express 334 hours in days and hours. We write it as a program: ```python hours = 334 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Running this gives 13 days and 22 hours. 334 hours is 13 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "13 days and 22 hours", "printed": "13 days and 22 hours", "notation": null}
nlprog_det-setting-0063683
What simple interest does $2,500 earn at 6% a year over 3 years? ```python principal = 2500 rate = 6 / 100 years = 3 interest = principal * rate * years print(f"{interest:.2f}") ``` # out: 450.00 The interest is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0063684
A $3,600 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Python makes this quick: ```python principal = 3600 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 360.0 payment = (principa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "330.00", "printed": "330.00", "notation": null}
nlprog_det-setting-0063685
Parking is $2 per hour with a daily maximum of $24. What do 3 hours cost? Parking costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0063686
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` Run it and it prints: 1125 Break-even...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 7\nunits = math.ceil(fixed / (price - variable)) # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0063687
<|start|><|user|> Counting only Monday through Friday, how many business days are there after April 20, 2022 through April 27, 2022?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2022, 4, 20) end = date(2022, 4, 27) count = 0 for k in range(1, (end - start).days + 1): ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after April 20, 2022 through April 27, 2022?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2022, 4, 20)\n end = date(2022, 4, 27)\n count ...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0063688
A quorum is 2/3 of the 44 members, rounded up. How many members make a quorum? Let the code do the arithmetic: ```python import math members = 44 quorum = math.ceil(members * 2 / 3) # 30 print(quorum) ``` # out: 30 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0063689
10 boxes hold 8 desk lamps each. After 18 are handed out, how many are left? ```python boxes = 10 per_box = 8 given_away = 18 left = boxes * per_box - given_away print(left) ``` Interpreter output — 62 That leaves 62 desk lamps.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0063690
A pack of 4 markers sells for $128. What does each cost? Each one costs $32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0063691
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $5,000. How much after 35 days?<|eot|> <|assistant|> ```python per_day = 100 days = 35 cap = 5000 fine = min(per_day * days, cap) # 3500 print(fine) ``` Shell output: 3500 $3,500 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $5,000. How much after 35 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 35\ncap = 5000\nfine = min(per_day * da...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3500", "printed": "3500", "notation": null}
nlprog_det-setting-0063692
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? Python code: ```python rate = 16.0 hours = 43 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 72.0 pay = regular + overtime # 712.0 print(f"{pay:.2f}") ``` Result — 712.00 The weekly pay is $712.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0063693
With 25% off, what does a $120 backpack cost? Set it up in Python: ```python price = 120 discount = 25 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Result — 90.00 It costs $90.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0063694
A clerk's office charges $405 for each filing. Sami submits 6 filings. What is the total fee? The total fee is $2,430.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2430", "printed": "2430", "notation": null}
nlprog_det-setting-0063695
Emeka was born on February 21, 2007. How old is Emeka on July 2, 2023? ```python from datetime import date born = date(2007, 2, 21) # datetime.date(2007, 2, 21) on = date(2023, 7, 2) # datetime.date(2023, 7, 2) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 16 print(age) ``` Executing i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0063696
<|start|><|user|> How much sales tax is charged on a $595.57 purchase at 7%?<|eot|> <|assistant|> ```python price = 595.57 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 41.68990000000001 print(f"{tax:.2f}") ``` # output: 41.69 The tax is $41.69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $595.57 purchase at 7%?" }, { "role": "assistant", "content": "```python\nprice = 595.57\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 41.68990000000001\nprint(f\"{tax:.2f}\")\n```\n# output: 41.69\n\nThe tax is $41.69." ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "41.69", "printed": "41.69", "notation": null}
nlprog_det-setting-0063697
Prorate $2,400 of monthly rent for 14 days of a 31-day month. The prorated rent is $1,083.87.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1083.87", "printed": "1083.87", "notation": null}
nlprog_det-setting-0063698
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Af...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0063699
A 4% increase is applied to $900 monthly rent. What is the new amount? A few lines of Python do it: ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` Running it prints: 936.00 The new rent is $936.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0063700
One can of paint covers 250 square feet. How many cans are needed for 179 square feet of wall? Python: ```python import math area = 179 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` # console output: 1 Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0063701
<|start|><|user|> Split $3,920 between Ada and Vera in the ratio 3 to 4. What is Ada's share?<|eot|> <|assistant|> ```python total = 3920 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` The program outputs: 1680 Ada gets $1,680.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,920 between Ada and Vera in the ratio 3 to 4. What is Ada's share?" }, { "role": "assistant", "content": "```python\ntotal = 3920\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nThe program outputs: 1680\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1680", "printed": "1680", "notation": null}
nlprog_det-setting-0063702
<|start|><|user|> Counting the first and last day, how many days are there from May 12, 2022 through May 24, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 5, 12) # datetime.date(2022, 5, 12) last = date(2022, 5, 24) # datetime.date(2022, 5, 24) days = (last - first).days + 1 # 13 ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 12, 2022 through May 24, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 5, 12) # datetime.date(2022, 5, 12)\nlast = date(2022, 5, 24) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0063703
Count the days between October 2, 2018 and August 27, 2019. It is 329 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "329", "printed": "329", "notation": null}
nlprog_det-setting-0063704
At a 7% tax rate, what is the tax on $12.61? Let the code do the arithmetic: ```python price = 12.61 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 0.8827 print(f"{tax:.2f}") ``` (stdout: 0.88) $0.88 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "0.88", "printed": "0.88", "notation": null}
nlprog_det-setting-0063705
<|start|><|user|> Rent of $1,800 goes up 4%. What is the new rent?<|eot|> <|assistant|> The new rent is $1,872.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,800 goes up 4%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $1,872.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0063706
A printer costs $250. It is 10% off. What is the sale price? Coded up: price = 250 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 225.0 print(f"{sale_price:.2f}") Interpreter output: 225.00 The sale price is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0063707
A garage charges $4 an hour, never more than $24 a day. How much for 8 hours? The Python version: ```python rate = 4 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Interpreter output — 24 Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063708
Pack A has 6 items for $12.16. Pack B has 24 items for $30.43. Which has the lower price per item? B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0063709
<|start|><|system|> Tools (call with JSON): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "paramet...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"py_exec\", \"description\": \"Runs a ...
nlprog_det
setting
original
null
deterministic
[]
[]
412
{"gold": "810.00", "printed": "810.00", "notation": null}
nlprog_det-setting-0063710
<|start|><|user|> If a 135-minute hearing begins at 9:10 AM, what time does it finish?<|eot|> <|assistant|> It ends at 11:25 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 135-minute hearing begins at 9:10 AM, what time does it finish?" }, { "role": "assistant", "content": "It ends at 11:25 AM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "11:25 AM", "printed": "11:25 AM", "notation": null}
nlprog_det-setting-0063711
<|start|><|system|> Answer in plain English.<|eot|> <|user|> What does $10,000 grow to in 4 years at 4% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 11698.585600000002 print(f"{value:.2f}") ``` (Printed result: 11698.59)...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "What does $10,000 grow to in 4 years at 4% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = principal * (1 + r...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0063712
The rules require 3/5 of 10 members (round up) to be present. How many is that? Code: ```python import math members = 10 quorum = math.ceil(members * 3 / 5) # 6 print(quorum) ``` This prints 6. 6 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0063713
What is a 20% tip on a $212.04 bill? Here is the program. bill = 212.04 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 42.408 print(f"{tip:.2f}") (stdout: 42.41) Leave $42.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "42.41", "printed": "42.41", "notation": null}
nlprog_det-setting-0063714
Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights? Python code: ```python days = 4 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 716 print(total) ``` The program prints: 716 The allowance is $716.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "716", "printed": "716", "notation": null}
nlprog_det-setting-0063715
Starting with 601 rulers and using 21 per day, how many remain after 7 days? ```python stock = 601 per_day = 21 days = 7 left = stock - per_day * days # 454 print(left) ``` (Printed: 454) 454 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "454", "printed": "454", "notation": null}
nlprog_det-setting-0063716
If a 25-minute shift begins at 10:00 AM, what time does it finish? Python version: ```python start = 10 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Execution result: 10:25 AM) The shift finishes at 10:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "10:25 AM", "printed": "10:25 AM", "notation": null}
nlprog_det-setting-0063717
What is a 22% tip on a $249.31 bill? Here is the program. ```python bill = 249.31 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 54.8482 print(f"{tip:.2f}") ``` Running this gives: 54.85 The tip is $54.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "54.85", "printed": "54.85", "notation": null}
nlprog_det-setting-0063718
From 2000 to 2024, how many years is that? Python: ```python start_year = 2000 end_year = 2024 print(end_year - start_year) ``` # execution result: 24 24 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0063719
Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even? Translated to Python: import math fixed = 6000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 750 print(units) Run result = 750 Break-even is 750 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0063720
Revenue is $10,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` The program outputs: 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0063721
16 copies of a 10-page packet are printed at $0.08 per page. What is the cost? ```python pages = 10 copies = 16 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 12.8 print(f"{cost:.2f}") ``` stdout: 12.80 The job costs $12.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "12.80", "printed": "12.80", "notation": null}
nlprog_det-setting-0063722
The meal allowance is $79 per day. What is it for 9 days? Python makes this quick: ```python days = 9 meal_rate = 79 total = days * meal_rate # 711 print(total) ``` Console output: 711 The allowance is $711.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0063724
<|start|><|user|> How long, in days, is it from May 13, 2024 until August 31, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 5, 13) # datetime.date(2024, 5, 13) second = date(2024, 8, 31) # datetime.date(2024, 8, 31) print((second - first).days) ``` The interpreter prints: 110 Ther...
chat
[ { "role": "user", "content": "How long, in days, is it from May 13, 2024 until August 31, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 5, 13) # datetime.date(2024, 5, 13)\nsecond = date(2024, 8, 31) # datetime.date(2024, 8, 31)\nprint((s...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0063725
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 12 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 12 hours?" }, { "role": "assistant", "content": "The charge is $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0063726
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Yara buys 8 boxes of 10 calendars each and gives away 17 calendars. How many calendars are left?<|eot|> <|assistant|> ```python boxes = 8 per_box = 10 given_away = 17 left = boxes * per_box - given_away # 63 print(left) ``` Console: 63 That leav...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Yara buys 8 boxes of 10 calendars each and gives away 17 calendars. How many calendars are left?" }, { "role": "assistant", "content": "```python\nboxes = 8\nper_box = 10\ngiven_awa...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0063727
Convert 86.5 km to meters. 86,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "86500", "printed": "86500", "notation": null}
nlprog_det-setting-0063728
<|start|><|user|> What is a 25% tip on a $143.41 bill?<|eot|> <|assistant|> ```python bill = 143.41 tip_rate = 25 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` Run it and it prints: 35.85 Leave $35.85.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $143.41 bill?" }, { "role": "assistant", "content": "```python\nbill = 143.41\ntip_rate = 25 / 100\ntip = bill * tip_rate\nprint(f\"{tip:.2f}\")\n```\nRun it and it prints: 35.85\n\nLeave $35.85." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "35.85", "printed": "35.85", "notation": null}
nlprog_det-setting-0063729
<|start|><|user|> An office budget of $25,000 has expenses of $2,870, $2,150, $2,820, $2,686. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [2870, 2150, 2820, 2686] left = budget - sum(expenses) # 14474 print(left) ``` Console output: 14474 $14,474 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,870, $2,150, $2,820, $2,686. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [2870, 2150, 2820, 2686]\nleft = budget - sum(expenses) # 14474\nprint(left)\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "14474", "printed": "14474", "notation": null}
nlprog_det-setting-0063730
A settlement of $520 is split equally among 8 parties. How much does each party receive? Written as code: ```python settlement = 520 parties = 8 share = settlement // parties # 65 print(share) ``` stdout = 65 Each party receives $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0063731
A seminar starts at 10:20 AM and lasts 40 minutes. When does it end? The program: ```python start = 10 * 60 + 20 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result — 11:00 AM It ends at 11:00 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "11:00 AM", "printed": "11:00 AM", "notation": null}
nlprog_det-setting-0063732
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Rent of $1,500 goes up 6%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` The interpreter prints: 1590.00 It rises to $1,590.00.<|eot|> <|en...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Rent of $1,500 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1590.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1590.00", "printed": "1590.00", "notation": null}