<commit_before>from terrabot.util.streamer import Streamer

from terrabot.events.events import Events


class PacketEParser(object):
    def parse(self, world, player, data, ev_man):

        #If player is active
        if data[2] == 1:
            #Raise event with player_id
            ev_man.raise_event(Events.NewPlayer, data[1])<commit_msg>Fix with 'newPlayer' event triggering on load<commit_after>from terrabot.util.streamer import Streamer

from terrabot.events.events import Events


class PacketEParser(object):
    def parse(self, world, player, data, ev_man):

        #If player is active
        if data[2] == 1 and player.logged_in:
            #Raise event with player_id
            ev_man.raise_event(Events.NewPlayer, data[1])
{'fraction_non_alphanumeric': 0.08701472556894244, 'fraction_numerical': 0.008032128514056224, 'mean_word_length': 3.25, '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': '5367232', 'n_tokens_mistral': 234, 'n_tokens_neox': 224, 'n_words': 65}