Dataset Viewer
Auto-converted to Parquet Duplicate
group
stringclasses
97 values
ids
listlengths
12
255
right
int64
1
2k
wrong
int64
1
2k
value
stringclasses
227 values
task
stringclasses
14 values
idx
int64
0
713
label
stringlengths
6
67
text
stringlengths
30
934
right_str
stringclasses
65 values
wrong_str
stringclasses
65 values
closed_inner
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
1,252
330
closed_inner:11|9, 8
bracket_counting_beeg_aug3
0
closed_inner2_0_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]]
]
closed_inner
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
330
1,252
closed_inner:11|9, 8
bracket_counting_beeg_aug3
1
closed_inner1_0_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]
]]
closed_inner
[ 1599, 8, 551, 220, 15, 265, 260, 450, 449, 1697, 821, 361, 1509, 276, 351, 897, 338, 1525, 25, 566, 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, ...
1,252
330
closed_inner:11|9, 8
bracket_counting_beeg_aug3
2
closed_inner2_0_10
(result) > 0: print("The route will follow the steps:") for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('poin...
]]
]
closed_inner
[ 1599, 8, 551, 220, 15, 265, 260, 450, 449, 1697, 821, 361, 1509, 276, 351, 897, 338, 1525, 25, 566, 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, ...
330
1,252
closed_inner:11|9, 8
bracket_counting_beeg_aug3
3
closed_inner1_0_10
(result) > 0: print("The route will follow the steps:") for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('poin...
]
]]
closed_inner
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
1,252
330
closed_inner:13|15, 3, 13
bracket_counting_beeg_aug3
4
closed_inner2_2_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]]
]
closed_inner
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
330
1,252
closed_inner:13|15, 3, 13
bracket_counting_beeg_aug3
5
closed_inner1_2_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]
]]
closed_inner
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
1,252
330
closed_inner:13|15, 3, 13
bracket_counting_beeg_aug3
6
closed_inner2_2_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]]
]
closed_inner
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
330
1,252
closed_inner:13|15, 3, 13
bracket_counting_beeg_aug3
7
closed_inner1_2_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]
]]
closed_inner
[ 287, 34, 34, 37, 34, 46, 27, 18, 265, 260, 2016, 50, 37, 32, 46, 458, 740, 78, 313, 64, 516, 47, 369, 69, 49, 43, 34, 46, 34, 1595, 34, 34, 37, 34, 46, 382, 75, 42, 35, 57, 46, 12, 16, 507, 260, 287, 34, 34, 37, 34, ...
1,252
330
closed_inner:4, 6|2, 12, 0
bracket_counting_beeg_aug3
8
closed_inner2_4_7
nCCFCO<3: dictSFAO.append(tournamentPrintfRLCOC[nCCFCO][lKDZO-1]) nCCFCO+=1 dictSARV=sorted(list(set(dictSFAO)))[0] print(dictSFAO) firstDIFFAX=dictSFAO.index(dictSARV) if firstDIFFAX>0: print(firstDIFFAX+1) values =[[4, 6], [2, 12, 0
]]
]
closed_inner
[ 287, 34, 34, 37, 34, 46, 27, 18, 265, 260, 2016, 50, 37, 32, 46, 458, 740, 78, 313, 64, 516, 47, 369, 69, 49, 43, 34, 46, 34, 1595, 34, 34, 37, 34, 46, 382, 75, 42, 35, 57, 46, 12, 16, 507, 260, 287, 34, 34, 37, 34, ...
330
1,252
closed_inner:4, 6|2, 12, 0
bracket_counting_beeg_aug3
9
closed_inner1_4_7
nCCFCO<3: dictSFAO.append(tournamentPrintfRLCOC[nCCFCO][lKDZO-1]) nCCFCO+=1 dictSARV=sorted(list(set(dictSFAO)))[0] print(dictSFAO) firstDIFFAX=dictSFAO.index(dictSARV) if firstDIFFAX>0: print(firstDIFFAX+1) values =[[4, 6], 2, 12, 0
]
]]
closed_inner
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
1,252
330
closed_inner:4, 6|2, 12, 0
bracket_counting_beeg_aug3
10
closed_inner2_4_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[[4, 6], [2, 12, 0
]]
]
closed_inner
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
330
1,252
closed_inner:4, 6|2, 12, 0
bracket_counting_beeg_aug3
11
closed_inner1_4_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[[4, 6], 2, 12, 0
]
]]
closed_inner
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
1,252
330
closed_inner:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
12
closed_inner2_6_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[[13, 6, 8, 6], [13, 1...
]]
]
closed_inner
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
330
1,252
closed_inner:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
13
closed_inner1_6_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[[13, 6, 8, 6], 13, 13...
]
]]
closed_inner
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
1,252
330
closed_inner:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
14
closed_inner2_6_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]]
]
closed_inner
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
330
1,252
closed_inner:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
15
closed_inner1_6_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]
]]
closed_inner
[ 1453, 485, 277, 284, 1362, 359, 485, 25, 342, 315, 1616, 1155, 260, 450, 461, 1, 51, 510, 402, 1616, 331, 78, 276, 286, 25, 342, 1832, 381, 1616, 1155, 260, 450, 449, 12, 12, 12, 12, 12, 12, 12, 1372, 769, 549, 624, 378, 365, ...
1,252
330
closed_inner:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
16
closed_inner2_8_11
overage in this stage: {coverage}") print(f"Total coverage so far: {total_coverage}") print("-------") if __name__ == "__main__": main()<|endoffile|>import random import numpy as np # Define the coverage function def calc_set_cov(adj, curr_inv, uncert_set_list, prev_covered=[]): cov = 0 ar...
]]
]
closed_inner
[ 1453, 485, 277, 284, 1362, 359, 485, 25, 342, 315, 1616, 1155, 260, 450, 461, 1, 51, 510, 402, 1616, 331, 78, 276, 286, 25, 342, 1832, 381, 1616, 1155, 260, 450, 449, 12, 12, 12, 12, 12, 12, 12, 1372, 769, 549, 624, 378, 365, ...
330
1,252
closed_inner:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
17
closed_inner1_8_11
overage in this stage: {coverage}") print(f"Total coverage so far: {total_coverage}") print("-------") if __name__ == "__main__": main()<|endoffile|>import random import numpy as np # Define the coverage function def calc_set_cov(adj, curr_inv, uncert_set_list, prev_covered=[]): cov = 0 ar...
]
]]
closed_inner
[ 674, 82, 261, 292, 860, 82, 463, 506, 328, 878, 724, 8, 302, 933, 277, 278, 440, 65, 1246, 472, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82...
1,252
330
closed_inner:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
18
closed_inner2_8_2
_costs = [abs(position - target_position) for position in crab_positions] total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input lis...
]]
]
closed_inner
[ 674, 82, 261, 292, 860, 82, 463, 506, 328, 878, 724, 8, 302, 933, 277, 278, 440, 65, 1246, 472, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82...
330
1,252
closed_inner:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
19
closed_inner1_8_2
_costs = [abs(position - target_position) for position in crab_positions] total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input lis...
]
]]
closed_inner
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
1,252
330
closed_inner:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
20
closed_inner2_10_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]]
]
closed_inner
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
330
1,252
closed_inner:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
21
closed_inner1_10_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]
]]
closed_inner
[ 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, 15, 13, 17, 11, 505, 1454, 393, 28, 739, 293, 260, 379, 312, 340, 3...
1,252
330
closed_inner:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
22
closed_inner2_10_12
return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != self.domain[i, 0]: return...
]]
]
closed_inner
[ 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, 15, 13, 17, 11, 505, 1454, 393, 28, 739, 293, 260, 379, 312, 340, 3...
330
1,252
closed_inner:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
23
closed_inner1_10_12
return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != self.domain[i, 0]: return...
]
]]
closed_inner
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
1,252
330
closed_inner:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
24
closed_inner2_12_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =[[4, 12], [9, 1, 3, 6, 3, 9, 6, 6, 14
]]
]
closed_inner
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
330
1,252
closed_inner:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
25
closed_inner1_12_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =[[4, 12], 9, 1, 3, 6, 3, 9, 6, 6, 14
]
]]
closed_inner
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
1,252
330
closed_inner:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
26
closed_inner2_12_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[[4, 12], [9, 1, 3, 6, 3, 9, 6, 6, 14
]]
]
closed_inner
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
330
1,252
closed_inner:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
27
closed_inner1_12_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[[4, 12], 9, 1, 3, 6, 3, 9, 6, 6, 14
]
]]
closed_inner
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
1,252
330
closed_inner:6, 14, 3, 5, 0, 9, 7|13, 11, 7, 8, 9, 2, 8
bracket_counting_beeg_aug3
28
closed_inner2_14_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[[6, 14, 3, 5, 0, 9, 7], [13, 11, 7, 8, 9, 2, 8
]]
]
closed_inner
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
330
1,252
closed_inner:6, 14, 3, 5, 0, 9, 7|13, 11, 7, 8, 9, 2, 8
bracket_counting_beeg_aug3
29
closed_inner1_14_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[[6, 14, 3, 5, 0, 9, 7], 13, 11, 7, 8, 9, 2, 8
]
]]
closed_inner
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
1,252
330
closed_inner:6, 14, 3, 5, 0, 9, 7|13, 11, 7, 8, 9, 2, 8
bracket_counting_beeg_aug3
30
closed_inner2_14_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]]
]
closed_inner
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
330
1,252
closed_inner:6, 14, 3, 5, 0, 9, 7|13, 11, 7, 8, 9, 2, 8
bracket_counting_beeg_aug3
31
closed_inner1_14_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]
]]
closed_inner
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
1,252
330
closed_inner:0, 0, 10, 0, 7|8, 0, 9, 10, 14, 1, 10, 1, 6, 15, 14, 7
bracket_counting_beeg_aug3
32
closed_inner2_16_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]]
]
closed_inner
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
330
1,252
closed_inner:0, 0, 10, 0, 7|8, 0, 9, 10, 14, 1, 10, 1, 6, 15, 14, 7
bracket_counting_beeg_aug3
33
closed_inner1_16_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]
]]
closed_inner
[ 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, 296, 769, 549, 624, 378, 365, 2014, 775, 2028, 258, 758, 875, 261, 220, 904, 1228, 266, 13, 32, 81, ...
1,252
330
closed_inner:0, 0, 10, 0, 7|8, 0, 9, 10, 14, 1, 10, 1, 6, 15, 14, 7
bracket_counting_beeg_aug3
34
closed_inner2_16_10
for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('points', metavar='N', type=str, nargs='+',help='an point for the ind...
]]
]
closed_inner
[ 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, 296, 769, 549, 624, 378, 365, 2014, 775, 2028, 258, 758, 875, 261, 220, 904, 1228, 266, 13, 32, 81, ...
330
1,252
closed_inner:0, 0, 10, 0, 7|8, 0, 9, 10, 14, 1, 10, 1, 6, 15, 14, 7
bracket_counting_beeg_aug3
35
closed_inner1_16_10
for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('points', metavar='N', type=str, nargs='+',help='an point for the ind...
]
]]
content
[ 674, 82, 261, 292, 860, 82, 463, 506, 328, 878, 724, 8, 302, 933, 277, 278, 440, 65, 1246, 472, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82...
1,252
330
content:x
bracket_counting_beeg_aug3
36
content2_0_2
_costs = [abs(position - target_position) for position in crab_positions] total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input lis...
]]
]
content
[ 674, 82, 261, 292, 860, 82, 463, 506, 328, 878, 724, 8, 302, 933, 277, 278, 440, 65, 1246, 472, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82...
330
1,252
content:x
bracket_counting_beeg_aug3
37
content1_0_2
_costs = [abs(position - target_position) for position in crab_positions] total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input lis...
]
]]
content
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
1,252
330
content:x
bracket_counting_beeg_aug3
38
content2_0_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[[x
]]
]
content
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
330
1,252
content:x
bracket_counting_beeg_aug3
39
content1_0_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[x
]
]]
content
[ 88, 198, 281, 515, 62, 1039, 261, 515, 62, 1039, 469, 402, 351, 198, 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, ...
1,252
330
content:-1, 2
bracket_counting_beeg_aug3
40
content2_2_12
y start_temp = start_temp * cool return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != ...
]]
]
content
[ 88, 198, 281, 515, 62, 1039, 261, 515, 62, 1039, 469, 402, 351, 198, 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, ...
330
1,252
content:-1, 2
bracket_counting_beeg_aug3
41
content1_2_12
y start_temp = start_temp * cool return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != ...
]
]]
content
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
1,252
330
content:-1, 2
bracket_counting_beeg_aug3
42
content2_2_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]]
]
content
[ 293, 260, 321, 1141, 7, 389, 307, 8, 365, 292, 72, 302, 280, 277, 399, 7, 16, 11, 220, 422, 677, 384, 258, 379, 1403, 1038, 82, 721, 293, 260, 321, 974, 501, 881, 1858, 307, 1047, 8, 302, 600, 277, 622, 270, 384, 258, 379, 1...
330
1,252
content:-1, 2
bracket_counting_beeg_aug3
43
content1_2_3
): return sorted(unit) == [i for i in range(1, 10)] def check_rows(grid): return all(check_unit(row) for row in grid) def check_cols(grid): transposed_grid = [list(col) for col in zip(*grid)] return all(check_unit(col) for col in transposed_grid) def check_boxe...
]
]]
content
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
1,252
330
content:'a', 'b'
bracket_counting_beeg_aug3
44
content2_4_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[['a', 'b'
]]
]
content
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
330
1,252
content:'a', 'b'
bracket_counting_beeg_aug3
45
content1_4_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =['a', 'b'
]
]]
content
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
1,252
330
content:'a', 'b'
bracket_counting_beeg_aug3
46
content2_4_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]]
]
content
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
330
1,252
content:'a', 'b'
bracket_counting_beeg_aug3
47
content1_4_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]
]]
content
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
1,252
330
content:len(a), len(b)
bracket_counting_beeg_aug3
48
content2_11_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[[len(a), len(b)
]]
]
content
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
330
1,252
content:len(a), len(b)
bracket_counting_beeg_aug3
49
content1_11_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[len(a), len(b)
]
]]
content
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
1,252
330
content:len(a), len(b)
bracket_counting_beeg_aug3
50
content2_11_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]]
]
content
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
330
1,252
content:len(a), len(b)
bracket_counting_beeg_aug3
51
content1_11_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]
]]
content
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
1,252
330
content:1.5, 2.0, 0.25
bracket_counting_beeg_aug3
52
content2_3_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[[1.5, 2.0, 0.25
]]
]
content
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
330
1,252
content:1.5, 2.0, 0.25
bracket_counting_beeg_aug3
53
content1_3_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[1.5, 2.0, 0.25
]
]]
content
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
1,252
330
content:1.5, 2.0, 0.25
bracket_counting_beeg_aug3
54
content2_3_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]]
]
content
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
330
1,252
content:1.5, 2.0, 0.25
bracket_counting_beeg_aug3
55
content1_3_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]
]]
content
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
1,252
330
content:'cat', 'dog', 'bird'
bracket_counting_beeg_aug3
56
content2_9_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =[['cat', 'dog', 'bird'
]]
]
content
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
330
1,252
content:'cat', 'dog', 'bird'
bracket_counting_beeg_aug3
57
content1_9_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =['cat', 'dog', 'bird'
]
]]
content
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
1,252
330
content:'cat', 'dog', 'bird'
bracket_counting_beeg_aug3
58
content2_9_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[['cat', 'dog', 'bird'
]]
]
content
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
330
1,252
content:'cat', 'dog', 'bird'
bracket_counting_beeg_aug3
59
content1_9_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =['cat', 'dog', 'bird'
]
]]
content
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
1,252
330
content:-3, -7, -11, -2, -9, -5
bracket_counting_beeg_aug3
60
content2_12_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[[-3, -7, -11, -2, -9, -5
]]
]
content
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
330
1,252
content:-3, -7, -11, -2, -9, -5
bracket_counting_beeg_aug3
61
content1_12_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[-3, -7, -11, -2, -9, -5
]
]]
content
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
1,252
330
content:-3, -7, -11, -2, -9, -5
bracket_counting_beeg_aug3
62
content2_12_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]]
]
content
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
330
1,252
content:-3, -7, -11, -2, -9, -5
bracket_counting_beeg_aug3
63
content1_12_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]
]]
content
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
1,252
330
content:0.1, -0.2, 0.3, -0.4
bracket_counting_beeg_aug3
64
content2_7_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]]
]
content
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
330
1,252
content:0.1, -0.2, 0.3, -0.4
bracket_counting_beeg_aug3
65
content1_7_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]
]]
content
[ 88, 198, 281, 515, 62, 1039, 261, 515, 62, 1039, 469, 402, 351, 198, 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, ...
1,252
330
content:0.1, -0.2, 0.3, -0.4
bracket_counting_beeg_aug3
66
content2_7_12
y start_temp = start_temp * cool return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != ...
]]
]
content
[ 88, 198, 281, 515, 62, 1039, 261, 515, 62, 1039, 469, 402, 351, 198, 260, 321, 980, 11, 314, 828, 263, 435, 1891, 671, 634, 363, 258, 379, 908, 68, 1169, 1186, 670, 947, 406, 11, 283, 357, 781, 28, 729, 11, 327, 366, 274, 28, ...
330
1,252
content:0.1, -0.2, 0.3, -0.4
bracket_counting_beeg_aug3
67
content1_7_12
y start_temp = start_temp * cool return solution, self.cost_func(solution) def genetic_optimize(self, pop_size=50, elite=0.2, max_iter=100): def mutate(solution): i = randint(0, len(self.domain) - 1) if np.random.random() < 0.5: if solution[i] != ...
]
]]
content
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
1,252
330
content:1e-3, 2e-3, 5e-3, 1e-2, 2e-2, 5e-2, 0.1
bracket_counting_beeg_aug3
68
content2_15_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]]
]
content
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
330
1,252
content:1e-3, 2e-3, 5e-3, 1e-2, 2e-2, 5e-2, 0.1
bracket_counting_beeg_aug3
69
content1_15_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]
]]
content
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
1,252
330
content:1e-3, 2e-3, 5e-3, 1e-2, 2e-2, 5e-2, 0.1
bracket_counting_beeg_aug3
70
content2_15_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]]
]
content
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
330
1,252
content:1e-3, 2e-3, 5e-3, 1e-2, 2e-2, 5e-2, 0.1
bracket_counting_beeg_aug3
71
content1_15_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]
]]
late_open
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
1,252
330
late_open:11|9, 8
bracket_counting_beeg_aug3
72
late_open2_0_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[11, [9, 8
]]
]
late_open
[ 415, 361, 525, 894, 198, 1670, 262, 272, 261, 283, 88, 70, 415, 13, 300, 1856, 1981, 416, 306, 646, 512, 781, 58, 15, 60, 9, 1217, 781, 11, 622, 781, 58, 16, 60, 9, 1217, 781, 1006, 2, 1355, 338, 540, 930, 220, 569, 67, 277,...
330
1,252
late_open:11|9, 8
bracket_counting_beeg_aug3
73
late_open1_0_6
ame window screen = pygame.display.set_mode((grid_size[0]*cell_size, grid_size[1]*cell_size)) # Define the colors used in the game background_color = (0, 0, 0) materials_colors = [(255, 255, i*255//9) for i in range(10)] # Initialize the list of blocks values =[11, [9], 8
]
]]
late_open
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
1,252
330
late_open:11|9, 8
bracket_counting_beeg_aug3
74
late_open2_0_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]]
]
late_open
[ 46, 53, 32, 62, 34, 50, 53, 62, 46, 52, 51, 47, 52, 51, 261, 295, 78, 85, 64, 1454, 318, 82, 684, 82, 85, 1749, 664, 756, 53, 32, 265, 258, 379, 549, 700, 649, 290, 293, 260, 396, 675, 78, 390, 338, 686, 318, 82, 735, 60...
330
1,252
late_open:11|9, 8
bracket_counting_beeg_aug3
75
late_open1_0_13
OVA_CSV_OUTPUT = "ova_iris.csv" class OVA: def __init__(self): # Load the Iris dataset self.data = [] with open('iris.csv') as csv_file: csv_reader = csv.reader(csv_file) for row in csv_reader: self.data.append(row) # Get the attribut...
]
]]
late_open
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
1,252
330
late_open:13|15, 3, 13
bracket_counting_beeg_aug3
76
late_open2_2_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]]
]
late_open
[ 279, 356, 50, 1277, 7, 616, 487, 75, 323, 511, 82, 11, 287, 1410, 1968, 11, 220, 739, 62, 782, 62, 782, 11, 1443, 17, 270, 258, 396, 788, 414, 279, 356, 394, 1277, 13, 81, 389, 963, 258, 396, 1255, 77, 315, 76, 516, 284, 136...
330
1,252
late_open:13|15, 3, 13
bracket_counting_beeg_aug3
77
late_open1_2_0
alingSolver(all_blueprints, n_minutes, 100_000_000, part2) # annealing_solver.run() # Uncomment this to run the sequential search method sequential_search(all_blueprints, n_minutes, part2) if __name__ == "__main__": main()<|endoffile|>import numpy as np from numba import njit def energy_order(bl...
]
]]
late_open
[ 287, 34, 34, 37, 34, 46, 27, 18, 265, 260, 2016, 50, 37, 32, 46, 458, 740, 78, 313, 64, 516, 47, 369, 69, 49, 43, 34, 46, 34, 1595, 34, 34, 37, 34, 46, 382, 75, 42, 35, 57, 46, 12, 16, 507, 260, 287, 34, 34, 37, 34, ...
1,252
330
late_open:13|15, 3, 13
bracket_counting_beeg_aug3
78
late_open2_2_7
nCCFCO<3: dictSFAO.append(tournamentPrintfRLCOC[nCCFCO][lKDZO-1]) nCCFCO+=1 dictSARV=sorted(list(set(dictSFAO)))[0] print(dictSFAO) firstDIFFAX=dictSFAO.index(dictSARV) if firstDIFFAX>0: print(firstDIFFAX+1) values =[13, [15, 3, 13
]]
]
late_open
[ 287, 34, 34, 37, 34, 46, 27, 18, 265, 260, 2016, 50, 37, 32, 46, 458, 740, 78, 313, 64, 516, 47, 369, 69, 49, 43, 34, 46, 34, 1595, 34, 34, 37, 34, 46, 382, 75, 42, 35, 57, 46, 12, 16, 507, 260, 287, 34, 34, 37, 34, ...
330
1,252
late_open:13|15, 3, 13
bracket_counting_beeg_aug3
79
late_open1_2_7
nCCFCO<3: dictSFAO.append(tournamentPrintfRLCOC[nCCFCO][lKDZO-1]) nCCFCO+=1 dictSARV=sorted(list(set(dictSFAO)))[0] print(dictSFAO) firstDIFFAX=dictSFAO.index(dictSARV) if firstDIFFAX>0: print(firstDIFFAX+1) values =[13, [15], 3, 13
]
]]
late_open
[ 1599, 8, 551, 220, 15, 265, 260, 450, 449, 1697, 821, 361, 1509, 276, 351, 897, 338, 1525, 25, 566, 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, ...
1,252
330
late_open:4, 6|2, 12, 0
bracket_counting_beeg_aug3
80
late_open2_4_10
(result) > 0: print("The route will follow the steps:") for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('poin...
]]
]
late_open
[ 1599, 8, 551, 220, 15, 265, 260, 450, 449, 1697, 821, 361, 1509, 276, 351, 897, 338, 1525, 25, 566, 260, 302, 280, 277, 601, 265, 281, 450, 1043, 270, 258, 486, 265, 260, 450, 449, 1697, 262, 509, 1936, 821, 13, 566, 258, 321, ...
330
1,252
late_open:4, 6|2, 12, 0
bracket_counting_beeg_aug3
81
late_open1_4_10
(result) > 0: print("The route will follow the steps:") for i in result: print(i) else: print("There is no route.") return if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find the shortest route between two points.') parser.add_argument('poin...
]
]]
late_open
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
1,252
330
late_open:4, 6|2, 12, 0
bracket_counting_beeg_aug3
82
late_open2_4_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[4, 6, [2, 12, 0
]]
]
late_open
[ 2, 733, 653, 262, 266, 319, 64, 127, 100, 127, 96, 78, 491, 220, 347, 283, 1290, 296, 310, 1604, 320, 1290, 721, 293, 258, 321, 622, 296, 310, 509, 320, 1290, 740, 293, 258, 321, 284, 917, 740, 8, 365, 1503, 410, 454, 740, 8, ...
330
1,252
late_open:4, 6|2, 12, 0
bracket_counting_beeg_aug3
83
late_open1_4_1
# Representação de um puzzle def create_puzzle(grid): return grid def is_puzzle(t): return type(t) == tuple and len(t) > 1 def puzzle_n_rows(t): return len(t) def puzzle_n_cols(t): for row in t: return len(row) def puzzle_set_space(t, pos, c): grid = t values =[4, 6, [2], 12, 0
]
]]
late_open
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
1,252
330
late_open:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
84
late_open2_6_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]]
]
late_open
[ 1273, 25, 663, 68, 288, 473, 314, 1500, 516, 491, 274, 761, 302, 342, 2010, 697, 1155, 329, 321, 678, 296, 281, 396, 1815, 302, 404, 439, 366, 66, 326, 276, 897, 82, 198, 281, 276, 897, 261, 298, 2010, 697, 11, 297, 325, 72, 4...
330
1,252
late_open:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
85
late_open1_6_4
Error: Self to self assignment detected for {sender}") return False # Check for duplicate flows flow = (sender, receiver) if flow in sender_receiver_pairs: print(f"Error: Duplicate flow detected: {flow}") return False sende...
]
]]
late_open
[ 1453, 485, 277, 284, 1362, 359, 485, 25, 342, 315, 1616, 1155, 260, 450, 461, 1, 51, 510, 402, 1616, 331, 78, 276, 286, 25, 342, 1832, 381, 1616, 1155, 260, 450, 449, 12, 12, 12, 12, 12, 12, 12, 1372, 769, 549, 624, 378, 365, ...
1,252
330
late_open:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
86
late_open2_6_11
overage in this stage: {coverage}") print(f"Total coverage so far: {total_coverage}") print("-------") if __name__ == "__main__": main()<|endoffile|>import random import numpy as np # Define the coverage function def calc_set_cov(adj, curr_inv, uncert_set_list, prev_covered=[]): cov = 0 ar...
]]
]
late_open
[ 1453, 485, 277, 284, 1362, 359, 485, 25, 342, 315, 1616, 1155, 260, 450, 461, 1, 51, 510, 402, 1616, 331, 78, 276, 286, 25, 342, 1832, 381, 1616, 1155, 260, 450, 449, 12, 12, 12, 12, 12, 12, 12, 1372, 769, 549, 624, 378, 365, ...
330
1,252
late_open:13, 6, 8, 6|13, 13, 12
bracket_counting_beeg_aug3
87
late_open1_6_11
overage in this stage: {coverage}") print(f"Total coverage so far: {total_coverage}") print("-------") if __name__ == "__main__": main()<|endoffile|>import random import numpy as np # Define the coverage function def calc_set_cov(adj, curr_inv, uncert_set_list, prev_covered=[]): cov = 0 ar...
]
]]
late_open
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
1,252
330
late_open:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
88
late_open2_8_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[5, 4, [14, 8, 7, 3, 13, 8
]]
]
late_open
[ 997, 740, 270, 709, 297, 277, 552, 265, 258, 450, 449, 34, 687, 396, 90, 1831, 342, 92, 342, 92, 342, 1040, 13, 1035, 264, 1332, 58, 15, 383, 297, 58, 16, 383, 308, 56, 36, 50, 6, 311, 297, 58, 17, 60, 486, 308, 45, 46, 37...
330
1,252
late_open:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
89
late_open1_8_14
olve(t) for re in res: print("Case #{}: {} {} {}".format(re[0], re[1], 'YES' if re[2] else 'NO', 'YES' if re[3] else 'NO'))<|endoffile|>class Solution: def solve(self, n, sequences): values =[5, 4, [14], 8, 7, 3, 13, 8
]
]]
late_open
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
1,252
330
late_open:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
90
late_open2_8_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]]
]
late_open
[ 384, 258, 302, 623, 277, 399, 7, 638, 21, 12, 986, 293, 260, 404, 1626, 1927, 58, 22, 60, 495, 404, 1626, 1927, 58, 15, 330, 260, 404, 1626, 1927, 458, 1483, 1626, 1927, 973, 7, 15, 457, 384, 258, 1443, 17, 261, 859, 1483, 162...
330
1,252
late_open:5, 4|14, 8, 7, 3, 13, 8
bracket_counting_beeg_aug3
91
late_open1_8_5
for _ in range(256-80): days_left[7] += days_left[0] days_left.append(days_left.pop(0)) part2 = sum(days_left) print(f"# after 256 days = {part2}") if __name__ == '__main__': start = time.perf_counter() main() exec_time = (time.perf_counter() - start)*1000 print("\...
]
]]
late_open
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
1,252
330
late_open:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
92
late_open2_10_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]]
]
late_open
[ 472, 258, 302, 220, 1387, 1078, 277, 220, 1387, 1078, 82, 265, 260, 1461, 818, 1012, 7, 1231, 1387, 1078, 363, 769, 549, 624, 378, 365, 1240, 775, 1245, 258, 1022, 1317, 322, 344, 69, 523, 451, 310, 1018, 317, 520, 707, 435, 64, ...
330
1,252
late_open:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
93
late_open1_10_8
] for question in questions: solve_problem(**question) if __name__ == "__main__": main()<|endoffile|>def celsius_to_fahrenheit(celsius_values): """ This function converts a list of temperatures from Celsius to Fahrenheit. :param celsius_values: list of temperatures in Celsius :type ce...
]
]]
late_open
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
1,252
330
late_open:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
94
late_open2_10_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =[2, 6, 8, [4, 9, 0, 10, 2, 9, 14
]]
]
late_open
[ 640, 11, 327, 1345, 8, 302, 327, 1345, 277, 327, 85, 953, 330, 258, 1173, 1080, 303, 769, 88, 1192, 1345, 1106, 303, 270, 384, 258, 396, 1920, 332, 629, 438, 572, 12, 301, 303, 82, 302, 1085, 831, 2010, 393, 1919, 1188, 338, 615...
330
1,252
late_open:2, 6, 8|4, 9, 0, 10, 2, 9, 14
bracket_counting_beeg_aug3
95
late_open1_10_15
_time, event) for event in events] heapq.heapify(event_heap) # Create a list of min-heaps for each presenter based on the end time of their scheduled events values =[2, 6, 8, [4], 9, 0, 10, 2, 9, 14
]
]]
late_open
[ 198, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82, 270, 258, 450, 1302, 64, 520, 82, 487, 75, 282, 270, 257, 296, 769, 549, 624, 378, 365, 1...
1,252
330
late_open:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
96
late_open2_12_2
total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input list of numbers, this function finds the number in the list that minimiz...
]]
]
late_open
[ 198, 258, 609, 435, 1941, 261, 1000, 717, 347, 461, 1941, 674, 82, 270, 384, 258, 450, 740, 696, 724, 270, 258, 450, 461, 1941, 674, 82, 270, 258, 450, 1302, 64, 520, 82, 487, 75, 282, 270, 257, 296, 769, 549, 624, 378, 365, 1...
330
1,252
late_open:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
97
late_open1_12_2
total_fuel = np.sum(fuel_costs) print(target_position) print(fuel_costs) print(gauss_blur) if __name__ == "__main__": main()<|endoffile|>def find_minimum_squared_distance(input_list): """ Given an input list of numbers, this function finds the number in the list that minimiz...
]
]]
late_open
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
1,252
330
late_open:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
98
late_open2_12_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[4, 12, [9, 1, 3, 6, 3, 9, 6, 6, 14
]]
]
late_open
[ 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 657, 278, 1528, 83, 74, 259, 393, 576, 278, 83, 74, 198, 2, 287, 993, 531, 68, 343, 680, 88, 52, 77, 468, 997, 67, 49, 1077, 68, 1977, 198, 69...
330
1,252
late_open:4, 12|9, 1, 3, 6, 3, 9, 6, 6, 14
bracket_counting_beeg_aug3
99
late_open1_12_9
noinspection PyUnresolvedReferences import customtkinter as ctk # noinspection PyUnresolvedReferences from customtkinter import simdctk5 as ctk5 values =[4, 12, [9], 1, 3, 6, 3, 9, 6, 6, 14
]
]]
End of preview. Expand in Data Studio

