<commit_before>import gevent
from gevent import monkey, queue
from importlib import import_module

# my module
from session import Session

# import config
import modules.config_data
monkey.patch_all(aggressive=True)


class Scale_console:
    def __init__(self):
        self.sessions = []
        self.queue = queue.Queue()
        config = modules.config_data.config_data()
        config.loads()
        for mod_name in config.sessions:
            inte, argv, *_ = config.sessions[mod_name]
            try:
                mod_name = mod_name.split('.')[0]
                mod = import_module('modules.'+mod_name)
            except ImportError as err:
                print('Error when inital: %s' % err)
                exit(1)
            self.sessions.append(Session(mod.mod_init(argv), inte, self.queue))
        print('scale inital complete.')
<commit_msg>little fixed. scale now show config information when start.<commit_after>import gevent
from gevent import monkey, queue
from importlib import import_module

# my module
from session import Session

# import config
import modules.config_data
monkey.patch_all(aggressive=True)


class Scale_console:
    def __init__(self):
        self.sessions = []
        self.queue = queue.Queue()
        config = modules.config_data.config_data()
        cons = config.loads()
        from pprint import pprint
        pprint(cons)
        for mod_name in config.sessions:
            inte, argv, *_ = config.sessions[mod_name]
            try:
                mod_name = mod_name.split('.')[0]
                mod = import_module('modules.'+mod_name)
            except ImportError as err:
                print('Error when inital: %s' % err)
                exit(1)
            self.sessions.append(Session(mod.mod_init(argv), inte, self.queue))
        print('scale inital complete.')

{'fraction_non_alphanumeric': 0.09490238611713665, 'fraction_numerical': 0.0021691973969631237, 'mean_word_length': 2.366788321167883, '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': '28795', 'n_tokens_mistral': 534, 'n_tokens_neox': 517, 'n_words': 134}