SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fix trailing whitespace
Kilian Lieretb9371a40302c
diff --git a/config/coding_challenge.yaml b/config/coding_challenge.yamlindex 75a940af..a584ecef 100644--- a/config/coding_challenge.yaml+++ b/config/coding_challenge.yaml@@ -1,6 +1,6 @@-#This is the template you should use when using SWE-agent to solve a coding challenge (i.e. LeetCode).+#This is the template you should use when using SWE-agent to solve a coding challenge (i.e. LeetCode).#To run, use:-# python run.py \+# python run.py \# --data_path ~/problem.md \# --repo_path ~/empty_repo \# --config_file config/coding_challenge.yaml@@ -49,8 +49,8 @@ instance_template: |-NOTE ABOUT THE EDIT COMMAND: Indentation really matters! When editing a file, make sure to insert appropriate indentation before each line!IMPORTANT TIPS:- 1. Write your solution in main.py. Always test your code thoroughly before submitting, and if any of the tests fail, try to fix the code before continuing.-+ 1. Write your solution in main.py. Always test your code thoroughly before submitting, and if any of the tests fail, try to fix the code before continuing.+2. If you run a command and it doesn't work, try running a different command. A command that did not work once will not work the second time unless you modify it!3. If you open a file and need to get to an area around a specific line that is not in the first 100 lines, say line 583, don't just use the scroll_down command multiple times. Instead, use the goto 583 command. It's much quicker.