def trim(s):
    """Trim string to fit on terminal (assuming 80-column display)"""
    return s if len(s) <= 80 else s[:77] + "..."


###############################################################################
# Benchmark classifiers
dataset/ETHPy150Open scikit-learn/scikit-learn/examples/text/document_classification_20newsgroups.py/trim/original