<commit_before>"""
Task:
Descripion of script here.
"""

# Import Built-Ins
import logging
import time

# Import Third-Party

# Import Homebrew
from btfxwss import BtfxWss
# Init Logging Facilities
log = logging.getLogger(__name__)


if __name__ == '__main__':
    wss = BtfxWss()
    wss.start()
    t = time.time()
    while time.time() - t < 5:
        time.sleep(1)
    wss.stop()<commit_msg>added handlers for logging calls<commit_after># Import Built-Ins
import logging
import time
import sys

# Import Third-Party

# Import Homebrew
from btfxwss import BtfxWss
# Init Logging Facilities
logging.basicConfig(level=logging.DEBUG, filename='test.log')
log = logging.getLogger(__name__)

fh = logging.FileHandler('test.log')
fh.setLevel(logging.DEBUG)
sh = logging.StreamHandler(sys.stdout)
sh.setLevel(logging.DEBUG)

log.addHandler(sh)
log.addHandler(fh)


if __name__ == '__main__':
    wss = BtfxWss()
    wss.start()
    time.sleep(1)
    wss.ticker('BTCUSD')
    wss.ping()
    t = time.time()
    while time.time() - t < 10:
        time.sleep(1)
    wss.stop()
{'fraction_non_alphanumeric': 0.12605042016806722, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 3.7224669603524227, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3640948', 'n_tokens_mistral': 396, 'n_tokens_neox': 384, 'n_words': 91}