Skip to content

Commit

Permalink
Adding quotes to support paths with emty space
Browse files Browse the repository at this point in the history
  • Loading branch information
pdemro committed Sep 9, 2024
1 parent b2c7165 commit 1be8e65
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 94 deletions.
16 changes: 8 additions & 8 deletions config/coding_challenge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/human_thought__swe-bench-HumanEvalFix-python__lcb__t-0.00__p-0.95__c-4.00__install-0/humanevalfix-python-0.traj
- trajectories/demonstrations/human_thought__swe-bench-HumanEvalFix-python__lcb__t-0.00__p-0.95__c-4.00__install-0/humanevalfix-python-0.traj
Original file line number Diff line number Diff line change
Expand Up @@ -85,33 +85,33 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 200
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
START_INDEX: 0
END_INDEX: 0
START_CURSOR: 0
END_CURSOR: 0
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
END_CURSOR_MARK: '"<<<<< END CURSOR >>>>>"' # these have to use double quotes
command_files:
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: DefaultHistoryProcessor
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -85,33 +85,33 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 200
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
START_INDEX: 0
END_INDEX: 0
START_CURSOR: 0
END_CURSOR: 0
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
END_CURSOR_MARK: '"<<<<< END CURSOR >>>>>"' # these have to use double quotes
command_files:
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: DefaultHistoryProcessor
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,33 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: XMLThoughtActionParser
env_variables:
WINDOW: 200
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
START_INDEX: 0
END_INDEX: 0
START_CURSOR: 0
END_CURSOR: 0
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
END_CURSOR_MARK: '"<<<<< END CURSOR >>>>>"' # these have to use double quotes
command_files:
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: DefaultHistoryProcessor
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,33 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: XMLThoughtActionParser
env_variables:
WINDOW: 200
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
START_INDEX: 0
END_INDEX: 0
START_CURSOR: 0
END_CURSOR: 0
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
START_CURSOR_MARK: '"<<<<< START CURSOR >>>>>"' # these have to use double quotes
END_CURSOR_MARK: '"<<<<< END CURSOR >>>>>"' # these have to use double quotes
command_files:
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
- config/commands/cursors_defaults.sh
- config/commands/cursors_edit_linting.sh
- config/commands/search.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_cursors_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: XMLThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: DefaultHistoryProcessor
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: XMLThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__xml_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
16 changes: 8 additions & 8 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ state_command:
code: |
state() {
local working_dir="$PWD";
if [ -z $CURRENT_FILE ]; then
if [ -z "$CURRENT_FILE" ]; then
echo '{"open_file": "n/a", "working_dir": "'$working_dir'"}';
else
echo '{"open_file": "'$(realpath $CURRENT_FILE)'", "working_dir": "'$working_dir'"}';
echo '{"open_file": "'$(realpath "$CURRENT_FILE")'", "working_dir": "'$working_dir'"}';
fi
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
CURRENT_FILE: ""
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
- config/commands/defaults.sh
- config/commands/search.sh
- config/commands/edit_linting.sh
- config/commands/_split_string.py
parse_command: ParseCommandDetailed
history_processor: Last5Observations
demonstrations:
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
- trajectories/demonstrations/replay__marshmallow-code__marshmallow-1867__default_sys-env_window100__t-0.20__p-0.95__c-2.00__install-1/marshmallow-code__marshmallow-1867.traj
Loading

0 comments on commit 1be8e65

Please sign in to comment.