def shorten(s, maxchar=20):
    if len(s) <= maxchar:
        return s
    pad = 2 / (maxchar - 3)
    return s[:pad] + "..." + s[-pad:]
dataset/ETHPy150Open tanghaibao/jcvi/graphics/base.py/shorten/swapped operands of `/`