<commit_before>#ifndef NETWORK_SESSION_H
#define NETWORK_SESSION_H

#include "MessageIO.h"

#include <memory>
#include <boost/asio.hpp>

namespace network
{

class Session : public MessageIO,
    public std::enable_shared_from_this<Session>
{
public:
    Session();
    ~Session();

    void start();

protected:
    virtual void onReadError();
    virtual void onWriteError();

private:
    void terminateSession();
};

}

#endif<commit_msg>Session is meant to be inherited from<commit_after>#ifndef NETWORK_SESSION_H
#define NETWORK_SESSION_H

#include "MessageIO.h"

#include <memory>
#include <boost/asio.hpp>

namespace network
{

class Session : public MessageIO,
    public std::enable_shared_from_this<Session>
{
public:
    Session();
    virtual ~Session();

    void start();

protected:
    virtual void onReadError();
    virtual void onWriteError();

private:
    void terminateSession();
};

}

#endif
{'fraction_non_alphanumeric': 0.11135371179039301, 'fraction_numerical': 0.0, 'mean_word_length': 4.591463414634147, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6507108', 'n_tokens_mistral': 294, 'n_tokens_neox': 287, 'n_words': 74}