π OpenHands: AI-Driven Development
fix typos (#2187)
RainRated6dcc838166
diff --git a/agenthub/browsing_agent/prompt.py b/agenthub/browsing_agent/prompt.pyindex 9a56706679..8f6702adfa 100644--- a/agenthub/browsing_agent/prompt.py+++ b/agenthub/browsing_agent/prompt.py@@ -146,7 +146,7 @@ class Shrinkable(PromptElement, abc.ABC):"""Implement shrinking of this prompt element.You need to recursively call all shrinkable elements that are part of- this prompt. You can also implement a shriking startegy for this prompt.+ this prompt. You can also implement a shrinking strategy for this prompt.Shrinking is can be called multiple times to progressively shrink theprompt until it fits max_tokens. Default max shrink iterations is 20."""diff --git a/evaluation/EDA/run_infer.py b/evaluation/EDA/run_infer.pyindex d66c3a13c9..ea6625c63a 100644--- a/evaluation/EDA/run_infer.py+++ b/evaluation/EDA/run_infer.py@@ -125,7 +125,7 @@ def process_instance(instance, agent_class, metadata, reset_logger: bool = True)))# ======= Attempt to evaluate the agent's edits =======- # If you are working on simplier benchmark that only evaluates the final model output (e.g., in a MessageAction)+ # If you are working on simpler benchmark that only evaluates the final model output (e.g., in a MessageAction)# You can simply get the LAST `MessageAction` from the returned `state.history` and parse it for evaluation.if state is None:@@ -235,7 +235,7 @@ if __name__ == '__main__':'max_iterations': max_iterations,'eval_output_dir': eval_output_dir,'start_time': time.strftime('%Y-%m-%d %H:%M:%S'),- # get the commit id of current repo for reproduciblity+ # get the commit id of current repo for reproducibility'git_commit': subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip(),diff --git a/evaluation/gaia/run_infer.py b/evaluation/gaia/run_infer.pyindex dc318fd0f7..5661ebb89b 100644--- a/evaluation/gaia/run_infer.py+++ b/evaluation/gaia/run_infer.py@@ -142,7 +142,7 @@ def process_instance(instance, agent_class, metadata, reset_logger: bool = True)))# ======= Attempt to evaluate the agent's edits =======- # If you are working on simplier benchmark that only evaluates the final model output (e.g., in a MessageAction)+ # If you are working on simpler benchmark that only evaluates the final model output (e.g., in a MessageAction)# You can simply get the LAST `MessageAction` from the returned `state.history` and parse it for evaluation.if state is None:@@ -264,7 +264,7 @@ if __name__ == '__main__':'max_iterations': max_iterations,'eval_output_dir': eval_output_dir,'start_time': time.strftime('%Y-%m-%d %H:%M:%S'),- # get the commit id of current repo for reproduciblity+ # get the commit id of current repo for reproducibility'git_commit': subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip(),diff --git a/evaluation/humanevalfix/run_infer.py b/evaluation/humanevalfix/run_infer.pyindex da5eea6169..4a144c70e2 100644--- a/evaluation/humanevalfix/run_infer.py+++ b/evaluation/humanevalfix/run_infer.py@@ -284,7 +284,7 @@ if __name__ == '__main__':'max_iterations': max_iterations,'eval_output_dir': eval_output_dir,'start_time': time.strftime('%Y-%m-%d %H:%M:%S'),- # get the commit id of current repo for reproduciblity+ # get the commit id of current repo for reproducibility'git_commit': subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip(),diff --git a/evaluation/logic_reasoning/run_infer.py b/evaluation/logic_reasoning/run_infer.pyindex 862c327bd6..f9730d96fd 100644--- a/evaluation/logic_reasoning/run_infer.py+++ b/evaluation/logic_reasoning/run_infer.py@@ -215,7 +215,7 @@ def process_instance())# ======= Attempt to evaluate the agent's edits =======- # If you are working on simplier benchmark that only evaluates the final model output (e.g., in a MessageAction)+ # If you are working on simpler benchmark that only evaluates the final model output (e.g., in a MessageAction)# You can simply get the LAST `MessageAction` from the returned `state.history` and parse it for evaluation.if state is None:diff --git a/evaluation/mint/run_infer.py b/evaluation/mint/run_infer.pyindex 3b42453e0e..e3d7e51e52 100644--- a/evaluation/mint/run_infer.py+++ b/evaluation/mint/run_infer.py@@ -104,7 +104,7 @@ def process_instance(# add back the console handler to print ONE linelogger.addHandler(get_console_handler())logger.info(- f'Starting evaluation for instance {instance.task_id}.\nHint: run "tail -f {log_file}" to see live logs in a seperate shell'+ f'Starting evaluation for instance {instance.task_id}.\nHint: run "tail -f {log_file}" to see live logs in a separate shell')# Remove all existing handlers from loggerfor handler in logger.handlers[:]:@@ -256,7 +256,7 @@ if __name__ == '__main__':'max_propose_solution': args.max_propose_solution,'eval_output_dir': eval_output_dir,'start_time': time.strftime('%Y-%m-%d %H:%M:%S'),- # get the commit id of current repo for reproduciblity+ # get the commit id of current repo for reproducibility'git_commit': subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip(),diff --git a/evaluation/swe_bench/run_infer.py b/evaluation/swe_bench/run_infer.pyindex 5a58ee6a96..4fb9451c7f 100644--- a/evaluation/swe_bench/run_infer.py+++ b/evaluation/swe_bench/run_infer.py@@ -217,7 +217,7 @@ def process_instance(# add back the console handler to print ONE linelogger.addHandler(get_console_handler())logger.info(- f'Starting evaluation for instance {instance.instance_id}.\nHint: run "tail -f {log_file}" to see live logs in a seperate shell'+ f'Starting evaluation for instance {instance.instance_id}.\nHint: run "tail -f {log_file}" to see live logs in a separate shell')# Remove all existing handlers from loggerfor handler in logger.handlers[:]:@@ -410,7 +410,7 @@ if __name__ == '__main__':'max_iterations': max_iterations,'eval_output_dir': eval_output_dir,'start_time': time.strftime('%Y-%m-%d %H:%M:%S'),- # get the commit id of current repo for reproduciblity+ # get the commit id of current repo for reproducibility'git_commit': subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip(),diff --git a/frontend/src/components/file-explorer/FileExplorer.test.tsx b/frontend/src/components/file-explorer/FileExplorer.test.tsxindex e049401705..554869d270 100644--- a/frontend/src/components/file-explorer/FileExplorer.test.tsx+++ b/frontend/src/components/file-explorer/FileExplorer.test.tsx@@ -130,7 +130,7 @@ describe("FileExplorer", () => {});expect(uploadFiles).rejects.toThrow();- // TODO: figure out why spy isnt called to pass test+ // TODO: figure out why spy isn't called to pass testexpect(toastSpy).toHaveBeenCalledWith("ws", "Error uploading file");});});diff --git a/opendevin/runtime/plugins/agent_skills/agentskills.py b/opendevin/runtime/plugins/agent_skills/agentskills.pyindex 4ea381d684..daf2a0a7ea 100644--- a/opendevin/runtime/plugins/agent_skills/agentskills.py+++ b/opendevin/runtime/plugins/agent_skills/agentskills.py@@ -293,7 +293,7 @@ def edit_file(start: int, end: int, content: str) -> None:n_edited_lines = len(edited_content.split('\n'))new_lines = lines[: start - 1] + [edited_content] + lines[end:]- # directly write editted lines to the file+ # directly write edited lines to the filewith open(CURRENT_FILE, 'w') as file:file.writelines(new_lines)