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-0076672
<|start|><|system|> Available functions (JSON Schema): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "code_runner", "description": "Executes Python code and returns stdout.", "param...
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\"]}}, {\"name\": \"code_runner\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0076673
Fixed costs are $9,000. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even? Here is a short program for it. ```python import math fixed = 9000 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` On running, it outputs 900. 900 units are ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0076674
<|start|><|system|> You have access to these functions: [{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing"...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0076675
<|start|><|system|> You can call tools. Available tools: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "convert_units"...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "2450.00", "printed": "2450.00", "notation": null}
nlprog_det-setting-0076676
<|start|><|user|> Someone works 12 hours at $15.31 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 15.31 hours = 12 earnings = rate * hours print(f"{earnings:.2f}") ``` Python prints 183.72, as expected. The pay is $183.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $15.31 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 15.31\nhours = 12\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nPython prints 183.72, as expected.\n\nThe pay is $183.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "183.72", "printed": "183.72", "notation": null}
nlprog_det-setting-0076677
<|start|><|user|> A $9,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 1080.0 paymen...
chat
[ { "role": "user", "content": "A $9,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "420.00", "printed": "420.00", "notation": null}
nlprog_det-setting-0076678
<|start|><|user|> With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 5000 costs = 4000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Output of the run — 20.0 Profit is 20.0%...
chat
[ { "role": "user", "content": "With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 5000\ncosts = 4000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 20.0\nprint(roun...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0076679
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term? Translated to Python: ```python monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) ``` (Printed result: 30600) The rent over the term is $30,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0076681
<|start|><|user|> A meal costs $249.31. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 249.31 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 54.8482 print(f"{tip:.2f}") ``` Executing it gives: 54.85 The tip is $54.85.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $249.31. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 249.31\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 54.8482\nprint(f\"{tip:.2f}\")\n```\nExecuting it gives: 54.85\n\nThe tip is $54.85." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "54.85", "printed": "54.85", "notation": null}
nlprog_det-setting-0076682
What day of the week is December 28, 2017? The program: ```python from datetime import date hearing = date(2017, 12, 28) # datetime.date(2017, 12, 28) print(hearing.strftime("%A")) ``` (Printed: Thursday) It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0076683
<|start|><|user|> Convert 73.6 km to meters.<|eot|> <|assistant|> km = 73.6 meters = km * 1000 # 73600.0 print(round(meters)) # printed: 73600 73,600 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 73.6 km to meters." }, { "role": "assistant", "content": " km = 73.6\n meters = km * 1000 # 73600.0\n print(round(meters))\n# printed: 73600\n\n73,600 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "73600", "printed": "73600", "notation": null}
nlprog_det-setting-0076684
Lucia earns a 10% commission on $64,067 of sales. What is the commission? Code: ```python sales = 64067 rate = 10 / 100 # 0.1 commission = sales * rate # 6406.700000000001 print(f"{commission:.2f}") ``` When run, it prints: 6406.70 Lucia earns $6,406.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "6406.70", "printed": "6406.70", "notation": null}
nlprog_det-setting-0076685
A trial runs from October 4, 2028 to October 21, 2028, counting both days. How many calendar days is that? ```python from datetime import date first = date(2028, 10, 4) # datetime.date(2028, 10, 4) last = date(2028, 10, 21) # datetime.date(2028, 10, 21) days = (last - first).days + 1 # 18 print(days) ``` Printed re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076686
Convert 3,952 USD to EUR at 1 USD = 0.74 EUR. ```python amount = 3952 rate = 0.74 converted = amount * rate # 2924.48 print(f"{converted:.2f}") ``` Printed: 2924.48 That is 2,924.48 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2924.48", "printed": "2924.48", "notation": null}
nlprog_det-setting-0076687
<|start|><|user|> Shipping costs $5 plus $2.50 per pound. What does a 38-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.5 weight = 38 cost = base + per_pound * weight # 100.0 print(f"{cost:.2f}") ``` Run result = 100.00 Shipping costs $100.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.50 per pound. What does a 38-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.5\nweight = 38\ncost = base + per_pound * weight # 100.0\nprint(f\"{cost:.2f}\")\n```\nRun result = 100.00\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0076688
A clerk's office charges $150 for each filing. Reza submits 13 filings. What is the total fee? One way, in code: ```python fee = 150 filings = 13 total = fee * filings # 1950 print(total) ``` Run output — 1950 The filings cost $1,950 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1950", "printed": "1950", "notation": null}
nlprog_det-setting-0076689
After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part? In code: ```python grant = 24000 up_front = 2000 installments = 12 each = (grant - up_front) / installments # 1833.3333333333333 print(f"{each:.2f}") ``` Output of the run — 1833.33 Each installment is $1,833.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1833.33", "printed": "1833.33", "notation": null}
nlprog_det-setting-0076690
A $1,000 security deposit has deductions of $200, $120 and $200. How much is refunded? Python does the arithmetic: ```python deposit = 1000 deductions = [200, 120, 200] refund = deposit - sum(deductions) # 480 print(refund) ``` The program prints 480, as expected. $480 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0076691
123 copies of a 49-page packet are printed at $0.15 per page. What is the cost? The job costs $904.05.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "904.05", "printed": "904.05", "notation": null}
nlprog_det-setting-0076692
<|start|><|user|> Delia lends $1,000 at 3% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 3 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") ``` The program outputs: 60.00 It earns $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Delia lends $1,000 at 3% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 3 / 100\nyears = 2\ninterest = principal * rate * years\nprint(f\"{interest:.2f}\")\n```\nThe progr...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0076693
Find the mean of these test scores: 79, 68, 85, 96 and 67. Here's the code. ```python scores = [79, 68, 85, 96, 67] average = sum(scores) // len(scores) # 79 print(average) ``` On running, it outputs: 79 The mean is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0076694
<|start|><|user|> At 30 miles per hour, how many minutes does a 150-mile trip take?<|eot|> <|assistant|> 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 30 miles per hour, how many minutes does a 150-mile trip take?" }, { "role": "assistant", "content": "300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0076695
<|start|><|user|> 8 claimants share a $4,496 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 4496 parties = 8 share = settlement // parties # 562 print(share) ``` # execution result: 562 Each share is $562.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 claimants share a $4,496 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 4496\nparties = 8\nshare = settlement // parties # 562\nprint(share)\n```\n# execution result: 562\n\nEach share is $562." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0076696
Walls total 135 sq ft and each can covers 400 sq ft. How many cans should be bought? Python, step by step: ```python import math area = 135 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` That prints: 1 Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0076697
Divide 88 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? Let's compute it with Python. ```python total = 88 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout = 29 each, 1 left over 29 each, 1 lef...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "29 each, 1 left over", "printed": "29 each, 1 left over", "notation": null}
nlprog_det-setting-0076698
A measure needs at least 60% of 89 votes. How many votes is that, rounded up? Python makes this quick: ```python import math voters = 89 needed = math.ceil(voters * 60 / 100) # 54 print(needed) ``` Result = 54 At least 54 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0076699
Each of Nilufar's swims burns 250 calories. How many calories over 3 swims? Python version: ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` # output: 750 That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0076700
A $24,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment? Computation in Python: ```python grant = 24000 up_front = 3000 installments = 6 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") ``` The printout reads 3500.00. $3,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0076701
139 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? total = 139 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Output = 46 each, 1 left over 46 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "46 each, 1 left over", "printed": "46 each, 1 left over", "notation": null}
nlprog_det-setting-0076702
<|start|><|user|> What average speed covers 456 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 456 hours = 2 speed = distance / hours # 228.0 print(round(speed)) ``` Running this gives: 228 It averages 228 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 456 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 456\nhours = 2\nspeed = distance / hours # 228.0\nprint(round(speed))\n```\nRunning this gives: 228\n\nIt averages 228 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0076703
A clerk's office charges $35 for each filing. Sami submits 2 filings. What is the total fee? Set it up in Python: fee = 35 filings = 2 total = fee * filings # 70 print(total) Printed result: 70 $70 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0076704
From 2005 to 2029, how many years is that? That is 24 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0076705
The statute was enacted in 2000. How many years had passed by 2025? The Python version: start_year = 2000 end_year = 2025 print(end_year - start_year) Result = 25 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0076706
At 50 miles per hour, how many minutes does a 150-mile trip take? Here is a short program for it. ```python distance = 150 speed = 50 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` Printed: 180 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0076707
<|start|><|user|> Each storage box holds 50 files. How many boxes are needed for 621 files?<|eot|> <|assistant|> ```python import math files = 621 per_box = 50 boxes = math.ceil(files / per_box) # 13 print(boxes) ``` Output = 13 It takes 13 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 621 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 621\nper_box = 50\nboxes = math.ceil(files / per_box) # 13\nprint(boxes)\n```\nOutput = 13\n\nIt takes 13 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0076708
Divide 201 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? Set it up in Python: ```python total = 201 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run result: 33 each, 3 left over The answer: 33 eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "33 each, 3 left over", "printed": "33 each, 3 left over", "notation": null}
nlprog_det-setting-0076709
<|start|><|user|> The statute was enacted in 2005. How many years had passed by 2032?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2032 print(end_year - start_year) ``` Execution prints 27. That is 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2005. How many years had passed by 2032?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2032\nprint(end_year - start_year)\n```\nExecution prints 27.\n\nThat is 27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0076710
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 7500 hours = 10 rate = 250 left = retainer - hours * rate # 5000 print(left) # out: 5000 The remaining balance is $5,000.<|eot|> <|end...
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 7500\n hours = 10\n rate = 250\n left = retainer - hours * rate # 5000\n print(left)\...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0076711
After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part? Each installment is $1,833.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1833.33", "printed": "1833.33", "notation": null}
nlprog_det-setting-0076712
<|start|><|user|> A party has 21 days to respond to a motion served on October 22, 2026, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> The response is due on November 15, 2026.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A party has 21 days to respond to a motion served on October 22, 2026, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "The response is due on November 15, 2026." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "2026-11-15", "printed": "2026-11-15", "notation": null}
nlprog_det-setting-0076713
The rules require 3/5 of 51 members (round up) to be present. How many is that? Python: ```python import math members = 51 quorum = math.ceil(members * 3 / 5) # 31 print(quorum) ``` The program outputs 31. 31 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0076715
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> How much sales tax is charged on a $439.17 purchase at 6%?<|eot|> <|assistant|> ```python price = 439.17 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 26.3502 print(f"{tax:.2f}") ``` Run result = 26.35 $26.35 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "How much sales tax is charged on a $439.17 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 439.17\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 26.3502\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26.35", "printed": "26.35", "notation": null}
nlprog_det-setting-0076717
<|start|><|user|> Scale 240 g of oats from 2 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 240 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 1440 print(scaled) ``` Output — 1440 1440 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 240 g of oats from 2 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 2\nneeded_for = 12\nscaled = grams * needed_for // serves # 1440\nprint(scaled)\n```\nOutput — 1440\n\n1440 grams of oats are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0076718
One can of paint covers 300 square feet. How many cans are needed for 873 square feet of wall? Written as code: ```python import math area = 873 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Output = 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0076719
The rules require 1/3 of 35 members (round up) to be present. How many is that? 12 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0076720
<|start|><|user|> What is 25 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` The run gives: 77 That is 77 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 25 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nThe run gives: 77\n\nThat is 77 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0076721
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Walls total 1299 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1299 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` Result: 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Walls total 1299 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1299\ncoverage = 400\ncans = math...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0076722
Counting the first and last day, how many days are there from January 13, 2027 through January 18, 2027? Python version: from datetime import date first = date(2027, 1, 13) # datetime.date(2027, 1, 13) last = date(2027, 1, 18) # datetime.date(2027, 1, 18) days = (last - first).days + 1 # 6 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0076723
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "Python sandbo...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"na...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0076724
<|start|><|user|> How many minutes pass from 11:39 AM to 5:26 PM on the same day?<|eot|> <|assistant|> start = 11 * 60 + 39 # 699 end = 17 * 60 + 26 # 1046 print(end - start) What it prints — 347 347 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 11:39 AM to 5:26 PM on the same day?" }, { "role": "assistant", "content": " start = 11 * 60 + 39 # 699\n end = 17 * 60 + 26 # 1046\n print(end - start)\nWhat it prints — 347\n\n347 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "347", "printed": "347", "notation": null}
nlprog_det-setting-0076725
<|start|><|user|> From a $10,000 retainer, 13 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 13 rate = 250 left = retainer - hours * rate # 6750 print(left) ``` # run result: 6750 The remaining balance is $6,750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 13 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 13\nrate = 250\nleft = retainer - hours * rate # 6750\nprint(left)\n```\n# run result: 6750\n\nThe remaining ba...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6750", "printed": "6750", "notation": null}
nlprog_det-setting-0076726
<|start|><|user|> What does $1,000 grow to in 5 years at 5% annual compounding?<|eot|> <|assistant|> principal = 1000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 1276.2815625000003 print(f"{value:.2f}") The program outputs 1276.28. It is worth $1,276.28.<|eot|> <|end...
chat
[ { "role": "user", "content": "What does $1,000 grow to in 5 years at 5% annual compounding?" }, { "role": "assistant", "content": " principal = 1000\n rate = 5 / 100 # 0.05\n years = 5\n value = principal * (1 + rate) ** years # 1276.2815625000003\n print(f\"{value:.2f}\")\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1276.28", "printed": "1276.28", "notation": null}
nlprog_det-setting-0076727
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A $1,200 loan carries 10% ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
267
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0076728
Copies cost $5 plus $0.25 for each page beyond 10. How much for 66 pages? The Python version: pages = 66 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 19.0 print(f"{cost:.2f}") Output of the run: 19.00 The total is $19.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "19.00", "printed": "19.00", "notation": null}
nlprog_det-setting-0076729
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> From a $5,000 retainer, 3 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> $4,250 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "From a $5,000 retainer, 3 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "$4,250 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "4250", "printed": "4250", "notation": null}
nlprog_det-setting-0076730
122 copies of a 16-page packet are printed at $0.08 per page. What is the cost? ```python pages = 16 copies = 122 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 156.16 print(f"{cost:.2f}") ``` Execution prints 156.16, as expected. The job costs $156.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "156.16", "printed": "156.16", "notation": null}
nlprog_det-setting-0076731
What day of the week is August 2, 2023? Python, step by step: ```python from datetime import date hearing = date(2023, 8, 2) # datetime.date(2023, 8, 2) print(hearing.strftime("%A")) ``` Output = Wednesday August 2, 2023 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0076732
What percentage of $8,000 is $7,600? As Python: ```python budget = 8000 spent = 7600 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` Python prints 95.0, as expected. 95.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0076734
Monthly rent is $1,200. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent? Program: rent = 1200 days_in_month = 31 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 387.0967741935484 print(f"{prorated:.2f}") Result: 387.10 The prorated rent is $38...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0076735
31 of 40 members attended. What percent attended? 77.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0076736
At 40 miles per hour, how many minutes does a 80-mile trip take? Written as code: ```python distance = 80 speed = 40 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` Output: 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0076737
The landlord deducts $85 and $200 from a $2,000 deposit. What is returned to the tenant? Python version: ```python deposit = 2000 deductions = [85, 200] refund = deposit - sum(deductions) # 1715 print(refund) ``` Out — 1715 The refund is $1,715.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1715", "printed": "1715", "notation": null}
nlprog_det-setting-0076738
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0076739
To read 396 pages in 11 days, how many pages per day are needed? Python makes this quick: ```python pages = 396 days = 11 per_day = pages // days # 36 print(per_day) ``` The script prints 36, as expected. 36 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0076740
<|start|><|user|> The statute was enacted in 2006. How many years had passed by 2034?<|eot|> <|assistant|> ```python start_year = 2006 end_year = 2034 print(end_year - start_year) ``` # stdout: 28 28 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2006. How many years had passed by 2034?" }, { "role": "assistant", "content": "```python\nstart_year = 2006\nend_year = 2034\nprint(end_year - start_year)\n```\n# stdout: 28\n\n28 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0076741
<|start|><|user|> A meal costs $172.61. How much is a 20% tip?<|eot|> <|assistant|> ```python bill = 172.61 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 34.522000000000006 print(f"{tip:.2f}") ``` The script prints 34.52, as expected. Leave $34.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $172.61. How much is a 20% tip?" }, { "role": "assistant", "content": "```python\nbill = 172.61\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 34.522000000000006\nprint(f\"{tip:.2f}\")\n```\nThe script prints 34.52, as expected.\n\nLeave $34.52."...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "34.52", "printed": "34.52", "notation": null}
nlprog_det-setting-0076743
At 40 miles per hour, how many minutes does a 170-mile trip take? The Python version: ```python distance = 170 speed = 40 minutes = distance / speed * 60 # 255.0 print(round(minutes)) ``` The program prints 255, as expected. 255 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0076744
What is the total rent on a 12-month lease at $3,250 a month? The rent over the term is $39,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0076745
Copies cost $10 plus $0.50 for each page beyond 20. How much for 87 pages? We can compute it in Python. ```python pages = 87 base = 10 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 43.5 print(f"{cost:.2f}") ``` On running, it outputs 43.50. The copy costs $43.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "43.50", "printed": "43.50", "notation": null}
nlprog_det-setting-0076746
If a 3-year limitations period starts on September 12, 2013, when does it end? Coded up: ```python from datetime import date accrued = date(2013, 9, 12) # datetime.date(2013, 9, 12) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 9, 12) print(expires.isoformat()) ``` The run give...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2016-09-12", "printed": "2016-09-12", "notation": null}
nlprog_det-setting-0076747
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? We write it as a program: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` Result: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0076748
Filing fees are $50 per document. What do 10 filings cost? Translated to Python: ```python fee = 50 filings = 10 total = fee * filings # 500 print(total) ``` (Console output: 500) The filings cost $500 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0076749
After an initial $2,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part? Computation in Python: grant = 12000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 2500.0 print(f"{each:.2f}") Run result — 2500.00 $2,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0076750
What is the total rent on a 12-month lease at $3,250 a month? Let's compute it with Python. ```python monthly_rent = 3250 months = 12 total = monthly_rent * months # 39000 print(total) ``` Printed — 39000 In total, $39,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0076751
<|start|><|system|> You may call the tools below. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"sandbox_python\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0076752
The firm was founded in 2008. How many years had passed by 2042? As a program: ```python start_year = 2008 end_year = 2042 print(end_year - start_year) ``` Output: 34 That is 34 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0076753
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 0. How much for 75 pages?<|eot|> <|assistant|> The total is $17.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 0. How much for 75 pages?" }, { "role": "assistant", "content": "The total is $17.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0076754
What is 20 degrees Celsius in Fahrenheit? Coded up: ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` The interpreter prints 68. It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0076755
A $24,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? A few lines of Python do it: ```python grant = 24000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 5500.0 print(f"{each:.2f}") ``` The code prints: 5500.00 Each installment is $5,50...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "5500.00", "printed": "5500.00", "notation": null}
nlprog_det-setting-0076756
<|start|><|user|> Of a $8,000 budget, $4,800 has been spent. What percent is that?<|eot|> <|assistant|> 60.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $8,000 budget, $4,800 has been spent. What percent is that?" }, { "role": "assistant", "content": "60.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0076757
146 of 200 members attended. What percent attended? We can compute it in Python. ```python present = 146 total = 200 percent = present / total * 100 # 73.0 print(round(percent, 1)) ``` (stdout: 73.0) 73.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "73.0", "printed": "73.0", "notation": null}
nlprog_det-setting-0076758
To read 969 pages in 19 days, how many pages per day are needed? Python version: pages = 969 days = 19 per_day = pages // days # 51 print(per_day) This prints: 51 That is 51 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0076759
A hearing is set for August 13, 2000. What day of the week is that? Coded up: ```python from datetime import date hearing = date(2000, 8, 13) # datetime.date(2000, 8, 13) print(hearing.strftime("%A")) ``` The script prints: Sunday August 13, 2000 is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0076760
<|start|><|user|> Convert 3 h 8 min (the length of a film) to minutes.<|eot|> <|assistant|> ```python hours = 3 minutes = 8 total_minutes = hours * 60 + minutes # 188 print(total_minutes) ``` Execution prints: 188 That is 188 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 8 min (the length of a film) to minutes." }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 8\ntotal_minutes = hours * 60 + minutes # 188\nprint(total_minutes)\n```\nExecution prints: 188\n\nThat is 188 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "188", "printed": "188", "notation": null}
nlprog_det-setting-0076761
<|start|><|user|> Lucia and Liesel share $1,362 in the ratio 1:2. How much does Lucia get?<|eot|> <|assistant|> ```python total = 1362 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 454 print(share_a) ``` Running this gives: 454 Lucia's share is $454.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Lucia and Liesel share $1,362 in the ratio 1:2. How much does Lucia get?" }, { "role": "assistant", "content": "```python\ntotal = 1362\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 454\nprint(share_a)\n```\nRunning this gives: 454\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "454", "printed": "454", "notation": null}
nlprog_det-setting-0076762
Scale 450 g of pasta from 6 servings to 12 servings. ```python grams = 450 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 900 print(scaled) ``` What it prints: 900 Use 900 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0076763
A customer buys 4 headsets at $14 each, 5 notebooks at $28 each, 3 staplers at $3 each and pays with $250. How much change is due? Python code: ```python items = [(4, 14), (5, 28), (3, 3)] total = sum(q * p for q, p in items) # 205 paid = 250 change = paid - total # 45 print(change) ``` When run, it prints 45. The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0076764
<|start|><|user|> Someone born June 19, 2009 turns how old by August 10, 2022? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(2009, 6, 19) # datetime.date(2009, 6, 19) on = date(2022, 8, 10) # datetime.date(2022, 8, 10) age = on.year - born.year - ((on.month, o...
chat
[ { "role": "user", "content": "Someone born June 19, 2009 turns how old by August 10, 2022? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(2009, 6, 19) # datetime.date(2009, 6, 19)\n on = date(2022, 8, 10) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0076765
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 70 miles?<|eot|> <|assistant|> ```python miles = 70 rate = 0.62 reimbursement = miles * rate # 43.4 print(f"{reimbursement:.2f}") ``` Execution result: 43.40 Helga is owed $43.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 70 miles?" }, { "role": "assistant", "content": "```python\nmiles = 70\nrate = 0.62\nreimbursement = miles * rate # 43.4\nprint(f\"{reimbursement:.2f}\")\n```\nExecution result: 43.40\n\nHelga is owed $43.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "43.40", "printed": "43.40", "notation": null}
nlprog_det-setting-0076766
<|start|><|user|> A hearing starts at 4:40 PM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 40 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives: 5:30 PM It ends at 5:30 PM.<|eot|>...
chat
[ { "role": "user", "content": "A hearing starts at 4:40 PM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 40\nend = start + 50\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": "5:30 PM", "printed": "5:30 PM", "notation": null}
nlprog_det-setting-0076767
A $120 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share? ```python bill = 120 tip_rate = 18 / 100 people = 3 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` (Run result: 47.20) The share is $47.20 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "47.20", "printed": "47.20", "notation": null}
nlprog_det-setting-0076768
Each of Lena's swims burns 300 calories. How many calories over 7 swims? Here is the program. ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` Interpreter output: 2100 2100 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0076769
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 28-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.2 weight = 28 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Result: 45.60 Shipping costs $45.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 28-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.2\nweight = 28\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nResult:\n45.60\n\nShipping co...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "45.60", "printed": "45.60", "notation": null}
nlprog_det-setting-0076770
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
403
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0076773
<|start|><|user|> With 30% off, what does a $45 kettle cost?<|eot|> <|assistant|> ```python price = 45 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 31.499999999999996 print(f"{sale_price:.2f}") ``` # out: 31.50 The sale price is $31.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $45 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 31.499999999999996\nprint(f\"{sale_price:.2f}\")\n```\n# out: 31.50\n\nThe sale price is $31.5...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0076774
Marek buys 3 boxes of 24 file boxes each and gives away 3 file boxes. How many file boxes are left? Written as code: ```python boxes = 3 per_box = 24 given_away = 3 left = boxes * per_box - given_away # 69 print(left) ``` (Printed: 69) That leaves 69 file boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0076775
<|start|><|system|> You may call the tools below. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "sandbox_python", "description": "Execute...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targ...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "29520", "printed": "29520", "notation": null}
nlprog_det-setting-0076776
A deposition lasted 4 hours and 43 minutes. How many minutes is that? One way, in code: hours = 4 minutes = 43 total_minutes = hours * 60 + minutes # 283 print(total_minutes) # run result: 283 That is 283 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "283", "printed": "283", "notation": null}
nlprog_det-setting-0076777
Fines run at $100 per day up to a maximum of $5,000. How much after 53 days? Python makes this quick: per_day = 100 days = 53 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) Executed, it shows: 5000 $5,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0076778
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Monthly rent is $1,800. A tenant moves in with 13 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1800 days_in_month = 31 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 754.83870...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 13 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 1800\n days_in_month = 31\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "754.84", "printed": "754.84", "notation": null}