MCPcopy Create free account
hub / github.com/ChartGalaxy/ChartGalaxy / load_json

Function load_json

code_generation_benchmark/utils/utils_chat.py:29–36  ·  view source on GitHub ↗
(save_path, output=False)

Source from the content-addressed store, hash-verified

27 return my_logger
28
29def load_json(save_path, output=False):
30 info_dict = {}
31 if os.path.exists(save_path):
32 with open(save_path, "r", encoding='utf-8') as f:
33 info_dict = json.load(f)
34 if output:
35 print('already have', len(info_dict))
36 return info_dict
37
38
39def load_txt(save_path):

Callers 7

print_tableFunction · 0.90
single_expFunction · 0.90
get_high_level_scoreFunction · 0.90
convert_tree_jsonFunction · 0.90
compute_element_pairsFunction · 0.90
eval_scoresFunction · 0.90
ask_question_with_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected