<commit_before># -*- coding: utf-8 -*-
# Copyright 2017 <NAME>, All Rights Reserved

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

"""
**Enlighten Progress Bar**

Provides progress bars and counters which play nice in a TTY console
"""

import atexit
import signal
import sys
import time

from blessed import Terminal as _Terminal

try:
    from collections import OrderedDict
except ImportError:  # pragma: no cover (Python 2.6)
    from ordereddict import OrderedDict

# Flag to support unicode in Python 2
NEEDS_UNICODE_HELP = sys.version_info[:2] <= (2, 7)

COUNTER_FMT = u'{desc}{desc_pad}{count:d} {unit}{unit_pad}' + \
              u'[{elapsed}, {rate:.2f}{unit_pad}{unit}/s]{fill}'

BAR_FMT = u'{desc}{desc_pad}{percentage:3.0f}%|{bar}| {count:{len_total}d}/{total:d} ' + \
          u'[{elapsed}<{eta}, {rate:.2f}{unit_pad}{unit}/s]'

SERIES_STD = u' ▏▎▍▌▋▊▉█'

RESIZE_SUPPORTED = hasattr(signal, 'SIGWINCH')

__version__ = '1.0.6'


def _format_time(seconds):<commit_msg>Bump version - 1.0.7<commit_after># -*- coding: utf-8 -*-
# Copyright 2017 <NAME>, All Rights Reserved

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

"""
**Enlighten Progress Bar**

Provides progress bars and counters which play nice in a TTY console
"""

import atexit
import signal
import sys
import time

from blessed import Terminal as _Terminal

try:
    from collections import OrderedDict
except ImportError:  # pragma: no cover (Python 2.6)
    from ordereddict import OrderedDict

# Flag to support unicode in Python 2
NEEDS_UNICODE_HELP = sys.version_info[:2] <= (2, 7)

COUNTER_FMT = u'{desc}{desc_pad}{count:d} {unit}{unit_pad}' + \
              u'[{elapsed}, {rate:.2f}{unit_pad}{unit}/s]{fill}'

BAR_FMT = u'{desc}{desc_pad}{percentage:3.0f}%|{bar}| {count:{len_total}d}/{total:d} ' + \
          u'[{elapsed}<{eta}, {rate:.2f}{unit_pad}{unit}/s]'

SERIES_STD = u' ▏▎▍▌▋▊▉█'

RESIZE_SUPPORTED = hasattr(signal, 'SIGWINCH')

__version__ = '1.0.7'


def _format_time(seconds):
{'fraction_non_alphanumeric': 0.14699429574374726, 'fraction_numerical': 0.020623080298376482, 'mean_word_length': 4.217391304347826, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '7503767', 'n_tokens_mistral': 880, 'n_tokens_neox': 818, 'n_words': 239}