<commit_before>class IRCMessage:

    """ Class to store and parse an IRC Message. """

    def __init__(self, msg):
        """ Parse a raw IRC message to IRCMessage. """
        self.sender = None
        self.command = None
        self.params = []

        self.__parse_msg(msg)

    def __parse_msg(self, msg):
        if msg[0] == ':':
            self.sender, msg = msg[1:].split(' ', 1)
        self.command, msg = msg.split(' ', 1)

        if ' :' in msg:
            msg, trailing = msg.split(' :', 1)
            self.params = msg.split(' ')
            self.params.append(trailing)
        else:
            self.params = s.split(' ')

    def __repr__(self):
        """ Print the IRCMessage all nice 'n' pretty. """
        return "Sender: {};\nNick: {}\nCommand: {};\nParams: {};\n".format(
            self.sender, self.nick, self.command, self.params)
<commit_msg>Fix typo and mistake<commit_after>class IRCMessage:

    """ Class to store and parse an IRC Message. """

    def __init__(self, msg):
        """ Parse a raw IRC message to IRCMessage. """
        self.sender = None
        self.command = None
        self.params = []

        self.__parse_msg(msg)

    def __parse_msg(self, msg):
        if msg[0] == ':':
            self.sender, msg = msg[1:].split(' ', 1)
        self.command, msg = msg.split(' ', 1)

        if ' :' in msg:
            msg, trailing = msg.split(' :', 1)
            self.params = msg.split(' ')
            self.params.append(trailing)
        else:
            self.params = msg.split(' ')

    def __repr__(self):
        """ Print the IRCMessage all nice 'n' pretty. """
        return "Sender: {};\nCommand: {};\nParams: {};\n".format(
            self.sender, self.command, self.params)

{'fraction_non_alphanumeric': 0.15753424657534246, 'fraction_numerical': 0.005707762557077625, 'mean_word_length': 1.8832236842105263, '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': '4000929', 'n_tokens_mistral': 555, 'n_tokens_neox': 529, 'n_words': 143}