start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
b = [2, 1, 8, 5]; f = 8; j = 1 | f += b[j] | b = [2, 1, 8, 5]; f = 9; j = 1 |
d = [99, 123, 138, 155, 174, 114, 138, 153, 170, 189]; h = 25, 81, 25; m = 1000 | d.append(sum(h) % m) | d = [99, 123, 138, 155, 174, 114, 138, 153, 170, 189, 131]; h = (25, 81, 25); m = 1000 |
o = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289 ]; p = 18 | o += [p ** 2] | o = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324]; p = 18 |
i = -1; k = 2 | c = min(0, i + k - 1) | c = 0; i = -1; k = 2 |
f = '1'; w = '1' | w, f = [int(w), int(f)] | f = 1; w = 1 |
k = 4; r = 3 | r = k % 7 | k = 4; r = 4 |
g = 25, 49, 81; l = 138; m = 1000 | l = max(sum(g) % m, l) | g = (25, 49, 81); l = 155; m = 1000 |
d = 17; q = 11 | q += d | d = 17; q = 28 |
e = 0; f = 4, 6; o = 3 | e, o = f | e = 4; f = (4, 6); o = 6 |
b = ['i']; j = 4; o = 1; s = 'ifailuhkqq' | b = sorted(s[j:j + o]) | b = ['l']; j = 4; o = 1; s = 'ifailuhkqq' |
a = [[1, 3], [3, 4], [2, 4], [1, 2], [2, 3]]; q = [5, 6] | a.append(q) | a = [[1, 3], [3, 4], [2, 4], [1, 2], [2, 3], [5, 6]]; q = [5, 6] |
i = 3 | a.append(i) | a = [3]; i = 3 |
i = 17 | i += 1 | i = 18 |
e = {(203): 2, (204): 3, (205): 3}; l = 2; x = 206 | l = e.get(x, 0) | e = {203: 2, 204: 3, 205: 3}; l = 0; x = 206 |
r = 2 | a.append(r) | a = [2]; r = 2 |
l = 1; n = 1000000000000 | u = n % l | l = 1; n = 1000000000000; u = 0 |
l = [8, 23, 19, 16, 26, 7]; x = 6 | l.append(x) | l = [8, 23, 19, 16, 26, 7, 6]; x = 6 |
x = 14 | x += 1 | x = 15 |
i = 5; x = 3 | x = i | i = 5; x = 5 |
a = 2; b = 10; d = 720575940379279458; i = 56 | d += a ^ b << i | a = 2; b = 10; d = 1441151880758558820; i = 56 |
n = ['POTATO CHIPS', '30']; y = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 20)]) | y[n[0]] += int(n[1]) | n = ['POTATO CHIPS', '30']; y = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 60), ('APPLE JUICE', 20), ('CANDY', 20)]) |
a = [2, 4, 3, 7, 4, 5]; b = [5]; k = 4 | b.append(a[k]) | a = [2, 4, 3, 7, 4, 5]; b = [5, 4]; k = 4 |
a = 'ACK[' | a = a[1:] | a = 'CK[' |
a = [7, 6, 18] | i = [(x % 3) for x in a] | a = [7, 6, 18]; i = [1, 0, 0] |
m = 4; r = 20 | r += 2 + m | m = 4; r = 26 |
i = 5; n = 3 | n |= i | i = 5; n = 7 |
c = 0; u = 1; x = 7 | c += u * x | c = 7; u = 1; x = 7 |
f = 1000; i = 16, 64, 25; v = 165 | v = sum(i) % f | f = 1000; i = (16, 64, 25); v = 105 |
a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'o' | a[ord(i) - 97] += 1 | a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'o' |
d = deque([4, 1, 2]) | d.popleft() | d = deque([1, 2]) |
i = 5; s = 2; y = [0, 0, 0, 0, 0, 1] | s += y[i] % 10 | i = 5; s = 3; y = [0, 0, 0, 0, 0, 1] |
u = [26, 20] | u = u[:-1] | u = [26] |
i = 1; k = 2; q = [111, 105, -1, -1, -1, -1, -1, -1, -1, -1, -1] | q[i] += k | i = 1; k = 2; q = [111, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1] |
c = 2; u = {(0): set(), (1): set()} | u[c] = set() | c = 2; u = {0: set(), 1: set(), 2: set()} |
d = 3.0; n = 10.0; x = 0.14159265358979312; y = 3.141592653589793 | x = abs(n / d - y) | d = 3.0; n = 10.0; x = 0.19174067974354037; y = 3.141592653589793 |
a = {(0): 0, (1): 0}; i = 2 | a[i] = 0 | a = {0: 0, 1: 0, 2: 0}; i = 2 |
c = 1; e = 2; k = 27 | k += e * c | c = 1; e = 2; k = 29 |
k = 4 | k += 1 | k = 5 |
g = 99910; x = 999101 | x = g + 1 | g = 99910; x = 99911 |
e = 10 | c = [(0) for x in range(e)] | c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; e = 10 |
f = 11; i = 1; s = '123'; t = 9; y = 1000000007 | t = (t + int(s[i]) * (i + 1) * f) % y | f = 11; i = 1; s = '123'; t = 53; y = 1000000007 |
r = 2; t = 3 | r = t | r = 3; t = 3 |
r = '100'; z = '99' | z = z + r | r = '100'; z = '99100' |
g = [3, 2] | r = g[0] | g = [3, 2]; r = 3 |
f = [[0, 3, 4, 1000000000, 1000000000], [3, 0, 5, 6, 2], [4, 1000000000, 0, 1000000000, 1000000000], [1000000000, 6, 1000000000, 0, 1000000000], [ 1000000000, 2, 1000000000, 1000000000, 0]]; r = 5; x = 2; y = 3 | f[y - 1][x - 1] = r | f = [[0, 3, 4, 1000000000, 1000000000], [3, 0, 5, 6, 2], [4, 5, 0, 1000000000, 1000000000], [1000000000, 6, 1000000000, 0, 1000000000], [1000000000, 2, 1000000000, 1000000000, 0]]; r = 5; x = 2; y = 3 |
c = '1'; d = '91000' | d += c | c = '1'; d = '910001' |
c = 2178309; t = 3524578 | c = t | c = 3524578; t = 3524578 |
d = [1, 4, 6, 4]; i = 4; n = 4 | d.append(d[i - 1] * (n - i + 1) // i) | d = [1, 4, 6, 4, 1]; i = 4; n = 4 |
s = [9, 10] | z.append(s) | s = [9, 10]; z = [[9, 10]] |
x = 5 | x = int(x / 2) | x = 2 |
h = 4; i = 1 | h += i | h = 5; i = 1 |
d = {'abc': 1}; m = 'bcd' | d[m] = 1 | d = {'abc': 1, 'bcd': 1}; m = 'bcd' |
i = 2; w = 0 | w = i - 1 | i = 2; w = 1 |
i = 2; l = 98; q = [98, 74, 12] | l = l ^ q[i] | i = 2; l = 110; q = [98, 74, 12] |
i = 1 | c = i - 1 | c = 0; i = 1 |
i = 0; t = 2 | j = i + t | i = 0; j = 2; t = 2 |
i = 3; l = 5 | i = l | i = 5; l = 5 |
j = 196418; t = 121393 | j = t + j | j = 317811; t = 121393 |
m = [2]; u = 0 | u = m.pop() | m = []; u = 2 |
b = '1'; i = ['1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'] | i.append('0' if b == '1' else '1') | b = '1'; i = ['1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'] |
d = [1, 2, 4, 3, 5, 6]; x = 1; y = 4 | d[x + 1:y] = d[x + 1:y][::-1] | d = [1, 2, 3, 4, 5, 6]; x = 1; y = 4 |
a = [1, 2, 3, 4]; c = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, -2, 6, inf, inf]]; i = 3; j = 2; k = 2; n = 4; r = 6 | r = c[i][j] + a[i] * (i - j - (n - k - (i - j))) | a = [1, 2, 3, 4]; c = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, -2, 6, inf, inf]]; i = 3; j = 2; k = 2; n = 4; r = -2 |
e = 19 | e += 1 | e = 20 |
a = 58; i = 11; j = 50 | a = i ^ j | a = 57; i = 11; j = 50 |
a = 'o'; i = 107 | a = a + chr(i) | a = 'ok'; i = 107 |
j = 2; s = ['0.18', '0.89', '109.85'] | i.append(list(map(float, [s[j]]))) | i = [[109.85]]; j = 2; s = ['0.18', '0.89', '109.85'] |
i = 1; j = 1; y = ['a', 'b'] | y[i - 1], y[j] = y[j], y[i - 1] | i = 1; j = 1; y = ['b', 'a'] |
j = 1; l = [4, 7, 3, 5, 6, 2] | l[j + 1] = l[j] | j = 1; l = [4, 7, 7, 5, 6, 2] |
a = 51.5; i = '28' | a += float(i) | a = 79.5; i = '28' |
x = [3, 2, 2] | x.sort() | x = [2, 2, 3] |
c = '16'; i = 1; j = 1 | j = len(c) - i - 1 | c = '16'; i = 1; j = 0 |
h = [1, 2, 1, 1]; i = '1' | h.append(int(i)) | h = [1, 2, 1, 1, 1]; i = '1' |
c = 0 | c += 1 | c = 1 |
l = 9 | l = l + 1 | l = 10 |
e = 6; g = 3; x = [0, 1, 2, 6, 4, 5, 3] | x[g] = x[e] | e = 6; g = 3; x = [0, 1, 2, 3, 4, 5, 3] |
b = 0.3584073464102069; d = 3.0; n = 9.0; y = 3.141592653589793 | b = abs(n / d - y) | b = 0.14159265358979312; d = 3.0; n = 9.0; y = 3.141592653589793 |
c = 'u'; n = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1} | n[c] += 1 | c = 'u'; n = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 2} |
i = 60 | i += 1 | i = 61 |
i = 2; p = ['1', '1st', '2'] | p.append(str(i) + 'nd') | i = 2; p = ['1', '1st', '2', '2nd'] |
d = 25; i = 4; v = 4.0 | v = pow(d - i * i, 0.5) | d = 25; i = 4; v = 3.0 |
g = 9 | g += 1 | g = 10 |
c = 7, [5]; l = [2] | l = c[1] | c = (7, [5]); l = [5] |
i = 1; j = 6; r = [97, 102, 105, 108, 117]; s = 'ifailuhkqq' | r = [ord(x) for x in s[i:i + j]] | i = 1; j = 6; r = [102, 97, 105, 108, 117, 104]; s = 'ifailuhkqq' |
d = [[[], [[], [], [], [], True, False], [], [], False, True], [], [], [], [], False, False] | d[-1] = True | d = [[[], [[], [], [], [], True, False], [], [], False, True], [], [], [], [], False, True] |
e = [4, 1, 3, 2, 4] | b = e[-2] | b = 2; e = [4, 1, 3, 2, 4] |
h = {(0): [0], (1): [1]}; i = 2; y = 2 | h[y] = [i] | h = {0: [0], 1: [1], 2: [2]}; i = 2; y = 2 |
c = 11; x = 210 | x *= c | c = 11; x = 2310 |
i = 1; j = 0 | j = i | i = 1; j = 1 |
d = -0.0; k = 0; n = 0.0; z = 3 | d *= (n - k) / (z - 1 - k) | d = -0.0; k = 0; n = 0.0; z = 3 |
c = {'a'}; p = 3; s = 'abba' | c.add(s[p]) | c = {'a'}; p = 3; s = 'abba' |
a = [1, -3, 71, 68, 17] | a.sort() | a = [-3, 1, 17, 68, 71] |
i = 10; x = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1] | x.append(x[i - 1] ^ i) | i = 10; x = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11] |
b = 18; t = 27 | b = t | b = 27; t = 27 |
i = 52.0 | d += i | d = 102.0; i = 52.0 |
f = [16658.0, 9673.0, 11552.0]; j = 1; r = [95.0, 92.0, 95.0] | f[j] += r[j] * r[j] | f = [16658.0, 18137.0, 11552.0]; j = 1; r = [95.0, 92.0, 95.0] |
l = ['Funny'] | l.append('Not Funny') | l = ['Funny', 'Not Funny'] |
h = 2; j = [(0, 0)]; l = 0; n = {(0, 0): [(1, 0), (2, 0)], (0, 2): [(1, 2), (2, 2)], (1, 0): [(0, 0)]} | j.append(tuple([h, l])) | h = 2; j = [(0, 0), (2, 0)]; l = 0; n = {(0, 0): [(1, 0), (2, 0)], (0, 2): [(1, 2), (2, 2)], (1, 0): [(0, 0)]} |
f = [6] | f = f[1:] | f = [] |
x = 2475880078570760549798248448 | x *= 2 | x = 4951760157141521099596496896 |
d = 63245986; e = 102334155 | d = e | d = 102334155; e = 102334155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.