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-0060972
Divide 131 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? Here's the code. ```python total = 131 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints 43 each, 2 left over, as expected. 43 eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "43 each, 2 left over", "printed": "43 each, 2 left over", "notation": null}
nlprog_det-setting-0060973
Malik earns a 5% commission on $30,342 of sales. What is the commission? Let the code do the arithmetic: ```python sales = 30342 rate = 5 / 100 commission = sales * rate print(f"{commission:.2f}") ``` This prints 1517.10. The commission is $1,517.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1517.10", "printed": "1517.10", "notation": null}
nlprog_det-setting-0060974
<|start|><|user|> At an exchange rate of 1.27 USD per CHF, how many USD is 3,770 CHF?<|eot|> <|assistant|> That is 4,787.90 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.27 USD per CHF, how many USD is 3,770 CHF?" }, { "role": "assistant", "content": "That is 4,787.90 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "4787.90", "printed": "4787.90", "notation": null}
nlprog_det-setting-0060975
<|start|><|system|> You can call tools. Available tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "calculator", "description": "Run P...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start...
nlprog_det
setting
original
null
deterministic
[]
[]
272
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0060976
Counting only Monday through Friday, how many business days are there after April 2, 2027 through April 15, 2027? Here's the code. ```python from datetime import date, timedelta start = date(2027, 4, 2) end = date(2027, 4, 15) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0060977
<|start|><|user|> A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> The lawyer's fee comes to $22,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "The lawyer's fee comes to $22,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0060978
From 2007 to 2036, how many years is that? The computation: ```python start_year = 2007 end_year = 2036 print(end_year - start_year) ``` Executed, it shows: 29 That is 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0060979
<|start|><|user|> Femi and Yusuf share $208 in the ratio 1:3. How much does Femi get?<|eot|> <|assistant|> Femi gets $52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Femi and Yusuf share $208 in the ratio 1:3. How much does Femi get?" }, { "role": "assistant", "content": "Femi gets $52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0060980
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $3,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 3000 years = 10 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` This prints 4200.00, as expected. $4,200.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $3,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 3000\nyears = 10\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nThis prints 4200....
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0060981
A 240-mile drive at a steady 40 mph takes how many minutes? Let the code do the arithmetic: ```python distance = 240 speed = 40 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` It prints: 360 The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0060982
<|start|><|system|> Tools (call with JSON): [{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "descr...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
371
{"gold": "328.30", "printed": "328.30", "notation": null}
nlprog_det-setting-0060983
<|start|><|user|> After a 40% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 2 # 21600.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "21600.00", "printed": "21600.00", "notation": null}
nlprog_det-setting-0060984
<|start|><|user|> A recipe for 4 people uses 100 grams of flour. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 100 serves = 4 needed_for = 8 scaled = grams * needed_for // serves print(scaled) ``` The printout reads: 200 Use 200 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 100 grams of flour. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 4\nneeded_for = 8\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nThe printout reads: 200\n\nUs...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0060985
<|start|><|user|> Someone born November 7, 1978 turns how old by April 18, 2026? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1978, 11, 7) # datetime.date(1978, 11, 7) on = date(2026, 4, 18) # datetime.date(2026, 4, 18) age = on.year - born.year - ((on.month, on.da...
chat
[ { "role": "user", "content": "Someone born November 7, 1978 turns how old by April 18, 2026? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1978, 11, 7) # datetime.date(1978, 11, 7)\non = date(2026, 4, 18) # datetime.date(2...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0060986
6 runs at 200 calories each burn how many calories in total? We write it as a program: ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` (Printed: 1200) That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0060987
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A hearing...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "11:15 AM", "printed": "11:15 AM", "notation": null}
nlprog_det-setting-0060988
<|start|><|user|> A library charges $0.50 per book per day late. What is the fine for 3 books that are 27 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 27 books = 3 fine = per_day * days_late * books # 40.5 print(f"{fine:.2f}") ``` This prints: 40.50 $40.50 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 3 books that are 27 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 27\nbooks = 3\nfine = per_day * days_late * books # 40.5\nprint(f\"{fine:.2f}\")\n```\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0060989
Someone works 36 hours at $18.97 per hour. What are the earnings? Coded up: rate = 18.97 hours = 36 earnings = rate * hours # 682.92 print(f"{earnings:.2f}") That prints 682.92. That earns $682.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "682.92", "printed": "682.92", "notation": null}
nlprog_det-setting-0060990
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "592", "printed": "592", "notation": null}
nlprog_det-setting-0060991
Helga lends $1,000 at 2% simple interest per year for 4 years. How much interest is earned? ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 80.0 print(f"{interest:.2f}") ``` Console output — 80.00 The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0060992
<|start|><|user|> Convert 2 h 13 min (the length of a meeting) to minutes.<|eot|> <|assistant|> The meeting lasted 133 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2 h 13 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "The meeting lasted 133 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0060993
A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments? In code: ```python monthly = 9 yearly = 72 savings = monthly * 12 - yearly # 36 print(savings) ``` stdout: 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0060994
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> How long, in days, is it from April 2, 2025 until December 9, 2025?<|eot|> <|assistant|> It is 251 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "How long, in days, is it from April 2, 2025 until December 9, 2025?" }, { "role": "assistant", "content": "It is 251 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "251", "printed": "251", "notation": null}
nlprog_det-setting-0060995
A $210 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share? Python makes this quick: bill = 210 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 82.6 print(f"{each:.2f}") On running, it outputs: 82.60 The share is $82.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "82.60", "printed": "82.60", "notation": null}
nlprog_det-setting-0060996
Equal monthly payments repay $1,200 plus 8% simple yearly interest over 12 months. How large is a payment? Python does the arithmetic: principal = 1200 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 96.0 payment = (principal + interest) / months # 108...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0060997
At 30 miles per hour, how many minutes does a 180-mile trip take? A Python solution: ```python distance = 180 speed = 30 minutes = distance / speed * 60 print(round(minutes)) ``` Output — 360 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0060998
<|start|><|system|> Be brief and correct.<|eot|> <|user|> One can of paint covers 400 square feet. How many cans are needed for 1387 square feet of wall?<|eot|> <|assistant|> import math area = 1387 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) Console output: 4 4 cans are neede...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 1387 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 1387\n coverage = 400\n can...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0060999
From 2006 to 2032, how many years is that? ```python start_year = 2006 end_year = 2032 print(end_year - start_year) ``` stdout: 26 26 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0061000
Attendance was 67 out of 100. Express it as a percent. ```python present = 67 total = 100 percent = present / total * 100 # 67.0 print(round(percent, 1)) ``` Interpreter output — 67.0 Attendance was 67.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "67.0", "printed": "67.0", "notation": null}
nlprog_det-setting-0061001
Mateo has 14 documents to file, and each filing costs $90. How much are the filing fees in total? Coded up: ```python fee = 90 filings = 14 total = fee * filings # 1260 print(total) ``` Run result: 1260 The filings cost $1,260 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1260", "printed": "1260", "notation": null}
nlprog_det-setting-0061002
A 100-page report must be reviewed in 5 days. How many pages a day is that, evenly? In code: pages = 100 days = 5 per_day = pages // days # 20 print(per_day) Console: 20 That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0061003
Which is cheaper per unit: 6 for $5.73 (A) or 18 for $14.52 (B)? Python makes this quick: pack_a = 5.73 / 6 # 0.9550000000000001 pack_b = 14.52 / 18 # 0.8066666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Printed result: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061004
A board has 53 members. A majority is more than half. How many votes make a majority? Set it up in Python: ```python members = 53 majority = members // 2 + 1 # 27 print(majority) ``` What it prints: 27 That is 27 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0061005
<|start|><|user|> Ines was born on September 16, 1959. How old is Ines on July 8, 2029?<|eot|> <|assistant|> ```python from datetime import date born = date(1959, 9, 16) # datetime.date(1959, 9, 16) on = date(2029, 7, 8) # datetime.date(2029, 7, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
chat
[ { "role": "user", "content": "Ines was born on September 16, 1959. How old is Ines on July 8, 2029?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1959, 9, 16) # datetime.date(1959, 9, 16)\non = date(2029, 7, 8) # datetime.date(2029, 7, 8)\nage = on.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0061006
Fines run at $250 per day up to a maximum of $5,000. How much after 16 days? Translated to Python: ```python per_day = 250 days = 16 cap = 5000 fine = min(per_day * days, cap) # 4000 print(fine) ``` The script prints 4000, as expected. The fine is $4,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4000", "printed": "4000", "notation": null}
nlprog_det-setting-0061007
Divide 25 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Python version: ```python total = 25 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output: 5 each, 0 left over The answer: 5 each, 0 left ove...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5 each, 0 left over", "printed": "5 each, 0 left over", "notation": null}
nlprog_det-setting-0061008
How many 1-foot square tiles cover a 20 ft by 9 ft floor (round up)? It takes 180 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0061009
Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even? Here is the program. ```python import math fixed = 9000 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) print(units) ``` The script prints: 1800 1800 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0061011
Divide 117 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Here's the code. ```python total = 117 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running it prints 13 each, 0 left over. The answer: 13 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "13 each, 0 left over", "printed": "13 each, 0 left over", "notation": null}
nlprog_det-setting-0061012
<|start|><|system|> You can call tools. Available tools: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute", "desc...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
361
{"gold": "2023-05-05", "printed": "2023-05-05", "notation": null}
nlprog_det-setting-0061013
At a 4% tax rate, what is the tax on $429.52? Program: ```python price = 429.52 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 17.1808 print(f"{tax:.2f}") ``` Printed: 17.18 $17.18 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "17.18", "printed": "17.18", "notation": null}
nlprog_det-setting-0061014
<|start|><|user|> Sofia's scores were 98, 65, 50, 65 and 62. What is the average score?<|eot|> <|assistant|> The mean is 68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sofia's scores were 98, 65, 50, 65 and 62. What is the average score?" }, { "role": "assistant", "content": "The mean is 68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0061015
<|start|><|user|> With 19 rows of 15 chairs and 13 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 272 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 19 rows of 15 chairs and 13 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "272 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0061016
A penalty of $100 a day accrues, capped at $5,000. What is owed after 42 days? ```python per_day = 100 days = 42 cap = 5000 fine = min(per_day * days, cap) # 4200 print(fine) ``` Execution result: 4200 $4,200 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4200", "printed": "4200", "notation": null}
nlprog_det-setting-0061017
With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal. Written as code: ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) ``` Python prints 6.5. Profit is 6.5% of revenue...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0061018
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Convert 5 h 13 min (the len...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pr...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0061019
If a 2-year limitations period starts on January 25, 2022, when does it end? A short script: ```python from datetime import date accrued = date(2022, 1, 25) # datetime.date(2022, 1, 25) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 1, 25) print(expires.isoformat()) ``` The scri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-01-25", "printed": "2024-01-25", "notation": null}
nlprog_det-setting-0061020
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Convert 80 km to meters.<|eot|> <|assistant|> ```python km = 80 meters = km * 1000 print(round(meters)) ``` Output — 80000 80,000 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Convert 80 km to meters." }, { "role": "assistant", "content": "```python\nkm = 80\nmeters = km * 1000\nprint(round(meters))\n```\nOutput — 80000\n\n80,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "80000", "printed": "80000", "notation": null}
nlprog_det-setting-0061021
<|start|><|user|> An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` (Execution result: 120....
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0061022
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours? A few lines of Python do it: ```python rate = 20.0 hours = 55 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Run it and it prints: 1250.00 Reza earns $1,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0061023
Divide 278 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? Set it up in Python: ```python total = 278 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result = 92 each, 2 left over 92 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "92 each, 2 left over", "printed": "92 each, 2 left over", "notation": null}
nlprog_det-setting-0061024
A library charges $0.10 per book per day late. What is the fine for 4 books that are 8 days late? We write it as a program: ```python per_day = 0.1 days_late = 8 books = 4 fine = per_day * days_late * books # 3.2 print(f"{fine:.2f}") ``` Result — 3.20 The fine is $3.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3.20", "printed": "3.20", "notation": null}
nlprog_det-setting-0061025
<|start|><|user|> A 25 lb package ships at $8 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 2.5 weight = 25 cost = base + per_pound * weight # 70.5 print(f"{cost:.2f}") ``` (stdout: 70.50) The charge is $70.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 25 lb package ships at $8 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 2.5\nweight = 25\ncost = base + per_pound * weight # 70.5\nprint(f\"{cost:.2f}\")\n```\n(stdout: 70.50)\n\nThe charge is $70....
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "70.50", "printed": "70.50", "notation": null}
nlprog_det-setting-0061026
<|start|><|system|> Tool definitions: {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> What is 40 ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0061027
<|start|><|user|> Sales went from 500 to 525. What is the percent change?<|eot|> <|assistant|> ```python old = 500 new = 525 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` Console output: 5 The change is 5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 500 to 525. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 525\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nConsole output: 5\n\nThe change is 5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061028
A bicycle helmet costs $180. It is 30% off. What is the sale price? We can compute it in Python. price = 180 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 125.99999999999999 print(f"{sale_price:.2f}") This prints: 126.00 The sale price is $126.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "126.00", "printed": "126.00", "notation": null}
nlprog_det-setting-0061029
Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons? Let the code do the arithmetic: ```python base = 12 rate = 4.75 used = 21 free = 0 bill = base + rate * max(0, used - free) # 111.75 print(f"{bill:.2f}") ``` Execution prints: 111.75 $111.75 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "111.75", "printed": "111.75", "notation": null}
nlprog_det-setting-0061030
<|start|><|user|> The landlord deducts $200, $75 and $120 from a $800 deposit. What is returned to the tenant?<|eot|> <|assistant|> deposit = 800 deductions = [200, 75, 120] refund = deposit - sum(deductions) # 405 print(refund) # execution result: 405 The refund is $405.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $200, $75 and $120 from a $800 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": " deposit = 800\n deductions = [200, 75, 120]\n refund = deposit - sum(deductions) # 405\n print(refund)\n# execution resu...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "405", "printed": "405", "notation": null}
nlprog_det-setting-0061031
<|start|><|user|> Omar was born on April 8, 2007. How old is Omar on July 28, 2027?<|eot|> <|assistant|> ```python from datetime import date born = date(2007, 4, 8) # datetime.date(2007, 4, 8) on = date(2027, 7, 28) # datetime.date(2027, 7, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))...
chat
[ { "role": "user", "content": "Omar was born on April 8, 2007. How old is Omar on July 28, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2007, 4, 8) # datetime.date(2007, 4, 8)\non = date(2027, 7, 28) # datetime.date(2027, 7, 28)\nage = on.year -...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0061032
<|start|><|user|> Notice was given on November 23, 2018. The notice period is 10 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 11, 23) # datetime.date(2018, 11, 23) end = start + timedelta(days=10) # datetime.date(2018, 12, 3) print(end.isoformat())...
chat
[ { "role": "user", "content": "Notice was given on November 23, 2018. The notice period is 10 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 11, 23) # datetime.date(2018, 11, 23)\nend = start + timedelta(days...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2018-12-03", "printed": "2018-12-03", "notation": null}
nlprog_det-setting-0061033
After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Each client gets $13,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0061034
<|start|><|user|> What percentage of $2,000 is $1,700?<|eot|> <|assistant|> ```python budget = 2000 spent = 1700 percent = spent / budget * 100 # 85.0 print(round(percent, 1)) ``` Program output — 85.0 That is 85.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,700?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1700\npercent = spent / budget * 100 # 85.0\nprint(round(percent, 1))\n```\nProgram output — 85.0\n\nThat is 85.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0061035
<|start|><|system|> Available functions (JSON Schema): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parame...
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\": \"calc\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
267
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0061036
<|start|><|user|> A library charges $0.50 per book per day late. What is the fine for 4 books that are 11 days late?<|eot|> <|assistant|> The fine is $22.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 11 days late?" }, { "role": "assistant", "content": "The fine is $22.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0061037
If a 5-year limitations period starts on September 7, 2023, when does it end? In code: ```python from datetime import date accrued = date(2023, 9, 7) # datetime.date(2023, 9, 7) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 9, 7) print(expires.isoformat()) ``` This prints: 2028...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2028-09-07", "printed": "2028-09-07", "notation": null}
nlprog_det-setting-0061038
<|start|><|user|> 2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 2 # 28800.0 print(f"{per_client:.2f}") Progra...
chat
[ { "role": "user", "content": "2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 96000\n fee = award * 40 / 100 # 38400.0\n remaining = award - fee # 57600.0\n per_client = remai...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "28800.00", "printed": "28800.00", "notation": null}
nlprog_det-setting-0061039
<|start|><|user|> Flooring at $8/sq ft for a 21 ft × 7 ft room costs how much?<|eot|> <|assistant|> It costs $1,176.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $8/sq ft for a 21 ft × 7 ft room costs how much?" }, { "role": "assistant", "content": "It costs $1,176." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1176", "printed": "1176", "notation": null}
nlprog_det-setting-0061040
Carmen earns a 2% commission on $79,902 of sales. What is the commission? Python version: ```python sales = 79902 rate = 2 / 100 # 0.02 commission = sales * rate # 1598.04 print(f"{commission:.2f}") ``` On running, it outputs: 1598.04 Carmen earns $1,598.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1598.04", "printed": "1598.04", "notation": null}
nlprog_det-setting-0061041
Count the days between July 17, 2027 and February 3, 2028. Script: ```python from datetime import date first = date(2027, 7, 17) # datetime.date(2027, 7, 17) second = date(2028, 2, 3) # datetime.date(2028, 2, 3) print((second - first).days) ``` That prints 201. It is 201 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0061042
How many minutes pass from 8:05 AM to 10:23 AM on the same day? It is 138 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0061043
A chair costs $120. It is 10% off. What is the sale price? The program: ```python price = 120 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 108.0 print(f"{sale_price:.2f}") ``` When run, it prints: 108.00 The sale price is $108.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0061044
Priya drove 529 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Priya is owed $327.98.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "327.98", "printed": "327.98", "notation": null}
nlprog_det-setting-0061045
<|start|><|user|> 11 boxes hold 8 badges each. After 15 are handed out, how many are left?<|eot|> <|assistant|> boxes = 11 per_box = 8 given_away = 15 left = boxes * per_box - given_away print(left) Printed: 73 That leaves 73 badges.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 8 badges each. After 15 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 11\n per_box = 8\n given_away = 15\n left = boxes * per_box - given_away\n print(left)\nPrinted:\n73\n\nThat leaves 73 badges." ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0061046
Sara and Yusuf share $4,431 in the ratio 2:5. How much does Sara get? Python code: total = 4431 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1266 print(share_a) stdout: 1266 Sara gets $1,266.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1266", "printed": "1266", "notation": null}
nlprog_det-setting-0061047
<|start|><|user|> Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> cost = 12000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") The printout read...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": " cost = 12000\n salvage = 6000\n years = 3\n per_year = (cost - salvage) / years...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0061048
A board has 25 members. A majority is more than half. How many votes make a majority? Code: ```python members = 25 majority = members // 2 + 1 # 13 print(majority) ``` (Run result: 13) 13 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0061049
Buying 3 badges at $27 each, 4 water bottles at $5 each, someone hands over $150. What change comes back? Here's the code. ```python items = [(3, 27), (4, 5)] total = sum(q * p for q, p in items) # 101 paid = 150 change = paid - total # 49 print(change) ``` # printed result: 49 $49 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0061050
A client paid a $10,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left? Here's the code. ```python retainer = 10000 hours = 14 rate = 250 left = retainer - hours * rate print(left) ``` (Result: 6500) The remaining balance is $6,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "6500", "printed": "6500", "notation": null}
nlprog_det-setting-0061051
A count moves from 800 to 640. By what percent did it change (use a minus sign for a drop)? We write it as a program: ```python old = 800 new = 640 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` Executed, it shows: -20 It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0061052
Convert 5 h 43 min (the length of a film) to minutes. Python does the arithmetic: hours = 5 minutes = 43 total_minutes = hours * 60 + minutes # 343 print(total_minutes) Run result: 343 That is 343 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "343", "printed": "343", "notation": null}
nlprog_det-setting-0061053
<|start|><|user|> Goods bought on March 20, 2024 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2024, 3, 20) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) ...
chat
[ { "role": "user", "content": "Goods bought on March 20, 2024 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2024, 3, 20)\n months = 12\n years, month_index = divmod(start.month - 1 + months, 12)\n en...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "2025-03-20", "printed": "2025-03-20", "notation": null}
nlprog_det-setting-0061054
A measure needs at least 67% of 63 votes. How many votes is that, rounded up? Python, step by step: ```python import math voters = 63 needed = math.ceil(voters * 67 / 100) # 43 print(needed) ``` Python prints: 43 At least 43 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0061055
From 2025 to 2042, how many years is that? As a program: ```python start_year = 2025 end_year = 2042 print(end_year - start_year) ``` The script prints 17. 17 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0061056
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> 11 boxes hold 24 notebooks each. After 15 are handed out, how many are left?<|eot|> <|assistant|> That leaves 249 notebooks.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "11 boxes hold 24 notebooks each. After 15 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 249 notebooks." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "249", "printed": "249", "notation": null}
nlprog_det-setting-0061057
Goods bought on March 28, 2021 carry a 24-month warranty. When does it expire? The Python version: ```python from datetime import date start = date(2021, 3, 28) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2023-03-28", "printed": "2023-03-28", "notation": null}
nlprog_det-setting-0061058
<|start|><|user|> A 4-day trip pays $79 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 4 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 646 print(total) ``` # result: 646 The allow...
chat
[ { "role": "user", "content": "A 4-day trip pays $79 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 79\nlodging_rate = 110\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "646", "printed": "646", "notation": null}
nlprog_det-setting-0061059
The landlord deducts $45, $85 and $150 from a $2,500 deposit. What is returned to the tenant? Script: ```python deposit = 2500 deductions = [45, 85, 150] refund = deposit - sum(deductions) # 2220 print(refund) ``` Run result: 2220 The refund is $2,220.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2220", "printed": "2220", "notation": null}
nlprog_det-setting-0061060
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Shipping costs $8 plus $1.20 per pound. What does a 14-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 8 per_pound = 1.2 weight = 14 cost = base + per_pound * weight # 24.8 print(f"{cost:.2f}") ``` Run output: 24.80 The charge is $24.80.<|e...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Shipping costs $8 plus $1.20 per pound. What does a 14-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 1.2\nweight = 14\ncost = base + per_pou...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "24.80", "printed": "24.80", "notation": null}
nlprog_det-setting-0061061
How long, in days, is it from July 5, 2018 until December 16, 2018? In code: ```python from datetime import date first = date(2018, 7, 5) # datetime.date(2018, 7, 5) second = date(2018, 12, 16) # datetime.date(2018, 12, 16) print((second - first).days) ``` # program output: 164 There are 164 days between the two da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0061063
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> 6 boxes hold 6 keyboards each. After 6 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 6 per_box = 6 given_away = 6 left = boxes * per_box - given_away # 30 print(left) ``` Console: 30 30 keyboards are left.<|eot|> <|en...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "6 boxes hold 6 keyboards each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 6\nper_box = 6\ngiven_away = 6\nleft = boxes * pe...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0061064
<|start|><|user|> The meal allowance is $74 per day. What is it for 8 days?<|eot|> <|assistant|> That comes to $592.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $74 per day. What is it for 8 days?" }, { "role": "assistant", "content": "That comes to $592." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "592", "printed": "592", "notation": null}
nlprog_det-setting-0061065
<|start|><|system|> You can call tools. Available tools: {"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A trial runs from...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0061066
From 2003 to 2037, how many years is that? 34 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
17
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0061067
A customer buys 2 badges at $27 each, 4 water bottles at $15 each and pays with $150. How much change is due? The change is $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0061068
<|start|><|user|> Copies cost $15 plus $0.10 for each page beyond 20. How much for 84 pages?<|eot|> <|assistant|> The total is $21.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 84 pages?" }, { "role": "assistant", "content": "The total is $21.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "21.40", "printed": "21.40", "notation": null}
nlprog_det-setting-0061069
A hall has 30 rows of 14 seats, and 11 seats are empty. How many people are seated? In code: ```python rows = 30 per_row = 14 empty = 11 seated = rows * per_row - empty # 409 print(seated) ``` The run gives 409. 409 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "409", "printed": "409", "notation": null}
nlprog_det-setting-0061070
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "calc", "description": "Python sandbo...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\"...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "5467.26", "printed": "5467.26", "notation": null}
nlprog_det-setting-0061071
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"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_uni...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\...
nlprog_det
setting
original
null
deterministic
[]
[]
440
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0061072
From 1996 to 2005, how many years is that? Set it up in Python: ```python start_year = 1996 end_year = 2005 print(end_year - start_year) ``` Output of the run: 9 9 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0061073
Counting the first and last day, how many days are there from January 26, 2023 through February 3, 2023? ```python from datetime import date first = date(2023, 1, 26) # datetime.date(2023, 1, 26) last = date(2023, 2, 3) # datetime.date(2023, 2, 3) days = (last - first).days + 1 # 9 print(days) ``` stdout: 9 9 cale...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "9", "printed": "9", "notation": null}