def up_threshold(x, s, p):
if <NUM_LIT:1.0> * x/s >= p:<EOL><INDENT>return True<EOL><DEDENT>elif stat.binom_test(x, s, p) > <NUM_LIT>:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
function to decide if similarity is
    below cutoff