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-0052053
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A measure needs at least 60% of 79 vot...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0052054
86 copies of a 27-page packet are printed at $0.12 per page. What is the cost? The computation: ```python pages = 27 copies = 86 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 278.64 print(f"{cost:.2f}") ``` Run result = 278.64 The job costs $278.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "278.64", "printed": "278.64", "notation": null}
nlprog_det-setting-0052055
<|start|><|system|> You are a math tutor.<|eot|> <|user|> 5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 41.39999999999999 print(f"{each:.2f}") ``` # result: 41.40 The s...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 5\neach = bill * (1 +...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "41.40", "printed": "41.40", "notation": null}
nlprog_det-setting-0052056
23 mugs cost $4 apiece. With 6% tax added, what is the total? The total with tax is $97.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "97.52", "printed": "97.52", "notation": null}
nlprog_det-setting-0052057
How many of 23 votes make 60% (round up)? The program: ```python import math voters = 23 needed = math.ceil(voters * 60 / 100) print(needed) ``` Python prints 14, as expected. At least 14 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0052058
<|start|><|user|> A $48,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> grant = 48000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") (Console output: 3500.00) Each in...
chat
[ { "role": "user", "content": "A $48,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": " grant = 48000\n up_front = 6000\n installments = 12\n each = (grant - up_front) / installments # 3500.0\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0052059
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> The meal allowance is $79 per day. What is it for 7 days?<|eot|> <|assistant|> ```python days = 7 meal_rate = 79 total = days * meal_rate # 553 print(total) ``` That prints: 553 The allowance is $553.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "The meal allowance is $79 per day. What is it for 7 days?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 79\ntotal = days * meal_rate # 553\nprint(total)\n```\nTha...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0052060
<|start|><|system|> You can call tools. Available tools: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"compute\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
275
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0052061
What percentage of $10,000 is $2,200? 22.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "22.0", "printed": "22.0", "notation": null}
nlprog_det-setting-0052062
<|start|><|user|> 2 friends split a $84 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 84 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 48.3 print(f"{each:.2f}") ``` # stdout: 48.30 The share is $48.30 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $84 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 84\ntip_rate = 15 / 100 # 0.15\npeople = 2\neach = bill * (1 + tip_rate) / people # 48.3\nprint(f\"{each:.2f}\")\n```\n# stdout: 48.3...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0052063
<|start|><|system|> You may call the tools below. [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "translate", "description": "Translate text into another language.", "parameters": {"type...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"translate\", \"description\": \"Tr...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0052064
A measure needs at least 67% of 300 votes. How many votes is that, rounded up? As Python: ```python import math voters = 300 needed = math.ceil(voters * 67 / 100) # 201 print(needed) ``` Output of the run: 201 At least 201 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0052065
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $6,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 1200.0 print(f"{per_year:.2f}") ``` Run output — 1200.00 Depreciation is $1,200.00 per year.<|eot|> <|end...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $6,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 6000\nyears = 10\nper_year = (cost - salvage) / years # 1200.0\nprint(f\"{per_year:.2f}\")\n```\nRun out...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0052066
<|start|><|user|> A library charges $0.50 per book per day late. What is the fine for 4 books that are 6 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 6 books = 4 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` (Program output: 12.00) The fine is $12.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 6 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 6\nbooks = 4\nfine = per_day * days_late * books # 12.0\nprint(f\"{fine:.2f}\")\n```\n(Pro...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0052067
What simple interest does $1,000 earn at 3% a year over 5 years? Python makes this quick: principal = 1000 rate = 3 / 100 # 0.03 years = 5 interest = principal * rate * years # 150.0 print(f"{interest:.2f}") Console: 150.00 It earns $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0052068
With 25 rows of 8 chairs and 25 empty chairs, how many chairs are taken? Let the code do the arithmetic: ```python rows = 25 per_row = 8 empty = 25 seated = rows * per_row - empty # 175 print(seated) ``` On running, it outputs: 175 175 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0052069
How many days are there from February 23, 2022 to April 9, 2022? As Python: ```python from datetime import date first = date(2022, 2, 23) # datetime.date(2022, 2, 23) second = date(2022, 4, 9) # datetime.date(2022, 4, 9) print((second - first).days) ``` Run it and it prints: 45 It is 45 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0052070
<|start|><|user|> Copies cost $10 plus $0.50 for each page beyond 0. How much for 11 pages?<|eot|> <|assistant|> The copy costs $15.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.50 for each page beyond 0. How much for 11 pages?" }, { "role": "assistant", "content": "The copy costs $15.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "15.50", "printed": "15.50", "notation": null}
nlprog_det-setting-0052071
8 boxes hold 12 water bottles each. After 9 are handed out, how many are left? We write it as a program: ```python boxes = 8 per_box = 12 given_away = 9 left = boxes * per_box - given_away # 87 print(left) ``` The program prints 87, as expected. That leaves 87 water bottles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0052072
<|start|><|system|> Keep explanations short.<|eot|> <|user|> To read 490 pages in 10 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 490 days = 10 per_day = pages // days print(per_day) It outputs: 49 That is 49 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "To read 490 pages in 10 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 490\n days = 10\n per_day = pages // days\n print(per_day)\nIt outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0052073
Counting the first and last day, how many days are there from February 3, 2025 through February 26, 2025? A short script: ```python from datetime import date first = date(2025, 2, 3) # datetime.date(2025, 2, 3) last = date(2025, 2, 26) # datetime.date(2025, 2, 26) days = (last - first).days + 1 # 24 print(days) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0052074
At 2% a month (simple), what interest builds on $4,000 over 2 months? Python, step by step: balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 160.0 print(f"{interest:.2f}") Result: 160.00 The interest is $160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0052075
A 12 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? ```python import math length = 12 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 27 print(tiles) ``` The script prints 27, as expected. It takes 27 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0052076
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Pack A has 10 items for $14.77. Pack B has 30 items for $14.95. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 14.77 / 10 # 1.4769999999999999 pack_b = 14.95 / 30 # 0.4983333333333333 cheaper = "A" if pack_a < pack_b else "B" ...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Pack A has 10 items for $14.77. Pack B has 30 items for $14.95. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 14.77 / 10 # 1.4769999999999999\...
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0052077
<|start|><|user|> What day of the week is June 14, 1992?<|eot|> <|assistant|> ```python from datetime import date hearing = date(1992, 6, 14) # datetime.date(1992, 6, 14) print(hearing.strftime("%A")) ``` Output of the run — Sunday June 14, 1992 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is June 14, 1992?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(1992, 6, 14) # datetime.date(1992, 6, 14)\nprint(hearing.strftime(\"%A\"))\n```\nOutput of the run — Sunday\n\nJune 14, 1992 is a Sund...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0052078
<|start|><|user|> Papers were served by mail on February 5, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 2, 5) # datetime.date(2021, 2, 5) response_days = 14 mail_days = 3 due ...
chat
[ { "role": "user", "content": "Papers were served by mail on February 5, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 2, 5) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2021-02-22", "printed": "2021-02-22", "notation": null}
nlprog_det-setting-0052079
The landlord deducts $60 and $85 from a $1,500 deposit. What is returned to the tenant? The program: ```python deposit = 1500 deductions = [60, 85] refund = deposit - sum(deductions) # 1355 print(refund) ``` stdout: 1355 $1,355 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1355", "printed": "1355", "notation": null}
nlprog_det-setting-0052080
<|start|><|user|> Fines run at $250 per day up to a maximum of $2,500. How much after 47 days?<|eot|> <|assistant|> ```python per_day = 250 days = 47 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Out = 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $250 per day up to a maximum of $2,500. How much after 47 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 47\ncap = 2500\nfine = min(per_day * days, cap)\nprint(fine)\n```\nOut = 2500\n\n$2,500 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0052081
What commission does Farah make on $60,695 in sales at 3%? Here is a short program for it. ```python sales = 60695 rate = 3 / 100 # 0.03 commission = sales * rate # 1820.85 print(f"{commission:.2f}") ``` # printed result: 1820.85 The commission is $1,820.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1820.85", "printed": "1820.85", "notation": null}
nlprog_det-setting-0052082
A measure needs at least 67% of 176 votes. How many votes is that, rounded up? Python does the arithmetic: ```python import math voters = 176 needed = math.ceil(voters * 67 / 100) # 118 print(needed) ``` Shell output — 118 At least 118 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0052083
<|start|><|user|> The rules require 3/5 of 31 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 31 quorum = math.ceil(members * 3 / 5) # 19 print(quorum) ``` (Result: 19) 19 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 31 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 31\nquorum = math.ceil(members * 3 / 5) # 19\nprint(quorum)\n```\n(Result: 19)\n\n19 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0052084
37 envelopes cost $9 apiece. With 6% tax added, what is the total? Written as code: ```python quantity = 37 unit_price = 9 subtotal = quantity * unit_price # 333 total = subtotal * (1 + 6 / 100) # 352.98 print(f"{total:.2f}") ``` # program output: 352.98 The total with tax is $352.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "352.98", "printed": "352.98", "notation": null}
nlprog_det-setting-0052085
How many of 20 votes make 67% (round up)? Python does the arithmetic: ```python import math voters = 20 needed = math.ceil(voters * 67 / 100) # 14 print(needed) ``` Out = 14 14 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0052086
Under a 30% contingency agreement, what fee is owed on a $60,000 award? We write it as a program: ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` When run, it prints: 18000.00 The fee is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0052087
<|start|><|user|> A hall has 10 rows of 16 seats, and 12 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 10 per_row = 16 empty = 12 seated = rows * per_row - empty # 148 print(seated) ``` It prints: 148 148 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 10 rows of 16 seats, and 12 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 10\nper_row = 16\nempty = 12\nseated = rows * per_row - empty # 148\nprint(seated)\n```\nIt prints: 148\n\n148 seats are tak...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0052088
<|start|><|user|> What is a 20% tip on a $171.32 bill?<|eot|> <|assistant|> Leave $34.26.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $171.32 bill?" }, { "role": "assistant", "content": "Leave $34.26." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "34.26", "printed": "34.26", "notation": null}
nlprog_det-setting-0052089
A car travels 460 miles in 2 hours. What is its average speed in miles per hour? Computation in Python: distance = 460 hours = 2 speed = distance / hours # 230.0 print(round(speed)) It prints 230, as expected. The average speed is 230 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "230", "printed": "230", "notation": null}
nlprog_det-setting-0052090
<|start|><|user|> A trial runs from January 7, 2026 to January 14, 2026, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 1, 7) # datetime.date(2026, 1, 7) last = date(2026, 1, 14) # datetime.date(2026, 1, 14) days = (last - first).days + ...
chat
[ { "role": "user", "content": "A trial runs from January 7, 2026 to January 14, 2026, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 1, 7) # datetime.date(2026, 1, 7)\nlast = date(2026, 1, 14) #...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0052092
<|start|><|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?<|eot|> <|assistant|> days = 8 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1322 print(total) It prints 1322. The all...
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights?" }, { "role": "assistant", "content": " days = 8\n meal_rate = 69\n lodging_rate = 110\n nights = days - 1 # 7\n total = days * meal_rate + nights * lodg...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1322", "printed": "1322", "notation": null}
nlprog_det-setting-0052093
A shift runs from 10:44 AM to 5:05 PM. How long is it in minutes? As Python: ```python start = 10 * 60 + 44 # 644 end = 17 * 60 + 5 # 1025 print(end - start) ``` # result: 381 It is 381 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "381", "printed": "381", "notation": null}
nlprog_det-setting-0052094
Papers were served by mail on January 24, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? In Python: ```python from datetime import date, timedelta served = date(2021, 1, 24) # datetime.date(2021, 1, 24) response_days = 14 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2021-02-10", "printed": "2021-02-10", "notation": null}
nlprog_det-setting-0052095
Attendance was 21 out of 40. Express it as a percent. Programmatically: ```python present = 21 total = 40 percent = present / total * 100 # 52.5 print(round(percent, 1)) ``` This prints: 52.5 Attendance was 52.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0052097
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> If a 3...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "2015-11-27", "printed": "2015-11-27", "notation": null}
nlprog_det-setting-0052098
A storeroom has 1630 sticky pads. The office uses 27 a day. How many are left after 11 days? Let the code do the arithmetic: stock = 1630 per_day = 27 days = 11 left = stock - per_day * days # 1333 print(left) # console output: 1333 1333 sticky pads are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1333", "printed": "1333", "notation": null}
nlprog_det-setting-0052099
How many whole days and leftover hours are in 102 hours? Here is a short program for it. ```python hours = 102 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed: 4 days and 6 hours 102 hours is 4 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "4 days and 6 hours", "printed": "4 days and 6 hours", "notation": null}
nlprog_det-setting-0052100
Fixed costs are $4,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even? Python makes this quick: ```python import math fixed = 4000 price = 30 variable = 24 units = math.ceil(fixed / (price - variable)) # 667 print(units) ``` The program outputs 667. 667 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0052101
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 40-page copy cost?<|eot|> <|assistant|> ```python pages = 40 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 12.5 print(f"{cost:.2f}") ``` Printed result — 12.50 Th...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 40-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 40\nbase = 5\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0052102
<|start|><|user|> A 13 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 13 width = 12 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 156 print(tiles) ``` Out = 156 It takes 156 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 13 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 13\nwidth = 12\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 156\nprint(tiles)\n```\nOut = 156...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0052103
<|start|><|user|> Divide 297 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 297 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The run gives: 49 each, 3 left over...
chat
[ { "role": "user", "content": "Divide 297 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 297\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "49 each, 3 left over", "printed": "49 each, 3 left over", "notation": null}
nlprog_det-setting-0052104
Shipping costs $8 plus $2.00 per pound. What does a 13-pound parcel cost to ship? Computing it: base = 8 per_pound = 2.0 weight = 13 cost = base + per_pound * weight # 34.0 print(f"{cost:.2f}") When run, it prints 34.00, as expected. The charge is $34.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0052105
Abel was born on October 14, 1958. How old is Abel on December 4, 2029? Coded up: ```python from datetime import date born = date(1958, 10, 14) on = date(2029, 12, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` The script prints 71, as expected. The age is 71 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0052106
189 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? Computation in Python: total = 189 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Console output — 37 each, 4 left over The answer: 37 each, 4 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "37 each, 4 left over", "printed": "37 each, 4 left over", "notation": null}
nlprog_det-setting-0052107
A $1,500 security deposit has deductions of $75, $150 and $85. How much is refunded? Computation in Python: ```python deposit = 1500 deductions = [75, 150, 85] refund = deposit - sum(deductions) # 1190 print(refund) ``` Interpreter output: 1190 The refund is $1,190.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1190", "printed": "1190", "notation": null}
nlprog_det-setting-0052108
<|start|><|user|> To read 273 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 273 days = 7 per_day = pages // days print(per_day) ``` (Console output: 39) 39 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 273 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 273\ndays = 7\nper_day = pages // days\nprint(per_day)\n```\n(Console output: 39)\n\n39 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0052109
717 files go into boxes of 24. How many boxes does that take? Here's the code. ```python import math files = 717 per_box = 24 boxes = math.ceil(files / per_box) # 30 print(boxes) ``` Run result = 30 30 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0052110
<|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": "run_python"...
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
[]
[]
321
{"gold": "491.10", "printed": "491.10", "notation": null}
nlprog_det-setting-0052111
If a 5-year limitations period starts on August 7, 2013, when does it end? Python code: ```python from datetime import date accrued = date(2013, 8, 7) # datetime.date(2013, 8, 7) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 8, 7) print(expires.isoformat()) ``` Result: 2018-08-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2018-08-07", "printed": "2018-08-07", "notation": null}
nlprog_det-setting-0052113
<|start|><|user|> 865 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 865 per_box = 25 boxes = math.ceil(files / per_box) # 35 print(boxes) ``` Output — 35 It takes 35 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "865 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 865\nper_box = 25\nboxes = math.ceil(files / per_box) # 35\nprint(boxes)\n```\nOutput — 35\n\nIt takes 35 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0052114
Signe earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? The weekly pay is $890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0052115
Someone works 38 hours at $30.54 per hour. What are the earnings? The computation: ```python rate = 30.54 hours = 38 earnings = rate * hours # 1160.52 print(f"{earnings:.2f}") ``` On running, it outputs: 1160.52 That earns $1,160.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1160.52", "printed": "1160.52", "notation": null}
nlprog_det-setting-0052116
Lena drove 514 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? ```python miles = 514 rate = 0.7 reimbursement = miles * rate # 359.79999999999995 print(f"{reimbursement:.2f}") ``` # console output: 359.80 The reimbursement is $359.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "359.80", "printed": "359.80", "notation": null}
nlprog_det-setting-0052117
A 24-month warranty starts on August 7, 2018. On what date does it end? The warranty ends on August 7, 2020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2020-08-07", "printed": "2020-08-07", "notation": null}
nlprog_det-setting-0052118
Counting the first and last day, how many days are there from November 14, 2023 through November 21, 2023? One way, in code: ```python from datetime import date first = date(2023, 11, 14) # datetime.date(2023, 11, 14) last = date(2023, 11, 21) # datetime.date(2023, 11, 21) days = (last - first).days + 1 # 8 print(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0052119
<|start|><|system|> Be concise.<|eot|> <|user|> At $26.98 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 26.98 hours = 38 earnings = rate * hours # 1025.24 print(f"{earnings:.2f}") ``` Output: 1025.24 That earns $1,025.24.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "At $26.98 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 26.98\nhours = 38\nearnings = rate * hours # 1025.24\nprint(f\"{earnings:.2f}\")\n```\nOutput:\n1...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1025.24", "printed": "1025.24", "notation": null}
nlprog_det-setting-0052120
How many of 184 votes make 75% (round up)? Python makes this quick: ```python import math voters = 184 needed = math.ceil(voters * 75 / 100) # 138 print(needed) ``` Interpreter output — 138 At least 138 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0052121
What simple interest does $2,500 earn at 3% a year over 2 years? Program: ```python principal = 2500 rate = 3 / 100 # 0.03 years = 2 interest = principal * rate * years # 150.0 print(f"{interest:.2f}") ``` The run gives: 150.00 The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0052122
<|start|><|system|> Functions: {"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Rania and Zainab s...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "1836", "printed": "1836", "notation": null}
nlprog_det-setting-0052123
Water costs $12 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons? In code: base = 12 rate = 4.75 used = 21 free = 3 bill = base + rate * max(0, used - free) # 97.5 print(f"{bill:.2f}") Shell output — 97.50 $97.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "97.50", "printed": "97.50", "notation": null}
nlprog_det-setting-0052125
<|start|><|system|> Tool definitions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object"...
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\"]}}\n{\"name\": \"convert_units\", \"description\": \"Convert ...
nlprog_det
setting
original
null
deterministic
[]
[]
379
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0052126
Express 43 hours in days and hours. 43 hours is 1 days and 19 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "1 days and 19 hours", "printed": "1 days and 19 hours", "notation": null}
nlprog_det-setting-0052127
<|start|><|user|> Divide 198 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 198 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Program output — 33 each, 0 left ov...
chat
[ { "role": "user", "content": "Divide 198 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 198\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "33 each, 0 left over", "printed": "33 each, 0 left over", "notation": null}
nlprog_det-setting-0052128
Pack A has 10 items for $3.46. Pack B has 30 items for $11.66. Which has the lower price per item? Programmatically: ```python pack_a = 3.46 / 10 # 0.346 pack_b = 11.66 / 30 # 0.38866666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` # program output: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0052130
<|start|><|user|> A 144-page report must be reviewed in 6 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 144 days = 6 per_day = pages // days # 24 print(per_day) ``` Printed result: 24 24 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 144-page report must be reviewed in 6 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 144\ndays = 6\nper_day = pages // days # 24\nprint(per_day)\n```\nPrinted result: 24\n\n24 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0052131
On which weekday does October 18, 2016 fall? Let the code do the arithmetic: ```python from datetime import date hearing = date(2016, 10, 18) # datetime.date(2016, 10, 18) print(hearing.strftime("%A")) ``` Execution result — Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0052132
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0052133
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A claim accrued o...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "2020-07-13", "printed": "2020-07-13", "notation": null}
nlprog_det-setting-0052134
<|start|><|user|> Split $4,060 between Hugo and Rania in the ratio 2 to 5. What is Hugo's share?<|eot|> <|assistant|> ```python total = 4060 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1160 print(share_a) ``` The interpreter prints: 1160 Hugo gets $1,160.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,060 between Hugo and Rania in the ratio 2 to 5. What is Hugo's share?" }, { "role": "assistant", "content": "```python\ntotal = 4060\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1160\nprint(share_a)\n```\nThe interpreter pr...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1160", "printed": "1160", "notation": null}
nlprog_det-setting-0052135
5 bike rides at 350 calories each burn how many calories in total? Here's the code. ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` Output = 1750 That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0052136
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Run result: -4 That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nRun result: -4\n\nThat is -4 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0052137
<|start|><|system|> Functions: [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> What is a 10% tip ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "20.19", "printed": "20.19", "notation": null}
nlprog_det-setting-0052138
Of a $10,000 budget, $300 has been spent. What percent is that? A short script: ```python budget = 10000 spent = 300 percent = spent / budget * 100 # 3.0 print(round(percent, 1)) ``` Executed, it shows 3.0. That is 3.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3.0", "printed": "3.0", "notation": null}
nlprog_det-setting-0052139
A shift runs from 7:41 AM to 11:55 AM. How long is it in minutes? The computation: ```python start = 7 * 60 + 41 # 461 end = 11 * 60 + 55 # 715 print(end - start) ``` This prints 254, as expected. 254 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0052140
<|start|><|user|> $1,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> principal = 1000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 1215.5062500000001 print(f"{value:.2f}") The run gives 1215.51, as expected. It is worth $1...
chat
[ { "role": "user", "content": "$1,000 is invested at 5% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 5 / 100 # 0.05\n years = 4\n value = principal * (1 + rate) ** years # 1215.5062500000001\n print(f\"{value...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0052142
Someone works 20 hours at $26.02 per hour. What are the earnings? As Python: ```python rate = 26.02 hours = 20 earnings = rate * hours # 520.4 print(f"{earnings:.2f}") ``` Console: 520.40 The pay is $520.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "520.40", "printed": "520.40", "notation": null}
nlprog_det-setting-0052143
<|start|><|user|> From a $5,000 retainer, 11 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 11 rate = 200 left = retainer - hours * rate # 2800 print(left) ``` Out: 2800 $2,800 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 11 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 11\nrate = 200\nleft = retainer - hours * rate # 2800\nprint(left)\n```\nOut:\n2800\n\n$2,800 of the retainer is ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0052144
Buying 1 batteries at $17 each, 1 desk lamps at $29 each, 6 batteries at $27 each, someone hands over $250. What change comes back? Coded up: items = [(1, 17), (1, 29), (6, 27)] total = sum(q * p for q, p in items) # 208 paid = 250 change = paid - total # 42 print(change) Out: 42 $42 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0052145
Convert 4,117 USD to EUR at 1 USD = 1.27 EUR. It converts to 5,228.59 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "5228.59", "printed": "5228.59", "notation": null}
nlprog_det-setting-0052146
<|start|><|user|> A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 98-page copy cost?<|eot|> <|assistant|> ```python pages = 98 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 44.0 print(f"{cost:.2f}") ``` Running it prints 44.00, as...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 98-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 98\nbase = 5\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "44.00", "printed": "44.00", "notation": null}
nlprog_det-setting-0052147
From a $5,000 retainer, 11 hours at $150/hour have been drawn. What remains? A few lines of Python do it: ```python retainer = 5000 hours = 11 rate = 150 left = retainer - hours * rate # 3350 print(left) ``` Out: 3350 $3,350 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3350", "printed": "3350", "notation": null}
nlprog_det-setting-0052148
<|start|><|user|> Someone born October 13, 1964 turns how old by April 24, 2027? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1964, 10, 13) # datetime.date(1964, 10, 13) on = date(2027, 4, 24) # datetime.date(2027, 4, 24) age = on.year - born.year - ((on.month, on....
chat
[ { "role": "user", "content": "Someone born October 13, 1964 turns how old by April 24, 2027? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1964, 10, 13) # datetime.date(1964, 10, 13)\non = date(2027, 4, 24) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0052149
Find the mean of these test scores: 67, 78, 81, 91 and 73. Code: ```python scores = [67, 78, 81, 91, 73] average = sum(scores) // len(scores) # 78 print(average) ``` What it prints: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0052150
A customer buys 6 cables at $23 each, 4 hard drives at $11 each, 3 calendars at $2 each, 2 flash drives at $8 each and pays with $250. How much change is due? Here's the code. ```python items = [(6, 23), (4, 11), (3, 2), (2, 8)] total = sum(q * p for q, p in items) # 204 paid = 250 change = paid - total # 46 print(c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0052151
846 files go into boxes of 12. How many boxes does that take? It takes 71 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0052152
Counting only Monday through Friday, how many business days are there after February 21, 2023 through March 20, 2023? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2023, 2, 21) end = date(2023, 3, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0052153
A garage charges $4 an hour, never more than $24 a day. How much for 4 hours? In code: ```python rate = 4 hours = 4 daily_max = 24 cost = min(rate * hours, daily_max) # 16 print(cost) ``` Console: 16 The charge is $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0052154
<|start|><|user|> Convert 5,268 EUR to USD at 1 EUR = 0.74 USD.<|eot|> <|assistant|> ```python amount = 5268 rate = 0.74 converted = amount * rate # 3898.32 print(f"{converted:.2f}") ``` Execution result — 3898.32 It converts to 3,898.32 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5,268 EUR to USD at 1 EUR = 0.74 USD." }, { "role": "assistant", "content": "```python\namount = 5268\nrate = 0.74\nconverted = amount * rate # 3898.32\nprint(f\"{converted:.2f}\")\n```\nExecution result — 3898.32\n\nIt converts to 3,898.32 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3898.32", "printed": "3898.32", "notation": null}
nlprog_det-setting-0052155
<|start|><|user|> What commission does Kofi make on $107,997 in sales at 5%?<|eot|> <|assistant|> The commission is $5,399.85.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Kofi make on $107,997 in sales at 5%?" }, { "role": "assistant", "content": "The commission is $5,399.85." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5399.85", "printed": "5399.85", "notation": null}
nlprog_det-setting-0052156
Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? The program: import math fixed = 2500 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 500 print(units) This prints 500. 500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0052157
<|start|><|user|> 4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 4 # 13500.0 print(f"{per_client:.2f}") ``` Executed, it...
chat
[ { "role": "user", "content": "4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 # 18000.0\nremaining = award - fee # 54000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0052158
<|start|><|system|> You have access to these functions: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "search_cases", "descr...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
370
{"gold": "360", "printed": "360", "notation": null}