Skip to content

Commit b1633ed

Browse files
Autogen Benchmark V1
1 parent 3db15b5 commit b1633ed

File tree

12,574 files changed

+907268
-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

+907268
-0
lines changed
Lines changed: 13 additions & 0 deletions
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 54
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"replacement_mode": "Complex",
3+
"type_replacements": [
4+
"int",
5+
"float",
6+
"str",
7+
"bool",
8+
"list",
9+
"dict",
10+
"tuple"
11+
],
12+
"ground_truth": [
13+
{
14+
"file": "main.py",
15+
"line_number": 4,
16+
"col_offset": 5,
17+
"function": "param_func",
18+
"type": [
19+
"int"
20+
]
21+
},
22+
{
23+
"file": "main.py",
24+
"line_number": 8,
25+
"col_offset": 5,
26+
"function": "func",
27+
"type": [
28+
"int"
29+
]
30+
},
31+
{
32+
"file": "main.py",
33+
"line_number": 8,
34+
"col_offset": 10,
35+
"parameter": "a",
36+
"function": "func",
37+
"type": [
38+
"callable"
39+
]
40+
},
41+
{
42+
"file": "main.py",
43+
"line_number": 12,
44+
"col_offset": 1,
45+
"variable": "b",
46+
"type": [
47+
"callable"
48+
]
49+
},
50+
{
51+
"file": "main.py",
52+
"line_number": 13,
53+
"col_offset": 1,
54+
"variable": "c",
55+
"type": [
56+
"int"
57+
]
58+
}
59+
]
60+
}
Lines changed: 13 additions & 0 deletions
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 72.62
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"replacement_mode": "Complex",
3+
"type_replacements": [
4+
"int",
5+
"float",
6+
"str",
7+
"bool",
8+
"list",
9+
"dict",
10+
"tuple"
11+
],
12+
"ground_truth": [
13+
{
14+
"file": "main.py",
15+
"line_number": 4,
16+
"col_offset": 5,
17+
"function": "param_func",
18+
"type": [
19+
"float"
20+
]
21+
},
22+
{
23+
"file": "main.py",
24+
"line_number": 8,
25+
"col_offset": 5,
26+
"function": "func",
27+
"type": [
28+
"float"
29+
]
30+
},
31+
{
32+
"file": "main.py",
33+
"line_number": 8,
34+
"col_offset": 10,
35+
"parameter": "a",
36+
"function": "func",
37+
"type": [
38+
"callable"
39+
]
40+
},
41+
{
42+
"file": "main.py",
43+
"line_number": 12,
44+
"col_offset": 1,
45+
"variable": "b",
46+
"type": [
47+
"callable"
48+
]
49+
},
50+
{
51+
"file": "main.py",
52+
"line_number": 13,
53+
"col_offset": 1,
54+
"variable": "c",
55+
"type": [
56+
"float"
57+
]
58+
}
59+
]
60+
}
Lines changed: 13 additions & 0 deletions
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 'cbdou'
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"replacement_mode": "Complex",
3+
"type_replacements": [
4+
"int",
5+
"float",
6+
"str",
7+
"bool",
8+
"list",
9+
"dict",
10+
"tuple"
11+
],
12+
"ground_truth": [
13+
{
14+
"file": "main.py",
15+
"line_number": 4,
16+
"col_offset": 5,
17+
"function": "param_func",
18+
"type": [
19+
"str"
20+
]
21+
},
22+
{
23+
"file": "main.py",
24+
"line_number": 8,
25+
"col_offset": 5,
26+
"function": "func",
27+
"type": [
28+
"str"
29+
]
30+
},
31+
{
32+
"file": "main.py",
33+
"line_number": 8,
34+
"col_offset": 10,
35+
"parameter": "a",
36+
"function": "func",
37+
"type": [
38+
"callable"
39+
]
40+
},
41+
{
42+
"file": "main.py",
43+
"line_number": 12,
44+
"col_offset": 1,
45+
"variable": "b",
46+
"type": [
47+
"callable"
48+
]
49+
},
50+
{
51+
"file": "main.py",
52+
"line_number": 13,
53+
"col_offset": 1,
54+
"variable": "c",
55+
"type": [
56+
"str"
57+
]
58+
}
59+
]
60+
}
Lines changed: 13 additions & 0 deletions
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)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"replacement_mode": "Complex",
3+
"type_replacements": [
4+
"int",
5+
"float",
6+
"str",
7+
"bool",
8+
"list",
9+
"dict",
10+
"tuple"
11+
],
12+
"ground_truth": [
13+
{
14+
"file": "main.py",
15+
"line_number": 4,
16+
"col_offset": 5,
17+
"function": "param_func",
18+
"type": [
19+
"bool"
20+
]
21+
},
22+
{
23+
"file": "main.py",
24+
"line_number": 8,
25+
"col_offset": 5,
26+
"function": "func",
27+
"type": [
28+
"bool"
29+
]
30+
},
31+
{
32+
"file": "main.py",
33+
"line_number": 8,
34+
"col_offset": 10,
35+
"parameter": "a",
36+
"function": "func",
37+
"type": [
38+
"callable"
39+
]
40+
},
41+
{
42+
"file": "main.py",
43+
"line_number": 12,
44+
"col_offset": 1,
45+
"variable": "b",
46+
"type": [
47+
"callable"
48+
]
49+
},
50+
{
51+
"file": "main.py",
52+
"line_number": 13,
53+
"col_offset": 1,
54+
"variable": "c",
55+
"type": [
56+
"bool"
57+
]
58+
}
59+
]
60+
}
Lines changed: 13 additions & 0 deletions
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 [47, 56, 81]
6+
7+
8+
def func(a):
9+
return a()
10+
11+
12+
b = param_func
13+
c = func(b)

0 commit comments

Comments
 (0)