<commit_before>import re
import time

class EuphUtils:
    @classmethod
    def mention(cls, nick):
        return '@' + ''.join(re.split(r'\s', nick))

    @classmethod
    def mention_regex(cls, nick):
        return re.compile(r'((?<=\s)|^)' + re.escape(cls.mention(nick)) + r'(\b|$|(?=\s))', re.IGNORECASE + re.MULTILINE)

    @classmethod
    def command(cls, name, nickname=None, match_string=None):
        if nickname == '':
            return re.compile(name + r'\b\s*(?!@\S+)(\S.*|$)', re.IGNORECASE + re.DOTALL + re.MULTILINE)
        elif not nickname:<commit_msg>Fix #43<commit_after>import re
import time

class EuphUtils:
    @classmethod
    def mention(cls, nick):
        return '@' + ''.join(re.split(r'\s', nick))

    @classmethod
    def mention_regex(cls, nick):
        return re.compile(r'((?<=\s)|^)' + re.escape(cls.mention(nick)) + r'(\b|$|(?=\s))', re.IGNORECASE + re.MULTILINE)

    @classmethod
    def command(cls, name, nickname=None, match_string=None):
        if nickname == '':
            return re.compile(name + r'\b\s*$', re.IGNORECASE + re.DOTALL + re.MULTILINE)
        elif not nickname:
{'fraction_non_alphanumeric': 0.1909814323607427, 'fraction_numerical': 0.0017683465959328027, 'mean_word_length': 3.057347670250896, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6231762', 'n_tokens_mistral': 426, 'n_tokens_neox': 405, 'n_words': 80}