<commit_before>#include "Packet.h"
#include "../data/Character.h"

struct MysteryPacket{
    PacketHeader header = PacketHeader(0xC, 0x11, 0x49, 0x0, 0x0);
    uint16_t randomDataOfDoom;
    MysteryPacket(uint16_t randomData) {
        randomDataOfDoom = randomData;
    }
};

struct CharacterSpawnPacket {
    PacketHeader header;
    CharacterHeaderMaybe charHeaderMaybe;
    MysteryCharacter14 unknown_14;
    char unk_22[34];
    uint16_t unknown_44;
    char unk_46[6];
    uint32_t unknown_4c;
    char unk_50[8];
    uint32_t unknown_58;
    uint32_t unknown_5C;
    uint32_t playerIdCopy;
    char unk_64[4];
    uint32_t voiceParam_unknown4;
    uint32_t voiceParam_unknown8;
    uint16_t name[16]; //TODO: Find a 16-bit consistant wchar_t.
    char unk_90[4];
    CharacterLooksParameter looksParam;
    CharacterJobParameter jobsParam;
    uint16_t currentTitle[32];
    char unk_204[2];
    char unknown_206;
};

struct CharacterCreatePacket { // 11-5
    PacketHeader header;
    char unknown_8[20];
    uint16_t name[16];
    char padding[4];
    CharacterLooksParameter looks;
    CharacterJobParameter jobs;
};

class FixedLengthPacket : public Packet
{
public:
    FixedLengthPacket(void* packetPtr);
    PacketData build();

private:
    void* packetPtr;
};<commit_msg>Correctly sized packets<commit_after>#include "Packet.h"
#include "../data/Character.h"

struct MysteryPacket{
    PacketHeader header = PacketHeader(0xC, 0x11, 0x49, 0x0, 0x0);
    uint16_t randomDataOfDoom;
    MysteryPacket(uint16_t randomData) {
        randomDataOfDoom = randomData;
    }
};

struct CharacterSpawnPacket {
    PacketHeader header;
    CharacterHeaderMaybe charHeaderMaybe;
    MysteryCharacter14 unknown_14;
    char asciiString[34]; //\0\0Character in ASCII (Rest is all zeros)
    uint16_t unknown_44;
    char unk_46[6];
    uint32_t unknown_4c;
    char unk_50[8];
    uint32_t unknown_58;
    uint32_t unknown_5C;
    uint32_t playerIdCopy;
    char unk_64[4];
    uint32_t voiceParam_unknown4;
    uint32_t voiceParam_unknown8;
    uint16_t name[16]; //TODO: Find a 16-bit consistant wchar_t.
    char unk_90[4];
    CharacterLooksParameter looksParam;
    CharacterJobParameter jobsParam;
    uint16_t currentTitle[32];
    char unk_204[2];
    char unknown_206;
    char unknown_207[101];
};

struct CharacterCreatePacket { // 11-5
    PacketHeader header;
    char unknown_8[20]; // Usually zeros so far?
    uint16_t name[16];
    char padding[4];
    CharacterLooksParameter looks;
    CharacterJobParameter jobs;
    char unknown_footer[68];
};

class FixedLengthPacket : public Packet
{
public:
    FixedLengthPacket(void* packetPtr);
    PacketData build();

private:
    void* packetPtr;
};
{'fraction_non_alphanumeric': 0.08729281767955802, 'fraction_numerical': 0.06556169429097605, 'mean_word_length': 3.7399650959860384, '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': '3098723', 'n_tokens_mistral': 1024, 'n_tokens_neox': 912, 'n_words': 209}