Skip to content

Commit

Permalink
[code_review_tool_evaluator] Skip large patches
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid committed Jul 16, 2024
1 parent 4e2f4ce commit 3a04463
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/code_review_tool_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def main():
patch = review_data.get_patch_by_id(review_request.patch_id)
print("---------------------------------------------------------")

if len(patch.raw_diff) > 20_000:
print("Skipping the patch because it is too large.")
continue

all_variants_results = []
for variant_name, tool in tool_variants:
print(f"\n\nVariant: {variant_name}\n")
Expand Down

0 comments on commit 3a04463

Please sign in to comment.