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-0061280
A claim accrued on April 6, 2019. The limitations period is 6 years. On what date does it expire? from datetime import date accrued = date(2019, 4, 6) # datetime.date(2019, 4, 6) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 4, 6) print(expires.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2025-04-06", "printed": "2025-04-06", "notation": null}
nlprog_det-setting-0061281
<|start|><|user|> Convert -15 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` stdout: 5 It equals 5 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -15 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```\nstdout: 5\n\nIt equals 5 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061282
Convert 6,741 GBP to USD at 1 GBP = 1.08 USD. Here is a short program for it. ```python amount = 6741 rate = 1.08 converted = amount * rate # 7280.280000000001 print(f"{converted:.2f}") ``` Printed result: 7280.28 It converts to 7,280.28 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "7280.28", "printed": "7280.28", "notation": null}
nlprog_det-setting-0061283
A shift runs from 9:46 AM to 11:21 AM. How long is it in minutes? Here is the program. ```python start = 9 * 60 + 46 # 586 end = 11 * 60 + 21 # 681 print(end - start) ``` # stdout: 95 It is 95 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0061284
A settlement of $36,000 is split equally among 5 parties. How much does each party receive? We can compute it in Python. ```python settlement = 36000 parties = 5 share = settlement // parties # 7200 print(share) ``` Out: 7200 Each share is $7,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0061285
What percentage of $4,000 is $1,900? ```python budget = 4000 spent = 1900 percent = spent / budget * 100 # 47.5 print(round(percent, 1)) ``` Out = 47.5 That is 47.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "47.5", "printed": "47.5", "notation": null}
nlprog_det-setting-0061286
12 boxes hold 6 cables each. After 20 are handed out, how many are left? The Python version: ```python boxes = 12 per_box = 6 given_away = 20 left = boxes * per_box - given_away # 52 print(left) ``` (Console output: 52) That leaves 52 cables.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0061287
<|start|><|user|> Counting the first and last day, how many days are there from February 17, 2021 through March 7, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 2, 17) last = date(2021, 3, 7) days = (last - first).days + 1 print(days) ``` This prints 19, as expected. 19 calendar day...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from February 17, 2021 through March 7, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 2, 17)\nlast = date(2021, 3, 7)\ndays = (last - first).days + 1\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0061288
<|start|><|user|> 21 copies of a 14-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> Printing costs $35.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "21 copies of a 14-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "Printing costs $35.28." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "35.28", "printed": "35.28", "notation": null}
nlprog_det-setting-0061289
<|start|><|user|> Papers were served by mail on May 23, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 5, 23) # datetime.date(2023, 5, 23) response_days = 14 mail_days = 3 due = ...
chat
[ { "role": "user", "content": "Papers were served by mail on May 23, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 5, 23) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2023-06-09", "printed": "2023-06-09", "notation": null}
nlprog_det-setting-0061290
At 1.5% a month (simple), what interest builds on $2,500 over 4 months? A Python solution: ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Out — 150.00 The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0061291
Notice was given on June 20, 2024. The notice period is 120 days. When does it run out? It ends on October 18, 2024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2024-10-18", "printed": "2024-10-18", "notation": null}
nlprog_det-setting-0061292
How many of 178 votes make 60% (round up)? One way, in code: ```python import math voters = 178 needed = math.ceil(voters * 60 / 100) # 107 print(needed) ``` Printed — 107 107 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0061293
How many of 249 votes make 67% (round up)? Computing it: ```python import math voters = 249 needed = math.ceil(voters * 67 / 100) # 167 print(needed) ``` # printed: 167 167 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0061294
A penalty of $25 a day accrues, capped at $2,500. What is owed after 18 days? Here is the program. ```python per_day = 25 days = 18 cap = 2500 fine = min(per_day * days, cap) # 450 print(fine) ``` Output of the run: 450 The fine is $450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0061295
<|start|><|user|> A trial runs from January 8, 2020 to January 26, 2020, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 19 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A trial runs from January 8, 2020 to January 26, 2020, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 19 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0061296
<|start|><|user|> A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?<|eot|> <|assistant|> The trip uses $68.85 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?" }, { "role": "assistant", "content": "The trip uses $68.85 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "68.85", "printed": "68.85", "notation": null}
nlprog_det-setting-0061297
Zoe and Goran share $5,215 in the ratio 2:5. How much does Zoe get? Computing it: ```python total = 5215 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1490 print(share_a) ``` Python prints 1490, as expected. Zoe gets $1,490.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1490", "printed": "1490", "notation": null}
nlprog_det-setting-0061298
<|start|><|user|> What day of the week is February 8, 2016?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2016, 2, 8) print(hearing.strftime("%A")) ``` (Out: Monday) It is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is February 8, 2016?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2016, 2, 8)\nprint(hearing.strftime(\"%A\"))\n```\n(Out: Monday)\n\nIt is a Monday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0061299
<|start|><|user|> An attorney bills 8 hours at $150 per hour. What is the bill?<|eot|> <|assistant|> hours = 8 rate = 150 bill = hours * rate # 1200 print(f"{bill:.2f}") Running this gives: 1200.00 The bill is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 8 hours at $150 per hour. What is the bill?" }, { "role": "assistant", "content": " hours = 8\n rate = 150\n bill = hours * rate # 1200\n print(f\"{bill:.2f}\")\nRunning this gives: 1200.00\n\nThe bill is $1,200.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0061300
What average speed covers 108 miles in 1.5 hours? We write it as a program: ```python distance = 108 hours = 1.5 speed = distance / hours # 72.0 print(round(speed)) ``` What it prints: 72 It averages 72 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0061301
Counting the first and last day, how many days are there from July 6, 2022 through July 26, 2022? Computing it: ```python from datetime import date first = date(2022, 7, 6) # datetime.date(2022, 7, 6) last = date(2022, 7, 26) # datetime.date(2022, 7, 26) days = (last - first).days + 1 # 21 print(days) ``` Run outpu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0061302
<|start|><|user|> The rules require 2/3 of 59 members (round up) to be present. How many is that?<|eot|> <|assistant|> That is 40 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 59 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "That is 40 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0061303
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0061304
A client paid a $7,500 retainer. The firm has billed 8 hours at $275 per hour. How much of the retainer is left? A short script: ```python retainer = 7500 hours = 8 rate = 275 left = retainer - hours * rate print(left) ``` Executed, it shows: 5300 $5,300 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5300", "printed": "5300", "notation": null}
nlprog_det-setting-0061305
<|start|><|user|> At a 6% tax rate, what is the tax on $17.04?<|eot|> <|assistant|> ```python price = 17.04 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 1.0224 print(f"{tax:.2f}") ``` It prints: 1.02 $1.02 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $17.04?" }, { "role": "assistant", "content": "```python\nprice = 17.04\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 1.0224\nprint(f\"{tax:.2f}\")\n```\nIt prints: 1.02\n\n$1.02 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1.02", "printed": "1.02", "notation": null}
nlprog_det-setting-0061307
Each of Xavier's walks burns 300 calories. How many calories over 5 walks? Translated to Python: ```python per_session = 300 sessions = 5 total = per_session * sessions # 1500 print(total) ``` The program prints: 1500 That burns 1500 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0061308
Convert 17.4 km to meters. km = 17.4 meters = km * 1000 # 17400.0 print(round(meters)) Interpreter output: 17400 That is 17,400 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "17400", "printed": "17400", "notation": null}
nlprog_det-setting-0061310
A meal costs $134.52. How much is a 18% tip? The tip is $24.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "24.21", "printed": "24.21", "notation": null}
nlprog_det-setting-0061311
161 files go into boxes of 40. How many boxes does that take? Script: ```python import math files = 161 per_box = 40 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` The run gives: 5 5 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061312
A customer buys 2 desk lamps at $27 each, 2 file boxes at $17 each, 2 desk lamps at $2 each and pays with $100. How much change is due? ```python items = [(2, 27), (2, 17), (2, 2)] total = sum(q * p for q, p in items) # 92 paid = 100 change = paid - total # 8 print(change) ``` (Out: 8) The change is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0061313
An office budget of $5,000 has expenses of $1,219, $3,027, $687, $2,767. How much of the budget is left? ```python budget = 5000 expenses = [1219, 3027, 687, 2767] left = budget - sum(expenses) # -2700 print(left) ``` Execution prints -2700, as expected. -$2,700 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "-2700", "printed": "-2700", "notation": null}
nlprog_det-setting-0061314
<|start|><|user|> A class starts at 8:40 AM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 8 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` That prints 9:05 AM. The class finishes at 9:05 AM.<|eot|...
chat
[ { "role": "user", "content": "A class starts at 8:40 AM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 40\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9:05 AM", "printed": "9:05 AM", "notation": null}
nlprog_det-setting-0061315
Each of Ulla's runs burns 200 calories. How many calories over 5 runs? The Python version: ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Python prints: 1000 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061316
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Rosa has 17 docum...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "5950", "printed": "5950", "notation": null}
nlprog_det-setting-0061317
Fines run at $25 per day up to a maximum of $2,500. How much after 39 days? The Python version: ```python per_day = 25 days = 39 cap = 2500 fine = min(per_day * days, cap) # 975 print(fine) ``` # printed result: 975 The fine is $975.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "975", "printed": "975", "notation": null}
nlprog_det-setting-0061318
Under a 33% contingency agreement, what fee is owed on a $60,000 award? Let the code do the arithmetic: ```python recovery = 60000 rate = 33 / 100 # 0.33 fee = recovery * rate # 19800.0 print(f"{fee:.2f}") ``` This prints 19800.00. The fee is $19,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0061319
<|start|><|user|> How many whole days and leftover hours are in 300 hours?<|eot|> <|assistant|> 300 hours is 12 days and 12 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 300 hours?" }, { "role": "assistant", "content": "300 hours is 12 days and 12 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "12 days and 12 hours", "printed": "12 days and 12 hours", "notation": null}
nlprog_det-setting-0061320
One can of paint covers 400 square feet. How many cans are needed for 173 square feet of wall? Python version: ```python import math area = 173 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` It outputs: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0061321
A 5-day trip pays $74 a day for meals and $140 a night for lodging (4 nights). What is the total allowance? We can compute it in Python. ```python days = 5 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 930 print(total) ``` This prints 930, as expected. Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "930", "printed": "930", "notation": null}
nlprog_det-setting-0061322
Noor's scores were 60, 50, 82, 74, 96, 99 and 92. What is the average score? Here is a short program for it. scores = [60, 50, 82, 74, 96, 99, 92] average = sum(scores) // len(scores) # 79 print(average) The code prints: 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0061323
Papers were served by mail on October 22, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Here's the code. ```python from datetime import date, timedelta served = date(2024, 10, 22) # datetime.date(2024, 10, 22) response_days = 28 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2024-11-22", "printed": "2024-11-22", "notation": null}
nlprog_det-setting-0061324
<|start|><|user|> Someone works 36 hours at $30.85 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 30.85 hours = 36 earnings = rate * hours # 1110.6000000000001 print(f"{earnings:.2f}") ``` Printed: 1110.60 The pay is $1,110.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $30.85 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 30.85\nhours = 36\nearnings = rate * hours # 1110.6000000000001\nprint(f\"{earnings:.2f}\")\n```\nPrinted:\n1110.60\n\nThe pay is $1,110.60." ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1110.60", "printed": "1110.60", "notation": null}
nlprog_det-setting-0061325
<|start|><|user|> A claim accrued on August 12, 2024. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2024, 8, 12) # datetime.date(2024, 8, 12) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 8...
chat
[ { "role": "user", "content": "A claim accrued on August 12, 2024. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2024, 8, 12) # datetime.date(2024, 8, 12)\nyears = 5\nexpires = accrued.r...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2029-08-12", "printed": "2029-08-12", "notation": null}
nlprog_det-setting-0061326
What is the total rent on a 18-month lease at $1,475 a month? The computation: ```python monthly_rent = 1475 months = 18 total = monthly_rent * months print(total) ``` Output = 26550 In total, $26,550 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "26550", "printed": "26550", "notation": null}
nlprog_det-setting-0061327
<|start|><|user|> Count the days between August 21, 2023 and March 13, 2024.<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 8, 21) # datetime.date(2023, 8, 21) second = date(2024, 3, 13) # datetime.date(2024, 3, 13) print((second - first).days) ``` Output of the run: 205 There are 205 da...
chat
[ { "role": "user", "content": "Count the days between August 21, 2023 and March 13, 2024." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 8, 21) # datetime.date(2023, 8, 21)\nsecond = date(2024, 3, 13) # datetime.date(2024, 3, 13)\nprint((second -...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0061328
68 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? 11 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "11 each, 2 left over", "printed": "11 each, 2 left over", "notation": null}
nlprog_det-setting-0061330
A lawyer's fee is 33% of a $150,000 recovery. How large is the fee? A short script: ```python recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") ``` # out: 49500.00 The lawyer's fee comes to $49,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0061331
At $0.70 per mile, what is the reimbursement for 373 miles? The reimbursement is $261.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "261.10", "printed": "261.10", "notation": null}
nlprog_det-setting-0061332
A 90-day notice period begins on October 24, 2019. On what date does it end? Script: ```python from datetime import date, timedelta start = date(2019, 10, 24) # datetime.date(2019, 10, 24) end = start + timedelta(days=90) # datetime.date(2020, 1, 22) print(end.isoformat()) ``` Result = 2020-01-22 The period ends on...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2020-01-22", "printed": "2020-01-22", "notation": null}
nlprog_det-setting-0061333
An office budget of $5,000 has expenses of $3,104, $513. How much of the budget is left? Here's the code. ```python budget = 5000 expenses = [3104, 513] left = budget - sum(expenses) # 1383 print(left) ``` Result = 1383 The remaining budget is $1,383.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1383", "printed": "1383", "notation": null}
nlprog_det-setting-0061334
22 badges cost $5 apiece. With 7% tax added, what is the total? The program: ```python quantity = 22 unit_price = 5 subtotal = quantity * unit_price # 110 total = subtotal * (1 + 7 / 100) # 117.7 print(f"{total:.2f}") ``` It prints 117.70. The total with tax is $117.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "117.70", "printed": "117.70", "notation": null}
nlprog_det-setting-0061335
<|start|><|user|> After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 3 # 14000.0 print(f"{per_cli...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 60000\n fee = award * 30 / 100 # 18000.0\n remaining = award - fee # 42000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0061336
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` Python prints 760....
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 45\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 120.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0061337
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 17,000 gallons?<|eot|> <|assistant|> $86.25 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 17,000 gallons?" }, { "role": "assistant", "content": "$86.25 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "86.25", "printed": "86.25", "notation": null}
nlprog_det-setting-0061338
If a 3-year limitations period starts on March 14, 2019, when does it end? ```python from datetime import date accrued = date(2019, 3, 14) # datetime.date(2019, 3, 14) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 3, 14) print(expires.isoformat()) ``` The run gives 2022-03-14, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2022-03-14", "printed": "2022-03-14", "notation": null}
nlprog_det-setting-0061339
How many whole days and leftover hours are in 365 hours? Let the code do the arithmetic: ```python hours = 365 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed = 15 days and 5 hours That is 15 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15 days and 5 hours", "printed": "15 days and 5 hours", "notation": null}
nlprog_det-setting-0061340
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> From 2006 to 2020, how many years is that?<|eot|> <|assistant|> ```python start_year = 2006 end_year = 2020 print(end_year - start_year) ``` Console: 14 That is 14 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "From 2006 to 2020, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2006\nend_year = 2020\nprint(end_year - start_year)\n```\nConsole:\n14\n\nThat is 14 ye...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0061341
<|start|><|system|> Tools (call with JSON): [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A shift runs from 8:13 AM to...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0061342
Monthly: $19. Annual: $216. What is saved per year by paying annually? The Python version: ```python monthly = 19 yearly = 216 savings = monthly * 12 - yearly # 12 print(savings) ``` The run gives 12, as expected. The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0061343
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": [...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"des...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "234", "printed": "234", "notation": null}
nlprog_det-setting-0061344
Convert 92.8 km to meters. That is 92,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "92800", "printed": "92800", "notation": null}
nlprog_det-setting-0061345
How many weekdays (Monday to Friday) fall after January 23, 2020 up to and including February 16, 2020? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2020, 1, 23) end = date(2020, 2, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0061346
<|start|><|user|> Convert 3,096 USD to EUR at 1 USD = 1.27 EUR.<|eot|> <|assistant|> amount = 3096 rate = 1.27 converted = amount * rate # 3931.92 print(f"{converted:.2f}") # program output: 3931.92 It converts to 3,931.92 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3,096 USD to EUR at 1 USD = 1.27 EUR." }, { "role": "assistant", "content": " amount = 3096\n rate = 1.27\n converted = amount * rate # 3931.92\n print(f\"{converted:.2f}\")\n# program output: 3931.92\n\nIt converts to 3,931.92 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3931.92", "printed": "3931.92", "notation": null}
nlprog_det-setting-0061347
<|start|><|user|> Papers were served by mail on July 2, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2021, 7, 2) # datetime.date(2021, 7, 2) response_days = 30 mail_days = 3 ...
chat
[ { "role": "user", "content": "Papers were served by mail on July 2, 2021. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n served = date(2021, 7, 2) # datetime.date(...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "2021-08-04", "printed": "2021-08-04", "notation": null}
nlprog_det-setting-0061348
<|start|><|user|> To read 189 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 189 days = 7 per_day = pages // days # 27 print(per_day) ``` The interpreter prints: 27 27 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 189 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 189\ndays = 7\nper_day = pages // days # 27\nprint(per_day)\n```\nThe interpreter prints: 27\n\n27 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0061349
<|start|><|user|> Count 14 days forward from April 7, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 4, 7) # datetime.date(2020, 4, 7) end = start + timedelta(days=14) # datetime.date(2020, 4, 21) print(end.isoformat()) ``` Printed — 2020-04-21 That da...
chat
[ { "role": "user", "content": "Count 14 days forward from April 7, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 4, 7) # datetime.date(2020, 4, 7)\nend = start + timedelta(days=14) # datetime.date(2020, 4, 21)...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2020-04-21", "printed": "2020-04-21", "notation": null}
nlprog_det-setting-0061350
<|start|><|user|> A $9,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $825.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $9,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $825.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "825.00", "printed": "825.00", "notation": null}
nlprog_det-setting-0061351
<|start|><|user|> With 30% off, what does a $45 desk lamp cost?<|eot|> <|assistant|> It costs $31.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $45 desk lamp cost?" }, { "role": "assistant", "content": "It costs $31.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0061352
With 30% off, what does a $90 backpack cost? ```python price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") ``` The script prints 63.00. The sale price is $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0061353
Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year? $1,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0061354
An office budget of $8,000 has expenses of $3,729, $517. How much of the budget is left? Script: ```python budget = 8000 expenses = [3729, 517] left = budget - sum(expenses) # 3754 print(left) ``` When run, it prints 3754, as expected. $3,754 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3754", "printed": "3754", "notation": null}
nlprog_det-setting-0061355
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?<|eot|> <|assistant|> The bill is $34.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?" }, { "role": "assistant", "content": "The bill is $34.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0061356
<|start|><|user|> Scale 150 g of flour from 4 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 450 print(scaled) ``` The code prints 450. Use 450 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of flour from 4 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 12\nscaled = grams * needed_for // serves # 450\nprint(scaled)\n```\nThe code prints 450.\n\nUse 450 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0061357
Nikhil earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week? The weekly pay is $950.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "950.00", "printed": "950.00", "notation": null}
nlprog_det-setting-0061358
A pack of 25 pens sells for $300. What does each cost? We write it as a program: ```python total = 300 count = 25 per_item = total // count # 12 print(per_item) ``` # run result: 12 Each one costs $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0061359
Which is cheaper per unit: 8 for $8.64 (A) or 30 for $9.42 (B)? As Python: ```python pack_a = 8.64 / 8 # 1.08 pack_b = 9.42 / 30 # 0.314 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # printed result: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061360
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 14500 costs = 12500 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` It outputs: 13.8 Profit is 13.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0061361
A 30-day notice period begins on November 19, 2022. On what date does it end? A short script: from datetime import date, timedelta start = date(2022, 11, 19) # datetime.date(2022, 11, 19) end = start + timedelta(days=30) # datetime.date(2022, 12, 19) print(end.isoformat()) On running, it outputs: 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2022-12-19", "printed": "2022-12-19", "notation": null}
nlprog_det-setting-0061362
A lawyer's fee is 40% of a $25,000 recovery. How large is the fee? The lawyer's fee comes to $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0061363
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eo...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0061364
Signe's scores were 77, 86 and 68. What is the average score? Python, step by step: ```python scores = [77, 86, 68] average = sum(scores) // len(scores) # 77 print(average) ``` Program output — 77 The mean is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0061365
Monthly: $25. Annual: $270. What is saved per year by paying annually? Python makes this quick: ```python monthly = 25 yearly = 270 savings = monthly * 12 - yearly print(savings) ``` It prints: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0061366
<|start|><|system|> Functions: [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A court charges $10 per request plu...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"sandbox_python\", \"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
[]
[]
256
{"gold": "11.30", "printed": "11.30", "notation": null}
nlprog_det-setting-0061367
A 260-mile drive at a steady 65 mph takes how many minutes? Let's compute it with Python. ```python distance = 260 speed = 65 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Result: 240 The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0061368
A library charges $0.25 per book per day late. What is the fine for 2 books that are 9 days late? A few lines of Python do it: per_day = 0.25 days_late = 9 books = 2 fine = per_day * days_late * books # 4.5 print(f"{fine:.2f}") The code prints 4.50. The fine is $4.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4.50", "printed": "4.50", "notation": null}
nlprog_det-setting-0061369
<|start|><|system|> You can call tools. Available tools: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A shift starts...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "3:45 PM", "printed": "3:45 PM", "notation": null}
nlprog_det-setting-0061371
<|start|><|user|> Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 1 daily_max = 24 cost = min(rate * hours, daily_max) # 5 print(cost) ``` When run, it prints: 5 Parking costs $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $24. What do 1 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 1\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 5\nprint(cost)\n```\nWhen run, it prints: 5\n\nParking costs $5." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061373
<|start|><|user|> A meal costs $22.30. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 22.3 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 3.345 print(f"{tip:.2f}") ``` Python prints 3.35, as expected. The tip is $3.35.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $22.30. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 22.3\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 3.345\nprint(f\"{tip:.2f}\")\n```\nPython prints 3.35, as expected.\n\nThe tip is $3.35." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3.35", "printed": "3.35", "notation": null}
nlprog_det-setting-0061374
A 7 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Written as code: ```python import math length = 7 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 13 print(tiles) ``` The program prints: 13 13 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0061375
A $30,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment? Python, step by step: ```python grant = 30000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 10000.0 print(f"{each:.2f}") ``` Python prints 10000.00, as expected. Each installment is $10,00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0061376
A clerk's office charges $350 for each filing. Idris submits 9 filings. What is the total fee? fee = 350 filings = 9 total = fee * filings # 3150 print(total) Python prints 3150, as expected. The total fee is $3,150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "3150", "printed": "3150", "notation": null}
nlprog_det-setting-0061377
<|start|><|system|> Functions: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"python\", \"description\": \"Runs a short Python snip...
nlprog_det
setting
original
null
deterministic
[]
[]
318
{"gold": "2024-06-19", "printed": "2024-06-19", "notation": null}
nlprog_det-setting-0061378
Under a 25% contingency agreement, what fee is owed on a $90,000 award? Code: ```python recovery = 90000 rate = 25 / 100 # 0.25 fee = recovery * rate # 22500.0 print(f"{fee:.2f}") ``` The program prints 22500.00, as expected. The lawyer's fee comes to $22,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0061379
From a $7,500 retainer, 14 hours at $150/hour have been drawn. What remains? Computing it: retainer = 7500 hours = 14 rate = 150 left = retainer - hours * rate # 5400 print(left) stdout = 5400 $5,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "5400", "printed": "5400", "notation": null}
nlprog_det-setting-0061380
<|start|><|user|> A clerk's office charges $405 for each filing. Malik submits 16 filings. What is the total fee?<|eot|> <|assistant|> The filings cost $6,480 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $405 for each filing. Malik submits 16 filings. What is the total fee?" }, { "role": "assistant", "content": "The filings cost $6,480 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "6480", "printed": "6480", "notation": null}
nlprog_det-setting-0061381
A trial runs from February 22, 2021 to March 2, 2021, counting both days. How many calendar days is that? 9 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0061382
<|start|><|user|> Scale 100 g of rice from 8 servings to 2 servings.<|eot|> <|assistant|> ```python grams = 100 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 25 print(scaled) ``` The printout reads 25. Use 25 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 100 g of rice from 8 servings to 2 servings." }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 8\nneeded_for = 2\nscaled = grams * needed_for // serves # 25\nprint(scaled)\n```\nThe printout reads 25.\n\nUse 25 g of rice." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0061383
<|start|><|system|> You have access to these functions: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "sandbox_python", "description": "A P...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0061384
<|start|><|user|> A clerk's office charges $25 for each filing. Marek submits 2 filings. What is the total fee?<|eot|> <|assistant|> fee = 25 filings = 2 total = fee * filings # 50 print(total) Executing it gives: 50 $50 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $25 for each filing. Marek submits 2 filings. What is the total fee?" }, { "role": "assistant", "content": " fee = 25\n filings = 2\n total = fee * filings # 50\n print(total)\nExecuting it gives: 50\n\n$50 in filing fees." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "50", "printed": "50", "notation": null}