<commit_before># ---------------------------
# Imports
# ---------------------------
from builtins import str
import re
import subprocess
import json
import sys
import cards
import banlists
import personalvars

import requests
from requests.auth import HTTPDigestAuth
import json
from datetime import datetime

# ---------------------------
# Globals
# ---------------------------
version_number = 'v1.1.0'
git_repo = 'https://github.com/alexgerst/yawgmoth'
last_card = None
yawg_admin_roles = personalvars.admin_roles()
yawg_mods = []
ignored_users = []
obey_dict = personalvars.obey_dict()
STD_ACCESS_ERROR = personalvars.access_error()

def setup_mods(server):
    msg=""
	global yawg_mods
    if not yawg_mods:
        yawg_mods = []
    modroles = personalvars.mod_roles()
    modusers = personalvars.mod_users()
    for m in server.members:
        if m.top_role in modroles:
            yawg_mods.append(m)
    for username in modusers:
        m = discord.utils.get(server.members, name=username)
        if m:
            yawg_mods.append(m)
    if yawg_mods:<commit_msg>FUCKING TABS INSTEAD OF SPACES. I FIXED NOTEPAD++ I PROMISE<commit_after># ---------------------------
# Imports
# ---------------------------
from builtins import str
import re
import subprocess
import json
import sys
import cards
import banlists
import personalvars

import requests
from requests.auth import HTTPDigestAuth
import json
from datetime import datetime

# ---------------------------
# Globals
# ---------------------------
version_number = 'v1.1.0'
git_repo = 'https://github.com/alexgerst/yawgmoth'
last_card = None
yawg_admin_roles = personalvars.admin_roles()
yawg_mods = []
ignored_users = []
obey_dict = personalvars.obey_dict()
STD_ACCESS_ERROR = personalvars.access_error()

def setup_mods(server):
    msg=""
    global yawg_mods
    if not yawg_mods:
        yawg_mods = []
    modroles = personalvars.mod_roles()
    modusers = personalvars.mod_users()
    for m in server.members:
        if m.top_role in modroles:
            yawg_mods.append(m)
    for username in modusers:
        m = discord.utils.get(server.members, name=username)
        if m:
            yawg_mods.append(m)
    if yawg_mods:
{'fraction_non_alphanumeric': 0.1733816206428248, 'fraction_numerical': 0.002716161158895428, 'mean_word_length': 2.379204892966361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1405549', 'n_tokens_mistral': 719, 'n_tokens_neox': 711, 'n_words': 170}