Skip to content

Commit cede45d

Browse files
Autogen Bug fix for imported facts
1 parent dac2e10 commit cede45d

File tree

8,260 files changed

+24381
-24844
lines changed
  • autogen
  • autogen_typeevalpy_benchmark/python_features
    • args
    • assignments
      • augmented_1_1_int
      • augmented_1_2_float
      • augmented_1_3_str
      • augmented_1_4_list
      • chained_1_10_list_int
      • chained_1_11_list_float
      • chained_1_12_list_str
      • chained_1_1_int_float
      • chained_1_2_int_str
      • chained_1_3_int_list
      • chained_1_4_float_int
      • chained_1_5_float_str
      • chained_1_6_float_list
      • chained_1_7_str_int
      • chained_1_8_str_float
      • chained_1_9_str_list
      • nested_unpack_1_100_float_dict_str_int
      • nested_unpack_1_101_float_dict_str_list
      • nested_unpack_1_102_float_dict_str_tuple
      • nested_unpack_1_103_float_dict_list_int
      • nested_unpack_1_104_float_dict_list_str
      • nested_unpack_1_105_float_dict_list_tuple
      • nested_unpack_1_106_float_dict_tuple_int
      • nested_unpack_1_107_float_dict_tuple_str
      • nested_unpack_1_108_float_dict_tuple_list
      • nested_unpack_1_109_float_tuple_int_str
      • nested_unpack_1_10_int_float_tuple_str
      • nested_unpack_1_110_float_tuple_int_list
      • nested_unpack_1_111_float_tuple_int_dict
      • nested_unpack_1_112_float_tuple_str_int
      • nested_unpack_1_113_float_tuple_str_list
      • nested_unpack_1_114_float_tuple_str_dict
      • nested_unpack_1_115_float_tuple_list_int
      • nested_unpack_1_116_float_tuple_list_str
      • nested_unpack_1_117_float_tuple_list_dict
      • nested_unpack_1_118_float_tuple_dict_int
      • nested_unpack_1_119_float_tuple_dict_str
      • nested_unpack_1_11_int_float_tuple_list
      • nested_unpack_1_120_float_tuple_dict_list
      • nested_unpack_1_121_str_int_float_list
      • nested_unpack_1_122_str_int_float_dict
      • nested_unpack_1_123_str_int_float_tuple
      • nested_unpack_1_124_str_int_list_float
      • nested_unpack_1_125_str_int_list_dict
      • nested_unpack_1_126_str_int_list_tuple
      • nested_unpack_1_127_str_int_dict_float
      • nested_unpack_1_128_str_int_dict_list
      • nested_unpack_1_129_str_int_dict_tuple
      • nested_unpack_1_12_int_float_tuple_dict
      • nested_unpack_1_130_str_int_tuple_float
      • nested_unpack_1_131_str_int_tuple_list
      • nested_unpack_1_132_str_int_tuple_dict
      • nested_unpack_1_133_str_float_int_list
      • nested_unpack_1_134_str_float_int_dict
      • nested_unpack_1_135_str_float_int_tuple
      • nested_unpack_1_136_str_float_list_int
      • nested_unpack_1_137_str_float_list_dict
      • nested_unpack_1_138_str_float_list_tuple
      • nested_unpack_1_139_str_float_dict_int
      • nested_unpack_1_13_int_str_float_list
      • nested_unpack_1_140_str_float_dict_list
      • nested_unpack_1_141_str_float_dict_tuple
      • nested_unpack_1_142_str_float_tuple_int
      • nested_unpack_1_143_str_float_tuple_list
      • nested_unpack_1_144_str_float_tuple_dict
      • nested_unpack_1_145_str_list_int_float
      • nested_unpack_1_146_str_list_int_dict
      • nested_unpack_1_147_str_list_int_tuple
      • nested_unpack_1_148_str_list_float_int
      • nested_unpack_1_149_str_list_float_dict
      • nested_unpack_1_14_int_str_float_dict
      • nested_unpack_1_150_str_list_float_tuple
      • nested_unpack_1_151_str_list_dict_int
      • nested_unpack_1_152_str_list_dict_float
      • nested_unpack_1_153_str_list_dict_tuple
      • nested_unpack_1_154_str_list_tuple_int
      • nested_unpack_1_155_str_list_tuple_float
      • nested_unpack_1_156_str_list_tuple_dict
      • nested_unpack_1_157_str_dict_int_float
      • nested_unpack_1_158_str_dict_int_list
      • nested_unpack_1_159_str_dict_int_tuple
      • nested_unpack_1_15_int_str_float_tuple
      • nested_unpack_1_160_str_dict_float_int
      • nested_unpack_1_161_str_dict_float_list
      • nested_unpack_1_162_str_dict_float_tuple
      • nested_unpack_1_163_str_dict_list_int
      • nested_unpack_1_164_str_dict_list_float
      • nested_unpack_1_165_str_dict_list_tuple
      • nested_unpack_1_166_str_dict_tuple_int
      • nested_unpack_1_167_str_dict_tuple_float
      • nested_unpack_1_168_str_dict_tuple_list
      • nested_unpack_1_169_str_tuple_int_float
      • nested_unpack_1_16_int_str_list_float
      • nested_unpack_1_170_str_tuple_int_list
      • nested_unpack_1_171_str_tuple_int_dict
      • nested_unpack_1_172_str_tuple_float_int
      • nested_unpack_1_173_str_tuple_float_list
      • nested_unpack_1_174_str_tuple_float_dict
      • nested_unpack_1_175_str_tuple_list_int
      • nested_unpack_1_176_str_tuple_list_float
      • nested_unpack_1_177_str_tuple_list_dict
      • nested_unpack_1_178_str_tuple_dict_int
      • nested_unpack_1_179_str_tuple_dict_float
      • nested_unpack_1_17_int_str_list_dict
      • nested_unpack_1_180_str_tuple_dict_list
      • nested_unpack_1_181_list_int_float_str
      • nested_unpack_1_182_list_int_float_dict
      • nested_unpack_1_183_list_int_float_tuple
      • nested_unpack_1_184_list_int_str_float
      • nested_unpack_1_185_list_int_str_dict
      • nested_unpack_1_186_list_int_str_tuple
      • nested_unpack_1_187_list_int_dict_float
      • nested_unpack_1_188_list_int_dict_str
      • nested_unpack_1_189_list_int_dict_tuple
      • nested_unpack_1_18_int_str_list_tuple
      • nested_unpack_1_190_list_int_tuple_float
      • nested_unpack_1_191_list_int_tuple_str
      • nested_unpack_1_192_list_int_tuple_dict
      • nested_unpack_1_193_list_float_int_str
      • nested_unpack_1_194_list_float_int_dict
      • nested_unpack_1_195_list_float_int_tuple
      • nested_unpack_1_196_list_float_str_int
      • nested_unpack_1_197_list_float_str_dict
      • nested_unpack_1_198_list_float_str_tuple
      • nested_unpack_1_199_list_float_dict_int
      • nested_unpack_1_19_int_str_dict_float
      • nested_unpack_1_1_int_float_str_list
      • nested_unpack_1_200_list_float_dict_str
      • nested_unpack_1_201_list_float_dict_tuple
      • nested_unpack_1_202_list_float_tuple_int
      • nested_unpack_1_203_list_float_tuple_str
      • nested_unpack_1_204_list_float_tuple_dict
      • nested_unpack_1_205_list_str_int_float
      • nested_unpack_1_206_list_str_int_dict
      • nested_unpack_1_207_list_str_int_tuple
      • nested_unpack_1_208_list_str_float_int
      • nested_unpack_1_209_list_str_float_dict
      • nested_unpack_1_20_int_str_dict_list
      • nested_unpack_1_210_list_str_float_tuple
      • nested_unpack_1_211_list_str_dict_int
      • nested_unpack_1_212_list_str_dict_float
      • nested_unpack_1_213_list_str_dict_tuple
      • nested_unpack_1_214_list_str_tuple_int
      • nested_unpack_1_215_list_str_tuple_float
      • nested_unpack_1_216_list_str_tuple_dict
      • nested_unpack_1_217_list_dict_int_float
      • nested_unpack_1_218_list_dict_int_str
      • nested_unpack_1_219_list_dict_int_tuple
      • nested_unpack_1_21_int_str_dict_tuple
      • nested_unpack_1_220_list_dict_float_int
      • nested_unpack_1_221_list_dict_float_str
      • nested_unpack_1_222_list_dict_float_tuple
      • nested_unpack_1_223_list_dict_str_int
      • nested_unpack_1_224_list_dict_str_float
      • nested_unpack_1_225_list_dict_str_tuple
      • nested_unpack_1_226_list_dict_tuple_int
      • nested_unpack_1_227_list_dict_tuple_float
      • nested_unpack_1_228_list_dict_tuple_str
      • nested_unpack_1_229_list_tuple_int_float
      • nested_unpack_1_22_int_str_tuple_float
      • nested_unpack_1_230_list_tuple_int_str
      • nested_unpack_1_231_list_tuple_int_dict
      • nested_unpack_1_232_list_tuple_float_int
      • nested_unpack_1_233_list_tuple_float_str
      • nested_unpack_1_234_list_tuple_float_dict
      • nested_unpack_1_235_list_tuple_str_int
      • nested_unpack_1_236_list_tuple_str_float
      • nested_unpack_1_237_list_tuple_str_dict
      • nested_unpack_1_238_list_tuple_dict_int
      • nested_unpack_1_239_list_tuple_dict_float
      • nested_unpack_1_23_int_str_tuple_list
      • nested_unpack_1_240_list_tuple_dict_str
      • nested_unpack_1_241_dict_int_float_str
      • nested_unpack_1_242_dict_int_float_list
      • nested_unpack_1_243_dict_int_float_tuple
      • nested_unpack_1_244_dict_int_str_float
      • nested_unpack_1_245_dict_int_str_list
      • nested_unpack_1_246_dict_int_str_tuple
      • nested_unpack_1_247_dict_int_list_float
      • nested_unpack_1_248_dict_int_list_str
      • nested_unpack_1_249_dict_int_list_tuple
      • nested_unpack_1_24_int_str_tuple_dict
      • nested_unpack_1_250_dict_int_tuple_float
      • nested_unpack_1_251_dict_int_tuple_str
      • nested_unpack_1_252_dict_int_tuple_list
      • nested_unpack_1_253_dict_float_int_str
      • nested_unpack_1_254_dict_float_int_list
      • nested_unpack_1_255_dict_float_int_tuple
      • nested_unpack_1_256_dict_float_str_int
      • nested_unpack_1_257_dict_float_str_list
      • nested_unpack_1_258_dict_float_str_tuple
      • nested_unpack_1_259_dict_float_list_int
      • nested_unpack_1_25_int_list_float_str
      • nested_unpack_1_260_dict_float_list_str
      • nested_unpack_1_261_dict_float_list_tuple
      • nested_unpack_1_262_dict_float_tuple_int
      • nested_unpack_1_263_dict_float_tuple_str
      • nested_unpack_1_264_dict_float_tuple_list
      • nested_unpack_1_265_dict_str_int_float
      • nested_unpack_1_266_dict_str_int_list
      • nested_unpack_1_267_dict_str_int_tuple
      • nested_unpack_1_268_dict_str_float_int
      • nested_unpack_1_269_dict_str_float_list
      • nested_unpack_1_26_int_list_float_dict
      • nested_unpack_1_270_dict_str_float_tuple
      • nested_unpack_1_271_dict_str_list_int
      • nested_unpack_1_272_dict_str_list_float
      • nested_unpack_1_273_dict_str_list_tuple
      • nested_unpack_1_274_dict_str_tuple_int
      • nested_unpack_1_275_dict_str_tuple_float
      • nested_unpack_1_276_dict_str_tuple_list
      • nested_unpack_1_277_dict_list_int_float
      • nested_unpack_1_278_dict_list_int_str
      • nested_unpack_1_279_dict_list_int_tuple
      • nested_unpack_1_27_int_list_float_tuple
      • nested_unpack_1_280_dict_list_float_int
      • nested_unpack_1_281_dict_list_float_str
      • nested_unpack_1_282_dict_list_float_tuple
      • nested_unpack_1_283_dict_list_str_int
      • nested_unpack_1_284_dict_list_str_float
      • nested_unpack_1_285_dict_list_str_tuple
      • nested_unpack_1_286_dict_list_tuple_int
      • nested_unpack_1_287_dict_list_tuple_float
      • nested_unpack_1_288_dict_list_tuple_str
      • nested_unpack_1_289_dict_tuple_int_float
      • nested_unpack_1_28_int_list_str_float
      • nested_unpack_1_290_dict_tuple_int_str
      • nested_unpack_1_291_dict_tuple_int_list
      • nested_unpack_1_292_dict_tuple_float_int
      • nested_unpack_1_293_dict_tuple_float_str
      • nested_unpack_1_294_dict_tuple_float_list
      • nested_unpack_1_295_dict_tuple_str_int
      • nested_unpack_1_296_dict_tuple_str_float
      • nested_unpack_1_297_dict_tuple_str_list
      • nested_unpack_1_298_dict_tuple_list_int
      • nested_unpack_1_299_dict_tuple_list_float
      • nested_unpack_1_29_int_list_str_dict
      • nested_unpack_1_2_int_float_str_dict
      • nested_unpack_1_300_dict_tuple_list_str
      • nested_unpack_1_301_tuple_int_float_str
      • nested_unpack_1_302_tuple_int_float_list
      • nested_unpack_1_303_tuple_int_float_dict
      • nested_unpack_1_304_tuple_int_str_float
      • nested_unpack_1_305_tuple_int_str_list
      • nested_unpack_1_306_tuple_int_str_dict
      • nested_unpack_1_307_tuple_int_list_float
      • nested_unpack_1_308_tuple_int_list_str
      • nested_unpack_1_309_tuple_int_list_dict

