start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
d = [2, 0, 4, 7, 0, 0, 0, 0]; n = [4, 9, 2, 3, 7, 8, 1, 6] | d[4] = n[3] | d = [2, 0, 4, 7, 3, 0, 0, 0]; n = [4, 9, 2, 3, 7, 8, 1, 6] |
i = 1; k = 2; l = '992299' | k = int(l[i]) | i = 1; k = 9; l = '992299' |
c = 'd'; d = {'d': 0, 'c': 1, 'e': 0} | d[c] += 1 | c = 'd'; d = {'d': 1, 'c': 1, 'e': 0} |
j = [3, 1, 2]; o = 0 | t = j[o] | j = [3, 1, 2]; o = 0; t = 3 |
i = '0'; x = '1111111111111' | x += str(int(i) ^ 1) | i = '0'; x = '11111111111111' |
i = '_'; u = {'B': 1} | u[i] = 1 | i = '_'; u = {'B': 1, '_': 1} |
i = 19; r = 10 | r = i | i = 19; r = 19 |
f = [['1', '3', '4', '8'], ['5', '6', '7', '8'], ['9', '10', '11', '12'], [ '13', '14', '15', '16']]; h = '2'; i = 0; p = 0 | h = f[p][i] | f = [['1', '3', '4', '8'], ['5', '6', '7', '8'], ['9', '10', '11', '12'], ['13', '14', '15', '16']]; h = '1'; i = 0; p = 0 |
m = 4; n = 4 | v = m * n | m = 4; n = 4; v = 16 |
a = 233; p = 377 | a = p | a = 377; p = 377 |
h = 100 | h = pow(2 * h, 0.5) | h = 14.142135623730951 |
p = 4 | x = p / 2 | p = 4; x = 2.0 |
d = [1, 2, 4, 8, 16, 32, 64, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648]; i = 0 | p = d[i] | d = [1, 2, 4, 8, 16, 32, 64, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648]; i = 0; p = 1 |
k = 2; y = 180 | y += k | k = 2; y = 182 |
i = {(1): [0], (4): [1], (5): [2]}; x = 3 | i[x] = [] | i = {1: [0], 4: [1], 5: [2], 3: []}; x = 3 |
i = 3; j = 7; q = 'ifailuhkqq'; s = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ailuhk', 'ailuhkq', 'ailuhkqq', 'i', 'il', 'ilu'] | s.append(q[i:j]) | i = 3; j = 7; q = 'ifailuhkqq'; s = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ailuhk', 'ailuhkq', 'ailuhkqq', 'i', 'il', 'ilu', 'iluh'] |
a = ['2', '3', '4', '5']; t = '1' | a.append(t) | a = ['2', '3', '4', '5', '1']; t = '1' |
i = 0 | c[i] = 1 | c = {0: 1}; i = 0 |
l = '_'; n = ['C', 1, 1] | n = [l, 1, 0] | l = '_'; n = ['_', 1, 0] |
v = [1, 2, 3] | l = v[0] | l = 1; v = [1, 2, 3] |
e = 'd'; z = {'c': 4, 'd': 3} | z[e] = z[e] + 1 | e = 'd'; z = {'c': 4, 'd': 4} |
i = 1; p = ['a', 'b'] | p.pop(i) | i = 1; p = ['a'] |
i = 0; o = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] | d += o[i][i] | d = -33; i = 0; o = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] |
u = 3; z = 2 | z = u | u = 3; z = 3 |
i = 2; j = 2; s = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [1, 0, 0, 0]] | s[i][j] = 0 | i = 2; j = 2; s = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0]] |
p = 40 | p += 1 | p = 41 |
a = '1'; b = '2'; c = '100' | s += (int(b) - int(a) + 1) * int(c) | a = '1'; b = '2'; c = '100'; s = 263 |
i = 5; k = 1011; s = '101103' | k = int(s[:i]) | i = 5; k = 10110; s = '101103' |
i = 11; j = 84; r = 91 | r = i ^ j | i = 11; j = 84; r = 95 |
i = '1'; m = {(0): ['-', '-', '-', '-', '-', 'to'], (6): ['-', '-', '-', '-'], (4): ['-', 'that'], (3): ['be']}; w = 'be' | m[int(i)] = [w] | i = '1'; m = {0: ['-', '-', '-', '-', '-', 'to'], 6: ['-', '-', '-', '-'], 4: ['-', 'that'], 3: ['be'], 1: ['be']}; w = 'be' |
o = {(1): 1}; y = 3 | o[y] = 1 | o = {1: 1, 3: 1}; y = 3 |
c = ['{', '{'] | c.pop() | c = ['{'] |
a = [999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981]; i = 980 | a += [i] | a = [999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980]; i = 980 |
a = 2.333333333333333; i = 1; t = 2 | a += i * t | a = 4.333333333333333; i = 1; t = 2 |
t = [26, 26] | t = t[:-1] | t = [26] |
a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 15; p = 3; s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | p += abs(a[i] - s[i]) | a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 15; p = 4; s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
n = 7 | w = int((n + 1) / 2) - 1 | n = 7; w = 3 |
i = 4; j = 3; r = [(1, 1), (1, 4), (3, 2), (4, 3), (7, 0), (7, 5)] | j = abs(r[i][1] - r[i + 1][1]) | i = 4; j = 5; r = [(1, 1), (1, 4), (3, 2), (4, 3), (7, 0), (7, 5)] |
a = 7; r = 8 | a = r | a = 8; r = 8 |
i = 3; l = [[2, 1], [4, 2], [3, 1], [5, 1], [2, 1], [6, 1], [4, 1], [5, 1]] | l[i][1] += 1 | i = 3; l = [[2, 1], [4, 2], [3, 1], [5, 2], [2, 1], [6, 1], [4, 1], [5, 1]] |
a = [0, 0, 0, 0]; i = 0; n = ['4', '5', '7', '5'] | a[i] = int(n[i]) | a = [4, 0, 0, 0]; i = 0; n = ['4', '5', '7', '5'] |
a = ['I love to', 'love to dance']; l = 'I like to' | a.append(l) | a = ['I love to', 'love to dance', 'I like to']; l = 'I like to' |
e = 2.0; s = 2.0 | e += s | e = 4.0; s = 2.0 |
a = 2; f = 3 | f = a | a = 2; f = 2 |
n = 3 | d = [(1) for idx in range(n)] | d = [1, 1, 1]; n = 3 |
c = 1; f = 1; v = 1 | f = c ** 2 + v | c = 1; f = 2; v = 1 |
i = 0; t = 0; u = [['-2', '-3', '-1', '-4', '-6']] | u[t][i] = int(u[t][i]) | i = 0; t = 0; u = [[-2, '-3', '-1', '-4', '-6']] |
g = {'a': 1, 'b': 1}; i = 'c' | g[i] = 1 | g = {'a': 1, 'b': 1, 'c': 1}; i = 'c' |
h = [(4, 0), (7, 1), (10, 1)]; s = 5, 0 | s = h.pop() | h = [(4, 0), (7, 1)]; s = (10, 1) |
v = 'dest, char' | s = f'def __new__(_cls, {v}): return _tuple_new(_cls, ({v}))' | s = 'def __new__(_cls, dest, char): return _tuple_new(_cls, (dest, char))'; v = 'dest, char' |
f = 6; p = 'AAABBB' | f = len(p) | f = 6; p = 'AAABBB' |
i = 1; j = 0; q = 0; z = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | z[i + 1][j + 1] = q | i = 1; j = 0; q = 0; z = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [inf, 0, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] |
b = 11.0; n = 7 | b = 5 * n ** 2 - 4 | b = 241; n = 7 |
j = 2; p = [[0, 'ab'], [6, 'cd'], ['0', 'ef'], ['6', 'gh'], ['2', 'not'], ['4', 'is'], ['2', 'to'], ['4', 'the']] | p[j][0] = int(p[j][0]) | j = 2; p = [[0, 'ab'], [6, 'cd'], [0, 'ef'], ['6', 'gh'], ['2', 'not'], ['4', 'is'], ['2', 'to'], ['4', 'the']] |
a = 0; v = 2 | n[a] = v | a = 0; n = {0: 2}; v = 2 |
k = 1 | k += 2 | k = 3 |
f = [5, 2, 1]; l = 8 | f.append(l) | f = [5, 2, 1, 8]; l = 8 |
a = [2, 2, 2, 2, 2, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 3; j = 1; m = 3 | m += a[i] - j | a = [2, 2, 2, 2, 2, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 3; j = 1; m = 4 |
z = 1 | d += z | d = -22; z = 1 |
i = 2; l = Counter({(3): 1, (1): 2, (2): 1, (4): 1}) | l[i] -= 1 | i = 2; l = Counter({1: 2, 3: 1, 4: 1, 2: 0}) |
b = 7; t = 65 | t += b * b | b = 7; t = 114 |
i = 0; q = [1, 2, 1, 1, 1, 2, 1, 3] | m += q[i] | i = 0; m = 36; q = [1, 2, 1, 1, 1, 2, 1, 3] |
l = [0] | x = l.pop(0) | l = []; x = 0 |
r = [1]; t = 2 | r = r + [t] | r = [1, 2]; t = 2 |
d = '3'; x = 3 | x += int(d) | d = '3'; x = 6 |
i = 5.412831089289604e-122 | i /= 42 | i = 1.2887693069737153e-123 |
f = array([1.5, 3.5]); g = 139643923682768, 139644388230400; h = set() | h.add(g) | f = array([1.5, 3.5]); g = (139643923682768, 139644388230400); h = {(139643923682768, 139644388230400)} |
f = '34'; x = 0 | u.append(f[x]) | f = '34'; u = ['3']; x = 0 |
d = [10, 5]; s = 1; x = 2 | s += x % d[1] | d = [10, 5]; s = 3; x = 2 |
n = 0; t = 0; u = 0 | n = u + t | n = 0; t = 0; u = 0 |
j = 2; l = 1; n = 4; s = '010203' | l = int(s[j:n + j]) | j = 2; l = 203; n = 4; s = '010203' |
i = 59; w = 2 | i += w | i = 61; w = 2 |
a = 21; d = 1; n = 3 | a += (d + 1) * n | a = 27; d = 1; n = 3 |
d = 't'; x = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0]; y = 97 | x[ord(d) - y] += 1 | d = 't'; x = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]; y = 97 |
o = 20 | o += 1 | o = 21 |
p = 1; t = {(203): 1}; x = 203 | t[x] = p + 1 | p = 1; t = {203: 2}; x = 203 |
s = 'a' | x = s.count('a') | s = 'a'; x = 1 |
n = 1 | n = n - 1 | n = 0 |
c = 'd'; z = ['a', 'b'] | z.append(c) | c = 'd'; z = ['a', 'b', 'd'] |
a = [0, 0, 0, 0, 4]; i = 4; k = 3 | a[i] = a[i] - k | a = [0, 0, 0, 0, 1]; i = 4; k = 3 |
z = 1 | z = z + 1 | z = 2 |
w = [1, 1, 0]; z = 2 | w[z] = w[z] + 1 | w = [1, 1, 1]; z = 2 |
i = 3; r = [0, 1, 3] | r.append(r[i - 1] ^ i) | i = 3; r = [0, 1, 3, 0] |
a = [682.5]; c = [7.5, 7.7, 7.9, 8.1, 8.3]; g = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; k = 1 | a.append(c[k] * g[3][k]) | a = [682.5, 69.3]; c = [7.5, 7.7, 7.9, 8.1, 8.3]; g = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; k = 1 |
d = 0; e = 5; q = 4 | d = q - e | d = -1; e = 5; q = 4 |
d = 2545357; i = 2; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] | d = m[i + 1] - m[i] | d = 295636; i = 2; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] |
n = '.....' | k.append(n) | k = ['.....']; n = '.....' |
c = 10; n = 3 | c = 5 * (2 * n % 3) | c = 0; n = 3 |
x = 4; z = 5 | x = z | x = 5; z = 5 |
m = 1; t = 0; y = '0 1 5\n\n\n\n' | y = m ** 2 + t | m = 1; t = 0; y = 1 |
t = 9227465; v = [0, 1, 1, 2, 3, 5, 8, 13, 21, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887] | v.append(t) | t = 9227465; v = [0, 1, 1, 2, 3, 5, 8, 13, 21, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465] |
i = 2; o = 'b' | o = chr(i + 97) | i = 2; o = 'c' |
s = 7 | s = s >> 1 | s = 3 |
m = [4, 8, 2, 4, 5]; r = 7 | m.append(r) | m = [4, 8, 2, 4, 5, 7]; r = 7 |
e = [1]; k = 1; x = [1, 2, 2] | e = x[:k] | e = [1]; k = 1; x = [1, 2, 2] |
x = 0.0 | y = int(x) + 1 | x = 0.0; y = 1 |
a = ['1', '2'] | a = [int(x) for x in a] | a = [1, 2] |
i = 0; j = 1; x = [['+', '-', '+', '+', '+', '\n'], ['+', '-', '+', '+', '+', '\n'], ['+', '-', '-', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n']] | c = x[i][j] | c = '-'; i = 0; j = 1; x = [['+', '-', '+', '+', '+', '\n'], ['+', '-', '+', '+', '+', '\n'], ['+', '-', '-', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n'], ['+', '+', '+', '+', '+', '\n']] |
c = 41; s = 1 | c = c + s | c = 42; s = 1 |
i = 3 | s = s + i | i = 3; s = -45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.