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-0068847
A hall has 17 rows of 10 seats, and 23 seats are empty. How many people are seated? A Python solution: ```python rows = 17 per_row = 10 empty = 23 seated = rows * per_row - empty # 147 print(seated) ``` Printed result: 147 147 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0068848
One can of paint covers 350 square feet. How many cans are needed for 804 square feet of wall? Python code: import math area = 804 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) When run, it prints: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0068850
471 files go into boxes of 24. How many boxes does that take? Written as code: ```python import math files = 471 per_box = 24 boxes = math.ceil(files / per_box) # 20 print(boxes) ``` Run output: 20 20 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0068852
A pack of 12 chairs sells for $468. What does each cost? The computation: ```python total = 468 count = 12 per_item = total // count # 39 print(per_item) ``` Python prints: 39 The unit price is $39.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0068853
A 5% increase is applied to $2,200 monthly rent. What is the new amount? Programmatically: ```python rent = 2200 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 2310.0 print(f"{new_rent:.2f}") ``` On running, it outputs: 2310.00 The new rent is $2,310.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0068854
<|start|><|user|> If a 135-minute hearing begins at 8:00 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 8 * 60 + 0 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The script prints 10:15 AM. It ends at 10:15 AM.<|eot|...
chat
[ { "role": "user", "content": "If a 135-minute hearing begins at 8:00 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 0\nend = start + 135\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "10:15 AM", "printed": "10:15 AM", "notation": null}
nlprog_det-setting-0068855
A claim accrued on May 27, 2019. The limitations period is 5 years. On what date does it expire? Programmatically: ```python from datetime import date accrued = date(2019, 5, 27) # datetime.date(2019, 5, 27) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 5, 27) print(expires.iso...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2024-05-27", "printed": "2024-05-27", "notation": null}
nlprog_det-setting-0068856
<|start|><|user|> A shift starts at 9:15 AM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 9 * 60 + 15 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Interpreter output — 9:40 AM The shift finishes at 9:40 A...
chat
[ { "role": "user", "content": "A shift starts at 9:15 AM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 15\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9:40 AM", "printed": "9:40 AM", "notation": null}
nlprog_det-setting-0068857
2 books come back 7 days late, at $0.20 a day each. What is the fine? One way, in code: ```python per_day = 0.2 days_late = 7 books = 2 fine = per_day * days_late * books # 2.8000000000000003 print(f"{fine:.2f}") ``` # printed result: 2.80 The fine is $2.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2.80", "printed": "2.80", "notation": null}
nlprog_det-setting-0068858
<|start|><|user|> Chen was born on October 1, 1951. How old is Chen on December 10, 2026?<|eot|> <|assistant|> ```python from datetime import date born = date(1951, 10, 1) # datetime.date(1951, 10, 1) on = date(2026, 12, 10) # datetime.date(2026, 12, 10) age = on.year - born.year - ((on.month, on.day) < (born.month, ...
chat
[ { "role": "user", "content": "Chen was born on October 1, 1951. How old is Chen on December 10, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1951, 10, 1) # datetime.date(1951, 10, 1)\non = date(2026, 12, 10) # datetime.date(2026, 12, 10)\nage =...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0068859
A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term? Python, step by step: ```python monthly_rent = 1640 months = 36 total = monthly_rent * months # 59040 print(total) ``` Python prints: 59040 In total, $59,040 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0068860
Fines run at $50 per day up to a maximum of $2,500. How much after 52 days? Script: ```python per_day = 50 days = 52 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Execution result: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0068861
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> The building opened in 2003. How many years had passed by 2022?<|eot|> <|assistant|> ```python start_year = 2003 end_year = 2022 print(end_year - start_year) ``` Executed, it shows: 19 That is 19 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "The building opened in 2003. How many years had passed by 2022?" }, { "role": "assistant", "content": "```python\nstart_year = 2003\nend_year = 2022\nprint(end_year - start_year)\n```\nExecuted, ...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0068862
<|start|><|user|> A recipe for 8 people uses 150 grams of sugar. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 150 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 75 print(scaled) ``` Output — 75 75 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 150 grams of sugar. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 75\nprint(scaled)\n```\nOutput — 75\n\n75 grams...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0068863
<|start|><|user|> A pack of 5 file boxes sells for $40. What does each cost?<|eot|> <|assistant|> ```python total = 40 count = 5 per_item = total // count # 8 print(per_item) ``` # stdout: 8 Each one costs $8.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 file boxes sells for $40. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 40\ncount = 5\nper_item = total // count # 8\nprint(per_item)\n```\n# stdout: 8\n\nEach one costs $8." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068864
<|start|><|system|> You can call tools. Available tools: [{"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": "py_exec", "descripti...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\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
[]
[]
324
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0068865
A lawyer's fee is 33% of a $150,000 recovery. How large is the fee? Programmatically: ```python recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") ``` # printed result: 49500.00 The fee is $49,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0068866
A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share? ```python bill = 150 tip_rate = 15 / 100 people = 6 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Run result — 28.75 Each person pays $28.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "28.75", "printed": "28.75", "notation": null}
nlprog_det-setting-0068867
<|start|><|user|> Shipping costs $10 plus $2.50 per pound. What does a 9-pound parcel cost to ship?<|eot|> <|assistant|> base = 10 per_pound = 2.5 weight = 9 cost = base + per_pound * weight # 32.5 print(f"{cost:.2f}") # output: 32.50 The charge is $32.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $2.50 per pound. What does a 9-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 10\n per_pound = 2.5\n weight = 9\n cost = base + per_pound * weight # 32.5\n print(f\"{cost:.2f}\")\n# output: 32.50\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "32.50", "printed": "32.50", "notation": null}
nlprog_det-setting-0068868
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A meeting lasted 5 hours and 20 minutes. How many minutes is that?<|eot|> <|assistant|> That is 320 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A meeting lasted 5 hours and 20 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 320 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0068869
2.5 hours of work at $150 an hour: what is the total charge? The bill is $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0068870
A shift runs from 7:10 AM to 9:32 AM. How long is it in minutes? In code: start = 7 * 60 + 10 end = 9 * 60 + 32 print(end - start) (Output: 142) 142 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0068871
A claim accrued on August 18, 2017. The limitations period is 6 years. On what date does it expire? Computing it: ```python from datetime import date accrued = date(2017, 8, 18) # datetime.date(2017, 8, 18) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 8, 18) print(expires.isof...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2023-08-18", "printed": "2023-08-18", "notation": null}
nlprog_det-setting-0068872
The paralegal logged 2 hours at a rate of $150. How much is billed? As a program: ```python hours = 2 rate = 150 bill = hours * rate # 300 print(f"{bill:.2f}") ``` # out: 300.00 That comes to $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0068873
<|start|><|user|> Filing fees are $150 per document. What do 4 filings cost?<|eot|> <|assistant|> ```python fee = 150 filings = 4 total = fee * filings # 600 print(total) ``` Output of the run — 600 $600 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $150 per document. What do 4 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 150\nfilings = 4\ntotal = fee * filings # 600\nprint(total)\n```\nOutput of the run — 600\n\n$600 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0068874
With 16 rows of 14 chairs and 13 empty chairs, how many chairs are taken? A short script: rows = 16 per_row = 14 empty = 13 seated = rows * per_row - empty # 211 print(seated) Execution result — 211 211 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0068875
Convert 91 km to meters. A short script: ```python km = 91 meters = km * 1000 # 91000 print(round(meters)) ``` # result: 91000 That is 91,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "91000", "printed": "91000", "notation": null}
nlprog_det-setting-0068876
<|start|><|user|> A recipe for 2 people uses 100 grams of pasta. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 100 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 200 print(scaled) ``` # execution result: 200 Use 200 g of pasta.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 100 grams of pasta. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 2\nneeded_for = 4\nscaled = grams * needed_for // serves # 200\nprint(scaled)\n```\n# execution result: 20...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0068877
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A penalty of $250 a day accrues, capped at $1,000. What is owed after 32 days?<|eot|> <|assistant|> ```python per_day = 250 days = 32 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` # program output: 1000 $1,000 is owed.<|e...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A penalty of $250 a day accrues, capped at $1,000. What is owed after 32 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 32\ncap = 1000\nfine = min...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0068878
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Parking is $5 pe...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0068879
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 50 days?<|eot|> <|assistant|> ```python per_day = 100 days = 50 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Run output — 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 50 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 50\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nRun output — 2500\n\n$2,500 is owed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0068880
<|start|><|user|> With 20% off, what does a $40 bicycle helmet cost?<|eot|> <|assistant|> ```python price = 40 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 32.0 print(f"{sale_price:.2f}") ``` stdout = 32.00 The sale price is $32.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $40 bicycle helmet cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 32.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout = 32.00\n\nThe sale price is $32.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0068881
<|start|><|user|> A meeting lasted 1 hours and 43 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 43 total_minutes = hours * 60 + minutes # 103 print(total_minutes) ``` Printed: 103 That is 103 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 1 hours and 43 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 43\ntotal_minutes = hours * 60 + minutes # 103\nprint(total_minutes)\n```\nPrinted: 103\n\nThat is 103 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "103", "printed": "103", "notation": null}
nlprog_det-setting-0068882
<|start|><|system|> You may call the tools below. {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "business_days", "description": "Count business days between two da...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"business_da...
nlprog_det
setting
original
null
deterministic
[]
[]
428
{"gold": "2025-06-17", "printed": "2025-06-17", "notation": null}
nlprog_det-setting-0068883
A hall has 17 rows of 22 seats, and 15 seats are empty. How many people are seated? Python does the arithmetic: ```python rows = 17 per_row = 22 empty = 15 seated = rows * per_row - empty # 359 print(seated) ``` It outputs: 359 359 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "359", "printed": "359", "notation": null}
nlprog_det-setting-0068884
<|start|><|user|> A 8% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") (Execution result: 1350.00) The new rent is $1,350.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 1250\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1350.0\n print(f\"{new_rent:.2f}\")\n(Execution result: 1350.0...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0068885
Priya lends $5,000 at 3% simple interest per year for 3 years. How much interest is earned? The interest is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0068887
<|start|><|user|> Convert 1 h 7 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 1 minutes = 7 total_minutes = hours * 60 + minutes # 67 print(total_minutes) ``` # program output: 67 That is 67 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1 h 7 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 7\ntotal_minutes = hours * 60 + minutes # 67\nprint(total_minutes)\n```\n# program output: 67\n\nThat is 67 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0068888
Counting only Monday through Friday, how many business days are there after November 23, 2018 through December 15, 2018? Set it up in Python: ```python from datetime import date, timedelta start = date(2018, 11, 23) end = date(2018, 12, 15) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0068890
<|start|><|user|> Express 130 hours in days and hours.<|eot|> <|assistant|> hours = 130 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") # result: 5 days and 10 hours That is 5 days and 10 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 130 hours in days and hours." }, { "role": "assistant", "content": " hours = 130\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\n# result: 5 days and 10 hours\n\nThat is 5 days and 10 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "5 days and 10 hours", "printed": "5 days and 10 hours", "notation": null}
nlprog_det-setting-0068891
A storeroom has 1862 scissors. The office uses 26 a day. How many are left after 14 days? In code: ```python stock = 1862 per_day = 26 days = 14 left = stock - per_day * days # 1498 print(left) ``` (Run result: 1498) 1498 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1498", "printed": "1498", "notation": null}
nlprog_det-setting-0068892
What is 40 degrees Celsius in Fahrenheit? Set it up in Python: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Shell output — 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0068893
A class starts at 4:10 PM and lasts 50 minutes. When does it end? A Python solution: ```python start = 16 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Program output: 5:00 PM) It ends at 5:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5:00 PM", "printed": "5:00 PM", "notation": null}
nlprog_det-setting-0068894
A settlement of $15,000 is split equally among 6 parties. How much does each party receive? Computing it: ```python settlement = 15000 parties = 6 share = settlement // parties # 2500 print(share) ``` stdout: 2500 Each share is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0068895
<|start|><|user|> A 6-month warranty starts on July 27, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 7, 27) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()...
chat
[ { "role": "user", "content": "A 6-month warranty starts on July 27, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 7, 27)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.year...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2021-01-27", "printed": "2021-01-27", "notation": null}
nlprog_det-setting-0068896
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Starting with 1143 mugs and using 19 per day, how many remain after 8 days?<|eot|> <|assistant|> 991 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Starting with 1143 mugs and using 19 per day, how many remain after 8 days?" }, { "role": "assistant", "content": "991 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "991", "printed": "991", "notation": null}
nlprog_det-setting-0068897
A film lasted 2 hours and 29 minutes. How many minutes is that? Script: ```python hours = 2 minutes = 29 total_minutes = hours * 60 + minutes # 149 print(total_minutes) ``` (stdout: 149) The film lasted 149 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0068898
<|start|><|system|> Functions: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Under a 30% contingency agreement, wh...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0068899
What commission does Maren make on $53,566 in sales at 4%? We write it as a program: ```python sales = 53566 rate = 4 / 100 # 0.04 commission = sales * rate # 2142.64 print(f"{commission:.2f}") ``` Execution prints: 2142.64 Maren earns $2,142.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2142.64", "printed": "2142.64", "notation": null}
nlprog_det-setting-0068900
From a $10,000 retainer, 8 hours at $275/hour have been drawn. What remains? As Python: retainer = 10000 hours = 8 rate = 275 left = retainer - hours * rate # 7800 print(left) # output: 7800 The remaining balance is $7,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "7800", "printed": "7800", "notation": null}
nlprog_det-setting-0068901
An office budget of $25,000 has expenses of $1,190, $2,681, $1,289, $1,499. How much of the budget is left? Python version: ```python budget = 25000 expenses = [1190, 2681, 1289, 1499] left = budget - sum(expenses) # 18341 print(left) ``` Run result = 18341 $18,341 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "18341", "printed": "18341", "notation": null}
nlprog_det-setting-0068902
A storeroom has 1899 file boxes. The office uses 22 a day. How many are left after 19 days? In Python: ```python stock = 1899 per_day = 22 days = 19 left = stock - per_day * days # 1481 print(left) ``` # printed result: 1481 1481 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1481", "printed": "1481", "notation": null}
nlprog_det-setting-0068904
Straight-line depreciation: cost $12,000, salvage $2,000, 4 years. How much per year? $2,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0068905
A 510-page report must be reviewed in 10 days. How many pages a day is that, evenly? Python code: ```python pages = 510 days = 10 per_day = pages // days # 51 print(per_day) ``` # run result: 51 51 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0068906
Emeka was born on April 14, 1971. How old is Emeka on February 8, 2022? Computation in Python: ```python from datetime import date born = date(1971, 4, 14) # datetime.date(1971, 4, 14) on = date(2022, 2, 8) # datetime.date(2022, 2, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 50 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0068907
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "convert_units", "description": "Co...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
423
{"gold": "16.10", "printed": "16.10", "notation": null}
nlprog_det-setting-0068908
<|start|><|user|> A storeroom has 1974 toner kits. The office uses 33 a day. How many are left after 12 days?<|eot|> <|assistant|> ```python stock = 1974 per_day = 33 days = 12 left = stock - per_day * days # 1578 print(left) ``` The printout reads 1578. 1578 toner kits are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1974 toner kits. The office uses 33 a day. How many are left after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 1974\nper_day = 33\ndays = 12\nleft = stock - per_day * days # 1578\nprint(left)\n```\nThe printout reads 1578.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1578", "printed": "1578", "notation": null}
nlprog_det-setting-0068909
Scale 300 g of flour from 8 servings to 6 servings. Python does the arithmetic: ```python grams = 300 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 225 print(scaled) ``` Result = 225 225 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0068910
If a 25-minute seminar begins at 2:20 PM, what time does it finish? A short script: start = 14 * 60 + 20 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Printed result — 2:45 PM It ends at 2:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2:45 PM", "printed": "2:45 PM", "notation": null}
nlprog_det-setting-0068911
<|start|><|user|> At 2% a month (simple), what interest builds on $2,500 over 2 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") ``` Run result = 100.00 $100.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $2,500 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 100.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0068912
Split $994 between Hugo and Beatriz in the ratio 3 to 4. What is Hugo's share? Hugo's share is $426.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "426", "printed": "426", "notation": null}
nlprog_det-setting-0068913
A storeroom has 823 tape rolls. The office uses 14 a day. How many are left after 11 days? Python does the arithmetic: ```python stock = 823 per_day = 14 days = 11 left = stock - per_day * days # 669 print(left) ``` # program output: 669 669 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "669", "printed": "669", "notation": null}
nlprog_det-setting-0068914
117 copies of a 37-page packet are printed at $0.12 per page. What is the cost? In Python: ```python pages = 37 copies = 117 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 519.48 print(f"{cost:.2f}") ``` The run gives: 519.48 The job costs $519.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "519.48", "printed": "519.48", "notation": null}
nlprog_det-setting-0068915
<|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": "run_python", "description": "Evaluates Python and returns the printed output.", "parameter...
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\"]}}\n{\"name\": \"run_python\", \"description\": \"Ev...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0068916
<|start|><|system|> You help with homework problems.<|eot|> <|user|> If a 25-minute seminar begins at 1:00 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 13 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Outpu...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "If a 25-minute seminar begins at 1:00 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 0\nend = start + 25\nhour, minute = divmod(end, 6...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1:25 PM", "printed": "1:25 PM", "notation": null}
nlprog_det-setting-0068917
Quinn drove 78 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Translated to Python: ```python miles = 78 rate = 0.67 reimbursement = miles * rate # 52.260000000000005 print(f"{reimbursement:.2f}") ``` Run it and it prints: 52.26 Quinn is owed $52.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "52.26", "printed": "52.26", "notation": null}
nlprog_det-setting-0068918
Count the days between March 24, 2021 and May 30, 2021. Script: ```python from datetime import date first = date(2021, 3, 24) # datetime.date(2021, 3, 24) second = date(2021, 5, 30) # datetime.date(2021, 5, 30) print((second - first).days) ``` Shell output — 67 There are 67 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0068919
<|start|><|system|> Available functions (JSON Schema): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "509", "printed": "509", "notation": null}
nlprog_det-setting-0068920
<|start|><|system|> Available functions (JSON Schema): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"get_weather\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
358
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0068921
$10,000 is invested at 3% compounded yearly. What is it worth after 3 years? Program: ```python principal = 10000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 10927.27 print(f"{value:.2f}") ``` Printed: 10927.27 It is worth $10,927.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "10927.27", "printed": "10927.27", "notation": null}
nlprog_det-setting-0068922
<|start|><|user|> Copies cost $15 plus $0.10 for each page beyond 20. How much for 107 pages?<|eot|> <|assistant|> ```python pages = 107 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` # out: 23.70 The total is $23.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 107 pages?" }, { "role": "assistant", "content": "```python\npages = 107\nbase = 15\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page\nprint(f\"{cost:.2f}\")\n```\n#...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "23.70", "printed": "23.70", "notation": null}
nlprog_det-setting-0068923
<|start|><|user|> Emeka earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?<|eot|> <|assistant|> ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` Out = 760.00 ...
chat
[ { "role": "user", "content": "Emeka earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 45\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 120.0\npay = regula...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0068924
Starting from $20,000, the team spends $1,843, $3,207. What remains? As a program: ```python budget = 20000 expenses = [1843, 3207] left = budget - sum(expenses) # 14950 print(left) ``` Execution prints: 14950 $14,950 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "14950", "printed": "14950", "notation": null}
nlprog_det-setting-0068925
Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year? As Python: ```python cost = 12000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` This prints: 3000.00 $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0068926
An attorney bills 10.5 hours at $300 per hour. What is the bill? In Python: ```python hours = 10.5 rate = 300 bill = hours * rate # 3150.0 print(f"{bill:.2f}") ``` On running, it outputs: 3150.00 The bill is $3,150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3150.00", "printed": "3150.00", "notation": null}
nlprog_det-setting-0068927
A hall has 29 rows of 21 seats, and 35 seats are empty. How many people are seated? Here is the program. ```python rows = 29 per_row = 21 empty = 35 seated = rows * per_row - empty # 574 print(seated) ``` Printed: 574 574 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "574", "printed": "574", "notation": null}
nlprog_det-setting-0068928
<|start|><|user|> From 2010 to 2035, how many years is that?<|eot|> <|assistant|> start_year = 2010 end_year = 2035 print(end_year - start_year) This prints 25, as expected. 25 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2010 to 2035, how many years is that?" }, { "role": "assistant", "content": " start_year = 2010\n end_year = 2035\n print(end_year - start_year)\nThis prints 25, as expected.\n\n25 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0068929
<|start|><|user|> Nikhil was born on March 17, 1978. How old is Nikhil on June 7, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1978, 3, 17) # datetime.date(1978, 3, 17) on = date(2024, 6, 7) # datetime.date(2024, 6, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
chat
[ { "role": "user", "content": "Nikhil was born on March 17, 1978. How old is Nikhil on June 7, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1978, 3, 17) # datetime.date(1978, 3, 17)\non = date(2024, 6, 7) # datetime.date(2024, 6, 7)\nage = on.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0068930
If a 6-year limitations period starts on March 11, 2014, when does it end? It runs out on March 11, 2020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "2020-03-11", "printed": "2020-03-11", "notation": null}
nlprog_det-setting-0068931
<|start|><|user|> An office budget of $12,000 has expenses of $3,264, $1,816. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [3264, 1816] left = budget - sum(expenses) # 6920 print(left) ``` Output of the run: 6920 The remaining budget is $6,920.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $3,264, $1,816. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [3264, 1816]\nleft = budget - sum(expenses) # 6920\nprint(left)\n```\nOutput of the run: 6920\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6920", "printed": "6920", "notation": null}
nlprog_det-setting-0068932
A recipe for 2 people uses 200 grams of rice. How many grams are needed for 10 people? We write it as a program: ```python grams = 200 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 1000 print(scaled) ``` This prints 1000, as expected. 1000 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0068933
One can of paint covers 400 square feet. How many cans are needed for 257 square feet of wall? Python makes this quick: ```python import math area = 257 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` The script prints 1, as expected. 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0068934
Pack A has 12 items for $10.07. Pack B has 30 items for $25.57. Which has the lower price per item? Set it up in Python: ```python pack_a = 10.07 / 12 # 0.8391666666666667 pack_b = 25.57 / 30 # 0.8523333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` On running, it outputs: A A has the...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0068935
<|start|><|user|> Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> Each payment is $540.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "Each payment is $540.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0068936
A count moves from 800 to 400. By what percent did it change (use a minus sign for a drop)? Here is a short program for it. ```python old = 800 new = 400 change = (new - old) / old * 100 print(round(change)) ``` Running this gives: -50 The change is -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0068937
At $0.70 per mile, what is the reimbursement for 42 miles? We write it as a program: ```python miles = 42 rate = 0.7 reimbursement = miles * rate # 29.4 print(f"{reimbursement:.2f}") ``` Run result: 29.40 Rosa is owed $29.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "29.40", "printed": "29.40", "notation": null}
nlprog_det-setting-0068938
<|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": "define_word", "descri...
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
[]
[]
356
{"gold": "22700", "printed": "22700", "notation": null}
nlprog_det-setting-0068939
A 3% increase is applied to $900 monthly rent. What is the new amount? Programmatically: ```python rent = 900 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 927.0 print(f"{new_rent:.2f}") ``` Out: 927.00 The new rent is $927.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "927.00", "printed": "927.00", "notation": null}
nlprog_det-setting-0068940
<|start|><|user|> Cyrus was born on February 3, 2008. How old is Cyrus on August 19, 2030?<|eot|> <|assistant|> ```python from datetime import date born = date(2008, 2, 3) # datetime.date(2008, 2, 3) on = date(2030, 8, 19) # datetime.date(2030, 8, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
chat
[ { "role": "user", "content": "Cyrus was born on February 3, 2008. How old is Cyrus on August 19, 2030?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2008, 2, 3) # datetime.date(2008, 2, 3)\non = date(2030, 8, 19) # datetime.date(2030, 8, 19)\nage = on...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0068941
<|start|><|user|> Farah earns a 3% commission on $63,362 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 63362 rate = 3 / 100 # 0.03 commission = sales * rate # 1900.86 print(f"{commission:.2f}") ``` Output: 1900.86 The commission is $1,900.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Farah earns a 3% commission on $63,362 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 63362\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1900.86\nprint(f\"{commission:.2f}\")\n```\nOutput: 1900.86\n\nThe commissi...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1900.86", "printed": "1900.86", "notation": null}
nlprog_det-setting-0068942
Copies cost $5 plus $0.25 for each page beyond 0. How much for 91 pages? Let the code do the arithmetic: ```python pages = 91 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 27.75 print(f"{cost:.2f}") ``` stdout: 27.75 The copy costs $27.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "27.75", "printed": "27.75", "notation": null}
nlprog_det-setting-0068943
2 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Python: ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 2 # 27000.0 print(f"{per_client:.2f}") ``` Out: 27000.00 Each client gets $27,000.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0068944
<|start|><|user|> A water bill is $12 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 24 thousand gallons?<|eot|> <|assistant|> base = 12 rate = 5.1 used = 24 free = 2 bill = base + rate * max(0, used - free) # 124.19999999999999 print(f"{bill:.2f}") Run result...
chat
[ { "role": "user", "content": "A water bill is $12 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 24 thousand gallons?" }, { "role": "assistant", "content": " base = 12\n rate = 5.1\n used = 24\n free = 2\n bill = base + rate * max(0, used - free)...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "124.20", "printed": "124.20", "notation": null}
nlprog_det-setting-0068945
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 360.0 print(f"{prorated:.2f}") ``` That prints: 360.00 The tenant...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month # 360.0\np...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0068946
Buying 1 envelopes at $14 each, 2 keyboards at $14 each, someone hands over $50. What change comes back? Python: ```python items = [(1, 14), (2, 14)] total = sum(q * p for q, p in items) # 42 paid = 50 change = paid - total # 8 print(change) ``` Executed, it shows: 8 The change is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068947
3 claimants share a $15,000 settlement equally. What is each share? ```python settlement = 15000 parties = 3 share = settlement // parties print(share) ``` On running, it outputs 5000. Each share is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0068948
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year? ```python cost = 30000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 4500.0 print(f"{per_year:.2f}") ``` When run, it prints: 4500.00 $4,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0068949
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A 36-month warranty starts on April...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
264
{"gold": "2022-04-11", "printed": "2022-04-11", "notation": null}
nlprog_det-setting-0068950
<|start|><|user|> How many units at $40 each (variable cost $30) cover $2,500 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) print(units) ``` Output — 250 250 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $30) cover $2,500 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nOutput — 250\n\n250 ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0068951
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> 3 swims at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) ``` The program prints: 1050 That burns 1050 calories.<|eot|...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "3 swims at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 3\ntotal = per_session * sess...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1050", "printed": "1050", "notation": null}