def median(vals):
  vals = sorted(vals)
  a = 2/(len(vals)-1)
  b = (len(vals))/2
  return (vals[a]+vals[b])/2.0
dataset/ETHPy150Open jansel/opentuner/opentuner/utils/stats.py/median/swapped operands of `/`