<commit_before># Copyright 2013, <NAME>
# Source: http://inamidst.com/saxo/

import saxo

@saxo.event("251")
def nickserv(irc):
    if "plugins" in irc.config:
        if "nickserv" in irc.config["plugins"]:
            # Works on freenode, not sure about other servers. Easy to modify
            nick = irc.config["nick"]
            password = irc.config["plugins"]["nickserv"]
            irc.msg("NickServ", "IDENTIFY %s %s" % (nick, password))<commit_msg>Fix NickServ reconnection bug<commit_after># Copyright 2013, <NAME>
# Source: http://inamidst.com/saxo/

import saxo

@saxo.event("251")
def nickserv251(irc):
    if "plugins" in irc.config:
        if "nickserv" in irc.config["plugins"]:
            # Works on freenode, not sure about other servers. Easy to modify
            nick = irc.config["nick"]
            password = irc.config["plugins"]["nickserv"]
            irc.msg("NickServ", "IDENTIFY %s %s" % (nick, password))

@saxo.event("451")
def nickserv451(irc):
    if "plugins" in irc.config:
        if "nickserv" in irc.config["plugins"]:
            # Works on freenode, not sure about other servers. Easy to modify
            nick = irc.config["nick"]
            password = irc.config["plugins"]["nickserv"]
            irc.msg("NickServ", "IDENTIFY %s %s" % (nick, password))
{'fraction_non_alphanumeric': 0.1471264367816092, 'fraction_numerical': 0.017624521072796936, 'mean_word_length': 2.796511627906977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4290650', 'n_tokens_mistral': 447, 'n_tokens_neox': 430, 'n_words': 114}