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-0082458
Wen's scores were 63, 61, 53 and 79. What is the average score? In code: ```python scores = [63, 61, 53, 79] average = sum(scores) // len(scores) # 64 print(average) ``` Result: 64 The average score is 64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0082459
<|start|><|user|> 6 batteries cost $24 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 6 unit_price = 24 subtotal = quantity * unit_price # 144 total = subtotal * (1 + 10 / 100) # 158.4 print(f"{total:.2f}") ``` This prints 158.40, as expected. The total with tax is $158.40.<...
chat
[ { "role": "user", "content": "6 batteries cost $24 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 6\nunit_price = 24\nsubtotal = quantity * unit_price # 144\ntotal = subtotal * (1 + 10 / 100) # 158.4\nprint(f\"{total:.2f}\")\n```\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "158.40", "printed": "158.40", "notation": null}
nlprog_det-setting-0082460
A pack of 12 paper reams sells for $576. What does each cost? Python version: ```python total = 576 count = 12 per_item = total // count # 48 print(per_item) ``` Running this gives 48. Each one costs $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0082461
Nilufar has 14 documents to file, and each filing costs $350. How much are the filing fees in total? ```python fee = 350 filings = 14 total = fee * filings # 4900 print(total) ``` (Printed result: 4900) The total fee is $4,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "4900", "printed": "4900", "notation": null}
nlprog_det-setting-0082462
A room is 9 feet by 14 feet. Flooring costs $3 per square foot. What does it cost to floor the room? The flooring costs $378.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "378", "printed": "378", "notation": null}
nlprog_det-setting-0082463
33 of 40 members attended. What percent attended? Translated to Python: present = 33 total = 40 percent = present / total * 100 # 82.5 print(round(percent, 1)) Run output: 82.5 Attendance was 82.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "82.5", "printed": "82.5", "notation": null}
nlprog_det-setting-0082464
From a $5,000 retainer, 11 hours at $200/hour have been drawn. What remains? A short script: ```python retainer = 5000 hours = 11 rate = 200 left = retainer - hours * rate # 2800 print(left) ``` (Output: 2800) $2,800 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0082465
<|start|><|user|> Starting with 1692 labels and using 34 per day, how many remain after 3 days?<|eot|> <|assistant|> ```python stock = 1692 per_day = 34 days = 3 left = stock - per_day * days # 1590 print(left) ``` Execution prints 1590. 1590 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1692 labels and using 34 per day, how many remain after 3 days?" }, { "role": "assistant", "content": "```python\nstock = 1692\nper_day = 34\ndays = 3\nleft = stock - per_day * days # 1590\nprint(left)\n```\nExecution prints 1590.\n\n1590 remain." }...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1590", "printed": "1590", "notation": null}
nlprog_det-setting-0082466
Jae and Emeka share $525 in the ratio 1:2. How much does Jae get? Code: ```python total = 525 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 175 print(share_a) ``` The script prints: 175 Jae gets $175.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0082467
<|start|><|user|> Reza earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?<|eot|> <|assistant|> ```python rate = 18.5 hours = 48 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 222.0 pay = regular + overtime # 962.0 print(f"{pay:.2f}") ``` It prints 962....
chat
[ { "role": "user", "content": "Reza earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 48\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 222.0\npay = regular...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "962.00", "printed": "962.00", "notation": null}
nlprog_det-setting-0082468
A lawyer's fee is 25% of a $60,000 recovery. How large is the fee? A short script: ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` stdout: 15000.00 The fee is $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0082469
Someone works 24 hours at $28.07 per hour. What are the earnings? As Python: ```python rate = 28.07 hours = 24 earnings = rate * hours print(f"{earnings:.2f}") ``` (Out: 673.68) The pay is $673.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "673.68", "printed": "673.68", "notation": null}
nlprog_det-setting-0082470
On which weekday does October 9, 2002 fall? It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0082471
Kemal drove 588 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? We can compute it in Python. miles = 588 rate = 0.62 reimbursement = miles * rate # 364.56 print(f"{reimbursement:.2f}") # printed: 364.56 The reimbursement is $364.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "364.56", "printed": "364.56", "notation": null}
nlprog_det-setting-0082472
What simple interest does $12,000 earn at 4% a year over 5 years? Here's the code. ```python principal = 12000 rate = 4 / 100 # 0.04 years = 5 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") ``` It prints: 2400.00 The interest is $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0082474
An attorney bills 8 hours at $250 per hour. What is the bill? Written as code: ```python hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") ``` Console output — 2000.00 That comes to $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0082475
An invoice lists 12 pens at $6 each, plus 6% sales tax. What is the invoice total? A few lines of Python do it: ```python quantity = 12 unit_price = 6 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 6 / 100) # 76.32000000000001 print(f"{total:.2f}") ``` When run, it prints 76.32, as expected. The invo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "76.32", "printed": "76.32", "notation": null}
nlprog_det-setting-0082476
<|start|><|user|> Walls total 1196 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1196 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` Out = 5 Buy 5 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1196 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1196\ncoverage = 250\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\nOut = 5\n\nBuy 5 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082477
A lawyer's fee is 40% of a $60,000 recovery. How large is the fee? Python: recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") Execution prints: 24000.00 The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0082478
<|start|><|system|> Be concise.<|eot|> <|user|> On which weekday does February 20, 2010 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2010, 2, 20) # datetime.date(2010, 2, 20) print(hearing.strftime("%A")) ``` This prints: Saturday February 20, 2010 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "On which weekday does February 20, 2010 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2010, 2, 20) # datetime.date(2010, 2, 20)\nprint(hearing.strftime(\...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0082479
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A $1,200 loan carries 5% 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 = 5 / 100 # 0.05 months = 24 interest = princip...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A $1,200 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "55.00", "printed": "55.00", "notation": null}
nlprog_det-setting-0082480
Fines run at $100 per day up to a maximum of $2,500. How much after 9 days? Script: ```python per_day = 100 days = 9 cap = 2500 fine = min(per_day * days, cap) # 900 print(fine) ``` It outputs: 900 $900 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0082481
Starting from $8,000, the team spends $2,355, $3,871, $2,487, $2,523. What remains? A few lines of Python do it: ```python budget = 8000 expenses = [2355, 3871, 2487, 2523] left = budget - sum(expenses) # -3236 print(left) ``` When run, it prints -3236, as expected. The remaining budget is -$3,236.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "-3236", "printed": "-3236", "notation": null}
nlprog_det-setting-0082482
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A 17 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 17 width = 13 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 56 print(tiles) The interprete...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A 17 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 17\n width = 13\n tile = 2\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0082483
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours? The weekly pay is $784.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "784.00", "printed": "784.00", "notation": null}
nlprog_det-setting-0082484
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 2 claimants share a $960 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 960 parties = 2 share = settlement // parties # 480 print(share) ``` The script prints 480, as expected. Each party receives $480.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "2 claimants share a $960 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 960\nparties = 2\nshare = settlement // parties # 480\nprint(sha...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0082485
212 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? Python does the arithmetic: ```python total = 212 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout — 30 each, 2 left over The answer: 30 each, 2 left ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "30 each, 2 left over", "printed": "30 each, 2 left over", "notation": null}
nlprog_det-setting-0082486
Convert 6,988 USD to CAD at 1 USD = 1.08 CAD. Code: ```python amount = 6988 rate = 1.08 converted = amount * rate # 7547.040000000001 print(f"{converted:.2f}") ``` What it prints — 7547.04 It converts to 7,547.04 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "7547.04", "printed": "7547.04", "notation": null}
nlprog_det-setting-0082487
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Which is cheaper per unit: 6 for $5.99 (A) or 24 for $22.59 (B)?<|eot|> <|assistant|> ```python pack_a = 5.99 / 6 # 0.9983333333333334 pack_b = 22.59 / 24 # 0.94125 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # run result: B...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Which is cheaper per unit: 6 for $5.99 (A) or 24 for $22.59 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 5.99 / 6 # 0.9983333333333334\npack_b = 22.59 / 24 # 0.941...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082488
<|start|><|user|> Rent of $900 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` The program prints 972.00, as expected. It rises to $972.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 972.0000000000001\nprint(f\"{new_rent:.2f}\")\n```\nThe program prints 972.00, as expected.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0082489
1 books come back 9 days late, at $0.15 a day each. What is the fine? The program: ```python per_day = 0.15 days_late = 9 books = 1 fine = per_day * days_late * books # 1.3499999999999999 print(f"{fine:.2f}") ``` It prints 1.35. $1.35 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1.35", "printed": "1.35", "notation": null}
nlprog_det-setting-0082490
<|start|><|user|> Starting from $20,000, the team spends $1,202, $482. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [1202, 482] left = budget - sum(expenses) # 18316 print(left) ``` Running this gives: 18316 The remaining budget is $18,316.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $1,202, $482. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [1202, 482]\nleft = budget - sum(expenses) # 18316\nprint(left)\n```\nRunning this gives: 18316\n\nThe remaining budget i...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "18316", "printed": "18316", "notation": null}
nlprog_det-setting-0082491
A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 4 thousand gallons? $20.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "20.40", "printed": "20.40", "notation": null}
nlprog_det-setting-0082492
What is 25 degrees Celsius in Fahrenheit? Python, step by step: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` On running, it outputs: 77 It equals 77 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0082493
<|start|><|user|> Someone works 40 hours at $25.47 per hour. What are the earnings?<|eot|> <|assistant|> rate = 25.47 hours = 40 earnings = rate * hours # 1018.8 print(f"{earnings:.2f}") Execution result: 1018.80 That earns $1,018.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 40 hours at $25.47 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 25.47\n hours = 40\n earnings = rate * hours # 1018.8\n print(f\"{earnings:.2f}\")\nExecution result: 1018.80\n\nThat earns $1,018.80." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1018.80", "printed": "1018.80", "notation": null}
nlprog_det-setting-0082494
<|start|><|user|> Convert 5,306 EUR to USD at 1 EUR = 1.12 USD.<|eot|> <|assistant|> ```python amount = 5306 rate = 1.12 converted = amount * rate # 5942.72 print(f"{converted:.2f}") ``` stdout: 5942.72 It converts to 5,942.72 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5,306 EUR to USD at 1 EUR = 1.12 USD." }, { "role": "assistant", "content": "```python\namount = 5306\nrate = 1.12\nconverted = amount * rate # 5942.72\nprint(f\"{converted:.2f}\")\n```\nstdout:\n5942.72\n\nIt converts to 5,942.72 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5942.72", "printed": "5942.72", "notation": null}
nlprog_det-setting-0082495
What percentage of $5,000 is $300? A short script: ```python budget = 5000 spent = 300 percent = spent / budget * 100 # 6.0 print(round(percent, 1)) ``` This prints: 6.0 That is 6.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "6.0", "printed": "6.0", "notation": null}
nlprog_det-setting-0082496
<|start|><|user|> A $96 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> The share is $19.20 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "The share is $19.20 each." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "19.20", "printed": "19.20", "notation": null}
nlprog_det-setting-0082498
<|start|><|system|> You may call the tools below. [{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_w...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "2658.88", "printed": "2658.88", "notation": null}
nlprog_det-setting-0082499
<|start|><|user|> Count the days between September 25, 2021 and March 14, 2022.<|eot|> <|assistant|> from datetime import date first = date(2021, 9, 25) # datetime.date(2021, 9, 25) second = date(2022, 3, 14) # datetime.date(2022, 3, 14) print((second - first).days) (stdout: 170) There are 170 days b...
chat
[ { "role": "user", "content": "Count the days between September 25, 2021 and March 14, 2022." }, { "role": "assistant", "content": " from datetime import date\n first = date(2021, 9, 25) # datetime.date(2021, 9, 25)\n second = date(2022, 3, 14) # datetime.date(2022, 3, 14)\n print((...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0082500
With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal. Python makes this quick: ```python revenue = 15000 costs = 12500 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` (Run result: 16.7) Profit is 16.7% ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0082501
Prorate $900 of monthly rent for 12 days of a 30-day month. Python does the arithmetic: ```python rent = 900 days_in_month = 30 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 360.0 print(f"{prorated:.2f}") ``` (Printed: 360.00) The tenant owes $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0082502
<|start|><|user|> Express 398 hours in days and hours.<|eot|> <|assistant|> ```python hours = 398 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The script prints 16 days and 14 hours. 398 hours is 16 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 398 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 398\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe script prints 16 days and 14 hours.\n\n398 hours is 16 days and 14 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "16 days and 14 hours", "printed": "16 days and 14 hours", "notation": null}
nlprog_det-setting-0082503
With 20% off, what does a $120 printer cost? Script: price = 120 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 96.0 print(f"{sale_price:.2f}") This prints: 96.00 The sale price is $96.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0082504
<|start|><|user|> A party has 21 days to respond to a motion served on December 5, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 12, 5) # datetime.date(2023, 12, 5) response_days = 21 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on December 5, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 12, 5) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2023-12-29", "printed": "2023-12-29", "notation": null}
nlprog_det-setting-0082505
A hall has 12 rows of 14 seats, and 39 seats are empty. How many people are seated? ```python rows = 12 per_row = 14 empty = 39 seated = rows * per_row - empty # 129 print(seated) ``` Out: 129 129 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "129", "printed": "129", "notation": null}
nlprog_det-setting-0082506
<|start|><|user|> A garage charges $3 an hour, never more than $15 a day. How much for 10 hours?<|eot|> <|assistant|> ```python rate = 3 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The program prints 15, as expected. Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $3 an hour, never more than $15 a day. How much for 10 hours?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 10\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nThe program prints 15, as expected.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082507
<|start|><|user|> A $96 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 22.656 print(f"{each:.2f}") ``` When run, it prints 22.66. The share is $22.66 e...
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 5\neach = bill * (1 + tip_rate) / people # 22.656\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "22.66", "printed": "22.66", "notation": null}
nlprog_det-setting-0082508
<|start|><|user|> Copies cost $15 plus $0.10 for each page beyond 20. How much for 8 pages?<|eot|> <|assistant|> The copy costs $15.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 8 pages?" }, { "role": "assistant", "content": "The copy costs $15.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0082509
<|start|><|system|> Tool definitions: {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> What day of the week is May 3, 2...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0082510
<|start|><|user|> Meals are $64 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 781 print(total) ``` Run output — 781 The allowance is ...
chat
[ { "role": "user", "content": "Meals are $64 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 64\nlodging_rate = 175\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "781", "printed": "781", "notation": null}
nlprog_det-setting-0082511
Walls total 1198 sq ft and each can covers 250 sq ft. How many cans should be bought? Script: ```python import math area = 1198 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` Printed result: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082512
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $0, 4 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` Output: 4500.00 Depreciation is $4,500.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $0, 4 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 0\nyears = 4\nper_year = (cost - salvage) / years # 4500.0\nprint(f\"{per_year:.2f}\")\n```\nOutput: 4500.00\...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0082513
Of a $2,000 budget, $300 has been spent. What percent is that? Computation in Python: ```python budget = 2000 spent = 300 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) ``` # printed: 15.0 15.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0082514
<|start|><|user|> 4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 4 # 10800.0 print(f"{per_client:.2f}") ``` stdout — 108...
chat
[ { "role": "user", "content": "4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0082515
<|start|><|user|> Pack A has 6 items for $3.91. Pack B has 18 items for $18.87. Which has the lower price per item?<|eot|> <|assistant|> A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 6 items for $3.91. Pack B has 18 items for $18.87. Which has the lower price per item?" }, { "role": "assistant", "content": "A has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0082516
Notice was given on February 17, 2027. The notice period is 60 days. When does it run out? Written as code: from datetime import date, timedelta start = date(2027, 2, 17) # datetime.date(2027, 2, 17) end = start + timedelta(days=60) # datetime.date(2027, 4, 18) print(end.isoformat()) stdout: 2027-04-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2027-04-18", "printed": "2027-04-18", "notation": null}
nlprog_det-setting-0082517
How many weekdays (Monday to Friday) fall after May 16, 2021 up to and including June 22, 2021? from datetime import date, timedelta start = date(2021, 5, 16) end = date(2021, 6, 22) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0082518
What percentage of $8,000 is $800? Program: budget = 8000 spent = 800 percent = spent / budget * 100 # 10.0 print(round(percent, 1)) Execution result — 10.0 That is 10.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0082519
At 65 miles per hour, how many minutes does a 390-mile trip take? As Python: ```python distance = 390 speed = 65 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Output: 360 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0082520
<|start|><|system|> Answer in plain English.<|eot|> <|user|> A settlement of $18,000 is split equally among 3 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 18000 parties = 3 share = settlement // parties # 6000 print(share) ``` The interpreter prints: 6000 Each share is $6,000...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "A settlement of $18,000 is split equally among 3 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 3\nshare = settlement...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0082521
A client paid a $10,000 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left? Script: ```python retainer = 10000 hours = 10 rate = 250 left = retainer - hours * rate # 7500 print(left) ``` stdout: 7500 $7,500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "7500", "printed": "7500", "notation": null}
nlprog_det-setting-0082522
<|start|><|user|> Find the mean of these test scores: 94, 66, 56, 69, 87 and 72.<|eot|> <|assistant|> ```python scores = [94, 66, 56, 69, 87, 72] average = sum(scores) // len(scores) print(average) ``` Shell output: 74 The mean is 74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 94, 66, 56, 69, 87 and 72." }, { "role": "assistant", "content": "```python\nscores = [94, 66, 56, 69, 87, 72]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nShell output: 74\n\nThe mean is 74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0082523
At 2% a month (simple), what interest builds on $12,000 over 2 months? Let the code do the arithmetic: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` Running it prints 480.00, as expected. $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0082524
<|start|><|user|> Split $4,515 between Mei and Kemal in the ratio 3 to 4. What is Mei's share?<|eot|> <|assistant|> ```python total = 4515 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1935 print(share_a) ``` On running, it outputs: 1935 Mei gets $1,935.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,515 between Mei and Kemal in the ratio 3 to 4. What is Mei's share?" }, { "role": "assistant", "content": "```python\ntotal = 4515\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1935\nprint(share_a)\n```\nOn running, it outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1935", "printed": "1935", "notation": null}
nlprog_det-setting-0082525
<|start|><|user|> From 2013 to 2032, how many years is that?<|eot|> <|assistant|> ```python start_year = 2013 end_year = 2032 print(end_year - start_year) ``` Execution prints 19, as expected. 19 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2013 to 2032, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2013\nend_year = 2032\nprint(end_year - start_year)\n```\nExecution prints 19, as expected.\n\n19 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0082526
What is the total rent on a 18-month lease at $850 a month? A short script: ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` The code prints 15300. In total, $15,300 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0082527
One can of paint covers 350 square feet. How many cans are needed for 856 square feet of wall? Written as code: ```python import math area = 856 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` That prints 3. 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0082528
What average speed covers 256 miles in 2 hours? Python, step by step: ```python distance = 256 hours = 2 speed = distance / hours # 128.0 print(round(speed)) ``` It prints 128, as expected. The average speed is 128 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "128", "printed": "128", "notation": null}
nlprog_det-setting-0082529
Printing costs 5 cents a page. What does it cost to print 82 copies of a 54-page handout? Programmatically: pages = 54 copies = 82 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 221.4 print(f"{cost:.2f}") On running, it outputs: 221.40 Printing costs $221.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "221.40", "printed": "221.40", "notation": null}
nlprog_det-setting-0082530
<|start|><|user|> Nilufar buys 4 boxes of 12 toner kits each and gives away 2 toner kits. How many toner kits are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 12 given_away = 2 left = boxes * per_box - given_away print(left) ``` (Result: 46) 46 toner kits are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nilufar buys 4 boxes of 12 toner kits each and gives away 2 toner kits. How many toner kits are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 12\ngiven_away = 2\nleft = boxes * per_box - given_away\nprint(left)\n```\n(Result: 46)\n\n46...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0082531
<|start|><|system|> Tool definitions: {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> 6 claimants share a $7,350 settl...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "1225", "printed": "1225", "notation": null}
nlprog_det-setting-0082532
Counting only Monday through Friday, how many business days are there after December 3, 2024 through January 7, 2025? 25 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0082533
<|start|><|user|> The rules require 3/5 of 45 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 45 quorum = math.ceil(members * 3 / 5) # 27 print(quorum) ``` # output: 27 That is 27 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 45 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 45\nquorum = math.ceil(members * 3 / 5) # 27\nprint(quorum)\n```\n# output: 27\n\nThat is 27 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0082534
Priya was born on July 7, 1956. How old is Priya on January 8, 2027? Code: ```python from datetime import date born = date(1956, 7, 7) # datetime.date(1956, 7, 7) on = date(2027, 1, 8) # datetime.date(2027, 1, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 70 print(age) ``` stdout — ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0082535
At $0.58 per mile, what is the reimbursement for 262 miles? One way, in code: miles = 262 rate = 0.58 reimbursement = miles * rate # 151.95999999999998 print(f"{reimbursement:.2f}") Out: 151.96 The reimbursement is $151.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "151.96", "printed": "151.96", "notation": null}
nlprog_det-setting-0082536
A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 110-page copy cost? A Python solution: ```python pages = 110 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 14.0 print(f"{cost:.2f}") ``` On running, it outputs 14.00. The total is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "14.00", "printed": "14.00", "notation": null}
nlprog_det-setting-0082537
How many whole days and leftover hours are in 54 hours? 54 hours is 2 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "2 days and 6 hours", "printed": "2 days and 6 hours", "notation": null}
nlprog_det-setting-0082538
Express 168 hours in days and hours. Computing it: ```python hours = 168 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run it and it prints: 7 days and 0 hours 168 hours is 7 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "7 days and 0 hours", "printed": "7 days and 0 hours", "notation": null}
nlprog_det-setting-0082539
One can of paint covers 250 square feet. How many cans are needed for 163 square feet of wall? Coded up: ```python import math area = 163 coverage = 250 cans = math.ceil(area / coverage) # 1 print(cans) ``` Output: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0082540
38 of 50 members attended. What percent attended? Computation in Python: present = 38 total = 50 percent = present / total * 100 # 76.0 print(round(percent, 1)) Python prints: 76.0 Attendance was 76.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "76.0", "printed": "76.0", "notation": null}
nlprog_det-setting-0082541
Tomas buys 3 boxes of 8 clipboards each and gives away 2 clipboards. How many clipboards are left? Here is a short program for it. ```python boxes = 3 per_box = 8 given_away = 2 left = boxes * per_box - given_away # 22 print(left) ``` # console output: 22 That leaves 22 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0082542
<|start|><|user|> A client paid a $2,500 retainer. The firm has billed 9 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 2500 hours = 9 rate = 250 left = retainer - hours * rate # 250 print(left) ``` Output — 250 The remaining balance is $250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 9 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 9\nrate = 250\nleft = retainer - hours * rate # 250\nprint(left)\n```\nOutput...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0082543
A $9,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? A Python solution: ```python principal = 9000 annual_rate = 8 / 100 months = 36 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "310.00", "printed": "310.00", "notation": null}
nlprog_det-setting-0082544
<|start|><|user|> With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Printed result: 11.1 Th...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0082545
How many weekdays (Monday to Friday) fall after May 2, 2023 up to and including May 21, 2023? The computation: ```python from datetime import date, timedelta start = date(2023, 5, 2) end = date(2023, 5, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0082546
Scale 450 g of lentils from 2 servings to 10 servings. Python code: ```python grams = 450 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 2250 print(scaled) ``` The run gives 2250. 2250 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0082547
<|start|><|user|> A car travels 524 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 524 hours = 2 speed = distance / hours # 262.0 print(round(speed)) ``` Executing it gives: 262 The average speed is 262 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 524 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 524\nhours = 2\nspeed = distance / hours # 262.0\nprint(round(speed))\n```\nExecuting it gives: 262\n\nThe average speed is...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0082548
<|start|><|user|> Parking is $4 per hour with a daily maximum of $24. What do 3 hours cost?<|eot|> <|assistant|> rate = 4 hours = 3 daily_max = 24 cost = min(rate * hours, daily_max) # 12 print(cost) Program output — 12 The charge is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $24. What do 3 hours cost?" }, { "role": "assistant", "content": " rate = 4\n hours = 3\n daily_max = 24\n cost = min(rate * hours, daily_max) # 12\n print(cost)\nProgram output — 12\n\nThe charge is $12...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082549
Fines run at $100 per day up to a maximum of $2,500. How much after 7 days? $700 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0082550
A 18 lb package ships at $8 base plus $0.75/lb. What is the charge? The charge is $21.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "21.50", "printed": "21.50", "notation": null}
nlprog_det-setting-0082551
How long, in days, is it from July 23, 2024 until August 25, 2024? Here is a short program for it. ```python from datetime import date first = date(2024, 7, 23) # datetime.date(2024, 7, 23) second = date(2024, 8, 25) # datetime.date(2024, 8, 25) print((second - first).days) ``` # printed result: 33 There are 33 day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0082552
<|start|><|user|> Jonas earns a 8% commission on $80,505 of sales. What is the commission?<|eot|> <|assistant|> The commission is $6,440.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Jonas earns a 8% commission on $80,505 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $6,440.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6440.40", "printed": "6440.40", "notation": null}
nlprog_det-setting-0082553
With 25 rows of 18 chairs and 27 empty chairs, how many chairs are taken? ```python rows = 25 per_row = 18 empty = 27 seated = rows * per_row - empty # 423 print(seated) ``` Run output: 423 423 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "423", "printed": "423", "notation": null}
nlprog_det-setting-0082554
At 65 miles per hour, how many minutes does a 130-mile trip take? Computation in Python: ```python distance = 130 speed = 65 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` Execution result — 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0082555
<|start|><|user|> Prorate $2,400 of monthly rent for 23 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1840.0 print(f"{prorated:.2f}") ``` stdout: 1840.00 The tenant owes $1,840.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 23 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 23\nprorated = rent * days_occupied / days_in_month # 1840.0\nprint(f\"{prorated:.2f}\")\n```\nstdout:\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1840.00", "printed": "1840.00", "notation": null}
nlprog_det-setting-0082556
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "compute", "description"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
331
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0082557
A 2% increase is applied to $2,200 monthly rent. What is the new amount? A Python solution: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` Run it and it prints 2244.00. The new rent is $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0082559
At 2% a month (simple), what interest builds on $4,000 over 3 months? $240.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0082560
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> How many minutes pass from 7:31 AM to 11:26 AM on the same day?<|eot|> <|assistant|> It is 235 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How many minutes pass from 7:31 AM to 11:26 AM on the same day?" }, { "role": "assistant", "content": "It is 235 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "235", "printed": "235", "notation": null}