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-0066925
What average speed covers 358 miles in 2 hours? The average speed is 179 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "179", "printed": "179", "notation": null}
nlprog_det-setting-0066926
What average speed covers 405 miles in 5 hours? We write it as a program: ```python distance = 405 hours = 5 speed = distance / hours # 81.0 print(round(speed)) ``` Console: 81 It averages 81 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0066927
<|start|><|user|> Fines run at $250 per day up to a maximum of $5,000. How much after 49 days?<|eot|> <|assistant|> The fine is $5,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $250 per day up to a maximum of $5,000. How much after 49 days?" }, { "role": "assistant", "content": "The fine is $5,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0066928
A room is 23 feet by 12 feet. Flooring costs $8 per square foot. What does it cost to floor the room? The flooring costs $2,208.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2208", "printed": "2208", "notation": null}
nlprog_det-setting-0066929
A garage charges $3 an hour, never more than $18 a day. How much for 9 hours? One way, in code: ```python rate = 3 hours = 9 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Run it and it prints: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0066930
The statute was enacted in 2009. How many years had passed by 2019? Script: ```python start_year = 2009 end_year = 2019 print(end_year - start_year) ``` The printout reads 10. 10 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0066931
<|start|><|system|> Answer in plain English.<|eot|> <|user|> How many meters are in 72 kilometers?<|eot|> <|assistant|> 72,000 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "How many meters are in 72 kilometers?" }, { "role": "assistant", "content": "72,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "72000", "printed": "72000", "notation": null}
nlprog_det-setting-0066932
<|start|><|user|> Vera earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|> <|assistant|> ```python rate = 18.5 hours = 47 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 194.25 pay = regular + overtime # 934.25 print(f"{pay:.2f}") ``` Interpreter ...
chat
[ { "role": "user", "content": "Vera earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 47\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 194.25\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "934.25", "printed": "934.25", "notation": null}
nlprog_det-setting-0066933
A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments? In code: ```python monthly = 25 yearly = 252 savings = monthly * 12 - yearly # 48 print(savings) ``` Run output — 48 $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0066934
<|start|><|user|> Notice was given on December 24, 2024. The notice period is 30 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 12, 24) end = start + timedelta(days=30) print(end.isoformat()) ``` stdout — 2025-01-23 That date is January 23, 2025.<|eot...
chat
[ { "role": "user", "content": "Notice was given on December 24, 2024. The notice period is 30 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 12, 24)\nend = start + timedelta(days=30)\nprint(end.isoformat())\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2025-01-23", "printed": "2025-01-23", "notation": null}
nlprog_det-setting-0066935
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 587 square feet of wall?<|eot|> <|assistant|> ```python import math area = 587 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` Output: 3 Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 587 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 587\ncoverage = 250\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nOutput:\n3\n\nBuy 3 ca...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0066936
A customer buys 4 flash drives at $13 each, 5 chairs at $4 each and pays with $100. How much change is due? We can compute it in Python. ```python items = [(4, 13), (5, 4)] total = sum(q * p for q, p in items) # 72 paid = 100 change = paid - total # 28 print(change) ``` (Out: 28) The change is $28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0066937
<|start|><|user|> Under a 25% contingency agreement, what fee is owed on a $12,000 award?<|eot|> <|assistant|> ```python recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") ``` Output: 3000.00 The fee is $3,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $12,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 3000.0\nprint(f\"{fee:.2f}\")\n```\nOutput: 3000.00\n\nThe fee is $3,000.00....
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0066938
What is a 18% tip on a $45.84 bill? Coded up: ```python bill = 45.84 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 8.2512 print(f"{tip:.2f}") ``` On running, it outputs 8.25. The tip is $8.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "8.25", "printed": "8.25", "notation": null}
nlprog_det-setting-0066939
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> How many whole days and leftover hours are in 263 hours?<|eot|> <|assistant|> ```python hours = 263 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output: 10 days and 23 hours That is 10 days and 23 hours.<|eot|> <...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "How many whole days and leftover hours are in 263 hours?" }, { "role": "assistant", "content": "```python\nhours = 263\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hour...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "10 days and 23 hours", "printed": "10 days and 23 hours", "notation": null}
nlprog_det-setting-0066940
Rosa earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week? As a program: ```python rate = 20.0 hours = 53 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 390.0 pay = regular + overtime # 1190.0 print(f"{pay:.2f}") ``` # output: 1190.00 The weekly pay is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1190.00", "printed": "1190.00", "notation": null}
nlprog_det-setting-0066941
<|start|><|user|> After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```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}") ...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0066942
<|start|><|user|> Divide 49 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 49 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Shell output — 5 each, 4 left over T...
chat
[ { "role": "user", "content": "Divide 49 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 49\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5 each, 4 left over", "printed": "5 each, 4 left over", "notation": null}
nlprog_det-setting-0066943
Filing fees are $50 per document. What do 6 filings cost? We write it as a program: ```python fee = 50 filings = 6 total = fee * filings # 300 print(total) ``` Running this gives 300. The filings cost $300 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0066944
<|start|><|user|> A shift runs from 9:10 AM to 2:59 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 9 * 60 + 10 end = 14 * 60 + 59 print(end - start) ``` The program outputs 349. It is 349 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 9:10 AM to 2:59 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 10\nend = 14 * 60 + 59\nprint(end - start)\n```\nThe program outputs 349.\n\nIt is 349 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "349", "printed": "349", "notation": null}
nlprog_det-setting-0066945
Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent? Python does the arithmetic: ```python rent = 1200 days_in_month = 30 days_occupied = 13 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Run it and it prints 520.00. The tenant owes $5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "520.00", "printed": "520.00", "notation": null}
nlprog_det-setting-0066946
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|e...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "102.90", "printed": "102.90", "notation": null}
nlprog_det-setting-0066947
<|start|><|user|> Buying 2 lanyards at $23 each, 6 chairs at $23 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(2, 23), (6, 23)] total = sum(q * p for q, p in items) # 184 paid = 200 change = paid - total # 16 print(change) ``` Executing it gives 16, as expected. The ...
chat
[ { "role": "user", "content": "Buying 2 lanyards at $23 each, 6 chairs at $23 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(2, 23), (6, 23)]\ntotal = sum(q * p for q, p in items) # 184\npaid = 200\nchange = paid - total # 16\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066948
Olga's scores were 74, 55, 74, 89 and 93. What is the average score? Python version: ```python scores = [74, 55, 74, 89, 93] average = sum(scores) // len(scores) # 77 print(average) ``` The program outputs 77. The average score is 77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0066950
8 boxes hold 6 headsets each. After 4 are handed out, how many are left? Coded up: ```python boxes = 8 per_box = 6 given_away = 4 left = boxes * per_box - given_away # 44 print(left) ``` Run result — 44 44 headsets are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0066951
<|start|><|user|> A storeroom has 361 sticky pads. The office uses 28 a day. How many are left after 12 days?<|eot|> <|assistant|> stock = 361 per_day = 28 days = 12 left = stock - per_day * days # 25 print(left) Out: 25 25 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 361 sticky pads. The office uses 28 a day. How many are left after 12 days?" }, { "role": "assistant", "content": " stock = 361\n per_day = 28\n days = 12\n left = stock - per_day * days # 25\n print(left)\nOut: 25\n\n25 remain." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0066952
A garage charges $4 an hour, never more than $18 a day. How much for 2 hours? A few lines of Python do it: rate = 4 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 8 print(cost) # console output: 8 The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0066953
Rafael earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 52-hour week? ```python rate = 18.5 hours = 52 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 333.0 pay = regular + overtime # 1073.0 print(f"{pay:.2f}") ``` stdout: 1073.00 Rafael earns $1,073.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1073.00", "printed": "1073.00", "notation": null}
nlprog_det-setting-0066954
How many weekdays (Monday to Friday) fall after August 9, 2021 up to and including September 5, 2021? As a program: ```python from datetime import date, timedelta start = date(2021, 8, 9) end = date(2021, 9, 5) 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
[]
[]
152
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0066955
How many 2-foot square tiles cover a 13 ft by 15 ft floor (round up)? A Python solution: ```python import math length = 13 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 49 print(tiles) ``` What it prints: 49 49 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0066956
Parking is $4 per hour with a daily maximum of $24. What do 11 hours cost? Here is a short program for it. ```python rate = 4 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Out: 24 Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0066958
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment? Python, step by step: principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 280.0 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0066959
What commission does Jonas make on $44,140 in sales at 5%? As Python: ```python sales = 44140 rate = 5 / 100 # 0.05 commission = sales * rate # 2207.0 print(f"{commission:.2f}") ``` The program prints 2207.00. The commission is $2,207.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2207.00", "printed": "2207.00", "notation": null}
nlprog_det-setting-0066960
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0066961
A party has 14 days to respond to a motion served on September 7, 2028, with 3 days added because service was by mail. When is the response due? Here is a short program for it. ```python from datetime import date, timedelta served = date(2028, 9, 7) response_days = 14 mail_days = 3 due = served + timedelta(days=respon...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2028-09-24", "printed": "2028-09-24", "notation": null}
nlprog_det-setting-0066962
Pack A has 10 items for $12.24. Pack B has 15 items for $26.23. Which has the lower price per item? A short script: ```python pack_a = 12.24 / 10 # 1.224 pack_b = 26.23 / 15 # 1.7486666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Run it and it prints: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066963
Someone works 12 hours at $30.65 per hour. What are the earnings? Program: ```python rate = 30.65 hours = 12 earnings = rate * hours # 367.79999999999995 print(f"{earnings:.2f}") ``` # run result: 367.80 The pay is $367.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "367.80", "printed": "367.80", "notation": null}
nlprog_det-setting-0066964
<|start|><|user|> A 18-month warranty starts on February 6, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2026, 2, 6) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoform...
chat
[ { "role": "user", "content": "A 18-month warranty starts on February 6, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2026, 2, 6)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start....
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2027-08-06", "printed": "2027-08-06", "notation": null}
nlprog_det-setting-0066965
Count 60 days forward from November 8, 2018. What date is that? Computation in Python: ```python from datetime import date, timedelta start = date(2018, 11, 8) # datetime.date(2018, 11, 8) end = start + timedelta(days=60) # datetime.date(2019, 1, 7) print(end.isoformat()) ``` Printed: 2019-01-07 That date is Januar...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2019-01-07", "printed": "2019-01-07", "notation": null}
nlprog_det-setting-0066966
Pack A has 12 items for $4.20. Pack B has 15 items for $8.38. Which has the lower price per item? The Python version: ```python pack_a = 4.2 / 12 # 0.35000000000000003 pack_b = 8.38 / 15 # 0.5586666666666668 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The run gives: A Pack A is cheaper per i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0066967
At $16.22 an hour, what does 38 hours of work pay? Here is a short program for it. ```python rate = 16.22 hours = 38 earnings = rate * hours # 616.3599999999999 print(f"{earnings:.2f}") ``` The run gives 616.36. The pay is $616.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "616.36", "printed": "616.36", "notation": null}
nlprog_det-setting-0066968
<|start|><|user|> 207 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> It takes 14 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "207 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": "It takes 14 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0066969
<|start|><|user|> After an initial $3,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 30000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 6750.0 print(f"{each:.2f}") ``` It prints: 6750.00 Each installment is $6,75...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 3000\ninstallments = 4\neach = (grant - up_front) / installments # 6750.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0066970
A 45-mile drive at a steady 45 mph takes how many minutes? A Python solution: ```python distance = 45 speed = 45 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` (Printed: 60) 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0066971
Copies cost $15 plus $0.10 for each page beyond 10. How much for 18 pages? One way, in code: ```python pages = 18 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` It prints 15.80. The total is $15.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "15.80", "printed": "15.80", "notation": null}
nlprog_det-setting-0066972
<|start|><|user|> With 25% off, what does a $90 kettle cost?<|eot|> <|assistant|> The sale price is $67.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $90 kettle cost?" }, { "role": "assistant", "content": "The sale price is $67.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0066973
A customer buys 4 desk lamps at $21 each, 3 tape rolls at $13 each and pays with $150. How much change is due? Here is a short program for it. items = [(4, 21), (3, 13)] total = sum(q * p for q, p in items) paid = 150 change = paid - total print(change) Running this gives: 27 $27 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0066974
<|start|><|user|> Split $4,284 between Sofia and Lena in the ratio 2 to 5. What is Sofia's share?<|eot|> <|assistant|> Sofia gets $1,224.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,284 between Sofia and Lena in the ratio 2 to 5. What is Sofia's share?" }, { "role": "assistant", "content": "Sofia gets $1,224." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "1224", "printed": "1224", "notation": null}
nlprog_det-setting-0066975
Counting only Monday through Friday, how many business days are there after September 22, 2026 through October 25, 2026? As a program: ```python from datetime import date, timedelta start = date(2026, 9, 22) end = date(2026, 10, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0066976
<|start|><|user|> A claim accrued on October 28, 2023. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2023, 10, 28) # datetime.date(2023, 10, 28) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026...
chat
[ { "role": "user", "content": "A claim accrued on October 28, 2023. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2023, 10, 28) # datetime.date(2023, 10, 28)\nyears = 3\nexpires = accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2026-10-28", "printed": "2026-10-28", "notation": null}
nlprog_det-setting-0066977
Malik earns a 2% commission on $74,820 of sales. What is the commission? Let's compute it with Python. ```python sales = 74820 rate = 2 / 100 # 0.02 commission = sales * rate # 1496.4 print(f"{commission:.2f}") ``` What it prints — 1496.40 The commission is $1,496.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1496.40", "printed": "1496.40", "notation": null}
nlprog_det-setting-0066978
A 12-month warranty starts on December 13, 2028. On what date does it end? ```python from datetime import date start = date(2028, 12, 13) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Console output: 2029-12-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2029-12-13", "printed": "2029-12-13", "notation": null}
nlprog_det-setting-0066980
A lease runs for 18 months at $1,475 per month. How much rent is paid over the whole term? Translated to Python: monthly_rent = 1475 months = 18 total = monthly_rent * months # 26550 print(total) Printed result: 26550 In total, $26,550 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "26550", "printed": "26550", "notation": null}
nlprog_det-setting-0066981
<|start|><|system|> You can call tools. Available tools: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "A Python interpreter. Retur...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"eva...
nlprog_det
setting
original
null
deterministic
[]
[]
397
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0066982
With 30% off, what does a $60 chair cost? Python does the arithmetic: price = 60 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 42.0 print(f"{sale_price:.2f}") Run it and it prints: 42.00 It costs $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0066984
Paula was born on April 22, 1979. How old is Paula on April 8, 2030? The Python version: ```python from datetime import date born = date(1979, 4, 22) # datetime.date(1979, 4, 22) on = date(2030, 4, 8) # datetime.date(2030, 4, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 50 print(ag...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0066985
<|start|><|user|> Divide 94 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 94 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") # program output: 31 each, 1 left o...
chat
[ { "role": "user", "content": "Divide 94 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 94\n groups = 3\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "31 each, 1 left over", "printed": "31 each, 1 left over", "notation": null}
nlprog_det-setting-0066986
<|start|><|user|> How many whole days and leftover hours are in 251 hours?<|eot|> <|assistant|> ```python hours = 251 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints 10 days and 11 hours. 251 hours is 10 days and 11 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 251 hours?" }, { "role": "assistant", "content": "```python\nhours = 251\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThis prints 10 days and 11 hours.\n\n251 hours is 10 days and 11 ho...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10 days and 11 hours", "printed": "10 days and 11 hours", "notation": null}
nlprog_det-setting-0066987
<|start|><|user|> The bridge was finished in 2006. How many years had passed by 2033?<|eot|> <|assistant|> 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2006. How many years had passed by 2033?" }, { "role": "assistant", "content": "27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0066988
<|start|><|system|> You may call the tools below. [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"st...
nlprog_det
setting
original
null
deterministic
[]
[]
311
{"gold": "7500", "printed": "7500", "notation": null}
nlprog_det-setting-0066989
<|start|><|user|> Notice was given on February 2, 2020. The notice period is 10 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 2, 2) # datetime.date(2020, 2, 2) end = start + timedelta(days=10) # datetime.date(2020, 2, 12) print(end.isoformat()) ``` ...
chat
[ { "role": "user", "content": "Notice was given on February 2, 2020. The notice period is 10 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 2, 2) # datetime.date(2020, 2, 2)\nend = start + timedelta(days=10) ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2020-02-12", "printed": "2020-02-12", "notation": null}
nlprog_det-setting-0066990
<|start|><|system|> Functions: [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A garage charges $4 an hour, never more th...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0066991
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 52 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` That prints 1160.00. Sara earns $1,160.00.<|...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 52\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1160.00", "printed": "1160.00", "notation": null}
nlprog_det-setting-0066993
Monthly: $12. Annual: $114. What is saved per year by paying annually? Program: ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) ``` The run gives: 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0066994
<|start|><|user|> A $2,400 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 2400 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 576.0 ...
chat
[ { "role": "user", "content": "A $2,400 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": " principal = 2400\n annual_rate = 8 / 100 # 0.08\n months = 36\n in...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "82.67", "printed": "82.67", "notation": null}
nlprog_det-setting-0066995
A car travels 280 miles in 2 hours. What is its average speed in miles per hour? It averages 140 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0066996
If a 3-year limitations period starts on March 22, 2021, when does it end? It runs out on March 22, 2024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2024-03-22", "printed": "2024-03-22", "notation": null}
nlprog_det-setting-0066997
How many 2-foot square tiles cover a 8 ft by 5 ft floor (round up)? We can compute it in Python. import math length = 8 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 10 print(tiles) stdout — 10 It takes 10 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0066998
<|start|><|user|> A garage charges $4 an hour, never more than $18 a day. How much for 4 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 4 daily_max = 18 cost = min(rate * hours, daily_max) # 16 print(cost) ``` # result: 16 The charge is $16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $18 a day. How much for 4 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 4\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 16\nprint(cost)\n```\n# result: 16\n\nThe charge is $16." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0066999
A quorum is 3/5 of the 42 members, rounded up. How many members make a quorum? A few lines of Python do it: ```python import math members = 42 quorum = math.ceil(members * 3 / 5) print(quorum) ``` Running it prints 26. That is 26 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0067000
A lawyer's fee is 40% of a $150,000 recovery. How large is the fee? As a program: ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` It outputs 60000.00. The lawyer's fee comes to $60,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0067001
Count 21 days forward from January 19, 2023. What date is that? Script: ```python from datetime import date, timedelta start = date(2023, 1, 19) # datetime.date(2023, 1, 19) end = start + timedelta(days=21) # datetime.date(2023, 2, 9) print(end.isoformat()) ``` Executed, it shows 2023-02-09. It ends on February 9, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2023-02-09", "printed": "2023-02-09", "notation": null}
nlprog_det-setting-0067002
Filing fees are $150 per document. What do 14 filings cost? Python makes this quick: ```python fee = 150 filings = 14 total = fee * filings print(total) ``` (Execution result: 2100) $2,100 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0067003
Convert 1 h 8 min (the length of a deposition) to minutes. Set it up in Python: ```python hours = 1 minutes = 8 total_minutes = hours * 60 + minutes # 68 print(total_minutes) ``` It outputs: 68 That is 68 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0067004
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A trial runs from October 13, 2028 to October 23, 2028, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 10, 13) # datetime.date(2028, 10, 13) last = date(2028, 10, 23) # dat...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A trial runs from October 13, 2028 to October 23, 2028, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirs...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0067005
<|start|><|user|> Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Execution prints 20.0. Profit is...
chat
[ { "role": "user", "content": "Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 25000\ncosts = 20000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 20.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0067006
How many minutes pass from 10:17 AM to 2:01 PM on the same day? The computation: ```python start = 10 * 60 + 17 # 617 end = 14 * 60 + 1 # 841 print(end - start) ``` Executing it gives 224. It is 224 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "224", "printed": "224", "notation": null}
nlprog_det-setting-0067007
4 boxes hold 24 clipboards each. After 4 are handed out, how many are left? Program: ```python boxes = 4 per_box = 24 given_away = 4 left = boxes * per_box - given_away # 92 print(left) ``` Execution result: 92 That leaves 92 clipboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0067008
<|start|><|user|> Noor buys 8 boxes of 6 batteries each and gives away 5 batteries. How many batteries are left?<|eot|> <|assistant|> ```python boxes = 8 per_box = 6 given_away = 5 left = boxes * per_box - given_away # 43 print(left) ``` Printed: 43 That leaves 43 batteries.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Noor buys 8 boxes of 6 batteries each and gives away 5 batteries. How many batteries are left?" }, { "role": "assistant", "content": "```python\nboxes = 8\nper_box = 6\ngiven_away = 5\nleft = boxes * per_box - given_away # 43\nprint(left)\n```\nPrinted: 43\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0067009
<|start|><|user|> At $27.71 an hour, what does 30 hours of work pay?<|eot|> <|assistant|> ```python rate = 27.71 hours = 30 earnings = rate * hours # 831.3000000000001 print(f"{earnings:.2f}") ``` Result: 831.30 The pay is $831.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $27.71 an hour, what does 30 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 27.71\nhours = 30\nearnings = rate * hours # 831.3000000000001\nprint(f\"{earnings:.2f}\")\n```\nResult:\n831.30\n\nThe pay is $831.30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "831.30", "printed": "831.30", "notation": null}
nlprog_det-setting-0067010
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> Profit is 3.8% of revenue.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "Profit is 3.8% of revenue." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0067011
A library charges $0.50 per book per day late. What is the fine for 4 books that are 9 days late? We write it as a program: ```python per_day = 0.5 days_late = 9 books = 4 fine = per_day * days_late * books # 18.0 print(f"{fine:.2f}") ``` Run result: 18.00 $18.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0067012
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment? ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 435.0 print(f"{payment:.2f}") ``` What ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "435.00", "printed": "435.00", "notation": null}
nlprog_det-setting-0067014
A library charges $0.25 per book per day late. What is the fine for 4 books that are 24 days late? Programmatically: ```python per_day = 0.25 days_late = 24 books = 4 fine = per_day * days_late * books # 24.0 print(f"{fine:.2f}") ``` It prints: 24.00 $24.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0067015
Under a 33% contingency agreement, what fee is owed on a $150,000 award? In code: ```python recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") ``` # program output: 49500.00 The fee is $49,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0067016
At a 4% tax rate, what is the tax on $844.63? A short script: ```python price = 844.63 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 33.7852 print(f"{tax:.2f}") ``` Printed result — 33.79 The tax is $33.79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "33.79", "printed": "33.79", "notation": null}
nlprog_det-setting-0067017
A meal costs $55.37. How much is a 25% tip? As a program: ```python bill = 55.37 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 13.8425 print(f"{tip:.2f}") ``` It prints 13.84, as expected. Leave $13.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "13.84", "printed": "13.84", "notation": null}
nlprog_det-setting-0067018
How long, in days, is it from December 2, 2026 until October 22, 2027? As a program: ```python from datetime import date first = date(2026, 12, 2) # datetime.date(2026, 12, 2) second = date(2027, 10, 22) # datetime.date(2027, 10, 22) print((second - first).days) ``` Executing it gives: 324 There are 324 days betwee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "324", "printed": "324", "notation": null}
nlprog_det-setting-0067019
A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons? Here is the program. ```python base = 18 rate = 5.1 used = 20 free = 3 bill = base + rate * max(0, used - free) # 104.69999999999999 print(f"{bill:.2f}") ``` Out: 104.70 $104.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "104.70", "printed": "104.70", "notation": null}
nlprog_det-setting-0067020
Malik earns a 5% commission on $75,879 of sales. What is the commission? Python: ```python sales = 75879 rate = 5 / 100 # 0.05 commission = sales * rate # 3793.9500000000003 print(f"{commission:.2f}") ``` When run, it prints 3793.95. The commission is $3,793.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "3793.95", "printed": "3793.95", "notation": null}
nlprog_det-setting-0067021
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 129 copies of a 20-page handout?<|eot|> <|assistant|> ```python pages = 20 copies = 129 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The program outputs 129.00. The job costs $129.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 129 copies of a 20-page handout?" }, { "role": "assistant", "content": "```python\npages = 20\ncopies = 129\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nThe progr...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "129.00", "printed": "129.00", "notation": null}
nlprog_det-setting-0067022
How many of 47 votes make 75% (round up)? Python does the arithmetic: ```python import math voters = 47 needed = math.ceil(voters * 75 / 100) # 36 print(needed) ``` # out: 36 36 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0067023
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> What day of the week is August 22, 1993?<|eot|> <|assistant|> ```python from datetime import date hearing = date(1993, 8, 22) # datetime.date(1993, 8, 22) print(hearing.strftime("%A")) ``` The interpreter prints Sunday. August 22, 1993 is a Sunday.<|...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "What day of the week is August 22, 1993?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(1993, 8, 22) # datetime.date(1993, 8, 22)\nprint(hea...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0067024
A shift runs from 10:14 AM to 12:26 PM. How long is it in minutes? A short script: ```python start = 10 * 60 + 14 end = 12 * 60 + 26 print(end - start) ``` The script prints 132. 132 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0067025
<|start|><|user|> A 12 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 12 width = 12 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 36 print(tiles) ``` Result: 36 36 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 12 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 12\nwidth = 12\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 36\nprint(tiles)\n```\nResult: 36...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0067026
What is 20 degrees Celsius in Fahrenheit? Program: ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Out: 68 It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0067027
A pack of 6 flash drives sells for $354. What does each cost? Python, step by step: ```python total = 354 count = 6 per_item = total // count # 59 print(per_item) ``` Executing it gives: 59 The unit price is $59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0067028
Someone works 38 hours at $27.10 per hour. What are the earnings? Python code: ```python rate = 27.1 hours = 38 earnings = rate * hours # 1029.8 print(f"{earnings:.2f}") ``` Printed — 1029.80 The pay is $1,029.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1029.80", "printed": "1029.80", "notation": null}
nlprog_det-setting-0067029
<|start|><|system|> Functions: [{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "description": "Fetch an SEC ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}},...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0067030
<|start|><|user|> Fixed costs are $6,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` The program prints 1500. 1500 units...
chat
[ { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 20\nvariable = 16\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1500", "printed": "1500", "notation": null}