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-0080983
What day of the week is May 18, 2010? ```python from datetime import date hearing = date(2010, 5, 18) print(hearing.strftime("%A")) ``` Run output: Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0080984
<|start|><|system|> Functions: {"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"]}} {"name": "python", "d...
chat
[ { "role": "system", "content": "Functions:\n{\"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...
nlprog_det
setting
original
null
deterministic
[]
[]
337
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0080985
At 1.5% a month (simple), what interest builds on $12,000 over 2 months? Python, step by step: balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") It outputs: 360.00 The interest is $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0080986
<|start|><|user|> How much is a $59 daily meal allowance over 5 days?<|eot|> <|assistant|> ```python days = 5 meal_rate = 59 total = days * meal_rate # 295 print(total) ``` Out — 295 That comes to $295.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much is a $59 daily meal allowance over 5 days?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 59\ntotal = days * meal_rate # 295\nprint(total)\n```\nOut — 295\n\nThat comes to $295." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "295", "printed": "295", "notation": null}
nlprog_det-setting-0080987
What is a 20% tip on a $80.89 bill? Python code: bill = 80.89 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 16.178 print(f"{tip:.2f}") Output: 16.18 The tip is $16.18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "16.18", "printed": "16.18", "notation": null}
nlprog_det-setting-0080988
<|start|><|user|> Count the days between May 5, 2025 and March 16, 2026.<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 5, 5) # datetime.date(2025, 5, 5) second = date(2026, 3, 16) # datetime.date(2026, 3, 16) print((second - first).days) ``` stdout: 315 It is 315 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between May 5, 2025 and March 16, 2026." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 5, 5) # datetime.date(2025, 5, 5)\nsecond = date(2026, 3, 16) # datetime.date(2026, 3, 16)\nprint((second - first...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0080989
A 60-day notice period begins on February 10, 2022. On what date does it end? The computation: ```python from datetime import date, timedelta start = date(2022, 2, 10) # datetime.date(2022, 2, 10) end = start + timedelta(days=60) # datetime.date(2022, 4, 11) print(end.isoformat()) ``` (Output: 2022-04-11) That date...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2022-04-11", "printed": "2022-04-11", "notation": null}
nlprog_det-setting-0080990
A board has 51 members. A majority is more than half. How many votes make a majority? ```python members = 51 majority = members // 2 + 1 # 26 print(majority) ``` Execution prints 26, as expected. 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0080991
What percentage of $10,000 is $500? Let the code do the arithmetic: ```python budget = 10000 spent = 500 percent = spent / budget * 100 print(round(percent, 1)) ``` Python prints 5.0. That is 5.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0080992
<|start|><|user|> An attorney bills 2.5 hours at $225 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2.5 rate = 225 bill = hours * rate # 562.5 print(f"{bill:.2f}") ``` Execution prints 562.50. That comes to $562.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2.5 hours at $225 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 225\nbill = hours * rate # 562.5\nprint(f\"{bill:.2f}\")\n```\nExecution prints 562.50.\n\nThat comes to $562.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0080993
<|start|><|user|> 2 friends split a $120 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") ``` Program output — 72.00 Each person pays $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $120 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 20 / 100 # 0.2\npeople = 2\neach = bill * (1 + tip_rate) / people # 72.0\nprint(f\"{each:.2f}\")\n```\nProgram outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0080994
<|start|><|system|> You have access to these functions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python_exec", "description": "Executes a Python program and returns its output....
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python_exec\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
348
{"gold": "139", "printed": "139", "notation": null}
nlprog_det-setting-0080996
<|start|><|user|> Walls total 419 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 419 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` Shell output: 2 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 419 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 419\ncoverage = 250\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nShell output: 2\n\n2 cans are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0080997
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A room is 25 feet by 11 feet. Flooring costs $6 per square foot. What does it cost to floor the room?<|eot|> <|assistant|> It costs $1,650.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A room is 25 feet by 11 feet. Flooring costs $6 per square foot. What does it cost to floor the room?" }, { "role": "assistant", "content": "It costs $1,650." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "1650", "printed": "1650", "notation": null}
nlprog_det-setting-0080998
<|start|><|user|> A hearing starts at 1:40 PM and lasts 40 minutes. When does it end?<|eot|> <|assistant|> ```python start = 13 * 60 + 40 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` That prints 2:20 PM. The hearing finishes at 2:20 PM.<...
chat
[ { "role": "user", "content": "A hearing starts at 1:40 PM and lasts 40 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 40\nend = start + 40\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2:20 PM", "printed": "2:20 PM", "notation": null}
nlprog_det-setting-0080999
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 81 copies of a 47-page handout?<|eot|> <|assistant|> ```python pages = 47 copies = 81 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 190.35000000000002 print(f"{cost:.2f}") ``` The run gives 190.35, as expected. The job costs $1...
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 81 copies of a 47-page handout?" }, { "role": "assistant", "content": "```python\npages = 47\ncopies = 81\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 190.35000000000002\nprint(f\"{cost:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "190.35", "printed": "190.35", "notation": null}
nlprog_det-setting-0081000
<|start|><|user|> A count moves from 500 to 750. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 750 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` Output = 50 It changed by 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 750. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 750\nchange = (new - old) / old * 100 # 50.0\nprint(round(change))\n```\nOutput = 50\n\nIt changed by 50%....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081001
<|start|><|user|> What does $10,000 grow to in 5 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 11592.740743 print(f"{value:.2f}") ``` The printout reads: 11592.74 It is worth $11,592.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 5 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rate) ** years # 11592.740743\nprint(f\"{value:.2f}\")\n```\nThe printout...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "11592.74", "printed": "11592.74", "notation": null}
nlprog_det-setting-0081002
<|start|><|user|> The paralegal logged 6.5 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> The bill is $975.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 6.5 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": "The bill is $975.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "975.00", "printed": "975.00", "notation": null}
nlprog_det-setting-0081003
Each storage box holds 24 files. How many boxes are needed for 647 files? Python: ```python import math files = 647 per_box = 24 boxes = math.ceil(files / per_box) # 27 print(boxes) ``` Run it and it prints: 27 It takes 27 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0081004
<|start|><|user|> An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` This prints 480.00. $480.00...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ninterest = balance * monthly_rate * months # 480.0...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0081005
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "get_weather", "descript...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0081006
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute", "descripti...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0081007
Of a $8,000 budget, $7,200 has been spent. What percent is that? Set it up in Python: ```python budget = 8000 spent = 7200 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) ``` Shell output — 90.0 That is 90.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0081008
<|start|><|user|> A 3% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` The run gives 1854.00. It rises to $1,854.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1854.0\nprint(f\"{new_rent:.2f}\")\n```\nThe run gives 1854.00.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0081009
A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Python, step by step: ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 1350.0 payment = (principal +...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "287.50", "printed": "287.50", "notation": null}
nlprog_det-setting-0081010
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A class starts at 11:40 AM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 11 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Result: 12:05 ...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A class starts at 11:40 AM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 40\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "12:05 PM", "printed": "12:05 PM", "notation": null}
nlprog_det-setting-0081011
Fiona buys 9 boxes of 25 batteries each and gives away 6 batteries. How many batteries are left? That leaves 219 batteries.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "219", "printed": "219", "notation": null}
nlprog_det-setting-0081012
A storeroom has 1157 paper reams. The office uses 40 a day. How many are left after 6 days? We can compute it in Python. ```python stock = 1157 per_day = 40 days = 6 left = stock - per_day * days # 917 print(left) ``` The printout reads: 917 917 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "917", "printed": "917", "notation": null}
nlprog_det-setting-0081013
<|start|><|user|> 12 boxes hold 25 sticky pads each. After 7 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 25 given_away = 7 left = boxes * per_box - given_away print(left) ``` The program prints: 293 That leaves 293 sticky pads.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 boxes hold 25 sticky pads each. After 7 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 25\ngiven_away = 7\nleft = boxes * per_box - given_away\nprint(left)\n```\nThe program prints: 293\n\nThat leaves 29...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "293", "printed": "293", "notation": null}
nlprog_det-setting-0081014
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 4 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.2 used = 4 free = 2 bill = base + rate * max(0, used - free) # 20.4 prin...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 4 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "20.40", "printed": "20.40", "notation": null}
nlprog_det-setting-0081015
Ulla lends $1,000 at 6% simple interest per year for 5 years. How much interest is earned? Python: ```python principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` Python prints: 300.00 It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0081016
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee? As Python: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` Execution result: 4800.00 The lawyer's fee comes to $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0081017
Filing fees are $25 per document. What do 10 filings cost? As a program: fee = 25 filings = 10 total = fee * filings # 250 print(total) Interpreter output — 250 The filings cost $250 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0081018
A recipe for 2 people uses 150 grams of flour. How many grams are needed for 12 people? In Python: ```python grams = 150 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 900 print(scaled) ``` It prints: 900 900 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0081019
Counting only Monday through Friday, how many business days are there after November 16, 2020 through November 23, 2020? Script: ```python from datetime import date, timedelta start = date(2020, 11, 16) end = date(2020, 11, 23) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0081020
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 381 square feet of wall?<|eot|> <|assistant|> import math area = 381 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) That prints 2. Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 381 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 381\n coverage = 300\n cans = math.ceil(area / coverage) # 2\n print(cans)\nThat prints 2.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0081021
With 40% off, what does a $120 backpack cost? Code: ```python price = 120 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Interpreter output: 72.00 The sale price is $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0081022
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A hearing lasted 3 hours and 22 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 22 total_minutes = hours * 60 + minutes # 202 print(total_minutes) ``` Execution prints: 202 The hearing lasted 202 minutes.<...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A hearing lasted 3 hours and 22 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 22\ntotal_minutes = hours * 60 + minutes ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0081023
6 claimants share a $18,000 settlement equally. What is each share? As Python: ```python settlement = 18000 parties = 6 share = settlement // parties # 3000 print(share) ``` Running this gives: 3000 Each share is $3,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0081024
<|start|><|user|> $1,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 years = 2 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Console: 1040.40 The balance is $1,040.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$1,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100\nyears = 2\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nConsole:\n1040.40\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0081025
At $24.81 an hour, what does 36 hours of work pay? Let's compute it with Python. ```python rate = 24.81 hours = 36 earnings = rate * hours # 893.16 print(f"{earnings:.2f}") ``` # run result: 893.16 That earns $893.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "893.16", "printed": "893.16", "notation": null}
nlprog_det-setting-0081026
<|start|><|user|> The statute was enacted in 2003. How many years had passed by 2024?<|eot|> <|assistant|> start_year = 2003 end_year = 2024 print(end_year - start_year) On running, it outputs 21. That is 21 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2003. How many years had passed by 2024?" }, { "role": "assistant", "content": " start_year = 2003\n end_year = 2024\n print(end_year - start_year)\nOn running, it outputs 21.\n\nThat is 21 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0081027
A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons? Programmatically: ```python base = 15 rate = 5.1 used = 19 free = 2 bill = base + rate * max(0, used - free) # 101.69999999999999 print(f"{bill:.2f}") ``` Output: 101.70 $101.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "101.70", "printed": "101.70", "notation": null}
nlprog_det-setting-0081028
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Marek lends $8,000 at 2% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 800.0 print(f"{interest:.2f}") ``` Result —...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Marek lends $8,000 at 2% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 2 / 100 # 0.02\nyears...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0081029
A board has 21 members. A majority is more than half. How many votes make a majority? Python makes this quick: ```python members = 21 majority = members // 2 + 1 # 11 print(majority) ``` Interpreter output: 11 That is 11 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0081030
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "python", "description": "Python sandbox for calculations. Returns pr...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python\", \"d...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "7290", "printed": "7290", "notation": null}
nlprog_det-setting-0081031
A trial runs from February 25, 2024 to March 13, 2024, counting both days. How many calendar days is that? ```python from datetime import date first = date(2024, 2, 25) # datetime.date(2024, 2, 25) last = date(2024, 3, 13) # datetime.date(2024, 3, 13) days = (last - first).days + 1 # 18 print(days) ``` Python print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081032
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nan...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0081033
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> 9 toner kits cost $3 apiece. With 7% tax added, what is the total?<|eot|> <|assistant|> quantity = 9 unit_price = 3 subtotal = quantity * unit_price total = subtotal * (1 + 7 / 100) print(f"{total:.2f}") Printed: 28.89 The...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "9 toner kits cost $3 apiece. With 7% tax added, what is the total?" }, { "role": "assistant", "content": " quantity = 9\n unit_price = 3\n subtotal = quantity * unit_pr...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "28.89", "printed": "28.89", "notation": null}
nlprog_det-setting-0081035
A shift runs from 10:42 AM to 5:01 PM. How long is it in minutes? Python makes this quick: ```python start = 10 * 60 + 42 # 642 end = 17 * 60 + 1 # 1021 print(end - start) ``` Result = 379 379 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "379", "printed": "379", "notation": null}
nlprog_det-setting-0081036
<|start|><|user|> Rosa's scores were 87, 99, 56, 86, 76 and 70. What is the average score?<|eot|> <|assistant|> ```python scores = [87, 99, 56, 86, 76, 70] average = sum(scores) // len(scores) # 79 print(average) ``` It outputs: 79 The mean is 79.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rosa's scores were 87, 99, 56, 86, 76 and 70. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [87, 99, 56, 86, 76, 70]\naverage = sum(scores) // len(scores) # 79\nprint(average)\n```\nIt outputs: 79\n\nThe mean is 79." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0081037
Buying 3 tape rolls at $29 each, 6 scissors at $12 each, 3 clipboards at $5 each, 5 rulers at $10 each, someone hands over $250. What change comes back? Written as code: items = [(3, 29), (6, 12), (3, 5), (5, 10)] total = sum(q * p for q, p in items) # 224 paid = 250 change = paid - total # 26 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0081038
Fiona buys 5 boxes of 24 cables each and gives away 12 cables. How many cables are left? One way, in code: ```python boxes = 5 per_box = 24 given_away = 12 left = boxes * per_box - given_away # 108 print(left) ``` Run result: 108 108 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0081039
At an exchange rate of 1.35 USD per EUR, how many USD is 1,575 EUR? A Python solution: ```python amount = 1575 rate = 1.35 converted = amount * rate # 2126.25 print(f"{converted:.2f}") ``` (stdout: 2126.25) That is 2,126.25 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2126.25", "printed": "2126.25", "notation": null}
nlprog_det-setting-0081040
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 23 days?<|eot|> <|assistant|> ```python per_day = 25 days = 23 cap = 1000 fine = min(per_day * days, cap) # 575 print(fine) ``` # out: 575 $575 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 23 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 23\ncap = 1000\nfine = min(per_day * da...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "575", "printed": "575", "notation": null}
nlprog_det-setting-0081041
Goods bought on August 4, 2028 carry a 36-month warranty. When does it expire? Python: from datetime import date start = date(2028, 8, 4) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) What ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2031-08-04", "printed": "2031-08-04", "notation": null}
nlprog_det-setting-0081042
<|start|><|system|> You have access to these functions: {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Wh...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0081043
After an initial $6,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part? Script: ```python grant = 48000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") ``` Run output: 3500.00 $3,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0081044
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 1045.1612903225807 print(f"{prorated:.2f}") ``` The program outp...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month # 1045.1...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1045.16", "printed": "1045.16", "notation": null}
nlprog_det-setting-0081046
<|start|><|user|> After a 25% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Output of the run: 27000.00 ...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100\nremaining = award - fee\nper_client = remaining / 2\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0081047
<|start|><|user|> Walls total 377 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 377 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` Run output: 2 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 377 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 377\ncoverage = 300\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nRun output: 2\n\n2 cans are need...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0081048
<|start|><|user|> 4 claimants share a $4,500 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 4500 parties = 4 share = settlement // parties # 1125 print(share) ``` It prints 1125, as expected. Each party receives $1,125.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $4,500 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 4500\nparties = 4\nshare = settlement // parties # 1125\nprint(share)\n```\nIt prints 1125, as expected.\n\nEach party receives $1,125....
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0081049
A garage charges $4 an hour, never more than $18 a day. How much for 5 hours? Computation in Python: ```python rate = 4 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` (Result: 18) The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081050
Split $1,190 between Hugo and Goran in the ratio 2 to 3. What is Hugo's share? Programmatically: ```python total = 1190 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 476 print(share_a) ``` Result: 476 Hugo's share is $476.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "476", "printed": "476", "notation": null}
nlprog_det-setting-0081051
<|start|><|user|> Count 10 days forward from July 6, 2026. What date is that?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2026, 7, 6) # datetime.date(2026, 7, 6) end = start + timedelta(days=10) # datetime.date(2026, 7, 16) print(end.isoformat()) The printout reads 2026-07-1...
chat
[ { "role": "user", "content": "Count 10 days forward from July 6, 2026. What date is that?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2026, 7, 6) # datetime.date(2026, 7, 6)\n end = start + timedelta(days=10) # datetime.date(2026, 7, 16)...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2026-07-16", "printed": "2026-07-16", "notation": null}
nlprog_det-setting-0081052
Fixed costs are $1,200. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even? Python, step by step: ```python import math fixed = 1200 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` It outputs: 150 150 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0081053
4 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Let's compute it with Python. ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 4 # 9000.0 print(f"{per_client:.2f}") ``` Output of the run: 90...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0081054
45 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? 11 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "11 each, 1 left over", "printed": "11 each, 1 left over", "notation": null}
nlprog_det-setting-0081055
<|start|><|user|> Goran drove 349 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 349 rate = 0.58 reimbursement = miles * rate # 202.42 print(f"{reimbursement:.2f}") ``` (Printed result: 202.42) The reimbursement is $202.42.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Goran drove 349 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 349\nrate = 0.58\nreimbursement = miles * rate # 202.42\nprint(f\"{reimbursement:.2f}\")\n```\n(Printe...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "202.42", "printed": "202.42", "notation": null}
nlprog_det-setting-0081056
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 4 months? The program: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` It outputs: 600.00 $600.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0081057
Someone born April 25, 2004 turns how old by February 22, 2023? Give the age in whole years. Python, step by step: from datetime import date born = date(2004, 4, 25) # datetime.date(2004, 4, 25) on = date(2023, 2, 22) # datetime.date(2023, 2, 22) age = on.year - born.year - ((on.month, on.day) < (bor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0081058
21 clipboards cost $12 apiece. With 7% tax added, what is the total? Written as code: quantity = 21 unit_price = 12 subtotal = quantity * unit_price # 252 total = subtotal * (1 + 7 / 100) # 269.64000000000004 print(f"{total:.2f}") This prints 269.64, as expected. The invoice total is $269.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "269.64", "printed": "269.64", "notation": null}
nlprog_det-setting-0081059
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Sofia was born on June 21, 1976. How old is Sofia on December 18, 2021?<|eot|> <|assistant|> ```python from datetime import date born = date(1976, 6, 21) # datetime.date(1976, 6, 21) on = date(2021, 12, 18) # datetime.date(2021, 12, 18) age = on.yea...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Sofia was born on June 21, 1976. How old is Sofia on December 18, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1976, 6, 21) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0081061
A lawyer's fee is 30% of a $60,000 recovery. How large is the fee? A few lines of Python do it: ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` What it prints: 18000.00 The fee is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0081062
What average speed covers 284 miles in 1 hours? Here is the program. ```python distance = 284 hours = 1 speed = distance / hours # 284.0 print(round(speed)) ``` That prints: 284 The average speed is 284 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "284", "printed": "284", "notation": null}
nlprog_det-setting-0081063
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Notice was given on June 14, 2023. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 6, 14) # datetime.date(2023, 6, 14) end = start + timedelta(days=45) # datetim...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Notice was given on June 14, 2023. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2023-07-29", "printed": "2023-07-29", "notation": null}
nlprog_det-setting-0081064
<|start|><|user|> Pilar drove 566 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 566 rate = 0.67 reimbursement = miles * rate # 379.22 print(f"{reimbursement:.2f}") The printout reads: 379.22 Pilar is owed $379.22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pilar drove 566 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 566\n rate = 0.67\n reimbursement = miles * rate # 379.22\n print(f\"{reimbursement:.2f}\")\nThe pri...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "379.22", "printed": "379.22", "notation": null}
nlprog_det-setting-0081065
A party has 30 days to respond to a motion served on October 25, 2020, with 3 days added because service was by mail. When is the response due? The program: ```python from datetime import date, timedelta served = date(2020, 10, 25) # datetime.date(2020, 10, 25) response_days = 30 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
171
{"gold": "2020-11-27", "printed": "2020-11-27", "notation": null}
nlprog_det-setting-0081066
2 claimants share a $960 settlement equally. What is each share? Coded up: ```python settlement = 960 parties = 2 share = settlement // parties # 480 print(share) ``` Output: 480 Each party receives $480.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0081067
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after October 3, 2024 through November 12, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 10, 3) end = date(2024, 11, 12) count = 0 for k in ra...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 3, 2024 through November 12, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import dat...
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0081068
A settlement of $4,500 is split equally among 5 parties. How much does each party receive? settlement = 4500 parties = 5 share = settlement // parties # 900 print(share) When run, it prints 900. Each share is $900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0081069
A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 120-page copy cost? Let the code do the arithmetic: ```python pages = 120 base = 5 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Running this gives: 30.00 The copy co...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0081070
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Sales went from 500 to 300. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 300 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Out: -40 It changed by -40%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Sales went from 500 to 300. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 300\nchange = (new - old) / old * 100 # -40.0\nprint(ro...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0081071
The bridge was finished in 2012. How many years had passed by 2037? Let the code do the arithmetic: ```python start_year = 2012 end_year = 2037 print(end_year - start_year) ``` stdout: 25 That is 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0081072
<|start|><|user|> An invoice lists 35 pens at $24 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 35 unit_price = 24 subtotal = quantity * unit_price # 840 total = subtotal * (1 + 7 / 100) # 898.8000000000001 print(f"{total:.2f}") ``` (Program output: 898.80) The total w...
chat
[ { "role": "user", "content": "An invoice lists 35 pens at $24 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 35\nunit_price = 24\nsubtotal = quantity * unit_price # 840\ntotal = subtotal * (1 + 7 / 100) # 898.8000000000001\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "898.80", "printed": "898.80", "notation": null}
nlprog_det-setting-0081073
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": "...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0081074
An office budget of $25,000 has expenses of $928, $1,853, $2,017. How much of the budget is left? A Python solution: ```python budget = 25000 expenses = [928, 1853, 2017] left = budget - sum(expenses) # 20202 print(left) ``` Execution prints 20202, as expected. The remaining budget is $20,202.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "20202", "printed": "20202", "notation": null}
nlprog_det-setting-0081075
Hugo drove 479 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Here's the code. miles = 479 rate = 0.62 reimbursement = miles * rate # 296.98 print(f"{reimbursement:.2f}") Run it and it prints 296.98. Hugo is owed $296.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "296.98", "printed": "296.98", "notation": null}
nlprog_det-setting-0081076
4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Each client gets $4,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0081077
<|start|><|user|> How many days are there from July 28, 2020 to May 2, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 7, 28) # datetime.date(2020, 7, 28) second = date(2021, 5, 2) # datetime.date(2021, 5, 2) print((second - first).days) ``` Console output — 278 It is 278 days.<|eot...
chat
[ { "role": "user", "content": "How many days are there from July 28, 2020 to May 2, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 7, 28) # datetime.date(2020, 7, 28)\nsecond = date(2021, 5, 2) # datetime.date(2021, 5, 2)\nprint((second - f...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "278", "printed": "278", "notation": null}
nlprog_det-setting-0081078
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A 17 lb package ships at $8 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 2.5 weight = 17 cost = base + per_pound * weight # 50.5 print(f"{cost:.2f}") ``` The run gives 50.50. The charge is $50.50.<|eot|> <|...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A 17 lb package ships at $8 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 2.5\nweight = 17\ncost = base + per_pound * weigh...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "50.50", "printed": "50.50", "notation": null}
nlprog_det-setting-0081080
<|start|><|system|> You can call tools. Available tools: {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Lena earns $16.00 an ho...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
254
{"gold": "784.00", "printed": "784.00", "notation": null}
nlprog_det-setting-0081081
Maren earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 48-hour week? Set it up in Python: ```python rate = 25.0 hours = 48 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 300.0 pay = regular + overtime # 1300.0 print(f"{pay:.2f}") ``` (Execution result: 1300.00) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1300.00", "printed": "1300.00", "notation": null}
nlprog_det-setting-0081082
4 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? We write it as a program: ```python award = 60000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` On running, it outputs: 11250.00 Each client gets $11,25...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0081083
<|start|><|system|> Tool definitions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "par...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calculator\", \"description\": \"Use for ar...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0081084
Monthly rent is $1,800. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent? Python version: ```python rent = 1800 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 480.0 print(f"{prorated:.2f}") ``` On running, it outputs 480.00. The prorated rent is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0081085
Prorate $1,800 of monthly rent for 15 days of a 31-day month. Coded up: ```python rent = 1800 days_in_month = 31 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 870.9677419354839 print(f"{prorated:.2f}") ``` # execution result: 870.97 The prorated rent is $870.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "870.97", "printed": "870.97", "notation": null}
nlprog_det-setting-0081086
<|start|><|user|> A 160-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 160 speed = 40 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Execution prints: 240 240 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 160-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 160\nspeed = 40\nminutes = distance / speed * 60 # 240.0\nprint(round(minutes))\n```\nExecution prints: 240\n\n240 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0081087
<|start|><|user|> A $48,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` The program prints: 7000.00 $7,000.00 per...
chat
[ { "role": "user", "content": "A $48,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 6\neach = (grant - up_front) / installments # 7000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "7000.00", "printed": "7000.00", "notation": null}