<commit_before>import sys
from shutil import get_terminal_size


class status_bar:
    def __init__(self, maximum, show_percent = False, init=True,  cols=int(get_terminal_size()[0]/2), update_threshold=.05, debugging=False):
        self.current = 0
        self.last_value = 0
        self.maximum = maximum
        self.show_percent = show_percent
        self.display = ""
        self.cols = cols
        self.cursor = 0
        self.threshold = self.maximum / self.cols
        self.debugging = debugging
        self.update_threshold = self.threshold*update_threshold if show_percent else -1
        self.progress = 0<commit_msg>Fixed the update threshold parameter<commit_after>import sys
from shutil import get_terminal_size


class status_bar:
    def __init__(self, maximum, show_percent = False, init=True,  cols=int(get_terminal_size()[0]/2), update_threshold=.00005, debugging=False):
        self.current = 0
        self.last_value = 0
        self.maximum = maximum
        self.show_percent = show_percent
        self.display = ""
        self.cols = cols
        self.cursor = 0
        self.threshold = self.maximum / self.cols
        self.debugging = debugging
        self.update_threshold = self.maximum*update_threshold if show_percent else -1
        self.progress = 0
{'fraction_non_alphanumeric': 0.0865533230293663, 'fraction_numerical': 0.01622874806800618, 'mean_word_length': 2.7755102040816326, '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': '4851349', 'n_tokens_mistral': 393, 'n_tokens_neox': 361, 'n_words': 89}