MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / run_modular

Function run_modular

utils/wei_utils.py:264–277  ·  view source on GitHub ↗
(all_code, file_name, with_border=True, with_label=True)

Source from the content-addressed store, hash-verified

262 return log
263
264def run_modular(all_code, file_name, with_border=True, with_label=True):
265 concatenated_code = utils_functions
266 concatenated_code += "\n".join(all_code.values())
267 if with_border and with_label:
268 concatenated_code += add_border_label_function
269 concatenated_code += create_id_map_function
270 concatenated_code += save_helper_info_border_label.format(file_name, file_name, file_name)
271 elif with_border:
272 concatenated_code += add_border_function
273 concatenated_code += save_helper_info_border.format(file_name, file_name)
274 else:
275 concatenated_code += f'\nposter.save("{file_name}")'
276 output, error = run_code(concatenated_code)
277 return concatenated_code, output, error
278
279def edit_modular(
280 agent,

Callers 1

edit_modularFunction · 0.85

Calls 2

run_codeFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected