<commit_before>import os
from twisted.internet import reactor
from heufybot import HeufyBot, HeufyBotFactory
from config import Config

class BotHandler(object):
    factories = {}
    globalConfig = None

    def __init__(self):
        print "--- Loading configs..."
        self.globalConfig = Config("globalconfig.yml")
        self.globalConfig.loadConfig(None)

        configList = self.getConfigList()
        if len(configList) == 0:
            print "*** WARNING: No server configs found. Using the global config instead."
        else:
            for filename in self.getConfigList():
                config = Config(filename, globalConfig.settings)

    def getConfigList(self):
        root = os.path.join("config")
        configs = []

        for item in os.listdir(root):
            if not os.path.isfile(os.path.join(root, item)):<commit_msg>Make debug logging a bit more consistent<commit_after>import os
from twisted.internet import reactor
from heufybot import HeufyBot, HeufyBotFactory
from config import Config

class BotHandler(object):
    factories = {}
    globalConfig = None

    def __init__(self):
        print "--- Loading configs..."
        self.globalConfig = Config("globalconfig.yml")
        self.globalConfig.loadConfig(None)

        configList = self.getConfigList()
        if len(configList) == 0:
            print "WARNING: No server configs found. Using the global config instead."
        else:
            for filename in self.getConfigList():
                config = Config(filename, globalConfig.settings)

    def getConfigList(self):
        root = os.path.join("config")
        configs = []

        for item in os.listdir(root):
            if not os.path.isfile(os.path.join(root, item)):
{'fraction_non_alphanumeric': 0.0989136649514008, 'fraction_numerical': 0.0011435105774728416, 'mean_word_length': 2.54251012145749, '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': '6310655', 'n_tokens_mistral': 489, 'n_tokens_neox': 470, 'n_words': 135}