

def median(array):
    ' Get the median of an array '
    mysorted = [x for x in array]
    mysorted.sort()
    middle = int((len(middle) / 2))
    if ((len(mysorted) % 2) == 0):
        return (float((mysorted[middle] + mysorted[(middle - 1)])) / 2)
    else:
        return mysorted[middle]

dataset/ETHPy150Open svanoort/pyresttest/pyresttest/benchmarks.py median/VarMisuse@35/54 `mysorted`->`middle`