Skip to content

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]

Remove old scripts

Kilian Lieret0634d6792104
diff --git a/scripts/run_and_eval.sh b/scripts/run_and_eval.sh
deleted file mode 100644
index c2cec4aa..00000000
--- a/scripts/run_and_eval.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-#this script runs and evaluates the agent N times.
-#to run:
-#bash run_and_eval.sh '' default_with_inclusive_edit_demo_v2 data/dev-easy/swe-bench-dev-easy-med.json 3
-# vars: suffix template data number of runs
-
-# define user variables
-suffix=${1:-''}
-template=$2
-dataset_path=$3
-num_runs=$4
-
-# extract filename from the dataset path
-dataset_name=`basename $dataset_path`
-
-for((i=1; i<=num_runs; i++)); do
- # command 1
- python run.py --model_name gpt4 --data_path $dataset_path --config_file config/configs/$template.yaml --suffix ${suffix}run${i} --temperature 0.2 --top_p 0.95 --per_instance_cost_limit 3.00 --install_environment 1
-
- # command 2
- python evaluation/evaluation.py \
- --predictions_path trajectories/$USER/gpt4__${dataset_name}__$template__t-0.20__p-0.95__c-3.00__install-1__${suffix}run${i}/all_preds.jsonl \
- --swe_bench_tasks $dataset_path \
- --log_dir ./results \
- --testbed ./testbed \
- --skip_existing \
- --timeout 900 \
- --verbose
-done
diff --git a/scripts/run_ctf_all_mini.sh b/scripts/run_ctf_all_mini.sh
deleted file mode 100755
index 0a73ea1b..00000000
--- a/scripts/run_ctf_all_mini.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env zsh
-
-for f in ~/LLM_CTF_Dataset_Dev/**/challenge.json
-do
- python run.py \
- --image_name sweagent/swe-ctf:latest --model_name gpt-4o-mini \
- --data_path "$f" \
- --repo_path "$(dirname $f)" \
- --config_file config/default_ctf_retry_5_gtc_hints_mini.yaml \
- --per_instance_cost_limit 0.05 --noprint_config
-done
diff --git a/scripts/run_ctf_all_mini_planning.sh b/scripts/run_ctf_all_mini_planning.sh
deleted file mode 100755
index 8423cbd1..00000000
--- a/scripts/run_ctf_all_mini_planning.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env zsh
-
-for f in ~/LLM_CTF_Dataset_Dev/**/challenge.json
-do
- python run.py \
- --image_name sweagent/swe-ctf:latest --model_name gpt-4o-mini \
- --data_path "$f" \
- --repo_path "$(dirname $f)" \
- --config_file config/default_ctf_retry_5_gtc_planning_mini.yaml \
- --per_instance_cost_limit 0.05 --noprint_config
-done
diff --git a/scripts/run_ctf_subset.sh b/scripts/run_ctf_subset.sh
deleted file mode 100755
index f1615897..00000000
--- a/scripts/run_ctf_subset.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env zsh
-
-while IFS= read -r f
-do
- f="$HOME/LLM_CTF_Dataset_Dev/$f"
- echo $f;
- python run.py \
- --image_name sweagent/swe-ctf:latest --model_name azure:gpt4o \
- --data_path "$f" \
- --repo_path "$(dirname $f)" \
- --config_file config/default_ctf_retry_5_gtc_planning.yaml \
- --per_instance_cost_limit 1.5 --noprint_config
-done < ~/ctf_dev_subset.txt
diff --git a/scripts/run_ctf_subset_hints.sh b/scripts/run_ctf_subset_hints.sh
deleted file mode 100755
index 55dceb56..00000000
--- a/scripts/run_ctf_subset_hints.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env zsh
-
-while IFS= read -r f
-do
- f="$HOME/LLM_CTF_Dataset_Dev/$f"
- echo $f;
- python run.py \
- --image_name sweagent/swe-ctf:latest --model_name azure:gpt4o \
- --data_path "$f" \
- --repo_path "$(dirname $f)" \
- --config_file config/default_ctf_retry_5_gtc_hints.yaml \
- --per_instance_cost_limit 1.5 --noprint_config
-done < ~/ctf_dev_subset.txt