<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bot import Bot
import os
import signal

def signal_handler(signal, frame):
    print "Caught SIGINT, terminating."
    os._exit(0)

if __name__ == "__main__":
    bot = Bot()
    bot.start()
    signal.signal(signal.SIGINT, signal_handler)
    while True:<commit_msg>prevent utf-8 error in jaraco.stream<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bot import Bot
import os
import signal

def signal_handler(signal, frame):
    print "Caught SIGINT, terminating."
    os._exit(0)

if __name__ == "__main__":
    bot = Bot()
    bot._Bot__irc.connection.buffer_class.errors = 'replace' # prevent utf-8 error in jaraco.stream
    bot.start()
    signal.signal(signal.SIGINT, signal_handler)
    while True:
{'fraction_non_alphanumeric': 0.12927756653992395, 'fraction_numerical': 0.0076045627376425855, 'mean_word_length': 3.5930232558139537, 'pattern_counts': {'":': 2, '<': 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': '4562360', 'n_tokens_mistral': 263, 'n_tokens_neox': 259, 'n_words': 70}