<commit_before>"""Examples for halo.
"""
from __future__ import unicode_literals, absolute_import, print_function
import os
import time

os.sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from halo.halo import Halo

spinner = Halo('Loading')

spinner.start()
time.sleep(10)
spinner.stop()<commit_msg>Example: Updated with doge style<commit_after># -*- coding: utf-8 -*-
"""Examples for halo.
"""
from __future__ import unicode_literals, absolute_import, print_function
import os
import time

os.sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from halo.halo import Halo

spinner = Halo({'text': 'Such Spin', 'spinner': 'dots'})


spinner.start()
time.sleep(2)
spinner.text = 'Much Colors'
spinner.color = 'magenta'
time.sleep(2)
spinner.text = 'Very emojis'
spinner.spinner = {'spinner': 'hearts'}
time.sleep(2)
spinner.stop_and_persist({'symbol': '🦄 '.encode('utf-8'), 'text': 'Wow!'})
{'fraction_non_alphanumeric': 0.16596194503171247, 'fraction_numerical': 0.007399577167019027, 'mean_word_length': 6.120300751879699, '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': '2089096', 'n_tokens_mistral': 355, 'n_tokens_neox': 337, 'n_words': 73}