<commit_before>"""Prints a banner.

Example:

================================================================================
                             Create Security Group
================================================================================
"""
import logging

from foremast import consts

LOG = logging.getLogger(__name__)
LOG.setLevel(logging.INFO)


def banner(text, border='=', width=80):
    """Center _text_ in a banner _width_ wide with _border_ characters."""
    text_padding = '{0:^%d}' % (width)
    LOG.info(border * width)
    LOG.info(text_padding.format(text))
    LOG.info(border * width)<commit_msg>refactor: Remove unused import<commit_after>"""Prints a banner.

Example:

================================================================================
                             Create Security Group
================================================================================
"""
import logging

LOG = logging.getLogger(__name__)
LOG.setLevel(logging.INFO)


def banner(text, border='=', width=80):
    """Center _text_ in a banner _width_ wide with _border_ characters."""
    text_padding = '{0:^%d}' % (width)
    LOG.info(border * width)
    LOG.info(text_padding.format(text))
    LOG.info(border * width)
{'fraction_non_alphanumeric': 0.35270700636942676, 'fraction_numerical': 0.004777070063694267, 'mean_word_length': 4.792626728110599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '638885', 'n_tokens_mistral': 323, 'n_tokens_neox': 299, 'n_words': 74}