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-0084382
Sales went from 400 to 200. What is the percent change? Programmatically: ```python old = 400 new = 200 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` Result — -50 The change is -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0084383
<|start|><|user|> A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 paymen...
chat
[ { "role": "user", "content": "A $6,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0084384
How many of 207 votes make 60% (round up)? We can compute it in Python. ```python import math voters = 207 needed = math.ceil(voters * 60 / 100) # 125 print(needed) ``` (Execution result: 125) 125 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0084385
15 headsets cost $15 apiece. With 10% tax added, what is the total? Here's the code. ```python quantity = 15 unit_price = 15 subtotal = quantity * unit_price total = subtotal * (1 + 10 / 100) print(f"{total:.2f}") ``` Printed result: 247.50 The total with tax is $247.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "247.50", "printed": "247.50", "notation": null}
nlprog_det-setting-0084387
An invoice lists 18 cables at $9 each, plus 6% sales tax. What is the invoice total? Set it up in Python: ```python quantity = 18 unit_price = 9 subtotal = quantity * unit_price # 162 total = subtotal * (1 + 6 / 100) # 171.72 print(f"{total:.2f}") ``` The code prints 171.72. The total with tax is $171.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "171.72", "printed": "171.72", "notation": null}
nlprog_det-setting-0084388
<|start|><|system|> The following tools are available. Call one when it helps. [{"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"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0084389
Printing costs 10 cents a page. What does it cost to print 128 copies of a 16-page handout? Computing it: ```python pages = 16 copies = 128 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 204.8 print(f"{cost:.2f}") ``` Output — 204.80 The job costs $204.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "204.80", "printed": "204.80", "notation": null}
nlprog_det-setting-0084390
Attendance was 21 out of 25. Express it as a percent. Here is the program. present = 21 total = 25 percent = present / total * 100 # 84.0 print(round(percent, 1)) Executed, it shows 84.0. 84.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0084391
<|start|><|user|> A recipe for 8 people uses 300 grams of sugar. How many grams are needed for 4 people?<|eot|> <|assistant|> ```python grams = 300 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 150 print(scaled) ``` Running it prints 150, as expected. 150 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 300 grams of sugar. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 8\nneeded_for = 4\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nRunning it prints 150,...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0084392
Each of Ada's swims burns 300 calories. How many calories over 4 swims? ```python per_session = 300 sessions = 4 total = per_session * sessions print(total) ``` (Execution result: 1200) 1200 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0084393
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> 11 boxes hold 10 cables each. After 8 are handed out, how many are left?<|eot|> <|assistant|> boxes = 11 per_box = 10 given_away = 8 left = boxes * per_box - given_away # 102 print(left) Printed: 102 That leaves 102 cables.<|eot|>...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "11 boxes hold 10 cables each. After 8 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 11\n per_box = 10\n given_away = 8\n left = boxes * p...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0084394
Walls total 1128 sq ft and each can covers 400 sq ft. How many cans should be bought? ```python import math area = 1128 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` Execution prints 3, as expected. 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0084395
<|start|><|system|> Tool definitions: {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> One can of paint covers 250 squa...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0084396
6 swims at 300 calories each burn how many calories in total? Computation in Python: ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Output: 1800 That burns 1800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0084397
From 1996 to 2001, how many years is that? ```python start_year = 1996 end_year = 2001 print(end_year - start_year) ``` Executing it gives 5, as expected. 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0084398
<|start|><|system|> Tools you may use: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "description": ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
274
{"gold": "680", "printed": "680", "notation": null}
nlprog_det-setting-0084399
17 of 20 members attended. What percent attended? Coded up: ```python present = 17 total = 20 percent = present / total * 100 print(round(percent, 1)) ``` Out — 85.0 Attendance was 85.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0084400
A 525-page report must be reviewed in 15 days. How many pages a day is that, evenly? That is 35 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0084402
Walls total 303 sq ft and each can covers 400 sq ft. How many cans should be bought? Here's the code. ```python import math area = 303 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` The interpreter prints: 1 Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0084403
<|start|><|system|> Tools (call with JSON): {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute", "description": ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0084404
If a 75-minute appointment begins at 11:10 AM, what time does it finish? Script: ```python start = 11 * 60 + 10 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result: 12:25 PM It ends at 12:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "12:25 PM", "printed": "12:25 PM", "notation": null}
nlprog_det-setting-0084405
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> How many units at $40 each (variable cost $32) cover $1,200 of fixed costs?<|eot|> <|assistant|> import math fixed = 1200 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 150 print(units) ...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "How many units at $40 each (variable cost $32) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 1200\n price = 40\n v...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0084406
A penalty of $25 a day accrues, capped at $5,000. What is owed after 42 days? $1,050 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0084407
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Find the mean of these test scores: 56, 96, 82 and 58.<|eot|> <|assistant|> ```python scores = [56, 96, 82, 58] average = sum(scores) // len(scores) print(average) ``` The script prints 73. The mean is 73.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Find the mean of these test scores: 56, 96, 82 and 58." }, { "role": "assistant", "content": "```python\nscores = [56, 96, 82, 58]\naverage = sum(scores) // len(scores)\nprint(av...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0084408
<|start|><|user|> A $84 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 84 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 50.4 print(f"{each:.2f}") It prints 50.40, as expected. Each person pay...
chat
[ { "role": "user", "content": "A $84 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 84\n tip_rate = 20 / 100 # 0.2\n people = 2\n each = bill * (1 + tip_rate) / people # 50.4\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0084409
<|start|><|user|> A shift runs from 7:13 AM to 11:30 AM. How long is it in minutes?<|eot|> <|assistant|> It is 257 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:13 AM to 11:30 AM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 257 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "257", "printed": "257", "notation": null}