def score(self, string):
    match = self.regex1.search(string)
    tweak = self.regex2.search(string)
    if match is None:
      return 0
    else:
      return (100.0 / ((1 + match.start()) * (match.start() + 1 - match.end()))) + (self.prefix_match_tweak if tweak is not None else 0)


#
# CoronaLabs Class
#
dataset/ETHPy150Open coronalabs/CoronaSDK-SublimeText/completions.py/FuzzyMatcher.score/swapped operands of `-`