Skip to content

Commit e785d2f

Browse files
committed
adding more dimensions
1 parent 7c7ae31 commit e785d2f

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

aider-cmds

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
aider
2+
aider-ce
3+
cecli

edit-formats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
whole
2+
diff
3+
diff-fenced
4+
udiff
5+
editor-diff
6+
editor-whole

fantasyloop.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ done
1616

1717
add_score() {
1818
SCORE_MESSAGE=$1
19-
echo "${this_new_name},${model_name},$(date +%Y-%m-%d-%H:%M:%S),$(date +%s),${time_delta},${loopster_count},${SCORE_MESSAGE}" >> score.csv
19+
echo "${this_new_name},${AIDER_CMD},${model_name},${edit_format},$(date +%Y-%m-%d-%H:%M:%S),$(date +%s),${time_delta},${loopster_count},${SCORE_MESSAGE}" >> score.csv
2020
}
2121

2222
# Function to be called when Ctrl+C is pressed
@@ -48,6 +48,7 @@ do_aider () {
4848
export this_new_flag=$2
4949
this_genscript=$3
5050
export model_name=$(shuf -n 1 models)
51+
export edit_format=$(shuf -n 1 edit-formats)
5152
export weak_model_name=$(shuf -n 1 weak_models)
5253
this_lib_file="${this_new_name}_lib.cpp"
5354
this_lib_h_file="${this_new_name}_lib.h"
@@ -71,9 +72,9 @@ do_aider () {
7172
export MODELS="--model ollama_chat/${model_name} --editor-model ollama_chat/${model_name} --weak-model ollama_chat/${weak_model_name}"
7273
export MESSAGE="I'd like to add a new flag ${this_new_flag} that replicates the functionality in ${this_genscript} in cpp, add this as a lib in ${this_lib_file}_lib.cpp and include this functionality in namgen.cpp, update CMakeLists.txt to build ${this_lib_file}_lib.cpp and include it in the installation, update the man page."
7374
export AIDER_OPTS="${MODELS} ${FILES} ${READS}"
74-
export AIDER_CMD="aider-ce ${AIDER_OPTS}"
75+
export AIDER_CMD=$(shuf -n 1 aider-cmds)
7576

76-
time ${AIDER_CMD} -m "${MESSAGE}"
77+
time ${AIDER_CMD} ${AIDER_OPTS} -m "${MESSAGE}"
7778

7879
time2=$(date +%s.%N)
7980
export time_delta=$(echo "scale=40;${time2} - ${time1}" | bc)

iter.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env bash
22
export time1=$(date +%s.%N)
33
time ${AIDER_CMD} \
4+
${AIDER_OPTS} \
45
--message "${MESSAGE}"
56
time ${AIDER_CMD} \
7+
${AIDER_OPTS} \
68
--message "/test ./test.sh"
79
time2=$(date +%s.%N)
810
export time_delta=$(echo "scale=40;${time2} - ${time1}" | bc)

0 commit comments

Comments
 (0)