<commit_before>from telex import auth
from telex.utils.decorators import pm_only
from telex import plugin


class ConfigPlugin(plugin.TelexPlugin):
    """
    Plugin to manage other plugin configuration.
    """
    patterns = {
        "^!config ([\w-]+) show$": "show_options",
        "^!config ([\w-]+) set ([\w-]+) \"(.+)\"": "set_option",
        "^!config ([\w-]+) get ([\w-]+)": "get_option",
    }

    usage = [
        "!config <plugin_name> show: List all plugin options",
        "!config <plugin_name> set <configname> \"<value>\": Get plugin value.",
        "!config <plugin_name> get <configname>: Get config value.",
    ]

    @auth.authorize(groups=["admins"])
    @pm_only<commit_msg>Added configurable {prefix} to commands.<commit_after>from telex import auth
from telex.utils.decorators import pm_only
from telex import plugin


class ConfigPlugin(plugin.TelexPlugin):
    """
    Plugin to manage other plugin configuration.
    """
    patterns = {
        "^{prefix}config ([\w-]+) show$": "show_options",
        "^{prefix}config ([\w-]+) set ([\w-]+) \"(.+)\"": "set_option",
        "^{prefix}config ([\w-]+) get ([\w-]+)": "get_option",
    }

    usage = [
        "{prefix}config <plugin_name> show: List all plugin options",
        "{prefix}config <plugin_name> set <configname> \"<value>\": Get plugin value.",
        "{prefix}config <plugin_name> get <configname>: Get config value.",
    ]

    @auth.authorize(groups=["admins"])
    @pm_only
{'fraction_non_alphanumeric': 0.18568534773801484, 'fraction_numerical': 0.0, 'mean_word_length': 3.0939226519337018, 'pattern_counts': {'":': 8, '<': 15, '<?xml version=': 0, '>': 15, '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': '462253', 'n_tokens_mistral': 490, 'n_tokens_neox': 482, 'n_words': 123}