Skip to content

Commit abd7a41

Browse files
authored
fix: Update match_functions.py
1 parent 3c33515 commit abd7a41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

revengai/features/match_functions/match_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ def _process_batch(self, function_ids: List[int], id_to_addr: Dict[int, int], co
110110
for function_by_score in functions_by_score:
111111
if function_by_score['function_id'] == result['origin_function_id']:
112112

113-
line["confidence"] = f"{function_by_score['box_plot']["average"]:.2f}%"
113+
line["confidence"] = f"{function_by_score['box_plot']['average']:.2f}%"
114114

115115
if not line["matched_name"] or line["matched_name"].startswith(("sub_", "FUN_")):
116116
line["error"] = "Function name is also debug symbol"
117117
log_info(f"RevEng.AI | Function name is also debug symbol: {line}")
118118
break
119119

120-
if function_by_score['box_plot']["average"] < confidence_threshold:
120+
if function_by_score["box_plot"]["average"] < confidence_threshold:
121121
line["error"] = "Function score is below confidence threshold"
122122
break
123123
else:
@@ -499,4 +499,4 @@ def fetch_data_types(self, bv: BinaryView, selected_results: List[Dict]) -> Tupl
499499
return True, options
500500
except Exception as e:
501501
log_error(f"RevEng.AI | Error fetching data types: {str(e)}")
502-
return False, str(e)
502+
return False, str(e)

0 commit comments

Comments
 (0)