<commit_before>#ifndef BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP
#define BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP

#include <cstdint>
#include <msgpack_fwd.hpp>
#include <type_traits>

namespace bonefish {

enum class wamp_message_type : int
{
    HELLO = 1,
    WELCOME = 2,
    ABORT = 3,
    CHALLENGE = 4,
    AUTHENTICATE = 5,
    GOODBYE = 6,
    HEARTBEAT = 7,
    ERROR = 8,
    PUBLISH = 16,
    PUBLISHED = 17,
    SUBSCRIBE = 32,
    SUBSCRIBED = 33,
    UNSUBSCRIBE = 34,
    UNSUBSCRIBED = 35,
    EVENT = 36,
    CALL = 48,
    CANCEL = 49,
    RESULT = 50,
    REGISTER = 64,
    REGISTERED = 65,
    UNREGISTER = 66,
    UNREGISTERED = 67,
    INVOCATION = 68,
    INTERRUPT = 69,
    YIELD = 70
};

const char* message_type_to_string(wamp_message_type type);

} // namespace bonefish

MSGPACK_ADD_ENUM(bonefish::wamp_message_type);

#include <msgpack.hpp>

#endif // BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP<commit_msg>Revert to older style of defining msgpack enum support<commit_after>#ifndef BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP
#define BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP

#include <cstdint>
#include <msgpack.hpp>
#include <type_traits>

namespace bonefish {

enum class wamp_message_type : int
{
    HELLO = 1,
    WELCOME = 2,
    ABORT = 3,
    CHALLENGE = 4,
    AUTHENTICATE = 5,
    GOODBYE = 6,
    HEARTBEAT = 7,
    ERROR = 8,
    PUBLISH = 16,
    PUBLISHED = 17,
    SUBSCRIBE = 32,
    SUBSCRIBED = 33,
    UNSUBSCRIBE = 34,
    UNSUBSCRIBED = 35,
    EVENT = 36,
    CALL = 48,
    CANCEL = 49,
    RESULT = 50,
    REGISTER = 64,
    REGISTERED = 65,
    UNREGISTER = 66,
    UNREGISTERED = 67,
    INVOCATION = 68,
    INTERRUPT = 69,
    YIELD = 70
};

const char* message_type_to_string(wamp_message_type type);

} // namespace bonefish

MSGPACK_ADD_ENUM(bonefish::wamp_message_type);

#endif // BONEFISH_MESSAGES_WAMP_MESSAGE_TYPE_HPP
{'fraction_non_alphanumeric': 0.09163558870538092, 'fraction_numerical': 0.044752264251465106, 'mean_word_length': 3.1826280623608016, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1358922', 'n_tokens_mistral': 869, 'n_tokens_neox': 756, 'n_words': 159}