<commit_before>#ifndef BASE_MESSAGE_H
#define BASE_MESSAGE_H

#include <boost/shared_ptr.hpp>
#include <boost/serialization/access.hpp>

#include "logger.h"
#include "messageTypesAndVersions.h"
#include "watcherTypes.h"
#include "message_fwd.h"

namespace watcher {
    namespace event {

        /** Base class for all messages generated from the test node daemon.
         */
        class Message {
            public:
                // de-serialize object via input stream
                static MessagePtr unpack(std::istream&);

                // seralize object to ostream
                void pack(std::ostream&) const;

                unsigned int version;
                MessageType type;
                Timestamp timestamp;  

                Message();
                Message(const MessageType &t, const unsigned int version);<commit_msg>Add address to Message base class. This address gets filled out by the server on message receive. (Address is hidden behind a typedef to NodeIdentifier - it remains to be seen if this is helpful of just confusing.)<commit_after>#ifndef BASE_MESSAGE_H
#define BASE_MESSAGE_H

#include <boost/shared_ptr.hpp>
#include <boost/serialization/access.hpp>

#include "logger.h"
#include "messageTypesAndVersions.h"
#include "watcherTypes.h"
#include "message_fwd.h"

namespace watcher {
    namespace event {

        /** Base class for all messages generated from the test node daemon.
         */
        class Message {
            public:
                // de-serialize object via input stream
                static MessagePtr unpack(std::istream&);

                // seralize object to ostream
                void pack(std::ostream&) const;

                unsigned int version;
                MessageType type;
                Timestamp timestamp;  
                NodeIdentifier fromNodeID;

                Message();
                Message(const MessageType &t, const unsigned int version);
{'fraction_non_alphanumeric': 0.07515337423312883, 'fraction_numerical': 0.0, 'mean_word_length': 2.1463022508038585, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4977784', 'n_tokens_mistral': 510, 'n_tokens_neox': 478, 'n_words': 165}