<commit_before>#ifndef GOL_H_INCLUDED
#define GOL_H_INCLUDED

#include "tile.hxx"

namespace game_of_life
{

class WorkerCommunicator
{
public:
    virtual void beginIteration() = 0;

    virtual void sendBorders(Borders t) = 0;
    virtual Borders receiveBorders() = 0;
    virtual void waitForBordersRead() = 0;

    virtual void endIteration() = 0;
};


class Worker
{
public:
    Worker(WorkerCommunicator* c, AbstractTile* t);

    void workInfinitely();

protected:<commit_msg>Communicator knows which borders to take<commit_after>#ifndef GOL_H_INCLUDED
#define GOL_H_INCLUDED

#include "tile.hxx"

namespace game_of_life
{

class WorkerCommunicator
{
public:
    virtual void beginIteration() = 0;

    virtual void sendBorders(AbstractTile* t) = 0;
    virtual Borders receiveBorders() = 0;
    virtual void waitForBordersRead() = 0;

    virtual void endIteration() = 0;
};


class Worker
{
public:
    Worker(WorkerCommunicator* c, AbstractTile* t);

    void workInfinitely();

protected:
{'fraction_non_alphanumeric': 0.09309309309309309, 'fraction_numerical': 0.01001001001001001, 'mean_word_length': 4.4945054945054945, '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': '6145122', 'n_tokens_mistral': 355, 'n_tokens_neox': 329, 'n_words': 88}