def truncate(string, limit=1000):
    if len(string) > limit:
        return string[:limit-20]+'...'+string[-17:]
    else:
        return string
Truncate the string to the limit number of
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/exceptions/formatter.py/truncate