Skip to content

Commit d868cb9

Browse files
committed
formatted
1 parent ab1a785 commit d868cb9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/llm_change_agent/evaluations/evaluator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,15 @@ def compare_changes(expected_dir: Path, output_dir: Path):
206206
for pr_id, output_changes in output_yaml.items():
207207
expected_change = expected_yaml_subset.get(pr_id)
208208
if len(output_changes) > 0:
209-
jaccard_score_dict[provider_model][pr_id] = get_comparison_metrics(expected_change, output_changes)
209+
jaccard_score_dict[provider_model][pr_id] = get_comparison_metrics(
210+
expected_change, output_changes
211+
)
210212
logger.info(f"Finished comparing changes for {provider_model}")
211213
with open(output_dir / "metrics.yaml", "a") as f:
212214
yaml.dump(jaccard_score_dict, f, sort_keys=False, default_flow_style=False)
213215

214216

215-
def get_comparison_metrics(expected_changes:List, output_changes: List):
217+
def get_comparison_metrics(expected_changes: List, output_changes: List):
216218
"""Compare the expected changes with the output changes."""
217219
output_changes = normalize_to_curies_in_changes(output_changes)
218220
expected_changes = normalize_to_curies_in_changes(expected_changes)

0 commit comments

Comments
 (0)