<commit_before>import logging
try:
    import tgl
except ImportError:
    import test_harness.tgl as tgl

from configobj import ConfigObj
import re
from TelegramPluginManager import TelegramPluginManager

#logging.basicConfig(level=logging.DEBUG)



class TelegramBot:
    our_id = 0
    binlog_done = False

    def __init__(self):
        self.config = ConfigObj("telegram-bot.conf")
        if len(self.config) == 0:
            self.init_config()

        try:
            self.admins = int(self.config["admin_users"])
        except:
            self.admins = [int(admin) for admin in self.config["admin_users"]]
        self.plugin_manager = TelegramPluginManager(self)
        self.load_plugins()


    # Config Management
    def init_config(self):
        self.config["enabled_plugins"] = [
            "Help",
            "Plugins",
            "Calculator",
            "BTC",
            "Echo",
            "ChatLog",
            "Media",
        ]

        self.config["admin_users"] = [
            self.our_id,
        ]

        self.config.write()

    # Util
    def admin_check(self, msg):<commit_msg>Remove load_plugins call in TelegramBot constructor<commit_after>import logging
try:
    import tgl
except ImportError:
    import test_harness.tgl as tgl

from configobj import ConfigObj
import re
from TelegramPluginManager import TelegramPluginManager

#logging.basicConfig(level=logging.DEBUG)



class TelegramBot:
    our_id = 0
    binlog_done = False

    def __init__(self):
        self.config = ConfigObj("telegram-bot.conf")
        if len(self.config) == 0:
            self.init_config()

        try:
            self.admins = int(self.config["admin_users"])
        except:
            self.admins = [int(admin) for admin in self.config["admin_users"]]
        self.plugin_manager = TelegramPluginManager(self)
#        self.load_plugins()


    # Config Management
    def init_config(self):
        self.config["enabled_plugins"] = [
            "Help",
            "Plugins",
            "Calculator",
            "BTC",
            "Echo",
            "ChatLog",
            "Media",
        ]

        self.config["admin_users"] = [
            self.our_id,
        ]

        self.config.write()

    # Util
    def admin_check(self, msg):
{'fraction_non_alphanumeric': 0.10214818062253397, 'fraction_numerical': 0.0017536168347216134, 'mean_word_length': 2.067204301075269, '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': '5405256', 'n_tokens_mistral': 689, 'n_tokens_neox': 660, 'n_words': 140}