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-0071537
<|start|><|user|> The paralegal logged 1.5 hours at a rate of $250. How much is billed?<|eot|> <|assistant|> The bill is $375.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 1.5 hours at a rate of $250. How much is billed?" }, { "role": "assistant", "content": "The bill is $375.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0071538
Attendance was 83 out of 100. Express it as a percent. Computing it: ```python present = 83 total = 100 percent = present / total * 100 # 83.0 print(round(percent, 1)) ``` Run result = 83.0 83.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "83.0", "printed": "83.0", "notation": null}
nlprog_det-setting-0071539
The firm was founded in 2022. How many years had passed by 2040? Programmatically: ```python start_year = 2022 end_year = 2040 print(end_year - start_year) ``` # output: 18 18 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0071540
Papers were served by mail on March 28, 2020. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Python, step by step: ```python from datetime import date, timedelta served = date(2020, 3, 28) # datetime.date(2020, 3, 28) response_days = 30 mail_days = 3 due = served + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2020-04-30", "printed": "2020-04-30", "notation": null}
nlprog_det-setting-0071541
Under a 30% contingency agreement, what fee is owed on a $60,000 award? We can compute it in Python. ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` Run result = 18000.00 The fee is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0071542
Prorate $1,200 of monthly rent for 6 days of a 31-day month. Python makes this quick: ```python rent = 1200 days_in_month = 31 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 232.25806451612902 print(f"{prorated:.2f}") ``` On running, it outputs: 232.26 The prorated rent is $232.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "232.26", "printed": "232.26", "notation": null}
nlprog_det-setting-0071543
<|start|><|system|> Available functions (JSON Schema): {"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
332
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0071544
An attorney bills 7 hours at $150 per hour. What is the bill? A Python solution: hours = 7 rate = 150 bill = hours * rate # 1050 print(f"{bill:.2f}") Execution result — 1050.00 That comes to $1,050.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1050.00", "printed": "1050.00", "notation": null}
nlprog_det-setting-0071545
Monthly: $19. Annual: $210. What is saved per year by paying annually? Let's compute it with Python. monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) Run result — 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0071546
If a 3-year limitations period starts on May 11, 2015, when does it end? Python, step by step: ```python from datetime import date accrued = date(2015, 5, 11) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` # printed: 2018-05-11 The period expires on May 11, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2018-05-11", "printed": "2018-05-11", "notation": null}
nlprog_det-setting-0071547
<|start|><|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> days = 4 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 606 print(total) Output: 606 That comes t...
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": " days = 4\n meal_rate = 69\n lodging_rate = 110\n nights = days - 1 # 3\n total = days * meal_rate + nights * lodg...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "606", "printed": "606", "notation": null}
nlprog_det-setting-0071548
A lawyer's fee is 33% of a $25,000 recovery. How large is the fee? Let's compute it with Python. ```python recovery = 25000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` The interpreter prints 8250.00. The fee is $8,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0071549
Parking is $3 per hour with a daily maximum of $18. What do 5 hours cost? The program: ```python rate = 3 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Output: 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0071550
<|start|><|system|> You have access to these functions: {"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> An invoice lists 9 pens at $...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "19.08", "printed": "19.08", "notation": null}
nlprog_det-setting-0071551
<|start|><|user|> The landlord deducts $200 and $75 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [200, 75] refund = deposit - sum(deductions) # 2225 print(refund) ``` Executing it gives: 2225 The refund is $2,225.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $200 and $75 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [200, 75]\nrefund = deposit - sum(deductions) # 2225\nprint(refund)\n```\nExecuting it gives: 222...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2225", "printed": "2225", "notation": null}
nlprog_det-setting-0071552
A service costs $25 a month or $270 a year. How much does the yearly plan save over 12 monthly payments? The Python version: monthly = 25 yearly = 270 savings = monthly * 12 - yearly # 30 print(savings) The code prints: 30 $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0071553
A room is 10 feet by 17 feet. Flooring costs $4 per square foot. What does it cost to floor the room? It costs $680.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "680", "printed": "680", "notation": null}
nlprog_det-setting-0071554
Under a 30% contingency agreement, what fee is owed on a $25,000 award? Computation in Python: ```python recovery = 25000 rate = 30 / 100 # 0.3 fee = recovery * rate # 7500.0 print(f"{fee:.2f}") ``` That prints 7500.00. The lawyer's fee comes to $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0071555
A measure needs at least 60% of 194 votes. How many votes is that, rounded up? Python does the arithmetic: ```python import math voters = 194 needed = math.ceil(voters * 60 / 100) # 117 print(needed) ``` Run result — 117 117 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0071556
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "de...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0071557
<|start|><|system|> You help with homework problems.<|eot|> <|user|> 8 hours of work at $350 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 8 rate = 350 bill = hours * rate # 2800 print(f"{bill:.2f}") ``` # program output: 2800.00 The bill is $2,800.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "8 hours of work at $350 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 8\nrate = 350\nbill = hours * rate # 2800\nprint(f\"{bill:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2800.00", "printed": "2800.00", "notation": null}
nlprog_det-setting-0071558
At an exchange rate of 0.74 USD per EUR, how many USD is 109 EUR? Python version: ```python amount = 109 rate = 0.74 converted = amount * rate # 80.66 print(f"{converted:.2f}") ``` (Console output: 80.66) That is 80.66 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "80.66", "printed": "80.66", "notation": null}
nlprog_det-setting-0071559
<|start|><|system|> You are a math tutor.<|eot|> <|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> The interest is $480.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "The interest is $480.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0071560
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A appointment starts ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
257
{"gold": "2:25 PM", "printed": "2:25 PM", "notation": null}
nlprog_det-setting-0071561
<|start|><|user|> Convert 5 h 53 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 53 total_minutes = hours * 60 + minutes # 353 print(total_minutes) ``` # run result: 353 The workshop lasted 353 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 53 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 53\ntotal_minutes = hours * 60 + minutes # 353\nprint(total_minutes)\n```\n# run result: 353\n\nThe workshop lasted 353 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "353", "printed": "353", "notation": null}
nlprog_det-setting-0071562
<|start|><|user|> Papers were served by mail on May 21, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2020, 5, 21) # datetime.date(2020, 5, 21) response_days = 21 mail_days = 3 due = ...
chat
[ { "role": "user", "content": "Papers were served by mail on May 21, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2020, 5, 21) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2020-06-14", "printed": "2020-06-14", "notation": null}
nlprog_det-setting-0071563
Which is cheaper per unit: 6 for $11.51 (A) or 24 for $21.02 (B)? Let's compute it with Python. pack_a = 11.51 / 6 # 1.9183333333333332 pack_b = 21.02 / 24 # 0.8758333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Running it prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0071564
Bruna lends $5,000 at 6% simple interest per year for 3 years. How much interest is earned? As Python: ```python principal = 5000 rate = 6 / 100 years = 3 interest = principal * rate * years print(f"{interest:.2f}") ``` The script prints 900.00. It earns $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0071565
A meeting starts at 4:00 PM and lasts 135 minutes. When does it end? Python: ```python start = 16 * 60 + 0 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Program output: 6:15 PM) It ends at 6:15 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "6:15 PM", "printed": "6:15 PM", "notation": null}
nlprog_det-setting-0071566
Counting the first and last day, how many days are there from September 20, 2024 through October 13, 2024? Computing it: ```python from datetime import date first = date(2024, 9, 20) # datetime.date(2024, 9, 20) last = date(2024, 10, 13) # datetime.date(2024, 10, 13) days = (last - first).days + 1 # 24 print(days) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071567
A recipe for 2 people uses 240 grams of sugar. How many grams are needed for 4 people? Python version: ```python grams = 240 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 480 print(scaled) ``` That prints: 480 480 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0071568
Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons? Python, step by step: ```python base = 12 rate = 4.75 used = 9 free = 0 bill = base + rate * max(0, used - free) # 54.75 print(f"{bill:.2f}") ``` It outputs 54.75. The bill is $54.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "54.75", "printed": "54.75", "notation": null}
nlprog_det-setting-0071570
A client paid a $10,000 retainer. The firm has billed 4 hours at $250 per hour. How much of the retainer is left? A Python solution: ```python retainer = 10000 hours = 4 rate = 250 left = retainer - hours * rate print(left) ``` The code prints: 9000 $9,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0071571
Starting with 1624 labels and using 25 per day, how many remain after 7 days? Computation in Python: ```python stock = 1624 per_day = 25 days = 7 left = stock - per_day * days # 1449 print(left) ``` The program prints: 1449 1449 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1449", "printed": "1449", "notation": null}
nlprog_det-setting-0071572
The rules require 3/5 of 51 members (round up) to be present. How many is that? As Python: ```python import math members = 51 quorum = math.ceil(members * 3 / 5) # 31 print(quorum) ``` It prints 31. That is 31 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0071573
A $180 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share? Let's compute it with Python. ```python bill = 180 tip_rate = 20 / 100 people = 3 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` When run, it prints 72.00. The share is $72.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0071575
<|start|><|user|> A 14 lb package ships at $12 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> base = 12 per_pound = 1.2 weight = 14 cost = base + per_pound * weight # 28.8 print(f"{cost:.2f}") Executing it gives 28.80, as expected. The charge is $28.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 14 lb package ships at $12 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": " base = 12\n per_pound = 1.2\n weight = 14\n cost = base + per_pound * weight # 28.8\n print(f\"{cost:.2f}\")\nExecuting it gives 28.80, as ex...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "28.80", "printed": "28.80", "notation": null}
nlprog_det-setting-0071576
The rules require 1/3 of 30 members (round up) to be present. How many is that? ```python import math members = 30 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` The program outputs: 10 That is 10 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0071577
How many minutes pass from 7:32 AM to 11:23 AM on the same day? One way, in code: ```python start = 7 * 60 + 32 # 452 end = 11 * 60 + 23 # 683 print(end - start) ``` (stdout: 231) It is 231 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "231", "printed": "231", "notation": null}
nlprog_det-setting-0071578
<|start|><|system|> Tools (call with JSON): [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "ob...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"convert_units\", \"description\": \"Conv...
nlprog_det
setting
original
null
deterministic
[]
[]
386
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0071579
Copies cost $10 plus $0.50 for each page beyond 10. How much for 5 pages? Computing it: ```python pages = 5 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 10.0 print(f"{cost:.2f}") ``` Output of the run — 10.00 The total is $10.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0071580
What commission does Farah make on $54,101 in sales at 4%? Python does the arithmetic: sales = 54101 rate = 4 / 100 # 0.04 commission = sales * rate # 2164.04 print(f"{commission:.2f}") The run gives: 2164.04 The commission is $2,164.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2164.04", "printed": "2164.04", "notation": null}
nlprog_det-setting-0071581
Walls total 573 sq ft and each can covers 350 sq ft. How many cans should be bought? ```python import math area = 573 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` Run output: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0071582
<|start|><|user|> Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> Depreciation is $4,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "Depreciation is $4,000.00 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0071583
<|start|><|user|> Sales went from 1,200 to 720. What is the percent change?<|eot|> <|assistant|> ```python old = 1200 new = 720 change = (new - old) / old * 100 print(round(change)) ``` Run output — -40 The change is -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 1,200 to 720. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 720\nchange = (new - old) / old * 100\nprint(round(change))\n```\nRun output — -40\n\nThe change is -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0071584
Walls total 741 sq ft and each can covers 350 sq ft. How many cans should be bought? Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0071585
An attorney bills 8 hours at $225 per hour. What is the bill? Set it up in Python: ```python hours = 8 rate = 225 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` The code prints 1800.00. That comes to $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0071586
Express 273 hours in days and hours. As Python: ```python hours = 273 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result = 11 days and 9 hours That is 11 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "11 days and 9 hours", "printed": "11 days and 9 hours", "notation": null}
nlprog_det-setting-0071587
What does $1,000 grow to in 3 years at 4% annual compounding? Programmatically: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 1124.864 print(f"{value:.2f}") ``` Interpreter output: 1124.86 It is worth $1,124.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0071588
Papers were served by mail on June 11, 2023. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Programmatically: ```python from datetime import date, timedelta served = date(2023, 6, 11) # datetime.date(2023, 6, 11) response_days = 28 mail_days = 3 due = served + timedelta(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2023-07-12", "printed": "2023-07-12", "notation": null}
nlprog_det-setting-0071589
<|start|><|user|> Find the mean of these test scores: 56, 67, 61 and 92.<|eot|> <|assistant|> scores = [56, 67, 61, 92] average = sum(scores) // len(scores) # 69 print(average) The printout reads 69. The mean is 69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 56, 67, 61 and 92." }, { "role": "assistant", "content": " scores = [56, 67, 61, 92]\n average = sum(scores) // len(scores) # 69\n print(average)\nThe printout reads 69.\n\nThe mean is 69." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0071590
<|start|><|system|> You have access to these functions: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "convert_units", "descri...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
395
{"gold": "820", "printed": "820", "notation": null}
nlprog_det-setting-0071591
<|start|><|user|> A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` This prints 5000.00, as expected. Each installme...
chat
[ { "role": "user", "content": "A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 0\ninstallments = 6\neach = (grant - up_front) / installments # 5000.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0071592
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Convert 3 h 24 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 24 total_minutes = hours * 60 + minutes # 204 print(total_minutes) ``` (Result: 204) That is 204 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Convert 3 h 24 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 24\ntotal_minutes = hours * 60 + minutes # 204\nprint(total_minut...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0071593
<|start|><|user|> Rafael buys 3 boxes of 24 labels each and gives away 9 labels. How many labels are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 24 given_away = 9 left = boxes * per_box - given_away # 63 print(left) ``` Running this gives: 63 That leaves 63 labels.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rafael buys 3 boxes of 24 labels each and gives away 9 labels. How many labels are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 24\ngiven_away = 9\nleft = boxes * per_box - given_away # 63\nprint(left)\n```\nRunning this gives: 63\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0071594
A car travels 438 miles in 1.5 hours. What is its average speed in miles per hour? Set it up in Python: ```python distance = 438 hours = 1.5 speed = distance / hours # 292.0 print(round(speed)) ``` Interpreter output: 292 The average speed is 292 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "292", "printed": "292", "notation": null}
nlprog_det-setting-0071595
<|start|><|user|> Parking is $2 per hour with a daily maximum of $18. What do 11 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 11 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` This prints 18, as expected. Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $18. What do 11 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 11\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nThis prints 18, as expected.\n\nParking co...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0071596
A 12-month warranty starts on November 10, 2023. On what date does it end? Program: ```python from datetime import date start = date(2023, 11, 10) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Console output:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2024-11-10", "printed": "2024-11-10", "notation": null}
nlprog_det-setting-0071597
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> At $0.70 per mile, what is the reimbursement for 108 miles?<|eot|> <|assistant|> ```python miles = 108 rate = 0.7 reimbursement = miles * rate # 75.6 print(f"{reimbursement:.2f}") ``` The program prints: 75.60 Grace is owed $75.60.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 108 miles?" }, { "role": "assistant", "content": "```python\nmiles = 108\nrate = 0.7\nreimbursement = miles * rate # 75.6\nprint(f\"{reimbursem...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "75.60", "printed": "75.60", "notation": null}
nlprog_det-setting-0071598
A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 192.0 payment = (principal + interest) / months # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0071599
<|start|><|user|> 35 of 50 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 35 total = 50 percent = present / total * 100 print(round(percent, 1)) ``` (Program output: 70.0) Attendance was 70.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "35 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 35\ntotal = 50\npercent = present / total * 100\nprint(round(percent, 1))\n```\n(Program output: 70.0)\n\nAttendance was 70.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0071600
Yara buys 9 boxes of 10 toner kits each and gives away 20 toner kits. How many toner kits are left? Coded up: boxes = 9 per_box = 10 given_away = 20 left = boxes * per_box - given_away # 70 print(left) Running this gives 70. 70 toner kits are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0071601
<|start|><|user|> From a $7,500 retainer, 11 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> retainer = 7500 hours = 11 rate = 200 left = retainer - hours * rate print(left) The printout reads 5300. $5,300 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $7,500 retainer, 11 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": " retainer = 7500\n hours = 11\n rate = 200\n left = retainer - hours * rate\n print(left)\nThe printout reads 5300.\n\n$5,300 of the re...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "5300", "printed": "5300", "notation": null}
nlprog_det-setting-0071602
What is the total rent on a 24-month lease at $975 a month? The computation: ```python monthly_rent = 975 months = 24 total = monthly_rent * months # 23400 print(total) ``` Run result: 23400 The rent over the term is $23,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "23400", "printed": "23400", "notation": null}
nlprog_det-setting-0071603
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A penalty of $50 a day ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0071604
<|start|><|user|> What does $5,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 5306.040000000001 print(f"{value:.2f}") ``` Console: 5306.04 It is worth $5,306.04.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 5306.040000000001\nprint(f\"{value:.2f}\")\n```\nConsole:\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "5306.04", "printed": "5306.04", "notation": null}
nlprog_det-setting-0071605
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 49 miles?<|eot|> <|assistant|> The reimbursement is $28.42.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 49 miles?" }, { "role": "assistant", "content": "The reimbursement is $28.42." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "28.42", "printed": "28.42", "notation": null}
nlprog_det-setting-0071606
A $24,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment? Program: ```python grant = 24000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 5250.0 print(f"{each:.2f}") ``` Shell output — 5250.00 $5,250.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0071607
<|start|><|system|> The following tools are available. Call one when it helps. [{"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":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0071609
At $0.70 per mile, what is the reimbursement for 305 miles? ```python miles = 305 rate = 0.7 reimbursement = miles * rate # 213.5 print(f"{reimbursement:.2f}") ``` Running it prints 213.50. The reimbursement is $213.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "213.50", "printed": "213.50", "notation": null}
nlprog_det-setting-0071610
<|start|><|user|> From a $10,000 retainer, 3 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 3 rate = 250 left = retainer - hours * rate # 9250 print(left) ``` Printed: 9250 The remaining balance is $9,250.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 3 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 3\nrate = 250\nleft = retainer - hours * rate # 9250\nprint(left)\n```\nPrinted: 9250\n\nThe remaining balance i...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "9250", "printed": "9250", "notation": null}
nlprog_det-setting-0071611
One can of paint covers 300 square feet. How many cans are needed for 767 square feet of wall? As Python: ```python import math area = 767 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Run output: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0071612
<|start|><|user|> 3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 94.39999999999999 print(f"{each:.2f}") ``` # console output: 94.40 Each person pays $94.40.<|eot|> <|end...
chat
[ { "role": "user", "content": "3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 94.39999999999999\nprint(f\"{each:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "94.40", "printed": "94.40", "notation": null}
nlprog_det-setting-0071613
<|start|><|user|> A meal costs $177.05. How much is a 15% tip?<|eot|> <|assistant|> The tip is $26.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $177.05. How much is a 15% tip?" }, { "role": "assistant", "content": "The tip is $26.56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "26.56", "printed": "26.56", "notation": null}
nlprog_det-setting-0071614
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> 2 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 2 # 225...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "2 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 25...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0071615
At an exchange rate of 0.74 EUR per USD, how many EUR is 6,127 USD? The computation: ```python amount = 6127 rate = 0.74 converted = amount * rate # 4533.98 print(f"{converted:.2f}") ``` stdout: 4533.98 That is 4,533.98 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4533.98", "printed": "4533.98", "notation": null}
nlprog_det-setting-0071617
Fines run at $50 per day up to a maximum of $1,000. How much after 19 days? The program: ```python per_day = 50 days = 19 cap = 1000 fine = min(per_day * days, cap) # 950 print(fine) ``` It prints 950, as expected. The fine is $950.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "950", "printed": "950", "notation": null}
nlprog_det-setting-0071618
<|start|><|user|> Sales went from 2,000 to 1,500. What is the percent change?<|eot|> <|assistant|> old = 2000 new = 1500 change = (new - old) / old * 100 # -25.0 print(round(change)) Run output: -25 The change is -25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,000 to 1,500. What is the percent change?" }, { "role": "assistant", "content": " old = 2000\n new = 1500\n change = (new - old) / old * 100 # -25.0\n print(round(change))\nRun output: -25\n\nThe change is -25%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0071619
A quorum is 3/5 of the 52 members, rounded up. How many members make a quorum? In code: ```python import math members = 52 quorum = math.ceil(members * 3 / 5) # 32 print(quorum) ``` Printed: 32 32 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0071620
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 115-page copy cost? Python, step by step: ```python pages = 115 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 67.5 print(f"{cost:.2f}") ``` # console output: 67.50 The total is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0071621
A $60,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment? Python version: ```python grant = 60000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 4500.0 print(f"{each:.2f}") ``` Console: 4500.00 $4,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0071622
How many 2-foot square tiles cover a 12 ft by 8 ft floor (round up)? Computing it: ```python import math length = 12 width = 8 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 24 print(tiles) ``` # console output: 24 It takes 24 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071623
Prorate $2,400 of monthly rent for 5 days of a 30-day month. We write it as a program: ```python rent = 2400 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 400.0 print(f"{prorated:.2f}") ``` That prints 400.00. The prorated rent is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0071625
A bicycle helmet costs $120. It is 20% off. What is the sale price? The Python version: ```python price = 120 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 96.0 print(f"{sale_price:.2f}") ``` Running this gives 96.00. It costs $96.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0071626
The meal allowance is $69 per day. What is it for 9 days? Code: ```python days = 9 meal_rate = 69 total = days * meal_rate print(total) ``` Interpreter output: 621 The allowance is $621.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "621", "printed": "621", "notation": null}
nlprog_det-setting-0071627
<|start|><|system|> You may call the tools below. {"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": "python", "description": "Runs...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": [\"titl...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0071628
<|start|><|user|> A 912-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 912 days = 19 per_day = pages // days # 48 print(per_day) ``` Output = 48 48 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 912-page report must be reviewed in 19 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 912\ndays = 19\nper_day = pages // days # 48\nprint(per_day)\n```\nOutput = 48\n\n48 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0071629
<|start|><|user|> Count 45 days forward from November 24, 2020. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 11, 24) # datetime.date(2020, 11, 24) end = start + timedelta(days=45) # datetime.date(2021, 1, 8) print(end.isoformat()) ``` Running it prints 2021...
chat
[ { "role": "user", "content": "Count 45 days forward from November 24, 2020. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 11, 24) # datetime.date(2020, 11, 24)\nend = start + timedelta(days=45) # datetime.date(2021...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-01-08", "printed": "2021-01-08", "notation": null}
nlprog_det-setting-0071630
Parking is $5 per hour with a daily maximum of $24. What do 10 hours cost? Here is the program. ```python rate = 5 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` The program prints: 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0071631
<|start|><|user|> An invoice lists 24 ink cartridges at $12 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 24 unit_price = 12 subtotal = quantity * unit_price # 288 total = subtotal * (1 + 7 / 100) # 308.16 print(f"{total:.2f}") ``` # run result: 308.16 The invoice tota...
chat
[ { "role": "user", "content": "An invoice lists 24 ink cartridges at $12 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 24\nunit_price = 12\nsubtotal = quantity * unit_price # 288\ntotal = subtotal * (1 + 7 / 100) # 308.16\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "308.16", "printed": "308.16", "notation": null}
nlprog_det-setting-0071632
349 files go into boxes of 25. How many boxes does that take? It takes 14 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0071633
5 boxes hold 24 markers each. After 13 are handed out, how many are left? A short script: ```python boxes = 5 per_box = 24 given_away = 13 left = boxes * per_box - given_away # 107 print(left) ``` (Output: 107) That leaves 107 markers.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0071634
Parking is $3 per hour with a daily maximum of $18. What do 3 hours cost? Python version: rate = 3 hours = 3 daily_max = 18 cost = min(rate * hours, daily_max) # 9 print(cost) # printed: 9 The charge is $9.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0071635
Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? Python does the arithmetic: ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` (Out: 33.3) The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0071636
<|start|><|system|> You can call tools. Available tools: {"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word", "desc...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
317
{"gold": "1178", "printed": "1178", "notation": null}
nlprog_det-setting-0071637
Rosa buys 6 boxes of 8 chairs each and gives away 7 chairs. How many chairs are left? Let the code do the arithmetic: ```python boxes = 6 per_box = 8 given_away = 7 left = boxes * per_box - given_away # 41 print(left) ``` Execution result: 41 That leaves 41 chairs.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0071638
<|start|><|user|> Walls total 1263 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1263 coverage = 250 cans = math.ceil(area / coverage) # 6 print(cans) ``` The script prints: 6 6 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1263 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1263\ncoverage = 250\ncans = math.ceil(area / coverage) # 6\nprint(cans)\n```\nThe script prints: 6\n\n6 cans...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0071639
Rania drove 81 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? As a program: miles = 81 rate = 0.67 reimbursement = miles * rate # 54.27 print(f"{reimbursement:.2f}") Printed = 54.27 The reimbursement is $54.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "54.27", "printed": "54.27", "notation": null}
nlprog_det-setting-0071640
An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 2 months? In Python: ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 160.0 print(f"{interest:.2f}") ``` The code prints 160.00. The interest is $160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0071641
How much sales tax is charged on a $338.86 purchase at 9%? As a program: ```python price = 338.86 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 30.4974 print(f"{tax:.2f}") ``` Execution result: 30.50 The tax is $30.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "30.50", "printed": "30.50", "notation": null}