<commit_before>import logging
import re
import random
import hashlib
import urllib.parse
import datetime
import collections
import time
import json

import discord

from discord.ext import commands

from .common import Cog

log = logging.getLogger(__name__)

RXKCD_ENDPOINT = 'http://0.0.0.0:8080/search'


class Extra(Cog):
    """Extra commands that don't fit in any other cogs."""
    def __init__(self, bot):
        super().__init__(bot)

        self.description_coll = self.config.jose_db['descriptions']

        self.socket_stats = collections.Counter()
        self.sock_start = time.monotonic()
        self.description_regex = r'([a-zA-Z0-9]| |\')'
<commit_msg>extra: more chars<commit_after>import logging
import re
import random
import hashlib
import urllib.parse
import datetime
import collections
import time
import json

import discord

from discord.ext import commands

from .common import Cog

log = logging.getLogger(__name__)

RXKCD_ENDPOINT = 'http://0.0.0.0:8080/search'


class Extra(Cog):
    """Extra commands that don't fit in any other cogs."""
    def __init__(self, bot):
        super().__init__(bot)

        self.description_coll = self.config.jose_db['descriptions']

        self.socket_stats = collections.Counter()
        self.sock_start = time.monotonic()

        p1 = '([a-zA-Z0-9]| |\'|\"|\!|\%|\<|\>|\:|\.|\,|\;|\*|\~|\n)'
        self.description_regex = re.compile(p1)

{'fraction_non_alphanumeric': 0.13295615275813297, 'fraction_numerical': 0.015558698727015558, 'mean_word_length': 3.492063492063492, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '856833', 'n_tokens_mistral': 475, 'n_tokens_neox': 451, 'n_words': 115}