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-0067679
<|start|><|user|> Express 308 hours in days and hours.<|eot|> <|assistant|> ```python hours = 308 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The run gives 12 days and 20 hours, as expected. 308 hours is 12 days and 20 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 308 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 308\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe run gives 12 days and 20 hours, as expected.\n\n308 hours is 12 days and 20 hours."...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "12 days and 20 hours", "printed": "12 days and 20 hours", "notation": null}
nlprog_det-setting-0067680
Shipping costs $5 plus $1.20 per pound. What does a 29-pound parcel cost to ship? In code: ```python base = 5 per_pound = 1.2 weight = 29 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Printed: 39.80 Shipping costs $39.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "39.80", "printed": "39.80", "notation": null}
nlprog_det-setting-0067681
Prorate $1,500 of monthly rent for 16 days of a 31-day month. In code: ```python rent = 1500 days_in_month = 31 days_occupied = 16 prorated = rent * days_occupied / days_in_month # 774.1935483870968 print(f"{prorated:.2f}") ``` It outputs 774.19. The tenant owes $774.19.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "774.19", "printed": "774.19", "notation": null}
nlprog_det-setting-0067682
How many minutes pass from 10:07 AM to 12:14 PM on the same day? A short script: ```python start = 10 * 60 + 7 # 607 end = 12 * 60 + 14 # 734 print(end - start) ``` The program outputs: 127 127 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "127", "printed": "127", "notation": null}
nlprog_det-setting-0067683
A $2,500 security deposit has deductions of $45. How much is refunded? Python does the arithmetic: ```python deposit = 2500 deductions = [45] refund = deposit - sum(deductions) # 2455 print(refund) ``` Executing it gives 2455. $2,455 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2455", "printed": "2455", "notation": null}
nlprog_det-setting-0067684
<|start|><|user|> At 45 miles per hour, how many minutes does a 225-mile trip take?<|eot|> <|assistant|> ```python distance = 225 speed = 45 minutes = distance / speed * 60 print(round(minutes)) ``` Printed: 300 The trip takes 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 225-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 225\nspeed = 45\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nPrinted:\n300\n\nThe trip takes 300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0067685
Papers were served by mail on July 18, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Script: ```python from datetime import date, timedelta served = date(2027, 7, 18) # datetime.date(2027, 7, 18) response_days = 14 mail_days = 3 due = served + timedelta(days=respo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2027-08-04", "printed": "2027-08-04", "notation": null}
nlprog_det-setting-0067686
<|start|><|user|> 76 copies of a 55-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 55 copies = 76 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 334.40000000000003 print(f"{cost:.2f}") ``` The code prints: 334.40 Printing costs $334.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "76 copies of a 55-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 55\ncopies = 76\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 334.40000000000003\nprint(f\"{cost:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "334.40", "printed": "334.40", "notation": null}
nlprog_det-setting-0067687
A $210 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? In Python: ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 80.49999999999999 print(f"{each:.2f}") ``` What it prints: 80.50 Each person pays $80.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "80.50", "printed": "80.50", "notation": null}
nlprog_det-setting-0067688
<|start|><|user|> With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> The margin is 5.9%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With $8,000 in costs and $8,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "The margin is 5.9%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5.9", "printed": "5.9", "notation": null}
nlprog_det-setting-0067689
Goran lends $12,000 at 6% simple interest per year for 6 years. How much interest is earned? The computation: principal = 12000 rate = 6 / 100 # 0.06 years = 6 interest = principal * rate * years # 4320.0 print(f"{interest:.2f}") The script prints 4320.00, as expected. It earns $4,320.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4320.00", "printed": "4320.00", "notation": null}
nlprog_det-setting-0067690
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A 8-day trip pays $79 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> That comes to $1,857.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A 8-day trip pays $79 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "That comes to $1,857." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "1857", "printed": "1857", "notation": null}
nlprog_det-setting-0067691
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 7 rate = 150 left = retainer - hours * rate # 8950 print(left) ``` Out = 8950 The r...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 7 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours =...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "8950", "printed": "8950", "notation": null}
nlprog_det-setting-0067692
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $3,000, 8 years. How much per year?<|eot|> <|assistant|> $1,875.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $3,000, 8 years. How much per year?" }, { "role": "assistant", "content": "$1,875.00 a year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1875.00", "printed": "1875.00", "notation": null}
nlprog_det-setting-0067693
<|start|><|user|> 2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` Execution re...
chat
[ { "role": "user", "content": "2 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 40 / 100 # 24000.0\nremaining = award - fee # 36000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0067694
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year? ```python cost = 18000 salvage = 3000 years = 10 per_year = (cost - salvage) / years # 1500.0 print(f"{per_year:.2f}") ``` What it prints: 1500.00 $1,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0067695
Which is cheaper per unit: 6 for $4.90 (A) or 18 for $31.42 (B)? We can compute it in Python. ```python pack_a = 4.9 / 6 # 0.8166666666666668 pack_b = 31.42 / 18 # 1.7455555555555557 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Printed: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0067696
Walls total 828 sq ft and each can covers 300 sq ft. How many cans should be bought? import math area = 828 coverage = 300 cans = math.ceil(area / coverage) print(cans) (Output: 3) 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0067697
At 65 miles per hour, how many minutes does a 130-mile trip take? ```python distance = 130 speed = 65 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` On running, it outputs: 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0067698
How many units at $15 each (variable cost $7) cover $2,500 of fixed costs? Python, step by step: ```python import math fixed = 2500 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` This prints 313. 313 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0067699
3 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Python, step by step: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 3 # 6000.0 print(f"{per_client:.2f}") ``` The interpreter prints 6000.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0067700
<|start|><|user|> Ana and Tariq share $5,656 in the ratio 3:4. How much does Ana get?<|eot|> <|assistant|> ```python total = 5656 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 2424 print(share_a) ``` (Run result: 2424) Ana's share is $2,424.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ana and Tariq share $5,656 in the ratio 3:4. How much does Ana get?" }, { "role": "assistant", "content": "```python\ntotal = 5656\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 2424\nprint(share_a)\n```\n(Run result: 2424)\n\nAna's s...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2424", "printed": "2424", "notation": null}
nlprog_det-setting-0067701
<|start|><|user|> A claim accrued on December 4, 2016. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 12, 4) # datetime.date(2016, 12, 4) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, ...
chat
[ { "role": "user", "content": "A claim accrued on December 4, 2016. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 12, 4) # datetime.date(2016, 12, 4)\nyears = 3\nexpires = accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2019-12-04", "printed": "2019-12-04", "notation": null}
nlprog_det-setting-0067702
A pack of 20 water bottles sells for $1000. What does each cost? As Python: ```python total = 1000 count = 20 per_item = total // count # 50 print(per_item) ``` Run result — 50 The unit price is $50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0067703
12 hours of work at $150 an hour: what is the total charge? We can compute it in Python. ```python hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` Execution result — 1800.00 The bill is $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0067704
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 51 hours? Set it up in Python: ```python rate = 22.4 hours = 51 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Python prints 1265.60, as expected. Nikhil earns $1,265.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1265.60", "printed": "1265.60", "notation": null}
nlprog_det-setting-0067705
Starting with 781 cables and using 37 per day, how many remain after 10 days? ```python stock = 781 per_day = 37 days = 10 left = stock - per_day * days # 411 print(left) ``` Program output: 411 411 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "411", "printed": "411", "notation": null}
nlprog_det-setting-0067706
Fixed costs are $2,500. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even? In code: ```python import math fixed = 2500 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) print(units) ``` The script prints 250, as expected. 250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0067709
<|start|><|user|> From a $10,000 retainer, 13 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 13 rate = 250 left = retainer - hours * rate # 6750 print(left) ``` Running this gives 6750. $6,750 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 13 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 13\nrate = 250\nleft = retainer - hours * rate # 6750\nprint(left)\n```\nRunning this gives 6750.\n\n$6,750 of ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "6750", "printed": "6750", "notation": null}
nlprog_det-setting-0067711
<|start|><|user|> Find the mean of these test scores: 83, 57, 89, 91, 91, 84 and 79.<|eot|> <|assistant|> The mean is 82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 83, 57, 89, 91, 91, 84 and 79." }, { "role": "assistant", "content": "The mean is 82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0067712
<|start|><|user|> Prorate $2,400 of monthly rent for 13 days of a 30-day month.<|eot|> <|assistant|> The tenant owes $1,040.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 13 days of a 30-day month." }, { "role": "assistant", "content": "The tenant owes $1,040.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0067713
Scale 240 g of flour from 4 servings to 12 servings. One way, in code: ```python grams = 240 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 720 print(scaled) ``` (Printed result: 720) 720 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0067714
<|start|><|system|> Tool definitions: {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "business_days", "description": "Count business day...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}\n{\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "1646.80", "printed": "1646.80", "notation": null}
nlprog_det-setting-0067715
An invoice lists 29 rulers at $2 each, plus 6% sales tax. What is the invoice total? Let the code do the arithmetic: ```python quantity = 29 unit_price = 2 subtotal = quantity * unit_price # 58 total = subtotal * (1 + 6 / 100) # 61.480000000000004 print(f"{total:.2f}") ``` Result: 61.48 The invoice total is $61.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "61.48", "printed": "61.48", "notation": null}
nlprog_det-setting-0067716
<|start|><|user|> A garage charges $2 an hour, never more than $20 a day. How much for 8 hours?<|eot|> <|assistant|> rate = 2 hours = 8 daily_max = 20 cost = min(rate * hours, daily_max) # 16 print(cost) Running this gives: 16 The charge is $16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $20 a day. How much for 8 hours?" }, { "role": "assistant", "content": " rate = 2\n hours = 8\n daily_max = 20\n cost = min(rate * hours, daily_max) # 16\n print(cost)\nRunning this gives: 16\n\nThe charge...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0067718
What is the total rent on a 12-month lease at $1,475 a month? Python version: ```python monthly_rent = 1475 months = 12 total = monthly_rent * months # 17700 print(total) ``` Running this gives 17700. The rent over the term is $17,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17700", "printed": "17700", "notation": null}
nlprog_det-setting-0067719
Each storage box holds 12 files. How many boxes are needed for 854 files? Here is a short program for it. import math files = 854 per_box = 12 boxes = math.ceil(files / per_box) # 72 print(boxes) Output — 72 It takes 72 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0067720
What is a 15% tip on a $194.45 bill? A Python solution: ```python bill = 194.45 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 29.167499999999997 print(f"{tip:.2f}") ``` (Printed: 29.17) The tip is $29.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "29.17", "printed": "29.17", "notation": null}
nlprog_det-setting-0067721
Parking is $2 per hour with a daily maximum of $20. What do 3 hours cost? In Python: ```python rate = 2 hours = 3 daily_max = 20 cost = min(rate * hours, daily_max) # 6 print(cost) ``` # out: 6 The charge is $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0067722
<|start|><|user|> A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 12 yearly = 108 savings = monthly * 12 - yearly # 36 print(savings) ``` It prints: 36 $36 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 108\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nIt prints: 36\n\n$36 is...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0067723
At an exchange rate of 1.35 USD per GBP, how many USD is 5,076 GBP? Script: amount = 5076 rate = 1.35 converted = amount * rate # 6852.6 print(f"{converted:.2f}") Interpreter output: 6852.60 That is 6,852.60 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "6852.60", "printed": "6852.60", "notation": null}
nlprog_det-setting-0067724
A shift runs from 10:33 AM to 1:06 PM. How long is it in minutes? In Python: ```python start = 10 * 60 + 33 end = 13 * 60 + 6 print(end - start) ``` Run result = 153 It is 153 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0067725
4 friends split a $96 bill plus a 20% tip evenly. How much does each pay? Let the code do the arithmetic: ```python bill = 96 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 28.799999999999997 print(f"{each:.2f}") ``` Execution result: 28.80 The share is $28.80 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "28.80", "printed": "28.80", "notation": null}
nlprog_det-setting-0067727
A 19 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Python: ```python import math length = 19 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 247 print(tiles) ``` On running, it outputs 247. 247 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0067728
<|start|><|user|> A training session lasted 5 hours and 54 minutes. How many minutes is that?<|eot|> <|assistant|> The training session lasted 354 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 5 hours and 54 minutes. How many minutes is that?" }, { "role": "assistant", "content": "The training session lasted 354 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "354", "printed": "354", "notation": null}
nlprog_det-setting-0067729
What commission does Kaito make on $34,860 in sales at 8%? As Python: ```python sales = 34860 rate = 8 / 100 # 0.08 commission = sales * rate # 2788.8 print(f"{commission:.2f}") ``` stdout = 2788.80 Kaito earns $2,788.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2788.80", "printed": "2788.80", "notation": null}
nlprog_det-setting-0067730
Goods bought on January 24, 2028 carry a 18-month warranty. When does it expire? Python, step by step: ```python from datetime import date start = date(2028, 1, 24) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2029-07-24", "printed": "2029-07-24", "notation": null}
nlprog_det-setting-0067731
<|start|><|user|> Express 36 hours in days and hours.<|eot|> <|assistant|> ```python hours = 36 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed = 1 days and 12 hours That is 1 days and 12 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 36 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 36\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted = 1 days and 12 hours\n\nThat is 1 days and 12 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1 days and 12 hours", "printed": "1 days and 12 hours", "notation": null}
nlprog_det-setting-0067732
25 of 25 members attended. What percent attended? Let the code do the arithmetic: ```python present = 25 total = 25 percent = present / total * 100 # 100.0 print(round(percent, 1)) ``` Interpreter output — 100.0 100.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0067733
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by acces...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"fetch...
nlprog_det
setting
original
null
deterministic
[]
[]
349
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0067734
<|start|><|user|> Walls total 1208 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1208 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Python prints 4, as expected. Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1208 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1208\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nPython prints 4, as expected.\...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0067735
With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. Coded up: ```python revenue = 13000 costs = 12500 profit = revenue - costs # 500 margin = profit / revenue * 100 # 3.8461538461538463 print(round(margin, 1)) ``` The program prints 3.8. The margin is 3.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0067736
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 0. How much for 101 pages?<|eot|> <|assistant|> pages = 101 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 35.25 print(f"{cost:.2f}") On running, it outputs: 35.25 The copy costs $...
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 0. How much for 101 pages?" }, { "role": "assistant", "content": " pages = 101\n base = 10\n per_page = 0.25\n free_pages = 0\n cost = base + max(0, pages - free_pages) * per_page # 35.25\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "35.25", "printed": "35.25", "notation": null}
nlprog_det-setting-0067737
<|start|><|user|> Papers were served by mail on February 25, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 2, 25) # datetime.date(2028, 2, 25) response_days = 21 mail_days = 3 d...
chat
[ { "role": "user", "content": "Papers were served by mail on February 25, 2028. A response is due 21 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(2028, 2, 25) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
182
{"gold": "2028-03-20", "printed": "2028-03-20", "notation": null}
nlprog_det-setting-0067738
How many meters are in 0.5 kilometers? Computing it: ```python km = 0.5 meters = km * 1000 # 500.0 print(round(meters)) ``` Printed = 500 That is 500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0067739
5 bike rides at 200 calories each burn how many calories in total? Python makes this quick: ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` (Output: 1000) That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0067740
A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term? Let's compute it with Python. ```python monthly_rent = 2100 months = 24 total = monthly_rent * months # 50400 print(total) ``` This prints 50400, as expected. The rent over the term is $50,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "50400", "printed": "50400", "notation": null}
nlprog_det-setting-0067741
<|start|><|user|> How many units at $30 each (variable cost $22) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` The script prints 150. Break-even is 150 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $22) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 30\nvariable = 22\nunits = math.ceil(fixed / (price - variable)) # 150\nprint(units)\n```\nThe script pr...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0067742
<|start|><|user|> After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 24000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 3666.6666666666665 print(f"{each:.2f}") ``` Python prints: 3666.67 Each inst...
chat
[ { "role": "user", "content": "After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 24000\nup_front = 2000\ninstallments = 6\neach = (grant - up_front) / installments # 3666.6666666666665\...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0067743
<|start|><|user|> Idris earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|> <|assistant|> Idris earns $1,131.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Idris earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?" }, { "role": "assistant", "content": "Idris earns $1,131.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "1131.20", "printed": "1131.20", "notation": null}
nlprog_det-setting-0067744
Convert 40 °C to Fahrenheit. In code: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Out: 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0067745
Someone born August 1, 1974 turns how old by June 9, 2027? Give the age in whole years. Python makes this quick: from datetime import date born = date(1974, 8, 1) # datetime.date(1974, 8, 1) on = date(2027, 6, 9) # datetime.date(2027, 6, 9) age = on.year - born.year - ((on.month, on.day) < (born.mont...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0067746
A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 10-page copy cost? The total is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0067747
A printer costs $45. It is 25% off. What is the sale price? ```python price = 45 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 33.75 print(f"{sale_price:.2f}") ``` stdout: 33.75 The sale price is $33.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0067748
To read 342 pages in 6 days, how many pages per day are needed? As a program: ```python pages = 342 days = 6 per_day = pages // days # 57 print(per_day) ``` (Printed: 57) That is 57 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0067749
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Buying 2 chairs at $14 each, 6 scissors at $4 each, 6 hard drives at $18 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> The change is $40.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Buying 2 chairs at $14 each, 6 scissors at $4 each, 6 hard drives at $18 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "The change is $40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0067750
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> An office budget of $5,000 has expenses of $3,992, $1,968, $852. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [3992, 1968, 852] left = budget - sum(expenses) # -1812 print(left) ``` The code prints -1812. -$1,8...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "An office budget of $5,000 has expenses of $3,992, $1,968, $852. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [3992, 1968, 852...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "-1812", "printed": "-1812", "notation": null}
nlprog_det-setting-0067751
How long, in days, is it from February 24, 2024 until September 28, 2024? As a program: ```python from datetime import date first = date(2024, 2, 24) # datetime.date(2024, 2, 24) second = date(2024, 9, 28) # datetime.date(2024, 9, 28) print((second - first).days) ``` The script prints: 217 There are 217 days betwee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "217", "printed": "217", "notation": null}
nlprog_det-setting-0067752
146 copies of a 36-page packet are printed at $0.05 per page. What is the cost? Let's compute it with Python. ```python pages = 36 copies = 146 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 262.8 print(f"{cost:.2f}") ``` Python prints 262.80, as expected. Printing costs $262.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "262.80", "printed": "262.80", "notation": null}
nlprog_det-setting-0067753
At an exchange rate of 1.08 EUR per USD, how many EUR is 6,160 USD? Program: ```python amount = 6160 rate = 1.08 converted = amount * rate # 6652.8 print(f"{converted:.2f}") ``` # out: 6652.80 That is 6,652.80 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "6652.80", "printed": "6652.80", "notation": null}
nlprog_det-setting-0067754
A hearing lasted 1 hours and 49 minutes. How many minutes is that? Written as code: ```python hours = 1 minutes = 49 total_minutes = hours * 60 + minutes # 109 print(total_minutes) ``` Printed result: 109 The hearing lasted 109 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0067755
<|start|><|user|> Sales went from 1,200 to 720. What is the percent change?<|eot|> <|assistant|> ```python old = 1200 new = 720 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` # console output: -40 The change is -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 1,200 to 720. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 720\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\n# console output: -40\n\nThe change is -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0067756
A penalty of $50 a day accrues, capped at $1,000. What is owed after 10 days? We write it as a program: per_day = 50 days = 10 cap = 1000 fine = min(per_day * days, cap) # 500 print(fine) The script prints 500. $500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0067757
<|start|><|user|> At an exchange rate of 0.92 USD per GBP, how many USD is 4,737 GBP?<|eot|> <|assistant|> amount = 4737 rate = 0.92 converted = amount * rate # 4358.04 print(f"{converted:.2f}") (Run result: 4358.04) It converts to 4,358.04 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per GBP, how many USD is 4,737 GBP?" }, { "role": "assistant", "content": " amount = 4737\n rate = 0.92\n converted = amount * rate # 4358.04\n print(f\"{converted:.2f}\")\n(Run result: 4358.04)\n\nIt converts to 4,358.04...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4358.04", "printed": "4358.04", "notation": null}
nlprog_det-setting-0067758
Revenue is $10,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? The computation: ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Run result — 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0067759
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What is 0 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Running it prints 32, as expected. It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What is 0 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nRunning it prin...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0067760
<|start|><|user|> 7 boxes hold 8 scissors each. After 5 are handed out, how many are left?<|eot|> <|assistant|> That leaves 51 scissors.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 boxes hold 8 scissors each. After 5 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 51 scissors." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0067761
<|start|><|system|> You can call tools. Available tools: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python", "description": "A Python interpreter. Returns standard output.", "pa...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "1059", "printed": "1059", "notation": null}
nlprog_det-setting-0067762
Scale 100 g of lentils from 2 servings to 6 servings. Computation in Python: ```python grams = 100 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 300 print(scaled) ``` Run result: 300 Use 300 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0067763
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 10 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 3.5 used = 10 free = 2 bill = base + rate * max(0, used - free) # 40.0 pr...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 10 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase =...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0067764
<|start|><|user|> Yusuf earns a 2% commission on $28,187 of sales. What is the commission?<|eot|> <|assistant|> The commission is $563.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yusuf earns a 2% commission on $28,187 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $563.74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "563.74", "printed": "563.74", "notation": null}
nlprog_det-setting-0067765
What commission does Bruna make on $62,096 in sales at 6%? The commission is $3,725.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "3725.76", "printed": "3725.76", "notation": null}
nlprog_det-setting-0067766
<|start|><|user|> Someone born January 19, 1971 turns how old by June 13, 2030? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1971, 1, 19) # datetime.date(1971, 1, 19) on = date(2030, 6, 13) # datetime.date(2030, 6, 13) age = on.year - born.year - ((on.month, on.day...
chat
[ { "role": "user", "content": "Someone born January 19, 1971 turns how old by June 13, 2030? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1971, 1, 19) # datetime.date(1971, 1, 19)\non = date(2030, 6, 13) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0067767
<|start|><|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 12155.062500000002 print(f"{value:.2f}") ``` # printed result: 12155.06 It is worth $12,155.06.<|eo...
chat
[ { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 4\nvalue = principal * (1 + rate) ** years # 12155.062500000002\nprint(f\"{value:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0067768
<|start|><|user|> Walls total 229 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> Buy 1 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 229 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "Buy 1 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0067769
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "define_word", "description": "Return a di...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"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
[]
[]
360
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0067770
Attendance was 21 out of 25. Express it as a percent. Python code: ```python present = 21 total = 25 percent = present / total * 100 # 84.0 print(round(percent, 1)) ``` Python prints: 84.0 84.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0067771
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Find the mean of these test scores: 97, 69, 53, 52 and 99.<|eot|> <|assistant|> ```python scores = [97, 69, 53, 52, 99] average = sum(scores) // len(scores) # 74 print(average) ``` Console output: 74 The mean is 74.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Find the mean of these test scores: 97, 69, 53, 52 and 99." }, { "role": "assistant", "content": "```python\nscores = [97, 69, 53, 52, 99]\naverage = sum(scores) // len(scores) # 74\nprint(avera...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0067773
2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? The program: ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 2 # 10500.0 print(f"{per_client:.2f}") ``` Running this gives: 10500.00 Each sha...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0067774
At a 8% tax rate, what is the tax on $642.12? Python does the arithmetic: ```python price = 642.12 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 51.3696 print(f"{tax:.2f}") ``` Run result: 51.37 The tax is $51.37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "51.37", "printed": "51.37", "notation": null}
nlprog_det-setting-0067775
<|start|><|system|> Be concise.<|eot|> <|user|> An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1 / 100 # 0.01\nmon...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0067776
A recipe for 2 people uses 200 grams of pasta. How many grams are needed for 3 people? ```python grams = 200 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 300 print(scaled) ``` That prints: 300 Use 300 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0067777
<|start|><|user|> How many weekdays (Monday to Friday) fall after September 21, 2024 up to and including October 10, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 9, 21) end = date(2024, 10, 10) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after September 21, 2024 up to and including October 10, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 9, 21)\nend = date(2024, 10, 10)\ncount = 0\nfor k in ...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0067778
A pack of 4 file boxes sells for $124. What does each cost? Let the code do the arithmetic: ```python total = 124 count = 4 per_item = total // count # 31 print(per_item) ``` The printout reads 31. The unit price is $31.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0067779
Convert 2 h 51 min (the length of a training session) to minutes. Let the code do the arithmetic: ```python hours = 2 minutes = 51 total_minutes = hours * 60 + minutes # 171 print(total_minutes) ``` This prints 171. That is 171 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0067780
How much is a $74 daily meal allowance over 9 days? One way, in code: ```python days = 9 meal_rate = 74 total = days * meal_rate # 666 print(total) ``` (Output: 666) That comes to $666.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "666", "printed": "666", "notation": null}
nlprog_det-setting-0067781
<|start|><|user|> What is the total rent on a 12-month lease at $975 a month?<|eot|> <|assistant|> ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` The interpreter prints 11700. The rent over the term is $11,700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 12-month lease at $975 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)\n```\nThe interpreter prints 11700.\n\nThe rent over the term is $11,7...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0067782
Parking is $4 per hour with a daily maximum of $20. What do 10 hours cost? The program: rate = 4 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) print(cost) When run, it prints 20. Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0067783
<|start|><|system|> You can call tools. Available tools: {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Pack A ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
253
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0067784
Starting from $8,000, the team spends $2,164, $411, $1,180, $465. What remains? As Python: ```python budget = 8000 expenses = [2164, 411, 1180, 465] left = budget - sum(expenses) # 3780 print(left) ``` Output — 3780 $3,780 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "3780", "printed": "3780", "notation": null}