Skip to content

Commit

Permalink
need 5/5 (#3938)
Browse files Browse the repository at this point in the history
needs all 5 now

---------

Co-authored-by: Martin Ye <[email protected]>
  • Loading branch information
MartinYe1234 and Martin Ye authored May 31, 2024
1 parent b01b1c5 commit ac584af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sweepai/core/review_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ def identify_repeated_functions(
]
repeated_functions_response = self.chat_anthropic(
content=formatted_user_prompt,
temperature=0,
temperature=0.1,
model=CLAUDE_MODEL,
)
if chat_logger:
Expand Down Expand Up @@ -1053,8 +1053,8 @@ def sort_code_issues_by_severity(
issue_index += 1
all_issues_formatted += "\n</all_issues>"

# if there was only one issue there is no need to sort anything
if issue_index == 2:
# if there was only one minus issue there is no need to sort anything
if issue_index <= 2:
return code_review_by_file, []

self.messages = [
Expand Down Expand Up @@ -1270,7 +1270,7 @@ def group_vote_review_pr(
except ValueError as e:
logger.error(f"Error with dbscan {e}")

LABEL_THRESHOLD = 4
LABEL_THRESHOLD = 5
# get the labels that have a count greater than the threshold
# format: {file_name: {label: [index, ...]}}
files_to_labels_indexes = {}
Expand Down

0 comments on commit ac584af

Please sign in to comment.