code: def score_matches(matches, score_multiplier=(1, 1)):
      
      for match in matches:
          # generate a new score from the current match
          dividend, divisor = score_multiplier
          score = match.score * dividend / divisor
  
          yield (score, match.classified_failure_id)
docs: Get scores for the given matches.
  
      Given a QuerySet of TextLogErrorMatches produce a score for each one until
      Good Enough™.  An optional score multiplier can be passed in.