Python next-token tasks for circuit finding, with varied prompts

Prompts for finding and testing circuits (small parts of a model that still do a task) in small Python language models.

Contents

  • originals/tasks.jsonl — the original task prompts, from OpenAI's public release for Gao et al. 2025, "Weight-sparse transformers have interpretable circuits" (arXiv 2511.13653). For 16 tasks, 32 Python snippets each (16 pairs that differ by one edit flipping the next token), taken from the visualisation files they released for their csp_yolo2 model (openaipublic.blob.core.windows.net/circuit-sparsity, viz/csp_yolo2/<task>/.../viz_data.pt). The answer pairs (the two candidate next tokens per task) were set by us. Fields: task, idx, ids, right, wrong, right_str, wrong_str, text.
  • aug3/fit.jsonl, aug3/heldout.jsonl — for 14 of the tasks, variants of those snippets that vary exactly where a circuit could take a shortcut (other variable names, decoys of the other kind, more distance, other surface forms), labelled by kind of prompt (group). fit holds the originals (task <task>_aug3) plus fitting variants; heldout holds variants whose varied values (names, decoys, ...) never occur on the fitting side but cover the same range. Every varied value occurs with both answers. Fields: task, idx, group, ids, right, wrong, value (and label in fit), text, right_str, wrong_str.
  • aug3/summary.md — groups, counts and answer splits per task.

text is the prompt decoded from ids (it ends where the model predicts the next token); right_str / wrong_str are the two candidate next tokens as text. All ids are tokens of the tinypython_2k tokenizer (vocabulary 2048, end-of-text 2047); prompts are cut to their last 255 tokens.

How the variants were generated

One generator per task (rules: answers stay unambiguous; each varied value appears with both answers; both sides at least 30% each answer; held-out values interleaved with the fitting values over the same range; groups of 8 or more prompts), with a written rationale per task (the shortcuts considered, the groups, the coverage, what was left out). Generation code and per-task rationale live with the analysis code (bench/analysis/code_results_attribution/aug3/, make_aug3.py).

Credit

The original prompts are OpenAI's (Gao et al. 2025, released with https://github.com/openai/circuit_sparsity under the Apache License 2.0; a copy is in LICENSE). This dataset is distributed under the same license.

Changes from the originals: the prompts were extracted from OpenAI's released visualisation files and stored as token ids with an answer pair set by us (originals/); the files in aug3/ are modified versions of those prompts (renamed identifiers, inserted decoy lines and statements, changed surface forms, some answers flipped by the edit), cut to their last 255 tokens.

Downloads last month
64