<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
IRC bot...

"""

import socket
import ssl
import time

import src.utilities as util
import src.irc.server
import src.irc.channel
import src.irc.parser


class Bot(object):
    
    def __init__(self, settingsInstance, info):
        """Prepare the object."""
        super(Bot, self).__init__()
        self.settingsInstance = settingsInstance
        self.info = info
        self.sock = None
        self.server = None
        self.channels = {}
        self.operator = '$'
        self.parserInstance = src.irc.parser.Parser(settingsInstance, self)
        self.handleInfo()
    
    def handleInfo(self):
        """
        Pass the information from self.info and the settings into the
        appropriate instance variables.
        <commit_msg>Move parserinstance creation around.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
IRC bot...

"""

import socket
import ssl
import time

import src.utilities as util
import src.irc.server
import src.irc.channel
import src.irc.parser


class Bot(object):
    
    def __init__(self, settingsInstance, info):
        """Prepare the object."""
        super(Bot, self).__init__()
        self.settingsInstance = settingsInstance
        self.info = info
        self.server = None
        self.channels = {}
        self.operator = '$'
        self.parserInstance = src.irc.parser.Parser(settingsInstance, self)
        self.sock = None
        self.handleInfo()
    
    def handleInfo(self):
        """
        Pass the information from self.info and the settings into the
        appropriate instance variables.
        
{'fraction_non_alphanumeric': 0.10936555891238671, 'fraction_numerical': 0.0012084592145015106, 'mean_word_length': 2.3454545454545452, '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': '6460652', 'n_tokens_mistral': 467, 'n_tokens_neox': 454, 'n_words': 127}