def median(r):
    s = list(r)
    s_len = len(s)
    if s_len == 0:
        raise ValueError("can't calculate median of empty collection")
    s.sort()
    center = s_len // 2
    is_odd = s_len % 2
    if is_odd:
        return s[center]   # Return the center element.
    # Return the average of the two elements nearest the center.
    low = s[center-1]
    high = s[center]
    return mean([low, high])
Always returns False.
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/number.py/median--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/client/knownhosts.py/UnparsedEntry.matchesHost