def BasicFragmentScorer(f):
    # Add up the boosts for the matched terms in this passage
    score = sum(t.boost for t in f.matches)
    
    # Favor diversity: multiply score by the number of separate
    # terms matched
    score *= len(f.matched_terms) % 100
    
    return score


# Fragment sorters
dataset/ETHPy150Open tallstreet/Whoosh-AppEngine/src/whoosh/highlight.py/BasicFragmentScorer/operator `*` -> `%`