-
Notifications
You must be signed in to change notification settings - Fork 0
/
import-error.json
38 lines (38 loc) · 1.65 KB
/
import-error.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
"import numpy as np\ncount = np.sum(arr)",
"\ncount = 0\nfor (index, value) in enumerate(arr):\n count += arr[index]",
"\ncount = sum(arr)",
"\ndef sum_array(array):\n return sum(array)\ncount = sum_array(arr)",
"\nmath.sqrt(a * a + b * b)",
"\n(a + b) / math.sqrt(2)",
"import numpy as np\ncount = np.sum(arr, axis=0)",
"import numpy as np\ncount = arr.sum(axis=0)",
"import numpy as np\ncount = np.sum(arr, axis=1)",
"import numpy as np\ncount = arr.sum(axis=1)",
"\ncount = 0\nfor (index, value) in enumerate(arr):\n count += value",
"\ncount = len(arr)",
"\ncount = arr.__len__()",
"\ncount = arr.shape[0]",
"\ncount = 0\nfor index in range(len(arr)):\n count += arr[index]",
"\ncount = sum(arr, start=0)",
"\ncount = arr.sum()",
"\narr = list(arr)\ncount = reduce(lambda x, y: x + y, arr)",
"\nsum(arr)",
"\ndef sum_array(array):\n total = 0\n for value in array:\n total += value\n return total\ncount = sum_array(arr)",
"import functools\ntemp = functools.reduce(add, (a, b))",
"\nmath.sqrt(a ** 2 + b ** 2)",
"\nmath.sqrt(sum((x * x for x in (a, b))))",
"\nmath.sqrt(2) * (a + b)",
"\n(a + b) / math.sqrt(2) + math.cos(x)",
"\n(a + b) / math.sqrt(2) if a < b else 20",
"\ntemp = a ** 2 + b ** 2\nmath.sqrt(temp)",
"\na = np.array([1, 2, 3])\nb = np.flip(a, axis=0)",
"\na = np.array([1, 2, 3])\nb = a[::-1]",
"\na = np.array([1, 2, 3])\nb = a[::-1, :]",
"\n(a, b) = swap(a, b)",
"\ntemp = swap(b, a)\nswap(a, temp)",
"\n(a, b, temp) = swap(a, b)",
"import numpy as np\na = np.max(temp)\nb = np.min(temp)",
"\n__import__('functools').wraps(orig)(lambda a: a.replace(b, ''))",
"\na = re.sub(b, b, a, count=2)\nb = a"
]