<commit_before>import fnmatch
from collections import defaultdict

import botconfig
from oyoyo.parse import parse_nick
from src import settings as var
from src import logger

adminlog = logger(None)

COMMANDS = defaultdict(list)
HOOKS = defaultdict(list)

class cmd:
    def __init__(self, *cmds, raw_nick=False, admin_only=False, owner_only=False,
                 chan=True, pm=False, playing=False, silenced=False, phases=(), roles=()):

        self.cmds = cmds
        self.raw_nick = raw_nick
        self.admin_only = admin_only
        self.owner_only = owner_only<commit_msg>Log admin commands to audit.log as well<commit_after>import fnmatch
from collections import defaultdict

import botconfig
from oyoyo.parse import parse_nick
from src import settings as var
from src import logger

adminlog = logger("audit.log")

COMMANDS = defaultdict(list)
HOOKS = defaultdict(list)

class cmd:
    def __init__(self, *cmds, raw_nick=False, admin_only=False, owner_only=False,
                 chan=True, pm=False, playing=False, silenced=False, phases=(), roles=()):

        self.cmds = cmds
        self.raw_nick = raw_nick
        self.admin_only = admin_only
        self.owner_only = owner_only
{'fraction_non_alphanumeric': 0.08492922564529559, 'fraction_numerical': 0.0, 'mean_word_length': 3.866396761133603, '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': '2082782', 'n_tokens_mistral': 372, 'n_tokens_neox': 365, 'n_words': 105}