Some content is hidden

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

8,260 files changed

+24381
-24844
lines changed

autogen/generate_typeevalpy_dataset.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import shutil
44
from pathlib import Path
5-
import tqdm
5+
from tqdm import tqdm
66
import time
77
import json
88
import datetime
@@ -17,6 +17,7 @@
1717
)
1818
error_folder = f"{ROOT_DIR}/.scrapy/error"
1919
benchmark_dir = f"{ROOT_DIR}/micro-benchmark-autogen-templates"
20+
# benchmark_dir = f"{ROOT_DIR}/.scrapy/micro-benchmark-autogen-templates"
2021
shutil.rmtree(output_folder, ignore_errors=True)
2122
shutil.rmtree(error_folder, ignore_errors=True)
2223

@@ -27,25 +28,30 @@
2728
last_folder = ""
2829
start_time = time.time()
2930
total_start_time = time.time()
30-
for file in tqdm.tqdm(python_files, desc="Processing files"):
31+
for file in tqdm(python_files, desc="Processing files"):
3132
try:
3233
# print the folder path if its not the same as the last one
3334
if str(file.parent.parent.name) != last_folder:
3435
if last_folder:
35-
print(
36+
tqdm.write(
3637
f"Time taken for {last_folder}: {time.time() - start_time} seconds"
3738
)
38-
print(
39+
tqdm.write(
3940
f"##################\nProcessing: {file.parent.parent.name}\n##################"
4041
)
4142
last_folder = str(file.parent.parent.name)
4243
start_time = time.time()
4344

4445
# ignore if not main.py
4546
if file.name != "main.py":
46-
print(f">> Ignoring: {file}")
47+
tqdm.write(f">> Ignoring: {file}")
4748
continue
4849

50+
# debug point
51+
52+
if file.parent.name == "parent_import":
53+
tqdm.write(f">> Debug point: {file}")
54+
4955
template_data = read_template(file)
5056
if template_data["replacement_mode"] == "Imports":
5157
process_import_case(
@@ -68,7 +74,7 @@
6874
)
6975

7076
except Exception as e:
71-
print(e)
77+
tqdm.write(str(e))
7278
pass
7379

7480

autogen/helpers.py

+38-22
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
import shutil
77
import subprocess
88
import sys
9+
from tqdm import tqdm
910

1011
from pathlib import Path
1112

13+
random.seed(42)
14+
1215
SCRIPT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
1316

1417

@@ -96,12 +99,11 @@ def is_variable_fact(item):
9699
return True if "variable" in item else False
97100

98101

99-
def replace_placeholders_and_generate_json(code, json_template_str, data_type_mapping):
102+
def replace_placeholders_and_generate_json(
103+
code, json_template_str, data_type_mapping, placeholder_values
104+
):
100105
"""Replace placeholders with values for their respective types and update JSON"""
101-
placeholder_values = {}
102-
for placeholder, data_type in data_type_mapping.items():
103-
value, _ = generate_value_for_type(data_type)
104-
placeholder_values[placeholder] = value
106+
for placeholder, value in placeholder_values.items():
105107
code = code.replace(placeholder, str(value))
106108

107109
json_template = json.loads(json_template_str)
@@ -166,12 +168,12 @@ def save_files(
166168

167169
with open(code_file_path, "w") as file:
168170
file.write(code)
169-
# print(f"Saved Python code to {code_file_path}")
171+
# tqdm.write(f"Saved Python code to {code_file_path}")
170172

171173
if json_data:
172174
with open(json_file_path, "w") as file:
173175
json.dump(json_data["ground_truth"], file, indent=4)
174-
# print(f"Saved JSON ground truth to {json_file_path}")
176+
# tqdm.write(f"Saved JSON ground truth to {json_file_path}")
175177

176178
return code_file_path, json_file_path
177179

@@ -214,11 +216,11 @@ def run_python_script(script):
214216

215217
# Check if the script ran successfully
216218
if result.returncode != 0:
217-
print("Script failed to execute" + result.stderr)
219+
tqdm.write("Script failed to execute" + result.stderr)
218220
return False
219221
return True
220222
except Exception as e:
221-
print("Script failed to execute" + result.stderr)
223+
tqdm.write("Script failed to execute" + result.stderr)
222224
return False
223225

224226

@@ -231,11 +233,11 @@ def run_python_script_from_path(script_path):
231233

232234
# Check if the script ran successfully
233235
if result.returncode != 0:
234-
print("Script failed to execute" + result.stderr)
236+
tqdm.write("Script failed to execute" + result.stderr)
235237
return False
236238
return True
237239
except Exception as e:
238-
print("Script failed to execute" + result.stderr)
240+
tqdm.write("Script failed to execute" + result.stderr)
239241
return False
240242

241243

@@ -247,7 +249,7 @@ def process_file(
247249
file_path,
248250
output_folder,
249251
):
250-
print(f"Processing file {file_path}")
252+
tqdm.write(f"Processing file {file_path}")
251253
case_number = 1
252254
total_cases = 1
253255
error_count = 0
@@ -257,8 +259,14 @@ def process_file(
257259
for data_type_combo in generate_data_type_permutations(placeholders, data_types):
258260
data_type_mapping = {ph: dt for ph, dt in zip(placeholders, data_type_combo)}
259261
type_name = "_".join(data_type_combo)
262+
263+
placeholder_values = {}
264+
for placeholder, data_type in data_type_mapping.items():
265+
value, _ = generate_value_for_type(data_type)
266+
placeholder_values[placeholder] = value
267+
260268
replaced_code, json_data = replace_placeholders_and_generate_json(
261-
code_template, json_template, data_type_mapping
269+
code_template, json_template, data_type_mapping, placeholder_values
262270
)
263271
try:
264272
# result = exec(replaced_code)
@@ -268,13 +276,13 @@ def process_file(
268276

269277
except Exception as e:
270278
if "exception" in type_name:
271-
print(
279+
tqdm.write(
272280
"Skipping errror report as the data_type is exception for"
273281
f" '{name}_{type_name}'"
274282
)
275283
else:
276-
print(f"\tError executing script '{name}_{type_name}'")
277-
print(f"\tError : {e}\n")
284+
tqdm.write(f"\tError executing script '{name}_{type_name}'")
285+
tqdm.write(f"\tError : {e}\n")
278286
# Save error files separately
279287
save_files(
280288
replaced_code,
@@ -312,7 +320,7 @@ def process_import_case(
312320
file_parent,
313321
output_folder,
314322
):
315-
print(f"Processing file {file_path}")
323+
tqdm.write(f"Processing file {file_path}")
316324

317325
# Load json_template
318326

@@ -335,14 +343,22 @@ def process_import_case(
335343
data_type_mapping = {ph: dt for ph, dt in zip(placeholders, data_type_combo)}
336344
type_name = "_".join(data_type_combo)
337345

346+
placeholder_values = {}
347+
for placeholder, data_type in data_type_mapping.items():
348+
value, _ = generate_value_for_type(data_type)
349+
placeholder_values[placeholder] = value
350+
338351
for imported_python_file in template_data["imports"]:
339352
# Load the imported python file
340353
imported_python_file_path = os.path.join(file_parent, imported_python_file)
341354
with open(imported_python_file_path, "r") as file:
342355
imported_code_template = file.read()
343356

344357
replaced_code, _ = replace_placeholders_and_generate_json(
345-
imported_code_template, json_template, data_type_mapping
358+
imported_code_template,
359+
json_template,
360+
data_type_mapping,
361+
placeholder_values,
346362
)
347363

348364
save_files(
@@ -358,7 +374,7 @@ def process_import_case(
358374

359375
# Save main file and test file
360376
replaced_code, json_data = replace_placeholders_and_generate_json(
361-
code_template, json_template, data_type_mapping
377+
code_template, json_template, data_type_mapping, placeholder_values
362378
)
363379

364380
code_file_path, json_file_path = save_files(
@@ -379,13 +395,13 @@ def process_import_case(
379395

380396
except Exception as e:
381397
if "exception" in type_name:
382-
print(
398+
tqdm.write(
383399
"Skipping errror report as the data_type is exception for"
384400
f" '{name}_{type_name}'"
385401
)
386402
else:
387-
print(f"\tError executing script '{name}_{type_name}'")
388-
print(f"\tError : {e}\n")
403+
tqdm.write(f"\tError executing script '{name}_{type_name}'")
404+
tqdm.write(f"\tError : {e}\n")
389405
# remove created folder if error
390406
shutil.rmtree(
391407
os.path.join(output_folder, name + "_" + type_name),

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_1_int/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return 5
5+
return 82
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_2_float/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return 38.63
5+
return 12.02
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_3_str/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return 'mlczq'
5+
return 'tgdct'
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_5_list/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return [65, 8, 63]
5+
return [76, 55, 5]
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_6_dict/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return {'yalzb': 27, 'ufptv': 58, 'katmx': 65}
5+
return {'afnaf': 98, 'qofpv': 44, 'ausie': 14}
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_6_dict/main_gt.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"file": "main.py",
5050
"line_number": 13,
5151
"col_offset": 1,
52-
"variable": "c['yalzb']",
52+
"variable": "c['afnaf']",
5353
"type": [
5454
"int"
5555
]
@@ -58,7 +58,7 @@
5858
"file": "main.py",
5959
"line_number": 13,
6060
"col_offset": 1,
61-
"variable": "c['ufptv']",
61+
"variable": "c['qofpv']",
6262
"type": [
6363
"int"
6464
]
@@ -67,7 +67,7 @@
6767
"file": "main.py",
6868
"line_number": 13,
6969
"col_offset": 1,
70-
"variable": "c['katmx']",
70+
"variable": "c['ausie']",
7171
"type": [
7272
"int"
7373
]

autogen_typeevalpy_benchmark/python_features/args/assigned_call_1_7_tuple/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 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.
33
# The 'param_func' function returns a string value.
44
def param_func():
5-
return (44, 12, 11)
5+
return (12, 49, 13)
66

77

88
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_1_int/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return 49
4+
return 46
55

66

77
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_2_float/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return 80.45
4+
return 84.9
55

66

77
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_3_str/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return 'nwhkv'
4+
return 'pusnz'
55

66

77
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_5_list/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return [62, 93, 91]
4+
return [11, 71, 38]
55

66

77
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_6_dict/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return {'xattr': 14, 'ugpvw': 39, 'mnhuy': 19}
4+
return {'vqwps': 27, 'bfhcg': 86, 'chqjj': 35}
55

66

77
def func(a):

autogen_typeevalpy_benchmark/python_features/args/call_1_6_dict/main_gt.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"file": "main.py",
4141
"line_number": 11,
4242
"col_offset": 1,
43-
"variable": "b['xattr']",
43+
"variable": "b['vqwps']",
4444
"type": [
4545
"int"
4646
]
@@ -49,7 +49,7 @@
4949
"file": "main.py",
5050
"line_number": 11,
5151
"col_offset": 1,
52-
"variable": "b['ugpvw']",
52+
"variable": "b['bfhcg']",
5353
"type": [
5454
"int"
5555
]
@@ -58,7 +58,7 @@
5858
"file": "main.py",
5959
"line_number": 11,
6060
"col_offset": 1,
61-
"variable": "b['mnhuy']",
61+
"variable": "b['chqjj']",
6262
"type": [
6363
"int"
6464
]

autogen_typeevalpy_benchmark/python_features/args/call_1_7_tuple/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A function func is defined which takes as a parameter a function which it later calls.
22
# The 'param_func' function returns a string value.
33
def param_func():
4-
return (70, 82, 28)
4+
return (90, 88, 83)
55

66

77
def func(a):

0 commit comments

Comments
 (0)