Update RunCodeFileEditAtomicFlow.py
Browse files- RunCodeFileEditAtomicFlow.py +0 -20
RunCodeFileEditAtomicFlow.py
CHANGED
|
@@ -58,23 +58,3 @@ class RunCodeFileEditAtomicFlow(CodeFileEditAtomicFlow):
|
|
| 58 |
content_to_write = self._generate_content(code_str, lang_details["comment"])
|
| 59 |
file_location_to_write = self._generate_temp_file_location(code_lib_location, lang_details["extension"])
|
| 60 |
return content_to_write, file_location_to_write
|
| 61 |
-
|
| 62 |
-
def run(
|
| 63 |
-
self,
|
| 64 |
-
input_data: Dict[str, Any]
|
| 65 |
-
):
|
| 66 |
-
self._check_input(input_data)
|
| 67 |
-
|
| 68 |
-
# ~~~ Getting input data to the file editor ~~~
|
| 69 |
-
content_to_write, file_location_to_write = self._generate_input_to_writer(input_data)
|
| 70 |
-
|
| 71 |
-
# ~~~ Calling the writer function ~~~
|
| 72 |
-
_, code_editor_output, temp_file_location, _ = self._write_code_content_to_file(
|
| 73 |
-
file_location_to_write, content_to_write)
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
# ~~~ Generating return variables ~~~
|
| 77 |
-
response = {}
|
| 78 |
-
response["code_editor_output"] = code_editor_output
|
| 79 |
-
response["temp_code_file_location"] = temp_file_location
|
| 80 |
-
return response
|
|
|
|
| 58 |
content_to_write = self._generate_content(code_str, lang_details["comment"])
|
| 59 |
file_location_to_write = self._generate_temp_file_location(code_lib_location, lang_details["extension"])
|
| 60 |
return content_to_write, file_location_to_write
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|