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-0062872
<|start|><|system|> You can call tools. Available tools: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "python", "description": "Runs a short Python snippet and returns what it prints.", ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "2018-08-03", "printed": "2018-08-03", "notation": null}
nlprog_det-setting-0062873
35 copies of a 45-page packet are printed at $0.12 per page. What is the cost? Let's compute it with Python. ```python pages = 45 copies = 35 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 189.0 print(f"{cost:.2f}") ``` (Out: 189.00) Printing costs $189.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "189.00", "printed": "189.00", "notation": null}
nlprog_det-setting-0062874
A client paid a $10,000 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left? Script: ```python retainer = 10000 hours = 14 rate = 150 left = retainer - hours * rate # 7900 print(left) ``` Python prints 7900. The remaining balance is $7,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7900", "printed": "7900", "notation": null}
nlprog_det-setting-0062875
Femi earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? One way, in code: ```python rate = 16.0 hours = 54 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 336.0 pay = regular + overtime # 976.0 print(f"{pay:.2f}") ``` Interpreter output: 976.00 Femi e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0062877
After an initial $2,000, the remainder of a $12,000 grant is paid in 6 equal parts. What is each part? Python makes this quick: ```python grant = 12000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 1666.6666666666667 print(f"{each:.2f}") ``` Executing it gives 1666.67, as expected. Each...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1666.67", "printed": "1666.67", "notation": null}
nlprog_det-setting-0062878
Buying 4 batteries at $8 each, 2 paper reams at $3 each, someone hands over $50. What change comes back? Set it up in Python: ```python items = [(4, 8), (2, 3)] total = sum(q * p for q, p in items) # 38 paid = 50 change = paid - total # 12 print(change) ``` Out: 12 $12 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0062880
How many minutes pass from 8:55 AM to 11:27 AM on the same day? Python version: ```python start = 8 * 60 + 55 # 535 end = 11 * 60 + 27 # 687 print(end - start) ``` Executed, it shows 152. It is 152 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "152", "printed": "152", "notation": null}
nlprog_det-setting-0062881
<|start|><|user|> 6 swims at 350 calories each burn how many calories in total?<|eot|> <|assistant|> 2100 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 swims at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "2100 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0062882
If a 150-minute meeting begins at 4:30 PM, what time does it finish? ```python start = 16 * 60 + 30 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # printed result: 7:00 PM It ends at 7:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "7:00 PM", "printed": "7:00 PM", "notation": null}
nlprog_det-setting-0062883
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> If a 3-year limitations ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "2021-07-08", "printed": "2021-07-08", "notation": null}
nlprog_det-setting-0062884
The rules require 2/3 of 38 members (round up) to be present. How many is that? Script: ```python import math members = 38 quorum = math.ceil(members * 2 / 3) # 26 print(quorum) ``` The run gives 26. 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0062885
A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments? In Python: ```python monthly = 12 yearly = 114 savings = monthly * 12 - yearly # 30 print(savings) ``` (Output: 30) $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0062886
Divide 289 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? Computing it: ```python total = 289 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Output: 72 each, 1 left over) The answer: 72 each, 1 left...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "72 each, 1 left over", "printed": "72 each, 1 left over", "notation": null}
nlprog_det-setting-0062887
<|start|><|user|> What is 10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` The script prints 50, as expected. It equals 50 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nThe script prints 50, as expected.\n\nIt equals 50 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0062888
Attendance was 45 out of 80. Express it as a percent. A Python solution: ```python present = 45 total = 80 percent = present / total * 100 # 56.25 print(round(percent, 1)) ``` When run, it prints 56.2, as expected. 56.2% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "56.2", "printed": "56.2", "notation": null}
nlprog_det-setting-0062889
<|start|><|user|> A quorum is 1/3 of the 50 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 50 quorum = math.ceil(members * 1 / 3) # 17 print(quorum) ``` Running it prints 17. That is 17 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 50 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 50\nquorum = math.ceil(members * 1 / 3) # 17\nprint(quorum)\n```\nRunning it prints 17.\n\nThat is 17 members." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0062890
Rent of $1,100 goes up 2%. What is the new rent? Code: ```python rent = 1100 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1122.0 print(f"{new_rent:.2f}") ``` # output: 1122.00 The new rent is $1,122.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1122.00", "printed": "1122.00", "notation": null}
nlprog_det-setting-0062891
A meeting starts at 8:20 AM and lasts 90 minutes. When does it end? A Python solution: ```python start = 8 * 60 + 20 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives 9:50 AM. The meeting finishes at 9:50 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "9:50 AM", "printed": "9:50 AM", "notation": null}
nlprog_det-setting-0062893
<|start|><|system|> Tools (call with JSON): {"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Buying 6 toner kits at $15 each, ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
259
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0062894
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A 100-mile drive at a steady 60 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 100 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A 100-mile drive at a steady 60 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 100 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0062895
Straight-line depreciation: cost $45,000, salvage $0, 4 years. How much per year? Script: ```python cost = 45000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 11250.0 print(f"{per_year:.2f}") ``` Output — 11250.00 $11,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0062896
A hall has 26 rows of 14 seats, and 5 seats are empty. How many people are seated? Python code: ```python rows = 26 per_row = 14 empty = 5 seated = rows * per_row - empty # 359 print(seated) ``` Printed result — 359 359 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "359", "printed": "359", "notation": null}
nlprog_det-setting-0062897
A board has 34 members. A majority is more than half. How many votes make a majority? In Python: ```python members = 34 majority = members // 2 + 1 print(majority) ``` Running it prints: 18 That is 18 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0062898
<|start|><|system|> Functions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"compute\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
264
{"gold": "261", "printed": "261", "notation": null}
nlprog_det-setting-0062899
A shift runs from 7:47 AM to 2:13 PM. How long is it in minutes? Program: ```python start = 7 * 60 + 47 # 467 end = 14 * 60 + 13 # 853 print(end - start) ``` Executed, it shows 386. It is 386 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "386", "printed": "386", "notation": null}
nlprog_det-setting-0062900
A seminar starts at 9:40 AM and lasts 50 minutes. When does it end? Set it up in Python: ```python start = 9 * 60 + 40 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed: 10:30 AM The seminar finishes at 10:30 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "10:30 AM", "printed": "10:30 AM", "notation": null}
nlprog_det-setting-0062901
4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` On running, it outputs: 4500.00 Each client gets $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0062903
<|start|><|user|> Pack A has 12 items for $3.11. Pack B has 30 items for $22.80. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 3.11 / 12 # 0.25916666666666666 pack_b = 22.8 / 30 # 0.76 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` It prints A, as expected. Pack A i...
chat
[ { "role": "user", "content": "Pack A has 12 items for $3.11. Pack B has 30 items for $22.80. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 3.11 / 12 # 0.25916666666666666\npack_b = 22.8 / 30 # 0.76\ncheaper = \"A\" if pack_a < pack_b else \"B\" ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0062904
<|start|><|user|> 92 of 100 members attended. What percent attended?<|eot|> <|assistant|> Attendance was 92.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "92 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "Attendance was 92.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "92.0", "printed": "92.0", "notation": null}
nlprog_det-setting-0062905
A storeroom has 688 keyboards. The office uses 24 a day. How many are left after 5 days? 568 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "568", "printed": "568", "notation": null}
nlprog_det-setting-0062906
A meal costs $227.81. How much is a 15% tip? Here's the code. ```python bill = 227.81 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 34.1715 print(f"{tip:.2f}") ``` (Execution result: 34.17) Leave $34.17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "34.17", "printed": "34.17", "notation": null}
nlprog_det-setting-0062907
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> 36 badges cost $24 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 24 subtotal = quantity * unit_price # 864 total = subtotal * (1 + 6 / 100) # 915.84 print(f"{total:.2f}") ``` (Console ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "36 badges cost $24 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 24\nsubtotal = quantity * unit_pric...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "915.84", "printed": "915.84", "notation": null}
nlprog_det-setting-0062908
An invoice lists 16 hard drives at $24 each, plus 10% sales tax. What is the invoice total? The total with tax is $422.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "422.40", "printed": "422.40", "notation": null}
nlprog_det-setting-0062909
Starting with 1414 batteries and using 37 per day, how many remain after 18 days? Coded up: ```python stock = 1414 per_day = 37 days = 18 left = stock - per_day * days # 748 print(left) ``` Run it and it prints: 748 748 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "748", "printed": "748", "notation": null}
nlprog_det-setting-0062910
2 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Let the code do the arithmetic: ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 2 # 16800.0 print(f"{per_client:.2f}") ``` When run, it print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0062911
Filing fees are $35 per document. What do 13 filings cost? Code: ```python fee = 35 filings = 13 total = fee * filings # 455 print(total) ``` stdout = 455 The total fee is $455.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "455", "printed": "455", "notation": null}
nlprog_det-setting-0062912
A pack of 12 hard drives sells for $240. What does each cost? ```python total = 240 count = 12 per_item = total // count # 20 print(per_item) ``` # result: 20 Each one costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0062913
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A quorum is 3/5 of the 48 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> That is 29 members.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A quorum is 3/5 of the 48 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "That is 29 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0062914
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "Executes Python code and returns stdout.", "p...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"eval_python\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0062915
A recipe for 8 people uses 100 grams of oats. How many grams are needed for 4 people? Written as code: ```python grams = 100 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 50 print(scaled) ``` (Program output: 50) 50 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0062916
<|start|><|user|> 2 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 141.6 print(f"{each:.2f}") ``` # out: 141.60 Each person pays $141.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 friends split a $240 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 2\neach = bill * (1 + tip_rate) / people # 141.6\nprint(f\"{each:.2f}\")\n```\n# out: 141....
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "141.60", "printed": "141.60", "notation": null}
nlprog_det-setting-0062917
<|start|><|user|> If a 25-minute appointment begins at 9:10 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 9 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The printout reads 9:35 AM. The appointment finishe...
chat
[ { "role": "user", "content": "If a 25-minute appointment begins at 9:10 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 10\nend = start + 25\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
[]
[]
131
{"gold": "9:35 AM", "printed": "9:35 AM", "notation": null}
nlprog_det-setting-0062918
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
265
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0062919
How many units at $30 each (variable cost $25) cover $2,500 of fixed costs? The Python version: ```python import math fixed = 2500 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` Printed — 500 Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0062920
2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Python makes this quick: ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 2 # 10500.0 print(f"{per_client:.2f}") ``` Executed, it shows: 10500....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0062921
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A kettle cost...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0062922
An invoice lists 3 calendars at $2 each, plus 8% sales tax. What is the invoice total? ```python quantity = 3 unit_price = 2 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` When run, it prints 6.48. The total with tax is $6.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "6.48", "printed": "6.48", "notation": null}
nlprog_det-setting-0062923
$5,000 is invested at 5% compounded yearly. What is it worth after 3 years? Here's the code. ```python principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") ``` (Result: 5788.13) The balance is $5,788.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0062924
From a $7,500 retainer, 5 hours at $150/hour have been drawn. What remains? The program: ```python retainer = 7500 hours = 5 rate = 150 left = retainer - hours * rate # 6750 print(left) ``` When run, it prints 6750. $6,750 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "6750", "printed": "6750", "notation": null}
nlprog_det-setting-0062925
A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 76-page copy cost? The total is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0062926
On which weekday does November 21, 2013 fall? As a program: from datetime import date hearing = date(2013, 11, 21) # datetime.date(2013, 11, 21) print(hearing.strftime("%A")) Interpreter output — Thursday November 21, 2013 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0062927
A recipe for 2 people uses 240 grams of flour. How many grams are needed for 8 people? A short script: ```python grams = 240 serves = 2 needed_for = 8 scaled = grams * needed_for // serves # 960 print(scaled) ``` Executed, it shows 960. 960 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "960", "printed": "960", "notation": null}
nlprog_det-setting-0062928
<|start|><|user|> An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` The printout reads 200.00. ...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 200.0...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0062929
What is 40 degrees Celsius in Fahrenheit? ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` The script prints 104. It equals 104 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0062930
What simple interest does $20,000 earn at 2% a year over 3 years? Here is a short program for it. ```python principal = 20000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` # stdout: 1200.00 It earns $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0062931
Ines buys 9 boxes of 6 pens each and gives away 17 pens. How many pens are left? Let the code do the arithmetic: ```python boxes = 9 per_box = 6 given_away = 17 left = boxes * per_box - given_away print(left) ``` Output: 37 37 pens are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0062932
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A claim accrued on June 21, 2017. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2017, 6, 21) # datetime.date(2017, 6, 21) years = 5 expires = accrued.replace(year=accru...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A claim accrued on June 21, 2017. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(201...
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "2022-06-21", "printed": "2022-06-21", "notation": null}
nlprog_det-setting-0062933
<|start|><|system|> You may call the tools below. {"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "fetch_filing", "des...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0062934
A car travels 526 miles in 2 hours. What is its average speed in miles per hour? Python: ```python distance = 526 hours = 2 speed = distance / hours # 263.0 print(round(speed)) ``` Program output: 263 The average speed is 263 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "263", "printed": "263", "notation": null}
nlprog_det-setting-0062935
8 boxes hold 10 calendars each. After 19 are handed out, how many are left? We write it as a program: ```python boxes = 8 per_box = 10 given_away = 19 left = boxes * per_box - given_away # 61 print(left) ``` # printed result: 61 That leaves 61 calendars.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0062936
With 25% off, what does a $180 kettle cost? Here's the code. ```python price = 180 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 135.0 print(f"{sale_price:.2f}") ``` The program prints 135.00. It costs $135.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "135.00", "printed": "135.00", "notation": null}
nlprog_det-setting-0062937
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "calculator", "descriptio...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
379
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0062938
Counting only Monday through Friday, how many business days are there after May 15, 2023 through June 20, 2023? A short script: ```python from datetime import date, timedelta start = date(2023, 5, 15) end = date(2023, 6, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekda...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0062939
If a 90-minute class begins at 11:45 AM, what time does it finish? As a program: ```python start = 11 * 60 + 45 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running this gives 1:15 PM. The class finishes at 1:15 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1:15 PM", "printed": "1:15 PM", "notation": null}
nlprog_det-setting-0062943
<|start|><|user|> A library charges $0.50 per book per day late. What is the fine for 4 books that are 28 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 28 books = 4 fine = per_day * days_late * books # 56.0 print(f"{fine:.2f}") ``` Python prints: 56.00 The fine is $56.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 28 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 28\nbooks = 4\nfine = per_day * days_late * books # 56.0\nprint(f\"{fine:.2f}\")\n```\nPy...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0062944
A $1,000 security deposit has deductions of $45 and $85. How much is refunded? Set it up in Python: ```python deposit = 1000 deductions = [45, 85] refund = deposit - sum(deductions) # 870 print(refund) ``` Run output: 870 The refund is $870.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "870", "printed": "870", "notation": null}
nlprog_det-setting-0062945
A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term? ```python monthly_rent = 2875 months = 18 total = monthly_rent * months # 51750 print(total) ``` It prints 51750. The rent over the term is $51,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0062947
<|start|><|user|> What day of the week is April 11, 2014?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2014, 4, 11) # datetime.date(2014, 4, 11) print(hearing.strftime("%A")) ``` The code prints Friday. It is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is April 11, 2014?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2014, 4, 11) # datetime.date(2014, 4, 11)\nprint(hearing.strftime(\"%A\"))\n```\nThe code prints Friday.\n\nIt is a Friday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0062949
A hall has 14 rows of 17 seats, and 17 seats are empty. How many people are seated? We can compute it in Python. ```python rows = 14 per_row = 17 empty = 17 seated = rows * per_row - empty # 221 print(seated) ``` Shell output — 221 221 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "221", "printed": "221", "notation": null}
nlprog_det-setting-0062950
Counting only Monday through Friday, how many business days are there after July 14, 2024 through August 5, 2024? The program: ```python from datetime import date, timedelta start = date(2024, 7, 14) end = date(2024, 8, 5) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0062951
Goods bought on September 7, 2028 carry a 36-month warranty. When does it expire? As Python: ```python from datetime import date start = date(2028, 9, 7) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run it an...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2031-09-07", "printed": "2031-09-07", "notation": null}
nlprog_det-setting-0062952
A garage charges $3 an hour, never more than $18 a day. How much for 5 hours? A few lines of Python do it: ```python rate = 3 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Interpreter output — 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0062953
Counting only Monday through Friday, how many business days are there after April 26, 2024 through May 24, 2024? Python: ```python from datetime import date, timedelta start = date(2024, 4, 26) end = date(2024, 5, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0062954
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Count 1...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "2018-08-27", "printed": "2018-08-27", "notation": null}
nlprog_det-setting-0062955
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> $3,500 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "$3,500 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "3500", "printed": "3500", "notation": null}
nlprog_det-setting-0062956
What commission does Helga make on $81,032 in sales at 10%? ```python sales = 81032 rate = 10 / 100 # 0.1 commission = sales * rate # 8103.200000000001 print(f"{commission:.2f}") ``` Output of the run — 8103.20 Helga earns $8,103.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8103.20", "printed": "8103.20", "notation": null}
nlprog_det-setting-0062957
A hearing is set for July 6, 2028. What day of the week is that? Let the code do the arithmetic: ```python from datetime import date hearing = date(2028, 7, 6) # datetime.date(2028, 7, 6) print(hearing.strftime("%A")) ``` Shell output — Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0062958
<|start|><|user|> Jamal's scores were 78, 70, 83, 71, 98, 52 and 94. What is the average score?<|eot|> <|assistant|> scores = [78, 70, 83, 71, 98, 52, 94] average = sum(scores) // len(scores) # 78 print(average) Interpreter output — 78 The average score is 78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Jamal's scores were 78, 70, 83, 71, 98, 52 and 94. What is the average score?" }, { "role": "assistant", "content": " scores = [78, 70, 83, 71, 98, 52, 94]\n average = sum(scores) // len(scores) # 78\n print(average)\nInterpreter output — 78\n\nThe average...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0062959
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "description...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0062961
Convert 44.5 km to meters. Here is a short program for it. km = 44.5 meters = km * 1000 # 44500.0 print(round(meters)) Result — 44500 That is 44,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "44500", "printed": "44500", "notation": null}
nlprog_det-setting-0062962
A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 104-page copy cost? Coded up: ```python pages = 104 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 15.4 print(f"{cost:.2f}") ``` Executed, it shows: 15.40 The copy costs $15.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "15.40", "printed": "15.40", "notation": null}
nlprog_det-setting-0062963
Counting only Monday through Friday, how many business days are there after December 17, 2021 through December 28, 2021? Here is a short program for it. ```python from datetime import date, timedelta start = date(2021, 12, 17) end = date(2021, 12, 28) count = 0 for k in range(1, (end - start).days + 1): if (start ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0062964
A 231-page report must be reviewed in 7 days. How many pages a day is that, evenly? A Python solution: ```python pages = 231 days = 7 per_day = pages // days # 33 print(per_day) ``` The code prints 33. 33 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0062965
Rent of $1,250 goes up 4%. What is the new rent? It rises to $1,300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1300.00", "printed": "1300.00", "notation": null}
nlprog_det-setting-0062966
A client paid a $10,000 retainer. The firm has billed 8 hours at $250 per hour. How much of the retainer is left? A Python solution: ```python retainer = 10000 hours = 8 rate = 250 left = retainer - hours * rate # 8000 print(left) ``` Execution prints 8000. $8,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0062967
<|start|><|user|> How many 2-foot square tiles cover a 12 ft by 3 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 12 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 9 print(tiles) ``` # result: 9 It takes 9 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 12 ft by 3 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 12\nwidth = 3\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 9\nprint(tiles)\n```\n# result: 9\n\nIt takes 9...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0062968
<|start|><|user|> Mateo has 9 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 35 filings = 9 total = fee * filings # 315 print(total) ``` Out = 315 The filings cost $315 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mateo has 9 documents to file, and each filing costs $35. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 9\ntotal = fee * filings # 315\nprint(total)\n```\nOut = 315\n\nThe filings cost $315 in all." }...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0062969
The building opened in 1996. How many years had passed by 2033? As Python: ```python start_year = 1996 end_year = 2033 print(end_year - start_year) ``` Printed result: 37 That is 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0062970
To read 216 pages in 4 days, how many pages per day are needed? That is 54 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0062971
A bicycle helmet costs $120. It is 40% off. What is the sale price? Computing it: ```python price = 120 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` (Execution result: 72.00) It costs $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0062972
Hugo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week? Here is a short program for it. ```python rate = 16.0 hours = 42 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 48.0 pay = regular + overtime # 688.0 print(f"{pay:.2f}") ``` This prints: 688.00 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "688.00", "printed": "688.00", "notation": null}
nlprog_det-setting-0062973
What day of the week is November 15, 2024? Let the code do the arithmetic: ```python from datetime import date hearing = date(2024, 11, 15) # datetime.date(2024, 11, 15) print(hearing.strftime("%A")) ``` Printed = Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0062974
The meal allowance is $69 per day. What is it for 8 days? One way, in code: days = 8 meal_rate = 69 total = days * meal_rate # 552 print(total) It outputs: 552 The allowance is $552.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "552", "printed": "552", "notation": null}
nlprog_det-setting-0062975
A $2,500 security deposit has deductions of $60 and $85. How much is refunded? The Python version: ```python deposit = 2500 deductions = [60, 85] refund = deposit - sum(deductions) # 2355 print(refund) ``` Interpreter output — 2355 The refund is $2,355.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2355", "printed": "2355", "notation": null}
nlprog_det-setting-0062976
<|start|><|user|> Divide 276 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 276 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` (Output: 55 each, 1 left over) The...
chat
[ { "role": "user", "content": "Divide 276 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 276\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "55 each, 1 left over", "printed": "55 each, 1 left over", "notation": null}
nlprog_det-setting-0062977
Jonas has 11 documents to file, and each filing costs $350. How much are the filing fees in total? $3,850 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "3850", "printed": "3850", "notation": null}
nlprog_det-setting-0062978
What is 10 degrees Celsius in Fahrenheit? celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) Run output — 50 That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0062979
Which is cheaper per unit: 8 for $14.46 (A) or 18 for $29.81 (B)? ```python pack_a = 14.46 / 8 # 1.8075 pack_b = 29.81 / 18 # 1.656111111111111 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Program output: B) B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0062980
<|start|><|user|> An attorney bills 2.5 hours at $180 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2.5 rate = 180 bill = hours * rate # 450.0 print(f"{bill:.2f}") ``` The program outputs 450.00. That comes to $450.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2.5 hours at $180 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 180\nbill = hours * rate # 450.0\nprint(f\"{bill:.2f}\")\n```\nThe program outputs 450.00.\n\nThat comes to $450.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0062982
What is a 22% tip on a $81.36 bill? Python version: ```python bill = 81.36 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 17.8992 print(f"{tip:.2f}") ``` The run gives 17.90, as expected. Leave $17.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "17.90", "printed": "17.90", "notation": null}