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-0044663
<|start|><|user|> Convert 93.8 km to meters.<|eot|> <|assistant|> km = 93.8 meters = km * 1000 # 93800.0 print(round(meters)) The script prints: 93800 93,800 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 93.8 km to meters." }, { "role": "assistant", "content": " km = 93.8\n meters = km * 1000 # 93800.0\n print(round(meters))\nThe script prints: 93800\n\n93,800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "93800", "printed": "93800", "notation": null}
nlprog_det-setting-0044664
<|start|><|user|> Count 10 days forward from January 27, 2021. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 1, 27) # datetime.date(2021, 1, 27) end = start + timedelta(days=10) # datetime.date(2021, 2, 6) print(end.isoformat()) ``` It prints 2021-02-06, as ...
chat
[ { "role": "user", "content": "Count 10 days forward from January 27, 2021. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 1, 27) # datetime.date(2021, 1, 27)\nend = start + timedelta(days=10) # datetime.date(2021, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-02-06", "printed": "2021-02-06", "notation": null}
nlprog_det-setting-0044665
A $210 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share? Python version: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 126.0 print(f"{each:.2f}") ``` The program outputs 126.00. Each person pays $126.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "126.00", "printed": "126.00", "notation": null}
nlprog_det-setting-0044666
<|start|><|user|> A trial runs from October 4, 2026 to October 7, 2026, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 4 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from October 4, 2026 to October 7, 2026, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 4 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0044667
A 36-month warranty starts on December 15, 2028. On what date does it end? We can compute it in Python. ```python from datetime import date start = date(2028, 12, 15) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2031-12-15", "printed": "2031-12-15", "notation": null}
nlprog_det-setting-0044668
A hall has 7 rows of 20 seats, and 26 seats are empty. How many people are seated? ```python rows = 7 per_row = 20 empty = 26 seated = rows * per_row - empty # 114 print(seated) ``` This prints 114, as expected. 114 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0044669
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A settlement of $84,000 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> Each share is $14,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A settlement of $84,000 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each share is $14,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0044670
<|start|><|system|> Functions: {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "search_cases", "description": "Search case law...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}\n...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0044671
<|start|><|user|> Find the mean of these test scores: 102, 90, 62, 91, 70 and 77.<|eot|> <|assistant|> ```python scores = [102, 90, 62, 91, 70, 77] average = sum(scores) // len(scores) # 82 print(average) ``` stdout = 82 The average score is 82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 102, 90, 62, 91, 70 and 77." }, { "role": "assistant", "content": "```python\nscores = [102, 90, 62, 91, 70, 77]\naverage = sum(scores) // len(scores) # 82\nprint(average)\n```\nstdout = 82\n\nThe average score is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0044672
What is -10 degrees Celsius in Fahrenheit? Python code: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Output of the run — 14 It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0044674
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "code_runner", "description": "Run Python code in a sandbox;...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"code_...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0044676
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Rev...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0044677
<|start|><|user|> If a 75-minute shift begins at 2:00 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 0 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The program prints: 3:15 PM It ends at 3:15 PM.<|eot|> <|...
chat
[ { "role": "user", "content": "If a 75-minute shift begins at 2:00 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 0\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "3:15 PM", "printed": "3:15 PM", "notation": null}
nlprog_det-setting-0044678
<|start|><|user|> How much sales tax is charged on a $238.99 purchase at 7%?<|eot|> <|assistant|> ```python price = 238.99 tax_rate = 7 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Console: 16.73 The tax is $16.73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $238.99 purchase at 7%?" }, { "role": "assistant", "content": "```python\nprice = 238.99\ntax_rate = 7 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nConsole:\n16.73\n\nThe tax is $16.73." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "16.73", "printed": "16.73", "notation": null}
nlprog_det-setting-0044679
<|start|><|user|> Divide 72 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 72 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout: 9 each, 0 left over 9 each, ...
chat
[ { "role": "user", "content": "Divide 72 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 72\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "9 each, 0 left over", "printed": "9 each, 0 left over", "notation": null}
nlprog_det-setting-0044680
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 18.5 hours = 45 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 138.75 pay = regular + overtime # 878.75 print(f"{pay:.2f}") ``` What it prints: ...
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 45\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 138.75\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "878.75", "printed": "878.75", "notation": null}
nlprog_det-setting-0044681
How many weekdays (Monday to Friday) fall after December 20, 2019 up to and including January 12, 2020? Programmatically: from datetime import date, timedelta start = date(2019, 12, 20) end = date(2020, 1, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0044682
A hearing is set for May 9, 2012. What day of the week is that? Here is the program. ```python from datetime import date hearing = date(2012, 5, 9) print(hearing.strftime("%A")) ``` Executing it gives Wednesday. May 9, 2012 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0044683
A trial runs from July 22, 2019 to July 31, 2019, counting both days. How many calendar days is that? Python does the arithmetic: from datetime import date first = date(2019, 7, 22) # datetime.date(2019, 7, 22) last = date(2019, 7, 31) # datetime.date(2019, 7, 31) days = (last - first).days + 1 # 10...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0044684
A hearing is set for February 21, 2022. What day of the week is that? One way, in code: ```python from datetime import date hearing = date(2022, 2, 21) # datetime.date(2022, 2, 21) print(hearing.strftime("%A")) ``` (stdout: Monday) February 21, 2022 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0044685
Count 60 days forward from April 22, 2021. What date is that? Translated to Python: ```python from datetime import date, timedelta start = date(2021, 4, 22) # datetime.date(2021, 4, 22) end = start + timedelta(days=60) # datetime.date(2021, 6, 21) print(end.isoformat()) ``` Printed: 2021-06-21 The period ends on Ju...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2021-06-21", "printed": "2021-06-21", "notation": null}
nlprog_det-setting-0044686
With 30% off, what does a $300 filing cabinet cost? Set it up in Python: ```python price = 300 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 210.0 print(f"{sale_price:.2f}") ``` Out: 210.00 It costs $210.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0044687
How long, in days, is it from October 13, 2024 until December 14, 2024? Here is a short program for it. ```python from datetime import date first = date(2024, 10, 13) second = date(2024, 12, 14) print((second - first).days) ``` It prints: 62 There are 62 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0044688
Diego has 14 documents to file, and each filing costs $90. How much are the filing fees in total? In code: ```python fee = 90 filings = 14 total = fee * filings # 1260 print(total) ``` # program output: 1260 The filings cost $1,260 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1260", "printed": "1260", "notation": null}
nlprog_det-setting-0044689
What average speed covers 201 miles in 1 hours? Code: ```python distance = 201 hours = 1 speed = distance / hours # 201.0 print(round(speed)) ``` # console output: 201 It averages 201 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0044690
<|start|><|user|> Someone born November 14, 1951 turns how old by December 3, 2027? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1951, 11, 14) on = date(2027, 12, 3) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Interpreter ...
chat
[ { "role": "user", "content": "Someone born November 14, 1951 turns how old by December 3, 2027? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1951, 11, 14)\non = date(2027, 12, 3)\nage = on.year - born.year - ((on.month, on....
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0044691
<|start|><|user|> Parking is $5 per hour with a daily maximum of $24. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Execution result: 24 Parking costs $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $24. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nExecution result: 24\n\nParking costs $24....
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044692
<|start|><|user|> Each storage box holds 12 files. How many boxes are needed for 431 files?<|eot|> <|assistant|> ```python import math files = 431 per_box = 12 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` Run result — 36 It takes 36 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 431 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 431\nper_box = 12\nboxes = math.ceil(files / per_box) # 36\nprint(boxes)\n```\nRun result — 36\n\nIt takes 36 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0044693
A quorum is 2/3 of the 45 members, rounded up. How many members make a quorum? Python version: ```python import math members = 45 quorum = math.ceil(members * 2 / 3) # 30 print(quorum) ``` The interpreter prints: 30 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0044694
Arjun earns a 5% commission on $111,917 of sales. What is the commission? The commission is $5,595.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "5595.85", "printed": "5595.85", "notation": null}
nlprog_det-setting-0044695
98 copies of a 28-page packet are printed at $0.10 per page. What is the cost? ```python pages = 28 copies = 98 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 274.40000000000003 print(f"{cost:.2f}") ``` The script prints 274.40. The job costs $274.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "274.40", "printed": "274.40", "notation": null}
nlprog_det-setting-0044696
Printing costs 10 cents a page. What does it cost to print 154 copies of a 8-page handout? Python does the arithmetic: ```python pages = 8 copies = 154 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 123.2 print(f"{cost:.2f}") ``` When run, it prints 123.20, as expected. The job costs $123.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "123.20", "printed": "123.20", "notation": null}
nlprog_det-setting-0044697
A measure needs at least 67% of 115 votes. How many votes is that, rounded up? The Python version: ```python import math voters = 115 needed = math.ceil(voters * 67 / 100) # 78 print(needed) ``` The program outputs 78. At least 78 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0044698
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> 13 of 25 members attended. What percent attended?<|eot|> <|assistant|> Attendance was 52.0%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "13 of 25 members attended. What percent attended?" }, { "role": "assistant", "content": "Attendance was 52.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0044699
Prorate $900 of monthly rent for 19 days of a 31-day month. Script: ```python rent = 900 days_in_month = 31 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 551.6129032258065 print(f"{prorated:.2f}") ``` When run, it prints 551.61. The tenant owes $551.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "551.61", "printed": "551.61", "notation": null}
nlprog_det-setting-0044700
Starting with 528 tape rolls and using 11 per day, how many remain after 6 days? In Python: ```python stock = 528 per_day = 11 days = 6 left = stock - per_day * days # 462 print(left) ``` Output of the run: 462 462 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "462", "printed": "462", "notation": null}
nlprog_det-setting-0044701
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A 45-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 45 speed = 30 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` # stdout: 90 90 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A 45-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 45\nspeed = 30\nminutes = distance / speed * 60 # 90.0\nprint(round(minu...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0044702
<|start|><|user|> Of a $4,000 budget, $2,100 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 2100 percent = spent / budget * 100 # 52.5 print(round(percent, 1)) ``` Running this gives 52.5. That is 52.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $4,000 budget, $2,100 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 2100\npercent = spent / budget * 100 # 52.5\nprint(round(percent, 1))\n```\nRunning this gives 52.5.\n\nThat is 52.5% of the bu...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0044703
<|start|><|user|> What commission does Fiona make on $39,997 in sales at 3%?<|eot|> <|assistant|> ```python sales = 39997 rate = 3 / 100 # 0.03 commission = sales * rate # 1199.9099999999999 print(f"{commission:.2f}") ``` The interpreter prints 1199.91. Fiona earns $1,199.91.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Fiona make on $39,997 in sales at 3%?" }, { "role": "assistant", "content": "```python\nsales = 39997\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1199.9099999999999\nprint(f\"{commission:.2f}\")\n```\nThe interpreter prints 1199.91.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1199.91", "printed": "1199.91", "notation": null}
nlprog_det-setting-0044704
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> What average speed covers 156 miles in 1.5 hours?<|eot|> <|assistant|> distance = 156 hours = 1.5 speed = distance / hours # 104.0 print(round(speed)) Execution prints 104. The average speed is 104 mph.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "What average speed covers 156 miles in 1.5 hours?" }, { "role": "assistant", "content": " distance = 156\n hours = 1.5\n speed = distance / hours # 104.0\n print(round(speed))\nExe...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0044705
At 40 miles per hour, how many minutes does a 140-mile trip take? Python: ```python distance = 140 speed = 40 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` Run it and it prints 210. 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0044706
<|start|><|user|> Split $2,394 between Quinn and Omar in the ratio 3 to 4. What is Quinn's share?<|eot|> <|assistant|> ```python total = 2394 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1026 print(share_a) ``` When run, it prints 1026, as expected. Quinn gets $1,026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,394 between Quinn and Omar in the ratio 3 to 4. What is Quinn's share?" }, { "role": "assistant", "content": "```python\ntotal = 2394\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1026\nprint(share_a)\n```\nWhen run, it prin...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1026", "printed": "1026", "notation": null}
nlprog_det-setting-0044707
3 books come back 3 days late, at $0.50 a day each. What is the fine? In code: ```python per_day = 0.5 days_late = 3 books = 3 fine = per_day * days_late * books # 4.5 print(f"{fine:.2f}") ``` # printed result: 4.50 $4.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4.50", "printed": "4.50", "notation": null}
nlprog_det-setting-0044708
On which weekday does July 28, 2030 fall? The computation: ```python from datetime import date hearing = date(2030, 7, 28) # datetime.date(2030, 7, 28) print(hearing.strftime("%A")) ``` Result: Sunday July 28, 2030 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0044709
<|start|><|user|> An invoice lists 36 water bottles at $24 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 24 subtotal = quantity * unit_price # 864 total = subtotal * (1 + 7 / 100) # 924.48 print(f"{total:.2f}") ``` The interpreter prints: 924.48 The tot...
chat
[ { "role": "user", "content": "An invoice lists 36 water bottles at $24 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 24\nsubtotal = quantity * unit_price # 864\ntotal = subtotal * (1 + 7 / 100) # 924.48\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "924.48", "printed": "924.48", "notation": null}
nlprog_det-setting-0044710
Convert 5 h 17 min (the length of a deposition) to minutes. Python does the arithmetic: ```python hours = 5 minutes = 17 total_minutes = hours * 60 + minutes # 317 print(total_minutes) ``` # stdout: 317 That is 317 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "317", "printed": "317", "notation": null}
nlprog_det-setting-0044711
<|start|><|user|> Monthly: $19. Annual: $204. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Interpreter output — 24 The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $19. Annual: $204. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 19\nyearly = 204\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nInterpreter output — 24\n\nThe annual plan saves $24." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044712
<|start|><|user|> 5 boxes hold 24 rulers each. After 6 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 24 given_away = 6 left = boxes * per_box - given_away # 114 print(left) ``` # stdout: 114 114 rulers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 24 rulers each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 24\ngiven_away = 6\nleft = boxes * per_box - given_away # 114\nprint(left)\n```\n# stdout: 114\n\n114 rulers are left." ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0044713
<|start|><|user|> An invoice lists 24 sticky pads at $24 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 24 unit_price = 24 subtotal = quantity * unit_price total = subtotal * (1 + 6 / 100) print(f"{total:.2f}") ``` # run result: 610.56 The invoice total is $610.56.<|eot|>...
chat
[ { "role": "user", "content": "An invoice lists 24 sticky pads at $24 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 24\nunit_price = 24\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 6 / 100)\nprint(f\"{total:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "610.56", "printed": "610.56", "notation": null}
nlprog_det-setting-0044714
<|start|><|user|> A 5-day trip pays $69 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 5 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 785 print(total) ``` This prints 785, as expe...
chat
[ { "role": "user", "content": "A 5-day trip pays $69 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "785", "printed": "785", "notation": null}
nlprog_det-setting-0044715
Express 377 hours in days and hours. Programmatically: ```python hours = 377 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Shell output — 15 days and 17 hours That is 15 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "15 days and 17 hours", "printed": "15 days and 17 hours", "notation": null}
nlprog_det-setting-0044716
Signe buys 10 boxes of 8 ink cartridges each and gives away 18 ink cartridges. How many ink cartridges are left? A few lines of Python do it: boxes = 10 per_box = 8 given_away = 18 left = boxes * per_box - given_away # 62 print(left) Program output — 62 62 ink cartridges are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0044717
Goods bought on August 4, 2022 carry a 36-month warranty. When does it expire? The warranty ends on August 4, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2025-08-04", "printed": "2025-08-04", "notation": null}
nlprog_det-setting-0044718
How many 2-foot square tiles cover a 9 ft by 9 ft floor (round up)? ```python import math length = 9 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) ``` Execution prints 21, as expected. 21 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0044719
<|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|> A 6-day trip pays $64 a d...
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
[]
[]
239
{"gold": "934", "printed": "934", "notation": null}
nlprog_det-setting-0044720
<|start|><|user|> Delia lends $2,500 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 4 / 100 # 0.04 years = 6 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") ``` On running, it outputs 600.00. It earns $600.00.<|eot|...
chat
[ { "role": "user", "content": "Delia lends $2,500 at 4% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 600.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0044721
<|start|><|user|> Yara earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|> <|assistant|> ```python rate = 18.5 hours = 47 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 194.25 pay = regular + overtime # 934.25 print(f"{pay:.2f}") ``` The program ...
chat
[ { "role": "user", "content": "Yara earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 47\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 194.25\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "934.25", "printed": "934.25", "notation": null}
nlprog_det-setting-0044722
<|start|><|user|> At an exchange rate of 1.12 EUR per USD, how many EUR is 2,562 USD?<|eot|> <|assistant|> amount = 2562 rate = 1.12 converted = amount * rate # 2869.44 print(f"{converted:.2f}") Interpreter output: 2869.44 That is 2,869.44 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.12 EUR per USD, how many EUR is 2,562 USD?" }, { "role": "assistant", "content": " amount = 2562\n rate = 1.12\n converted = amount * rate # 2869.44\n print(f\"{converted:.2f}\")\nInterpreter output: 2869.44\n\nThat is 2,869.44 ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2869.44", "printed": "2869.44", "notation": null}
nlprog_det-setting-0044723
A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 78-page copy cost? Code: ```python pages = 78 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 34.0 print(f"{cost:.2f}") ``` Execution result: 34.00 The copy costs $34.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0044724
At a 6% tax rate, what is the tax on $556.66? ```python price = 556.66 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 33.3996 print(f"{tax:.2f}") ``` The script prints 33.40. $33.40 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "33.40", "printed": "33.40", "notation": null}
nlprog_det-setting-0044725
How much sales tax is charged on a $731.93 purchase at 5%? Translated to Python: ```python price = 731.93 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 36.5965 print(f"{tax:.2f}") ``` Interpreter output: 36.60 The tax is $36.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "36.60", "printed": "36.60", "notation": null}
nlprog_det-setting-0044726
<|start|><|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?<|eot|> <|assistant|> ```python days = 3 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 427 print(total) ``` Output — 427 The allowance is $427...
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?" }, { "role": "assistant", "content": "```python\ndays = 3\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "427", "printed": "427", "notation": null}
nlprog_det-setting-0044727
Pack A has 10 items for $5.31. Pack B has 30 items for $31.47. Which has the lower price per item? Program: ```python pack_a = 5.31 / 10 # 0.5309999999999999 pack_b = 31.47 / 30 # 1.049 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` # console output: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0044729
Find the mean of these test scores: 86, 96 and 55. As Python: ```python scores = [86, 96, 55] average = sum(scores) // len(scores) # 79 print(average) ``` Console output — 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0044730
<|start|><|user|> What is -5 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Out: 23 That is 23 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is -5 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nOut: 23\n\nThat is 23 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0044732
Rafael drove 366 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Let the code do the arithmetic: ```python miles = 366 rate = 0.65 reimbursement = miles * rate # 237.9 print(f"{reimbursement:.2f}") ``` (stdout: 237.90) Rafael is owed $237.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "237.90", "printed": "237.90", "notation": null}
nlprog_det-setting-0044733
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "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|> <|u...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0044734
An attorney bills 8 hours at $250 per hour. What is the bill? Python version: ```python hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") ``` The program prints 2000.00, as expected. The bill is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0044735
At $0.62 per mile, what is the reimbursement for 207 miles? Let the code do the arithmetic: ```python miles = 207 rate = 0.62 reimbursement = miles * rate # 128.34 print(f"{reimbursement:.2f}") ``` Result: 128.34 Maren is owed $128.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "128.34", "printed": "128.34", "notation": null}
nlprog_det-setting-0044736
122 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Python: total = 122 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") (stdout: 15 each, 2 left over) The answer: 15 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "15 each, 2 left over", "printed": "15 each, 2 left over", "notation": null}
nlprog_det-setting-0044737
<|start|><|system|> Available functions (JSON Schema): [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "search_cases", "description": "Sear...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \...
nlprog_det
setting
original
null
deterministic
[]
[]
375
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044738
25 hard drives cost $12 apiece. With 7% tax added, what is the total? Written as code: ```python quantity = 25 unit_price = 12 subtotal = quantity * unit_price # 300 total = subtotal * (1 + 7 / 100) # 321.0 print(f"{total:.2f}") ``` The program outputs 321.00. The invoice total is $321.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "321.00", "printed": "321.00", "notation": null}
nlprog_det-setting-0044739
14 of 20 members attended. What percent attended? Coded up: ```python present = 14 total = 20 percent = present / total * 100 # 70.0 print(round(percent, 1)) ``` Executing it gives: 70.0 70.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0044740
<|start|><|system|> Tool definitions: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "run_python", "description": "Run Python code in a sand...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0044741
A bicycle helmet costs $80. It is 40% off. What is the sale price? Python: ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` (Printed result: 48.00) The sale price is $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0044743
A lease runs for 24 months at $2,875 per month. How much rent is paid over the whole term? Programmatically: ```python monthly_rent = 2875 months = 24 total = monthly_rent * months # 69000 print(total) ``` Program output — 69000 In total, $69,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "69000", "printed": "69000", "notation": null}
nlprog_det-setting-0044744
<|start|><|user|> What simple interest does $5,000 earn at 4% a year over 5 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 4 / 100 # 0.04 years = 5 interest = principal * rate * years # 1000.0 print(f"{interest:.2f}") ``` That prints 1000.00. The interest is $1,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 4% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 5\ninterest = principal * rate * years # 1000.0\nprint(f\"{interest:.2f}\")\n```\nThat prints 1000.0...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0044745
Monthly: $29. Annual: $312. What is saved per year by paying annually? One way, in code: ```python monthly = 29 yearly = 312 savings = monthly * 12 - yearly # 36 print(savings) ``` Python prints 36. $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0044746
Rent of $1,800 goes up 3%. What is the new rent? Python, step by step: rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") When run, it prints 1854.00. It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0044747
A 40-mile drive at a steady 40 mph takes how many minutes? 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0044748
<|start|><|system|> Be concise.<|eot|> <|user|> Walls total 626 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 626 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` The script prints 2, as expected. 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Walls total 626 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 626\ncoverage = 400\ncans = math.ceil(area / covera...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0044749
Lena's scores were 86, 91, 94, 80 and 59. What is the average score? We write it as a program: ```python scores = [86, 91, 94, 80, 59] average = sum(scores) // len(scores) # 82 print(average) ``` Execution result — 82 The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0044750
A settlement of $4,500 is split equally among 2 parties. How much does each party receive? Each party receives $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0044751
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 580.6451612903226 print(f"{prorated:.2f}") ``` Interpreter outpu...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 12 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 12\nprorated = rent * days_occupied / days_in_month # 580.64...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "580.65", "printed": "580.65", "notation": null}
nlprog_det-setting-0044752
At 1% a month (simple), what interest builds on $2,500 over 6 months? Script: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Run result: 150.00 $150.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0044753
What does $1,000 grow to in 2 years at 2% annual compounding? As a program: principal = 1000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 1040.4 print(f"{value:.2f}") Shell output — 1040.40 It is worth $1,040.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0044754
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python code: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` Execution result — 72...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0044756
<|start|><|user|> How long, in days, is it from June 1, 2023 until June 17, 2023?<|eot|> <|assistant|> It is 16 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How long, in days, is it from June 1, 2023 until June 17, 2023?" }, { "role": "assistant", "content": "It is 16 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0044757
<|start|><|user|> Convert 3 h 26 min (the length of a workshop) to minutes.<|eot|> <|assistant|> The workshop lasted 206 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 26 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "The workshop lasted 206 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0044759
At 2% a month (simple), what interest builds on $2,500 over 3 months? ```python balance = 2500 monthly_rate = 2 / 100 months = 3 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Executing it gives 150.00, as expected. The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0044760
A 18-month warranty starts on October 8, 2025. On what date does it end? As a program: ```python from datetime import date start = date(2025, 10, 8) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed — 2027...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2027-04-08", "printed": "2027-04-08", "notation": null}
nlprog_det-setting-0044761
Convert -20 °C to Fahrenheit. Code: celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) Running this gives: -4 It equals -4 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0044762
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Attendance was 36 out of 50. Express it as a percent.<|eot|> <|assistant|> ```python present = 36 total = 50 percent = present / total * 100 # 72.0 print(round(percent, 1)) ``` # program output: 72.0 72.0% attended.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Attendance was 36 out of 50. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 36\ntotal = 50\npercent = present / total * 100 # 72.0\nprint(round(percent, 1))\...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "72.0", "printed": "72.0", "notation": null}
nlprog_det-setting-0044764
Someone born October 22, 1982 turns how old by March 6, 2029? Give the age in whole years. Python code: ```python from datetime import date born = date(1982, 10, 22) on = date(2029, 3, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` # run result: 46 Tariq is 46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0044765
<|start|><|user|> A bicycle helmet costs $45. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 40.5 print(f"{sale_price:.2f}") ``` Output: 40.50 The sale price is $40.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $45. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 40.5\nprint(f\"{sale_price:.2f}\")\n```\nOutput:\n40.50\n\nThe sale pr...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0044766
How many weekdays (Monday to Friday) fall after September 10, 2028 up to and including October 18, 2028? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2028, 9, 10) end = date(2028, 10, 18) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0044767
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 6 months? Computing it: ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` When run, it prints: 60.00 The interest is $60.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0044768
<|start|><|user|> A meeting lasted 5 hours and 28 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 5 minutes = 28 total_minutes = hours * 60 + minutes # 328 print(total_minutes) ``` Printed: 328 That is 328 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 5 hours and 28 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 28\ntotal_minutes = hours * 60 + minutes # 328\nprint(total_minutes)\n```\nPrinted:\n328\n\nThat is 328 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "328", "printed": "328", "notation": null}
nlprog_det-setting-0044769
What commission does Ivan make on $28,793 in sales at 3%? Code: ```python sales = 28793 rate = 3 / 100 commission = sales * rate print(f"{commission:.2f}") ``` # run result: 863.79 The commission is $863.79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "863.79", "printed": "863.79", "notation": null}
nlprog_det-setting-0044771
<|start|><|user|> A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1000 new = 850 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` The run gives -15, as expected. The change is -15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1000\nnew = 850\nchange = (new - old) / old * 100 # -15.0\nprint(round(change))\n```\nThe run gives -15, as expecte...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-15", "printed": "-15", "notation": null}