Skip to content

Commit 4da3d1c

Browse files
Autogen benchmark
1 parent 05d8364 commit 4da3d1c

File tree

12,574 files changed

+841182
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,574 files changed

+841182
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return 5
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"file": "main.py",
4+
"line_number": 4,
5+
"col_offset": 5,
6+
"function": "param_func",
7+
"type": [
8+
"int"
9+
]
10+
},
11+
{
12+
"file": "main.py",
13+
"line_number": 8,
14+
"col_offset": 5,
15+
"function": "func",
16+
"type": [
17+
"int"
18+
]
19+
},
20+
{
21+
"file": "main.py",
22+
"line_number": 8,
23+
"col_offset": 10,
24+
"parameter": "a",
25+
"function": "func",
26+
"type": [
27+
"callable"
28+
]
29+
},
30+
{
31+
"file": "main.py",
32+
"line_number": 12,
33+
"col_offset": 1,
34+
"variable": "b",
35+
"type": [
36+
"callable"
37+
]
38+
},
39+
{
40+
"file": "main.py",
41+
"line_number": 13,
42+
"col_offset": 1,
43+
"variable": "c",
44+
"type": [
45+
"int"
46+
]
47+
}
48+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return 38.63
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"file": "main.py",
4+
"line_number": 4,
5+
"col_offset": 5,
6+
"function": "param_func",
7+
"type": [
8+
"float"
9+
]
10+
},
11+
{
12+
"file": "main.py",
13+
"line_number": 8,
14+
"col_offset": 5,
15+
"function": "func",
16+
"type": [
17+
"float"
18+
]
19+
},
20+
{
21+
"file": "main.py",
22+
"line_number": 8,
23+
"col_offset": 10,
24+
"parameter": "a",
25+
"function": "func",
26+
"type": [
27+
"callable"
28+
]
29+
},
30+
{
31+
"file": "main.py",
32+
"line_number": 12,
33+
"col_offset": 1,
34+
"variable": "b",
35+
"type": [
36+
"callable"
37+
]
38+
},
39+
{
40+
"file": "main.py",
41+
"line_number": 13,
42+
"col_offset": 1,
43+
"variable": "c",
44+
"type": [
45+
"float"
46+
]
47+
}
48+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return 'mlczq'
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"file": "main.py",
4+
"line_number": 4,
5+
"col_offset": 5,
6+
"function": "param_func",
7+
"type": [
8+
"str"
9+
]
10+
},
11+
{
12+
"file": "main.py",
13+
"line_number": 8,
14+
"col_offset": 5,
15+
"function": "func",
16+
"type": [
17+
"str"
18+
]
19+
},
20+
{
21+
"file": "main.py",
22+
"line_number": 8,
23+
"col_offset": 10,
24+
"parameter": "a",
25+
"function": "func",
26+
"type": [
27+
"callable"
28+
]
29+
},
30+
{
31+
"file": "main.py",
32+
"line_number": 12,
33+
"col_offset": 1,
34+
"variable": "b",
35+
"type": [
36+
"callable"
37+
]
38+
},
39+
{
40+
"file": "main.py",
41+
"line_number": 13,
42+
"col_offset": 1,
43+
"variable": "c",
44+
"type": [
45+
"str"
46+
]
47+
}
48+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return True
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"file": "main.py",
4+
"line_number": 4,
5+
"col_offset": 5,
6+
"function": "param_func",
7+
"type": [
8+
"bool"
9+
]
10+
},
11+
{
12+
"file": "main.py",
13+
"line_number": 8,
14+
"col_offset": 5,
15+
"function": "func",
16+
"type": [
17+
"bool"
18+
]
19+
},
20+
{
21+
"file": "main.py",
22+
"line_number": 8,
23+
"col_offset": 10,
24+
"parameter": "a",
25+
"function": "func",
26+
"type": [
27+
"callable"
28+
]
29+
},
30+
{
31+
"file": "main.py",
32+
"line_number": 12,
33+
"col_offset": 1,
34+
"variable": "b",
35+
"type": [
36+
"callable"
37+
]
38+
},
39+
{
40+
"file": "main.py",
41+
"line_number": 13,
42+
"col_offset": 1,
43+
"variable": "c",
44+
"type": [
45+
"bool"
46+
]
47+
}
48+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return [65, 8, 63]
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
[
2+
{
3+
"file": "main.py",
4+
"line_number": 4,
5+
"col_offset": 5,
6+
"function": "param_func",
7+
"type": [
8+
"list"
9+
]
10+
},
11+
{
12+
"file": "main.py",
13+
"line_number": 8,
14+
"col_offset": 5,
15+
"function": "func",
16+
"type": [
17+
"list"
18+
]
19+
},
20+
{
21+
"file": "main.py",
22+
"line_number": 8,
23+
"col_offset": 10,
24+
"parameter": "a",
25+
"function": "func",
26+
"type": [
27+
"callable"
28+
]
29+
},
30+
{
31+
"file": "main.py",
32+
"line_number": 12,
33+
"col_offset": 1,
34+
"variable": "b",
35+
"type": [
36+
"callable"
37+
]
38+
},
39+
{
40+
"file": "main.py",
41+
"line_number": 13,
42+
"col_offset": 1,
43+
"variable": "c",
44+
"type": [
45+
"list"
46+
]
47+
},
48+
{
49+
"file": "main.py",
50+
"line_number": 13,
51+
"col_offset": 1,
52+
"variable": "c[0]",
53+
"type": [
54+
"int"
55+
]
56+
},
57+
{
58+
"file": "main.py",
59+
"line_number": 13,
60+
"col_offset": 1,
61+
"variable": "c[1]",
62+
"type": [
63+
"int"
64+
]
65+
},
66+
{
67+
"file": "main.py",
68+
"line_number": 13,
69+
"col_offset": 1,
70+
"variable": "c[2]",
71+
"type": [
72+
"int"
73+
]
74+
}
75+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A function object assigned to a variable and passed as an argument to another function.
2+
# A function `func` is defined which takes as a parameter a variable which has a function 'param_func' assigned to it which it later calls.
3+
# The 'param_func' function returns a string value.
4+
def param_func():
5+
return {'yalzb': 27, 'ufptv': 58, 'katmx': 65}
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)

0 commit comments

Comments
 (0)