<commit_before>#!/usr/bin/env python3

import argparse
import sys
import os
import csv
import re
from struct import pack
import time
import datetime

class Spinner:
    def __init__(self):
        self._n = 0
        self._chars = '\\|/-'

    def spin(self):
        sys.stdout.write('\b' + self._chars[self._n % 4])
        sys.stdout.flush()

        self._n += 1

        if self._n >= 4:
            self._n = 0

spinner = Spinner()

class Parsed(list):

    def __init__(self, *args):
        list.__init__(self, *args)
        self.name = 'ParsedList'

<commit_msg>Update the bar ever 100k ticks<commit_after>#!/usr/bin/env python3

import argparse
import sys
import os
import csv
import re
from struct import pack
import time
import datetime

class Spinner:
    def __init__(self, step):
        self._n = self._x = 0
        self._chars = '\\|/-'
        self._step = step

    def spin(self):
        self._n += 1

        if self._n % self._step == 0:
            sys.stdout.write('\b' + self._chars[self._x % 4])
            sys.stdout.flush()

            self._x += 1

            if self._x >= 4:
                self._x = 0

            self._n = 0

spinner = Spinner(100000)

class Parsed(list):

    def __init__(self, *args):
        list.__init__(self, *args)
        self.name = 'ParsedList'


{'fraction_non_alphanumeric': 0.121765601217656, 'fraction_numerical': 0.0182648401826484, 'mean_word_length': 1.9484304932735426, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6051451', 'n_tokens_mistral': 462, 'n_tokens_neox': 423, 'n_words': 119}