Skip to content

Commit

Permalink
fix tiny mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Aug 17, 2023
1 parent 5f1e7f7 commit 5dbe080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elleelleaime/sample/prompting/strategies/zero_shot_cloze.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ def cloze_prompt(

buggy_file_path = os.path.join(
buggy_path,
diff[0][2:]
diff[0].target_file[2:]
if diff[0].target_file.startswith("b/")
else diff[0].target_file,
)
fixed_file_path = os.path.join(
fixed_path,
diff[0][2:]
diff[0].source_file[2:]
if diff[0].source_file.startswith("a/")
else diff[0].source_file,
)
Expand Down

0 comments on commit 5dbe080

Please sign in to comment.