gpt_engineer.core.files_dict.file_to_lines_dict

gpt_engineer.core.files_dict.file_to_lines_dict(file_content: str) dict[source]

Converts file content into a dictionary where each line number is a key and the corresponding line content is the value.

Parameters:
  • file_name (str) – The name of the file.

  • file_content (str) – The content of the file.

Returns:

A dictionary with file names as keys and dictionaries (line numbers as keys and line contents as values) as values.

Return type:

dict