Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __score_result(tweet, search_criteria):
score = fuzz.token_sort_ratio(tweet.text, search_criteria.content)
return score
def contains_match(content, search_string):
"""Returns True if user-provided note input matches the corresponding note within a given ratio (CONFIDENCE_RATIO)."""
ratio = fuzz.token_sort_ratio(content.lower(), search_string.lower())
return True if ratio > CONFIDENCE_RATIO else False