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-0057323
Starting from $12,000, the team spends $1,856, $2,241, $1,628, $428. What remains? In code: budget = 12000 expenses = [1856, 2241, 1628, 428] left = budget - sum(expenses) # 5847 print(left) # program output: 5847 $5,847 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5847", "printed": "5847", "notation": null}
nlprog_det-setting-0057324
Walls total 418 sq ft and each can covers 250 sq ft. How many cans should be bought? The program: import math area = 418 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) # console output: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057325
Rent of $900 goes up 5%. What is the new rent? Let's compute it with Python. ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` Printed result — 945.00 The new rent is $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0057326
From 2003 to 2038, how many years is that? That is 35 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0057327
A 7 lb package ships at $12 base plus $0.75/lb. What is the charge? Here is a short program for it. ```python base = 12 per_pound = 0.75 weight = 7 cost = base + per_pound * weight # 17.25 print(f"{cost:.2f}") ``` Printed = 17.25 The charge is $17.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0057328
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? In Python: ```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}") ``` Result — 7200.00 Each ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0057330
How many meters are in 32.2 kilometers? That is 32,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "32200", "printed": "32200", "notation": null}
nlprog_det-setting-0057331
A backpack costs $120. It is 25% off. What is the sale price? As Python: price = 120 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 90.0 print(f"{sale_price:.2f}") # stdout: 90.00 The sale price is $90.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0057332
2 books come back 20 days late, at $0.20 a day each. What is the fine? Python, step by step: ```python per_day = 0.2 days_late = 20 books = 2 fine = per_day * days_late * books # 8.0 print(f"{fine:.2f}") ``` (Program output: 8.00) The fine is $8.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8.00", "printed": "8.00", "notation": null}
nlprog_det-setting-0057333
At 1% a month (simple), what interest builds on $4,000 over 2 months? Python code: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` The program prints 80.00. The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0057334
<|start|><|user|> A $1,200 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 192.0 payment...
chat
[ { "role": "user", "content": "A $1,200 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "58.00", "printed": "58.00", "notation": null}
nlprog_det-setting-0057335
Rent of $1,500 goes up 8%. What is the new rent? It rises to $1,620.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1620.00", "printed": "1620.00", "notation": null}
nlprog_det-setting-0057336
Shipping costs $8 plus $2.00 per pound. What does a 19-pound parcel cost to ship? In Python: base = 8 per_pound = 2.0 weight = 19 cost = base + per_pound * weight # 46.0 print(f"{cost:.2f}") (Out: 46.00) Shipping costs $46.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "46.00", "printed": "46.00", "notation": null}
nlprog_det-setting-0057337
<|start|><|user|> From 2021 to 2048, how many years is that?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2048 print(end_year - start_year) ``` (Out: 27) That is 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2021 to 2048, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2048\nprint(end_year - start_year)\n```\n(Out: 27)\n\nThat is 27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0057338
<|start|><|user|> A hall has 6 rows of 20 seats, and 8 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 6 per_row = 20 empty = 8 seated = rows * per_row - empty # 112 print(seated) ``` Running it prints: 112 112 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 6 rows of 20 seats, and 8 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 6\nper_row = 20\nempty = 8\nseated = rows * per_row - empty # 112\nprint(seated)\n```\nRunning it prints: 112\n\n112 seats are...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "112", "printed": "112", "notation": null}
nlprog_det-setting-0057339
How many minutes pass from 10:04 AM to 4:58 PM on the same day? It is 414 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "414", "printed": "414", "notation": null}
nlprog_det-setting-0057340
<|start|><|system|> Functions: [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> The rules require 2/3 of 41 members (roun...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0057341
<|start|><|user|> A film lasted 3 hours and 9 minutes. How many minutes is that?<|eot|> <|assistant|> That is 189 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 3 hours and 9 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 189 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0057342
A hall has 16 rows of 24 seats, and 21 seats are empty. How many people are seated? Coded up: ```python rows = 16 per_row = 24 empty = 21 seated = rows * per_row - empty # 363 print(seated) ``` Run result = 363 363 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "363", "printed": "363", "notation": null}
nlprog_det-setting-0057343
What percentage of $2,000 is $700? budget = 2000 spent = 700 percent = spent / budget * 100 # 35.0 print(round(percent, 1)) (Program output: 35.0) 35.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "35.0", "printed": "35.0", "notation": null}
nlprog_det-setting-0057344
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> At $26.91 an hour, what does 36 hours of work pay?<|eot|> <|assistant|> That earns $968.76.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "At $26.91 an hour, what does 36 hours of work pay?" }, { "role": "assistant", "content": "That earns $968.76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "968.76", "printed": "968.76", "notation": null}
nlprog_det-setting-0057345
<|start|><|user|> How many of 219 votes make 60% (round up)?<|eot|> <|assistant|> import math voters = 219 needed = math.ceil(voters * 60 / 100) print(needed) Run output: 132 At least 132 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 219 votes make 60% (round up)?" }, { "role": "assistant", "content": " import math\n voters = 219\n needed = math.ceil(voters * 60 / 100)\n print(needed)\nRun output: 132\n\nAt least 132 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0057346
Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year? $2,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0057347
Rent of $1,800 goes up 8%. What is the new rent? Programmatically: ```python rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") ``` stdout: 1944.00 It rises to $1,944.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0057348
<|start|><|system|> Functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"description\": \"Runs a short Py...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0057349
After a 40% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Programmatically: ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 4 # 9000.0 print(f"{per_client:.2f}") ``` Printed result: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0057350
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> An invoice lists 14 scissors at $5 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> The total with tax is $74.90.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "An invoice lists 14 scissors at $5 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The total with tax is $74.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "74.90", "printed": "74.90", "notation": null}
nlprog_det-setting-0057351
Prorate $900 of monthly rent for 8 days of a 30-day month. Python code: ```python rent = 900 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 240.0 print(f"{prorated:.2f}") ``` Run result — 240.00 The tenant owes $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0057352
A measure needs at least 60% of 174 votes. How many votes is that, rounded up? At least 105 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0057353
One can of paint covers 400 square feet. How many cans are needed for 271 square feet of wall? We can compute it in Python. ```python import math area = 271 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` # console output: 1 Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0057354
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|> <|assistant|> Grace earns $976.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?" }, { "role": "assistant", "content": "Grace earns $976.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0057355
One can of paint covers 400 square feet. How many cans are needed for 689 square feet of wall? Python code: ```python import math area = 689 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Execution prints: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057356
Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons? Python version: ```python base = 15 rate = 5.1 used = 19 free = 3 bill = base + rate * max(0, used - free) # 96.6 print(f"{bill:.2f}") ``` # printed: 96.60 The bill is $96.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "96.60", "printed": "96.60", "notation": null}
nlprog_det-setting-0057357
<|start|><|user|> What simple interest does $1,000 earn at 2% a year over 2 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 40.0 print(f"{interest:.2f}") ``` Output: 40.00 The interest is $40.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 2% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 40.0\nprint(f\"{interest:.2f}\")\n```\nOutput:\n40.00\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0057358
A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term? A few lines of Python do it: ```python monthly_rent = 3250 months = 12 total = monthly_rent * months print(total) ``` The script prints: 39000 The rent over the term is $39,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0057359
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Someone works 40 hours at $15.90 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 15.9 hours = 40 earnings = rate * hours print(f"{earnings:.2f}") ``` Running it prints: 636.00 That earns $636.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Someone works 40 hours at $15.90 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 15.9\nhours = 40\nearnings = rate * hours\nprint(f\"{earnings:.2...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "636.00", "printed": "636.00", "notation": null}
nlprog_det-setting-0057360
<|start|><|user|> How long, in days, is it from February 4, 2019 until December 17, 2019?<|eot|> <|assistant|> from datetime import date first = date(2019, 2, 4) # datetime.date(2019, 2, 4) second = date(2019, 12, 17) # datetime.date(2019, 12, 17) print((second - first).days) (Printed result: 316) It...
chat
[ { "role": "user", "content": "How long, in days, is it from February 4, 2019 until December 17, 2019?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2019, 2, 4) # datetime.date(2019, 2, 4)\n second = date(2019, 12, 17) # datetime.date(2019, 12, 17)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "316", "printed": "316", "notation": null}
nlprog_det-setting-0057361
<|start|><|system|> Available functions (JSON Schema): {"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "translate",...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"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
[]
[]
395
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0057362
<|start|><|user|> Convert 4 h 16 min (the length of a training session) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 16 total_minutes = hours * 60 + minutes print(total_minutes) ``` Executing it gives: 256 The training session lasted 256 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 16 min (the length of a training session) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 16\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nExecuting it gives: 256\n\nThe training session lasted 256 m...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0057363
A garage charges $2 an hour, never more than $24 a day. How much for 1 hours? Written as code: ```python rate = 2 hours = 1 daily_max = 24 cost = min(rate * hours, daily_max) # 2 print(cost) ``` This prints 2, as expected. Parking costs $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0057364
What is a 22% tip on a $130.38 bill? As Python: bill = 130.38 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 28.6836 print(f"{tip:.2f}") # printed: 28.68 Leave $28.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "28.68", "printed": "28.68", "notation": null}
nlprog_det-setting-0057365
<|start|><|user|> What average speed covers 286 miles in 2 hours?<|eot|> <|assistant|> It averages 143 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 286 miles in 2 hours?" }, { "role": "assistant", "content": "It averages 143 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0057366
<|start|><|user|> A hall has 7 rows of 22 seats, and 40 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 7 per_row = 22 empty = 40 seated = rows * per_row - empty # 114 print(seated) ``` Python prints 114, as expected. 114 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 7 rows of 22 seats, and 40 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 7\nper_row = 22\nempty = 40\nseated = rows * per_row - empty # 114\nprint(seated)\n```\nPython prints 114, as expected.\n\n11...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0057367
A 6-month warranty starts on December 14, 2020. On what date does it end? Here is the program. ```python from datetime import date start = date(2020, 12, 14) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` It pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2021-06-14", "printed": "2021-06-14", "notation": null}
nlprog_det-setting-0057368
A trial runs from November 1, 2022 to November 16, 2022, counting both days. How many calendar days is that? The program: ```python from datetime import date first = date(2022, 11, 1) # datetime.date(2022, 11, 1) last = date(2022, 11, 16) # datetime.date(2022, 11, 16) days = (last - first).days + 1 # 16 print(days)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0057369
What simple interest does $1,000 earn at 3% a year over 6 years? Python version: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 180.0 print(f"{interest:.2f}") ``` Run result — 180.00 It earns $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0057370
<|start|><|user|> How many 1-foot square tiles cover a 18 ft by 8 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 18 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 144 print(tiles) ``` # printed: 144 144 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 18 ft by 8 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 18\nwidth = 8\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 144\nprint(tiles)\n```\n# printed: 144\n\n144 t...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0057371
Fixed costs are $6,000. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even? Python does the arithmetic: import math fixed = 6000 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 750 print(units) (Execution result: 750) Break-even i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0057372
<|start|><|user|> How many whole days and leftover hours are in 213 hours?<|eot|> <|assistant|> ```python hours = 213 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed result: 8 days and 21 hours 213 hours is 8 days and 21 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 213 hours?" }, { "role": "assistant", "content": "```python\nhours = 213\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted result: 8 days and 21 hours\n\n213 hours is 8 days and 21 h...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "8 days and 21 hours", "printed": "8 days and 21 hours", "notation": null}
nlprog_det-setting-0057373
A hearing is set for November 26, 1991. What day of the week is that? In code: ```python from datetime import date hearing = date(1991, 11, 26) # datetime.date(1991, 11, 26) print(hearing.strftime("%A")) ``` stdout: Tuesday November 26, 1991 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0057374
Rosa and Grace share $4,405 in the ratio 2:3. How much does Rosa get? Script: ```python total = 4405 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1762 print(share_a) ``` # result: 1762 Rosa gets $1,762.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1762", "printed": "1762", "notation": null}
nlprog_det-setting-0057376
<|start|><|system|> Tools you may use: {"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A car travels 72 miles in 0.5 h...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0057377
Quinn lends $2,500 at 5% simple interest per year for 4 years. How much interest is earned? As a program: ```python principal = 2500 rate = 5 / 100 # 0.05 years = 4 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") ``` It outputs: 500.00 It earns $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0057378
243 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? In code: ```python total = 243 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It prints 40 each, 3 left over, as expected. 40 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "40 each, 3 left over", "printed": "40 each, 3 left over", "notation": null}
nlprog_det-setting-0057379
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 2 months? ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` What it prints — 80.00 $80.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0057380
<|start|><|system|> Tools you may use: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "p...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"code_runner\", \"description\": \"Use for ...
nlprog_det
setting
original
null
deterministic
[]
[]
314
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0057381
<|start|><|user|> Split $1,443 between Tariq and Marek in the ratio 1 to 2. What is Tariq's share?<|eot|> <|assistant|> ```python total = 1443 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 481 print(share_a) ``` Printed = 481 Tariq gets $481.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,443 between Tariq and Marek in the ratio 1 to 2. What is Tariq's share?" }, { "role": "assistant", "content": "```python\ntotal = 1443\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 481\nprint(share_a)\n```\nPrinted = 481\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "481", "printed": "481", "notation": null}
nlprog_det-setting-0057383
A trial runs from March 12, 2027 to March 28, 2027, counting both days. How many calendar days is that? In Python: from datetime import date first = date(2027, 3, 12) # datetime.date(2027, 3, 12) last = date(2027, 3, 28) # datetime.date(2027, 3, 28) days = (last - first).days + 1 # 17 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0057384
<|start|><|system|> You may call the tools below. {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "eval_python", "description": "Executes a Python program and returns its output.", "para...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"eval_python\", \"description\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0057385
<|start|><|user|> A pack of 4 scissors sells for $108. What does each cost?<|eot|> <|assistant|> ```python total = 108 count = 4 per_item = total // count # 27 print(per_item) ``` Python prints: 27 Each one costs $27.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 scissors sells for $108. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 108\ncount = 4\nper_item = total // count # 27\nprint(per_item)\n```\nPython prints: 27\n\nEach one costs $27." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0057386
Shipping costs $5 plus $1.50 per pound. What does a 37-pound parcel cost to ship? The charge is $60.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "60.50", "printed": "60.50", "notation": null}
nlprog_det-setting-0057388
An office budget of $8,000 has expenses of $3,514, $1,042, $2,468. How much of the budget is left? $976 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "976", "printed": "976", "notation": null}
nlprog_det-setting-0057389
<|start|><|user|> A 22 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.2 weight = 22 cost = base + per_pound * weight # 36.4 print(f"{cost:.2f}") ``` Running it prints: 36.40 The charge is $36.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 22 lb package ships at $10 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.2\nweight = 22\ncost = base + per_pound * weight # 36.4\nprint(f\"{cost:.2f}\")\n```\nRunning it prints: 36.40\n\nThe cha...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "36.40", "printed": "36.40", "notation": null}
nlprog_det-setting-0057391
<|start|><|user|> A recipe for 4 people uses 150 grams of sugar. How many grams are needed for 2 people?<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 2 scaled = grams * needed_for // serves # 75 print(scaled) ``` Out: 75 75 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 150 grams of sugar. How many grams are needed for 2 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 2\nscaled = grams * needed_for // serves # 75\nprint(scaled)\n```\nOut:\n75\n\n75 grams of...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0057392
<|start|><|user|> Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Program output: 3000.00...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 3000\nyears = 5\nper_year = (cost - salvage) / years # 3...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0057393
A settlement of $524 is split equally among 4 parties. How much does each party receive? Here's the code. ```python settlement = 524 parties = 4 share = settlement // parties # 131 print(share) ``` stdout: 131 Each share is $131.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "131", "printed": "131", "notation": null}
nlprog_det-setting-0057394
Convert 4 h 6 min (the length of a workshop) to minutes. Set it up in Python: ```python hours = 4 minutes = 6 total_minutes = hours * 60 + minutes # 246 print(total_minutes) ``` It prints 246. That is 246 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "246", "printed": "246", "notation": null}
nlprog_det-setting-0057396
From a $10,000 retainer, 3 hours at $200/hour have been drawn. What remains? We write it as a program: ```python retainer = 10000 hours = 3 rate = 200 left = retainer - hours * rate # 9400 print(left) ``` Running this gives: 9400 $9,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "9400", "printed": "9400", "notation": null}
nlprog_det-setting-0057397
A settlement of $525 is split equally among 3 parties. How much does each party receive? As a program: ```python settlement = 525 parties = 3 share = settlement // parties print(share) ``` This prints: 175 Each share is $175.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0057398
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A l...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0057399
<|start|><|system|> Available functions (JSON Schema): [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever t...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"py_exec\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "1722", "printed": "1722", "notation": null}
nlprog_det-setting-0057400
<|start|><|system|> You may call the tools below. [{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How many 1-foot s...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0057401
<|start|><|user|> 34 folders cost $5 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 34 unit_price = 5 subtotal = quantity * unit_price # 170 total = subtotal * (1 + 8 / 100) # 183.60000000000002 print(f"{total:.2f}") ``` When run, it prints: 183.60 The invoice total is $183.6...
chat
[ { "role": "user", "content": "34 folders cost $5 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 34\nunit_price = 5\nsubtotal = quantity * unit_price # 170\ntotal = subtotal * (1 + 8 / 100) # 183.60000000000002\nprint(f\"{total:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "183.60", "printed": "183.60", "notation": null}
nlprog_det-setting-0057402
<|start|><|user|> 4 hours of work at $300 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 4 rate = 300 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` Run it and it prints 1200.00. The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 hours of work at $300 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 300\nbill = hours * rate # 1200\nprint(f\"{bill:.2f}\")\n```\nRun it and it prints 1200.00.\n\nThe bill is $1,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0057403
The meal allowance is $79 per day. What is it for 9 days? Here is the program. ```python days = 9 meal_rate = 79 total = days * meal_rate # 711 print(total) ``` Run output: 711 That comes to $711.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0057405
Sami and Olga share $402 in the ratio 1:2. How much does Sami get? In Python: total = 402 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 134 print(share_a) What it prints: 134 Sami gets $134.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0057406
<|start|><|system|> Give the answer first.<|eot|> <|user|> A storeroom has 1312 sticky pads. The office uses 12 a day. How many are left after 12 days?<|eot|> <|assistant|> stock = 1312 per_day = 12 days = 12 left = stock - per_day * days print(left) When run, it prints 1168. 1168 remain.<|eot|> <|...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A storeroom has 1312 sticky pads. The office uses 12 a day. How many are left after 12 days?" }, { "role": "assistant", "content": " stock = 1312\n per_day = 12\n days = 12\n left = s...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1168", "printed": "1168", "notation": null}
nlprog_det-setting-0057407
The landlord deducts $85 and $150 from a $800 deposit. What is returned to the tenant? As a program: ```python deposit = 800 deductions = [85, 150] refund = deposit - sum(deductions) # 565 print(refund) ``` Run it and it prints 565. The refund is $565.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "565", "printed": "565", "notation": null}
nlprog_det-setting-0057408
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year? Programmatically: ```python cost = 12000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Printed: 2000.00 Depreciation is $2,000.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0057409
Express 89 hours in days and hours. A few lines of Python do it: ```python hours = 89 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output of the run: 3 days and 17 hours 89 hours is 3 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "3 days and 17 hours", "printed": "3 days and 17 hours", "notation": null}
nlprog_det-setting-0057410
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A customer buys 5 mugs at $30 each, 6 calendars at $30 each and pays with $350. How much change is due?<|eot|> <|assistant|> The change is $20.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A customer buys 5 mugs at $30 each, 6 calendars at $30 each and pays with $350. How much change is due?" }, { "role": "assistant", "content": "The change is $20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0057411
A 45-day notice period begins on June 16, 2028. On what date does it end? Here is the program. ```python from datetime import date, timedelta start = date(2028, 6, 16) end = start + timedelta(days=45) print(end.isoformat()) ``` Run result = 2028-07-31 That date is July 31, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2028-07-31", "printed": "2028-07-31", "notation": null}
nlprog_det-setting-0057412
How many meters are in 92.6 kilometers? As a program: km = 92.6 meters = km * 1000 # 92600.0 print(round(meters)) (Console output: 92600) That is 92,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "92600", "printed": "92600", "notation": null}
nlprog_det-setting-0057413
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> 107 copies of a 48-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 48 copies = 107 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 410.88 print(f"{cost:.2f}") ``` (Program output: 410.8...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "107 copies of a 48-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 48\ncopies = 107\ncost_per_page = 0.08\ncost = ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "410.88", "printed": "410.88", "notation": null}
nlprog_det-setting-0057414
4 books come back 15 days late, at $0.20 a day each. What is the fine? Written as code: ```python per_day = 0.2 days_late = 15 books = 4 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` It prints 12.00, as expected. The fine is $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0057415
<|start|><|user|> How much sales tax is charged on a $147.15 purchase at 8%?<|eot|> <|assistant|> ```python price = 147.15 tax_rate = 8 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` The script prints: 11.77 The tax is $11.77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $147.15 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 147.15\ntax_rate = 8 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nThe script prints: 11.77\n\nThe tax is $11.77." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "11.77", "printed": "11.77", "notation": null}
nlprog_det-setting-0057416
Printing costs 15 cents a page. What does it cost to print 97 copies of a 23-page handout? ```python pages = 23 copies = 97 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 334.65 print(f"{cost:.2f}") ``` Out: 334.65 The job costs $334.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "334.65", "printed": "334.65", "notation": null}
nlprog_det-setting-0057417
Leon's scores were 67, 61, 81, 78 and 78. What is the average score? scores = [67, 61, 81, 78, 78] average = sum(scores) // len(scores) # 73 print(average) The program prints 73. The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0057418
Malik lends $5,000 at 2% simple interest per year for 4 years. How much interest is earned? Here is the program. ```python principal = 5000 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 400.0 print(f"{interest:.2f}") ``` The run gives: 400.00 The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0057419
Convert 0 °C to Fahrenheit. Here's the code. ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` The interpreter prints 32. That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0057420
<|start|><|system|> Available functions (JSON Schema): {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> 3 claimant...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0057422
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_w...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
352
{"gold": "2023-06-13", "printed": "2023-06-13", "notation": null}
nlprog_det-setting-0057423
<|start|><|user|> Sofia earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 52 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 288.0 pay = regular + overtime # 928.0 print(f"{pay:.2f}") ``` # output: 928...
chat
[ { "role": "user", "content": "Sofia earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 52\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 288.0\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "928.00", "printed": "928.00", "notation": null}
nlprog_det-setting-0057426
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after March 3, 2020 through March 13, 2020?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2020, 3, 3) end = date(2020, 3, 13) count = 0 for ...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 3, 2020 through March 13, 2020?" }, { "role": "assistant", "content": " from datetime import date, timed...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0057428
A 15 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Let the code do the arithmetic: ```python import math length = 15 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 60 print(tiles) ``` Execution prints: 60 60 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0057429
Each of Kofi's swims burns 400 calories. How many calories over 6 swims? As Python: ```python per_session = 400 sessions = 6 total = per_session * sessions # 2400 print(total) ``` # console output: 2400 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0057430
<|start|><|system|> Available functions (JSON Schema): [{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Notice was gi...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "2021-06-06", "printed": "2021-06-06", "notation": null}
nlprog_det-setting-0057431
What is the total rent on a 36-month lease at $1,475 a month? The computation: ```python monthly_rent = 1475 months = 36 total = monthly_rent * months # 53100 print(total) ``` Execution prints: 53100 In total, $53,100 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "53100", "printed": "53100", "notation": null}
nlprog_det-setting-0057432
<|start|><|user|> A lawyer's fee is 33% of a $40,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` (Printed: 13200.00) The fee is $13,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $40,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 13200.0\nprint(f\"{fee:.2f}\")\n```\n(Printed: 13200.00)\n\nThe fee is $13,200.00...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0057433
At a 7% tax rate, what is the tax on $781.93? The tax is $54.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "54.74", "printed": "54.74", "notation": null}