<commit_before>import asyncio
import discord
import re

from collections import deque
from cogs.checks import check_staff_id
from cogs.database import DatabaseCog
from discord.ext import commands
from subprocess import call
from string import printable
from urllib.parse import urlparse


class Events(DatabaseCog):
    """
    Special event handling.
    """

    def __init__(self, bot):
        super().__init__(bot)
        self.bot.temp_guilds = {}

    # don't add spaces or dashes to words
    piracy_tools = (
        'freeshop',
        'frepshop',
        'fr3eshop',
        'fr33shop',
        'fre3shop',
        'ciangel',
        'ciaangel',
        'tikdevil',
        'tikshop',
        'fr335h0p',
        'fr€€shop',
        'fr€€sh0p',
        'fr3esh0p',
        'fr//shop',
        'fr//sh0p',
        'free$hop',
        'fr$$hop',
        'friishop',
        'fr££shop',
        'fr£€shop',
        'fr£shop',
        'fr£eshop',
        'fre£shop',
        'fr€£shop',
        'threeshop',
        'thr33shop',
        'thr££shop',
        'thr£eshop',
        'thr33shop',
        'fr33sh0p',
        'fresh0p',
        'fr$shop',
        'freesho',
        'freeshoandp',
        'freeshothenp',
        'freeeshop',
        'makiedition',
        'makiversion',
        'makifbi',
        'utikdownloadhelper',
        'usbh3lper',
        'funkii',
        'funkey',
        'funk11',
        'freeshp',
        'frees.hop',
        'fr*eeshop',
        'frappeshop',
        'frickshop',
        'usbheler',
        'usbhelper',
        'frishop',
        'eshopfree',
        'erappêshop',
        'fręëšhøp',
        'fbimod',
        'freakshop',
        'fleashop',
        'ciangle',
        'fieashop',
        'fefosheep',
        'freebrew',
        'villain3ds',
        'vi11ain3ds',
        'vi1lain3ds',
        'vil1ain3ds',
        'villian3ds',
        'vi11ian3ds',
        'vi1lian3ds',
        'vil1ian3ds',
        'cdnfx',
        'exhop',
        'exshop',
        'enxhop',
        'goodshop',
        'exnhop',  # typo of the above, not sure how common
        'enxshop',  # also typo
        'cdnsp',
        'wareznx',
        'wareznext',
        'softcobra',
        'uwizard',
        'jnustool',
        'nusgrabber',
        'fr33$h0p',
        'free.shop',
        'fréeshop',
        'freéshop',
        'frééshop',
        'frèeshop',
        'freèshop',
        'frèèshop',
        'freêshop',
        'frêeshop',
        'frêêshop',
        'stargatenx',
        'homebrewgeneralshop',
        'hbgshop',
        '/hbg/shop',
        '\hbg\shop',
        'hbgsh0p',
        'stargate',
        'freestore',
        'sxinstaller',
        'rajnx2',
        'poyoshop',
        'pbanjgasm',

        #'sxos',
    )

    # use the full ID, including capitalization and dashes
    piracy_video_ids = (
        'VWFe_n7AhKs',
    )

    # terms that should cause a notice but not auto-delete
    piracy_tools_alert = (
        'freshop',
        'feeshop',
        'notabug',<commit_msg>Move jnustool to warn instead of delete<commit_after>import asyncio
import discord
import re

from collections import deque
from cogs.checks import check_staff_id
from cogs.database import DatabaseCog
from discord.ext import commands
from subprocess import call
from string import printable
from urllib.parse import urlparse


class Events(DatabaseCog):
    """
    Special event handling.
    """

    def __init__(self, bot):
        super().__init__(bot)
        self.bot.temp_guilds = {}

    # don't add spaces or dashes to words
    piracy_tools = (
        'freeshop',
        'frepshop',
        'fr3eshop',
        'fr33shop',
        'fre3shop',
        'ciangel',
        'ciaangel',
        'tikdevil',
        'tikshop',
        'fr335h0p',
        'fr€€shop',
        'fr€€sh0p',
        'fr3esh0p',
        'fr//shop',
        'fr//sh0p',
        'free$hop',
        'fr$$hop',
        'friishop',
        'fr££shop',
        'fr£€shop',
        'fr£shop',
        'fr£eshop',
        'fre£shop',
        'fr€£shop',
        'threeshop',
        'thr33shop',
        'thr££shop',
        'thr£eshop',
        'thr33shop',
        'fr33sh0p',
        'fresh0p',
        'fr$shop',
        'freesho',
        'freeshoandp',
        'freeshothenp',
        'freeeshop',
        'makiedition',
        'makiversion',
        'makifbi',
        'utikdownloadhelper',
        'usbh3lper',
        'funkii',
        'funkey',
        'funk11',
        'freeshp',
        'frees.hop',
        'fr*eeshop',
        'frappeshop',
        'frickshop',
        'usbheler',
        'usbhelper',
        'frishop',
        'eshopfree',
        'erappêshop',
        'fręëšhøp',
        'fbimod',
        'freakshop',
        'fleashop',
        'ciangle',
        'fieashop',
        'fefosheep',
        'freebrew',
        'villain3ds',
        'vi11ain3ds',
        'vi1lain3ds',
        'vil1ain3ds',
        'villian3ds',
        'vi11ian3ds',
        'vi1lian3ds',
        'vil1ian3ds',
        'cdnfx',
        'exhop',
        'exshop',
        'enxhop',
        'goodshop',
        'exnhop',  # typo of the above, not sure how common
        'enxshop',  # also typo
        'cdnsp',
        'wareznx',
        'wareznext',
        'softcobra',
        'uwizard',
        'nusgrabber',
        'fr33$h0p',
        'free.shop',
        'fréeshop',
        'freéshop',
        'frééshop',
        'frèeshop',
        'freèshop',
        'frèèshop',
        'freêshop',
        'frêeshop',
        'frêêshop',
        'stargatenx',
        'homebrewgeneralshop',
        'hbgshop',
        '/hbg/shop',
        '\hbg\shop',
        'hbgsh0p',
        'stargate',
        'freestore',
        'sxinstaller',
        'rajnx2',
        'poyoshop',
        'pbanjgasm',

        #'sxos',
    )

    # use the full ID, including capitalization and dashes
    piracy_video_ids = (
        'VWFe_n7AhKs',
    )

    # terms that should cause a notice but not auto-delete
    piracy_tools_alert = (
        'jnustool',
        'freshop',
        'feeshop',
        'notabug',
{'fraction_non_alphanumeric': 0.13627450980392156, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 1.5472326258843112, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3045204', 'n_tokens_mistral': 2218, 'n_tokens_neox': 2135, 'n_words': 391}