Skip to content

Commit

Permalink
fix patch extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Sep 4, 2024
1 parent 566d7c8 commit 961ef22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elleelleaime/evaluate/strategies/google/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def _evaluate_impl(self, bug: Bug, sample: dict) -> Optional[List[dict]]:
for generation in sample["generation"]:
for candidate in generation["candidates"]:
candidate_patch = candidate["content"]["parts"][0]["text"]
candidate_patch = self.extract_patch_from_message(candidate_patch)
evaluation.append(
self.evaluate_generation(bug, sample, candidate_patch)
)
Expand Down

0 comments on commit 961ef22

Please sign in to comment.