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-0044562
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 4 months? Python code: ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") ``` That prints 720.00. $720.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0044563
Printing costs 15 cents a page. What does it cost to print 29 copies of a 51-page handout? Printing costs $221.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "221.85", "printed": "221.85", "notation": null}
nlprog_det-setting-0044564
<|start|><|user|> Paula and Sara share $3,635 in the ratio 2:3. How much does Paula get?<|eot|> <|assistant|> Paula gets $1,454.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Paula and Sara share $3,635 in the ratio 2:3. How much does Paula get?" }, { "role": "assistant", "content": "Paula gets $1,454." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1454", "printed": "1454", "notation": null}
nlprog_det-setting-0044565
<|start|><|user|> Walls total 263 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 263 coverage = 300 cans = math.ceil(area / coverage) # 1 print(cans) ``` (Output: 1) Buy 1 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 263 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 263\ncoverage = 300\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\n(Output: 1)\n\nBuy 1 cans." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0044566
A meeting starts at 12:15 PM and lasts 40 minutes. When does it end? We write it as a program: ```python start = 12 * 60 + 15 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # program output: 12:55 PM The meeting finishes at 12:55 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "12:55 PM", "printed": "12:55 PM", "notation": null}
nlprog_det-setting-0044567
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Monthly rent is $1,800. A tenant moves in with 5 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 290.3225806451613...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 5 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "290.32", "printed": "290.32", "notation": null}
nlprog_det-setting-0044568
<|start|><|user|> Marek's scores were 54, 52 and 80. What is the average score?<|eot|> <|assistant|> ```python scores = [54, 52, 80] average = sum(scores) // len(scores) # 62 print(average) ``` stdout — 62 The average score is 62.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Marek's scores were 54, 52 and 80. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [54, 52, 80]\naverage = sum(scores) // len(scores) # 62\nprint(average)\n```\nstdout — 62\n\nThe average score is 62." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0044569
<|start|><|user|> Counting the first and last day, how many days are there from November 11, 2027 through November 14, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 11, 11) # datetime.date(2027, 11, 11) last = date(2027, 11, 14) # datetime.date(2027, 11, 14) days = (last - first).d...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from November 11, 2027 through November 14, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 11, 11) # datetime.date(2027, 11, 11)\nlast = date(2027, 11, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0044570
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> 4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 72...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 40 / 100 ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0044571
Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons? Program: ```python base = 15 rate = 5.1 used = 25 free = 0 bill = base + rate * max(0, used - free) # 142.5 print(f"{bill:.2f}") ``` Interpreter output: 142.50 The bill is $142.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "142.50", "printed": "142.50", "notation": null}
nlprog_det-setting-0044572
<|start|><|system|> Tool definitions: {"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Papers were served by mail on July 5, 20...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
263
{"gold": "2022-07-29", "printed": "2022-07-29", "notation": null}
nlprog_det-setting-0044573
A quorum is 3/5 of the 17 members, rounded up. How many members make a quorum? Here's the code. ```python import math members = 17 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` (Printed: 11) That is 11 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0044574
What is the total rent on a 36-month lease at $975 a month? Python makes this quick: ```python monthly_rent = 975 months = 36 total = monthly_rent * months print(total) ``` It prints: 35100 The rent over the term is $35,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "35100", "printed": "35100", "notation": null}
nlprog_det-setting-0044575
A shift runs from 7:41 AM to 12:43 PM. How long is it in minutes? Code: start = 7 * 60 + 41 # 461 end = 12 * 60 + 43 # 763 print(end - start) Result: 302 It is 302 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "302", "printed": "302", "notation": null}
nlprog_det-setting-0044576
2 claimants share a $36,000 settlement equally. What is each share? ```python settlement = 36000 parties = 2 share = settlement // parties # 18000 print(share) ``` Output — 18000 Each share is $18,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0044577
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> An invoice lists 5 lanyards at $5 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 5 unit_price = 5 subtotal = quantity * unit_price # 25 total = subtotal * (1 + 10 / 100) # 27.500000000000004 ...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "An invoice lists 5 lanyards at $5 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 5\n unit_price = 5\n subtotal = qu...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "27.50", "printed": "27.50", "notation": null}
nlprog_det-setting-0044578
<|start|><|system|> Functions: [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetch_filing", "description": "Fetch an SEC fi...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, {...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "667.74", "printed": "667.74", "notation": null}
nlprog_det-setting-0044579
What does $1,000 grow to in 4 years at 2% annual compounding? A few lines of Python do it: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 1082.43216 print(f"{value:.2f}") ``` The program prints 1082.43, as expected. It is worth $1,082.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0044580
A claim accrued on July 14, 2023. The limitations period is 2 years. On what date does it expire? Here is the program. ```python from datetime import date accrued = date(2023, 7, 14) # datetime.date(2023, 7, 14) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 7, 14) print(expires...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2025-07-14", "printed": "2025-07-14", "notation": null}
nlprog_det-setting-0044581
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` On running, it outputs 20.0. The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0044582
Monthly: $12. Annual: $114. What is saved per year by paying annually? A short script: ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) ``` Shell output: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0044583
<|start|><|system|> Functions: [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "description": "Translate text into ano...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"nam...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "1700", "printed": "1700", "notation": null}
nlprog_det-setting-0044584
Counting the first and last day, how many days are there from May 16, 2018 through May 27, 2018? Translated to Python: ```python from datetime import date first = date(2018, 5, 16) # datetime.date(2018, 5, 16) last = date(2018, 5, 27) # datetime.date(2018, 5, 27) days = (last - first).days + 1 # 12 print(days) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0044585
What is 15 degrees Celsius in Fahrenheit? Set it up in Python: ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` The run gives 59. That is 59 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0044586
Rosa buys 5 boxes of 25 pens each and gives away 5 pens. How many pens are left? Set it up in Python: ```python boxes = 5 per_box = 25 given_away = 5 left = boxes * per_box - given_away # 120 print(left) ``` Output of the run: 120 120 pens are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0044587
<|start|><|user|> Starting with 1801 water bottles and using 27 per day, how many remain after 3 days?<|eot|> <|assistant|> ```python stock = 1801 per_day = 27 days = 3 left = stock - per_day * days print(left) ``` The printout reads: 1720 1720 water bottles are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1801 water bottles and using 27 per day, how many remain after 3 days?" }, { "role": "assistant", "content": "```python\nstock = 1801\nper_day = 27\ndays = 3\nleft = stock - per_day * days\nprint(left)\n```\nThe printout reads: 1720\n\n1720 water bottl...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1720", "printed": "1720", "notation": null}
nlprog_det-setting-0044588
<|start|><|system|> Tools you may use: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calculator", "description": "Use for arithmetic and...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "6 days and 9 hours", "printed": "6 days and 9 hours", "notation": null}
nlprog_det-setting-0044589
<|start|><|system|> Functions: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A claim accrued on April 6, 2012. The limitat...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "2014-04-06", "printed": "2014-04-06", "notation": null}
nlprog_det-setting-0044590
<|start|><|user|> What commission does Tomas make on $50,216 in sales at 4%?<|eot|> <|assistant|> ```python sales = 50216 rate = 4 / 100 # 0.04 commission = sales * rate # 2008.64 print(f"{commission:.2f}") ``` What it prints — 2008.64 Tomas earns $2,008.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Tomas make on $50,216 in sales at 4%?" }, { "role": "assistant", "content": "```python\nsales = 50216\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 2008.64\nprint(f\"{commission:.2f}\")\n```\nWhat it prints — 2008.64\n\nTomas earns $2,00...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2008.64", "printed": "2008.64", "notation": null}
nlprog_det-setting-0044591
<|start|><|user|> A $180 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 41.39999999999999 print(f"{each:.2f}") ``` That prints: 41.40 The share is $41...
chat
[ { "role": "user", "content": "A $180 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 5\neach = bill * (1 + tip_rate) / people # 41.39999999999999\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "41.40", "printed": "41.40", "notation": null}
nlprog_det-setting-0044592
How many days are there from June 26, 2018 to June 21, 2019? from datetime import date first = date(2018, 6, 26) # datetime.date(2018, 6, 26) second = date(2019, 6, 21) # datetime.date(2019, 6, 21) print((second - first).days) Running it prints 360. There are 360 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0044593
After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Written as code: ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 4 # 10800.0 print(f"{per_client:.2f}") ``` Printed = 10800....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0044594
A $2,000 security deposit has deductions of $45 and $60. How much is refunded? Programmatically: ```python deposit = 2000 deductions = [45, 60] refund = deposit - sum(deductions) # 1895 print(refund) ``` The printout reads 1895. The refund is $1,895.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1895", "printed": "1895", "notation": null}
nlprog_det-setting-0044595
The firm was founded in 2020. How many years had passed by 2023? As Python: ```python start_year = 2020 end_year = 2023 print(end_year - start_year) ``` Python prints: 3 3 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0044596
On which weekday does December 28, 2013 fall? A short script: ```python from datetime import date hearing = date(2013, 12, 28) # datetime.date(2013, 12, 28) print(hearing.strftime("%A")) ``` The printout reads: Saturday December 28, 2013 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0044597
What is a 15% tip on a $189.58 bill? As Python: ```python bill = 189.58 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 28.437 print(f"{tip:.2f}") ``` Result = 28.44 Leave $28.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "28.44", "printed": "28.44", "notation": null}
nlprog_det-setting-0044599
What simple interest does $5,000 earn at 4% a year over 2 years? Python does the arithmetic: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 2 interest = principal * rate * years # 400.0 print(f"{interest:.2f}") ``` When run, it prints: 400.00 The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0044600
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? In code: ```python rate = 20.0 hours = 41 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 30.0 pay = regular + overtime # 830.0 print(f"{pay:.2f}") ``` Console output — 830.00 Elena earns $830.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "830.00", "printed": "830.00", "notation": null}
nlprog_det-setting-0044601
At an exchange rate of 1.31 USD per EUR, how many USD is 4,723 EUR? Python: ```python amount = 4723 rate = 1.31 converted = amount * rate # 6187.13 print(f"{converted:.2f}") ``` Run output — 6187.13 That is 6,187.13 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6187.13", "printed": "6187.13", "notation": null}
nlprog_det-setting-0044602
A trial runs from April 4, 2021 to April 18, 2021, counting both days. How many calendar days is that? Python version: from datetime import date first = date(2021, 4, 4) # datetime.date(2021, 4, 4) last = date(2021, 4, 18) # datetime.date(2021, 4, 18) days = (last - first).days + 1 # 15 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0044603
With 30 rows of 17 chairs and 19 empty chairs, how many chairs are taken? Python does the arithmetic: ```python rows = 30 per_row = 17 empty = 19 seated = rows * per_row - empty # 491 print(seated) ``` The script prints: 491 491 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "491", "printed": "491", "notation": null}
nlprog_det-setting-0044604
A hall has 19 rows of 11 seats, and 4 seats are empty. How many people are seated? Python makes this quick: ```python rows = 19 per_row = 11 empty = 4 seated = rows * per_row - empty # 205 print(seated) ``` The run gives: 205 205 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0044605
<|start|><|user|> What does $2,000 grow to in 3 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 2315.2500000000005 print(f"{value:.2f}") ``` (Output: 2315.25) The balance is $2,315.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 3 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 2315.2500000000005\nprint(f\"{value:.2f}\")\n```\n(Output:...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2315.25", "printed": "2315.25", "notation": null}
nlprog_det-setting-0044606
A recipe for 2 people uses 300 grams of sugar. How many grams are needed for 3 people? Computing it: ```python grams = 300 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 450 print(scaled) ``` # stdout: 450 Use 450 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0044607
Counting the first and last day, how many days are there from April 1, 2019 through April 4, 2019? Programmatically: ```python from datetime import date first = date(2019, 4, 1) # datetime.date(2019, 4, 1) last = date(2019, 4, 4) # datetime.date(2019, 4, 4) days = (last - first).days + 1 # 4 print(days) ``` That pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0044608
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Printing costs 5 cents a page. What does it cost to print 10 copies of a 58-page handout?<|eot|> <|assistant|> ```python pages = 58 copies = 10 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 29.0 print(f"{cost:.2f}") ``` Console output: ...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 10 copies of a 58-page handout?" }, { "role": "assistant", "content": "```python\npages = 58\ncopies = 10\ncost_per_page = 0.05\...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "29.00", "printed": "29.00", "notation": null}
nlprog_det-setting-0044609
The landlord deducts $45 from a $2,500 deposit. What is returned to the tenant? The Python version: ```python deposit = 2500 deductions = [45] refund = deposit - sum(deductions) # 2455 print(refund) ``` Execution prints 2455, as expected. The refund is $2,455.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2455", "printed": "2455", "notation": null}
nlprog_det-setting-0044610
How many minutes pass from 9:31 AM to 9:55 AM on the same day? Set it up in Python: ```python start = 9 * 60 + 31 # 571 end = 9 * 60 + 55 # 595 print(end - start) ``` Output: 24 It is 24 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044611
<|start|><|user|> The building opened in 2020. How many years had passed by 2031?<|eot|> <|assistant|> ```python start_year = 2020 end_year = 2031 print(end_year - start_year) ``` What it prints — 11 That is 11 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2020. How many years had passed by 2031?" }, { "role": "assistant", "content": "```python\nstart_year = 2020\nend_year = 2031\nprint(end_year - start_year)\n```\nWhat it prints — 11\n\nThat is 11 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0044612
Monthly rent is $2,400. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent? ```python rent = 2400 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1920.0 print(f"{prorated:.2f}") ``` Program output: 1920.00 The tenant owes $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0044613
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 440 square feet of wall?<|eot|> <|assistant|> 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 440 square feet of wall?" }, { "role": "assistant", "content": "2 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0044614
<|start|><|user|> Someone works 32 hours at $31.61 per hour. What are the earnings?<|eot|> <|assistant|> The pay is $1,011.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $31.61 per hour. What are the earnings?" }, { "role": "assistant", "content": "The pay is $1,011.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1011.52", "printed": "1011.52", "notation": null}
nlprog_det-setting-0044615
<|start|><|user|> Rent of $1,500 goes up 6%. What is the new rent?<|eot|> <|assistant|> It rises to $1,590.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,500 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $1,590.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0044616
A storeroom has 901 rulers. The office uses 17 a day. How many are left after 19 days? Python, step by step: ```python stock = 901 per_day = 17 days = 19 left = stock - per_day * days # 578 print(left) ``` The printout reads 578. 578 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "578", "printed": "578", "notation": null}
nlprog_det-setting-0044617
A 35 lb package ships at $8 base plus $0.75/lb. What is the charge? Program: ```python base = 8 per_pound = 0.75 weight = 35 cost = base + per_pound * weight # 34.25 print(f"{cost:.2f}") ``` Shell output — 34.25 Shipping costs $34.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "34.25", "printed": "34.25", "notation": null}
nlprog_det-setting-0044618
How many days are there from August 1, 2021 to June 5, 2022? We write it as a program: ```python from datetime import date first = date(2021, 8, 1) # datetime.date(2021, 8, 1) second = date(2022, 6, 5) # datetime.date(2022, 6, 5) print((second - first).days) ``` Python prints 308. It is 308 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "308", "printed": "308", "notation": null}
nlprog_det-setting-0044619
<|start|><|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 69 lodging_rate = 110 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` That prints: 606 That comes to $606.<|eot|> <|...
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 69\nlodging_rate = 110\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "606", "printed": "606", "notation": null}
nlprog_det-setting-0044620
<|start|><|user|> What commission does Tomas make on $31,459 in sales at 4%?<|eot|> <|assistant|> The commission is $1,258.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Tomas make on $31,459 in sales at 4%?" }, { "role": "assistant", "content": "The commission is $1,258.36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1258.36", "printed": "1258.36", "notation": null}
nlprog_det-setting-0044621
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Split $3,647 between Tariq and Yoko in the ratio 3 to 4. What is Tariq's share?<|eot|> <|assistant|> ```python total = 3647 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1563 print(share_a) ``` The printout reads: 1...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Split $3,647 between Tariq and Yoko in the ratio 3 to 4. What is Tariq's share?" }, { "role": "assistant", "content": "```python\ntotal = 3647\nparts_a = 3\nparts_b = 4\nshare_a =...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "1563", "printed": "1563", "notation": null}
nlprog_det-setting-0044622
The rules require 1/3 of 42 members (round up) to be present. How many is that? Computing it: ```python import math members = 42 quorum = math.ceil(members * 1 / 3) # 14 print(quorum) ``` That prints 14. That is 14 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0044623
Prorate $2,400 of monthly rent for 8 days of a 31-day month. Here's the code. rent = 2400 days_in_month = 31 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 619.3548387096774 print(f"{prorated:.2f}") # result: 619.35 The tenant owes $619.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "619.35", "printed": "619.35", "notation": null}
nlprog_det-setting-0044624
Of a $2,000 budget, $1,000 has been spent. What percent is that? That is 50.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0044625
<|start|><|user|> A settlement of $15,000 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 15000 parties = 8 share = settlement // parties # 1875 print(share) ``` Execution result: 1875 Each share is $1,875.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $15,000 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 8\nshare = settlement // parties # 1875\nprint(share)\n```\nExecution result: 1875\n\nEach sh...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1875", "printed": "1875", "notation": null}
nlprog_det-setting-0044626
Starting with 1415 cables and using 25 per day, how many remain after 12 days? Computation in Python: ```python stock = 1415 per_day = 25 days = 12 left = stock - per_day * days # 1115 print(left) ``` It prints 1115, as expected. 1115 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1115", "printed": "1115", "notation": null}
nlprog_det-setting-0044627
<|start|><|system|> Functions: {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> What is a 18% tip on a $143.21 bill?<|eot|> ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" },...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "25.78", "printed": "25.78", "notation": null}
nlprog_det-setting-0044628
<|start|><|user|> A kettle costs $80. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 80 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Result: 72.00 The sale price is $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A kettle costs $80. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 80\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\nResult: 72.00\n\nThe sale price is $7...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0044629
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after April 17, 2020 up to and including May 23, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 4, 17) end = date(2020, 5, 23) count = 0 for k in range(1, (end - start).da...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after April 17, 2020 up to and including May 23, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = ...
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0044630
One can of paint covers 300 square feet. How many cans are needed for 782 square feet of wall? A Python solution: ```python import math area = 782 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Out — 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0044631
<|start|><|user|> A clerk's office charges $150 for each filing. Lena submits 2 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 150 filings = 2 total = fee * filings # 300 print(total) ``` This prints: 300 The filings cost $300 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $150 for each filing. Lena submits 2 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 150\nfilings = 2\ntotal = fee * filings # 300\nprint(total)\n```\nThis prints: 300\n\nThe filings cost $300 in all....
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0044632
What day of the week is January 22, 2011? January 22, 2011 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0044633
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term? Programmatically: ```python monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) ``` Execution prints 30600. In total, $30,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0044634
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 9 copies of a 42-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 42 copies = 9 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 45.36 print(f"{cost:.2f}") ``` Running this gives 45.36. The job co...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "9 copies of a 42-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 42\ncopies = 9\ncost_per_page = 0.12\ncost = pages * copies...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "45.36", "printed": "45.36", "notation": null}
nlprog_det-setting-0044635
<|start|><|system|> Keep explanations short.<|eot|> <|user|> At a 4% tax rate, what is the tax on $298.78?<|eot|> <|assistant|> ```python price = 298.78 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 11.9512 print(f"{tax:.2f}") ``` Program output: 11.95 $11.95 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "At a 4% tax rate, what is the tax on $298.78?" }, { "role": "assistant", "content": "```python\nprice = 298.78\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 11.9512\nprint(f\"{tax:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11.95", "printed": "11.95", "notation": null}
nlprog_det-setting-0044636
A customer buys 3 envelopes at $25 each, 4 mugs at $22 each, 6 file boxes at $8 each and pays with $250. How much change is due? A Python solution: ```python items = [(3, 25), (4, 22), (6, 8)] total = sum(q * p for q, p in items) # 211 paid = 250 change = paid - total # 39 print(change) ``` Output — 39 $39 comes ba...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0044637
A penalty of $250 a day accrues, capped at $5,000. What is owed after 23 days? The computation: ```python per_day = 250 days = 23 cap = 5000 fine = min(per_day * days, cap) print(fine) ``` Shell output — 5000 The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0044638
How many minutes pass from 8:54 AM to 9:48 AM on the same day? Written as code: ```python start = 8 * 60 + 54 # 534 end = 9 * 60 + 48 # 588 print(end - start) ``` Run it and it prints 54. 54 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0044639
An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 2 months? Let the code do the arithmetic: ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` Run result: 40.00 $40.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0044640
Scale 240 g of rice from 8 servings to 3 servings. Computation in Python: ```python grams = 240 serves = 8 needed_for = 3 scaled = grams * needed_for // serves # 90 print(scaled) ``` Output — 90 Use 90 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0044641
$5,000 is invested at 5% compounded yearly. What is it worth after 2 years? Computation in Python: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") ``` The program prints 5512.50, as expected. It is worth $5,512.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0044642
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> At an excha...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "4561.36", "printed": "4561.36", "notation": null}
nlprog_det-setting-0044643
<|start|><|user|> A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 78 savings = monthly * 12 - yearly # 30 print(savings) ``` The script prints 30, as expected. The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 78\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nThe script prints 30, as ex...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0044644
Which is cheaper per unit: 10 for $10.35 (A) or 30 for $20.62 (B)? Translated to Python: ```python pack_a = 10.35 / 10 # 1.035 pack_b = 20.62 / 30 # 0.6873333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Shell output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0044645
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word", "...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
370
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0044646
From a $7,500 retainer, 6 hours at $250/hour have been drawn. What remains? ```python retainer = 7500 hours = 6 rate = 250 left = retainer - hours * rate # 6000 print(left) ``` Result = 6000 $6,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0044647
<|start|><|user|> To read 912 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 912 days = 16 per_day = pages // days # 57 print(per_day) ``` (Out: 57) That is 57 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 912 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 912\ndays = 16\nper_day = pages // days # 57\nprint(per_day)\n```\n(Out: 57)\n\nThat is 57 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0044648
<|start|><|user|> How many 2-foot square tiles cover a 5 ft by 4 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 5 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Output: 5 It takes 5 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 5 ft by 4 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 5\nwidth = 4\ntile = 2\ntiles = math.ceil(length * width / (tile * tile))\nprint(tiles)\n```\nOutput:\n5\n\nIt takes 5 tiles."...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0044649
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A 4 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 4 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` Python prints 5, as expected. 5 t...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A 4 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 4\nwidth = 5\ntile = 2\ntiles = math.ceil...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0044650
A storeroom has 945 staplers. The office uses 29 a day. How many are left after 15 days? ```python stock = 945 per_day = 29 days = 15 left = stock - per_day * days # 510 print(left) ``` The printout reads: 510 510 staplers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "510", "printed": "510", "notation": null}
nlprog_det-setting-0044651
Of a $4,000 budget, $3,800 has been spent. What percent is that? Let's compute it with Python. ```python budget = 4000 spent = 3800 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` Printed: 95.0 95.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0044652
105 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? Programmatically: ```python total = 105 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout — 17 each, 3 left over The answer: 17 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "17 each, 3 left over", "printed": "17 each, 3 left over", "notation": null}
nlprog_det-setting-0044653
<|start|><|user|> How many weekdays (Monday to Friday) fall after September 19, 2018 up to and including October 15, 2018?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 9, 19) end = date(2018, 10, 15) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after September 19, 2018 up to and including October 15, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 9, 19)\nend = date(2018, 10, 15)\ncount = 0\nfor k in ...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0044654
To read 338 pages in 13 days, how many pages per day are needed? We can compute it in Python. ```python pages = 338 days = 13 per_day = pages // days # 26 print(per_day) ``` On running, it outputs 26. 26 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0044655
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Attendance was 13 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 13 total = 25 percent = present / total * 100 # 52.0 print(round(percent, 1)) ``` The script prints 52.0. Attendance was 52.0%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Attendance was 13 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 13\ntotal = 25\npercent = present / total * 100 # 52.0\nprint(roun...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0044656
How much sales tax is charged on a $528.68 purchase at 4%? A few lines of Python do it: ```python price = 528.68 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 21.147199999999998 print(f"{tax:.2f}") ``` That prints: 21.15 $21.15 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "21.15", "printed": "21.15", "notation": null}
nlprog_det-setting-0044657
Jonas earns a 2% commission on $89,805 of sales. What is the commission? Coded up: ```python sales = 89805 rate = 2 / 100 # 0.02 commission = sales * rate # 1796.1000000000001 print(f"{commission:.2f}") ``` Running it prints 1796.10. Jonas earns $1,796.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1796.10", "printed": "1796.10", "notation": null}
nlprog_det-setting-0044658
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Goods bought on December 27, 2027 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> The warranty ends on December 27, 2028.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Goods bought on December 27, 2027 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": "The warranty ends on December 27, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "2028-12-27", "printed": "2028-12-27", "notation": null}
nlprog_det-setting-0044659
<|start|><|system|> Tools (call with JSON): [{"name": "python", "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|> 13 copies of a 7-page ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"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
[]
[]
235
{"gold": "13.65", "printed": "13.65", "notation": null}
nlprog_det-setting-0044660
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Hugo and Kemal share $1,799 in the ratio 2:5. How much does Hugo get?<|eot|> <|assistant|> ```python total = 1799 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 514 print(share_a) ``` (Out: 514) Hugo's share is $514.<|eot...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Hugo and Kemal share $1,799 in the ratio 2:5. How much does Hugo get?" }, { "role": "assistant", "content": "```python\ntotal = 1799\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "514", "printed": "514", "notation": null}
nlprog_det-setting-0044661
<|start|><|system|> Functions: {"name": "calculator", "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"]}} {"name": "get_weather", "description": "Get the w...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calculator\", \"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...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0044662
A 45-day notice period begins on August 6, 2021. On what date does it end? Computing it: ```python from datetime import date, timedelta start = date(2021, 8, 6) # datetime.date(2021, 8, 6) end = start + timedelta(days=45) # datetime.date(2021, 9, 20) print(end.isoformat()) ``` # out: 2021-09-20 The period ends on S...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-09-20", "printed": "2021-09-20", "notation": null}