<commit_before>import hexchat

__module_name__ = 'Hilight Responses'
__module_version__ = '0.0.1'
__module_description__ = 'Highlights messages after yours'
__module_author__ = 'Vlek'

_lastresponder = {}

def check_for_highlight(word, word_to_eol, userdata):
    global _lastresponder
    context = hexchat.get_context()
    channelname = context.get_info('channel')
    if channelname in _lastresponder and _lastresponder[channelname] == hexchat.get_info('nick'):
        if len(word) == 2:
            word.append('')
        hexchat.emit_print('Channel Msg Hilight', word[0], word[1], word[2])
        return hexchat.EAT_ALL
    update_responder(word, word_to_eol, userdata)
    return hexchat.EAT_NONE


def update_responder(word, word_to_eol, userdata):
    global _lastresponder<commit_msg>Update hilightresponses.py<commit_after>import hexchat

__module_name__ = 'Hilight Responses'
__module_version__ = '0.0.1'
__module_description__ = 'Highlights messages after yours'
__module_author__ = 'Vlek'

_lastresponder = {}

def check_for_highlight(word, word_to_eol, userdata):
    global _lastresponder
    context = hexchat.get_context()
    channelname = context.get_info('channel')
    windowname = hexchat.find_context().get_info('channel')
    if channelname in _lastresponder and _lastresponder[channelname] == hexchat.get_info('nick') and windowname != channelname:
        if len(word) == 2:
            word.append('')
        hexchat.emit_print('Channel Msg Hilight', word[0], word[1], word[2])
        return hexchat.EAT_ALL
    update_responder(word, word_to_eol, userdata)
    return hexchat.EAT_NONE


def update_responder(word, word_to_eol, userdata):
    global _lastresponder
{'fraction_non_alphanumeric': 0.10135533294048321, 'fraction_numerical': 0.008249852681202121, 'mean_word_length': 4.66, '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': '5256751', 'n_tokens_mistral': 573, 'n_tokens_neox': 561, 'n_words': 115}