<commit_before>#ifndef TILE_H
#define TILE_H

#include <stdexcept>
#include <string>

/**
 * Immutable class for represeting one tile on the board
 * contains information about its position and whether its neighbors are alive
 */
class Tile
{
    const int x, y;
    const bool leftAlive, rightAlive, topAlive, bottomAlive;
    /** whether this tile is alive */
    const bool alive;

    public:
    Tile(int paramX, int paramY, bool paramIsAlive, bool paramLeftAlive, bool paramRightAlive, bool paramTopAlive, bool paramBottomAlive)
     : x(paramX), y(paramY), alive(paramIsAlive), leftAlive(paramLeftAlive), rightAlive(paramRightAlive), topAlive(paramTopAlive), bottomAlive(paramBottomAlive)
    {}

    const int getX();
    const int getY();

    const bool isAlive();

    /** returns whether this tile will be alive in the next generation */
    const bool willBeAlive();
};

/**
 * see http://stackoverflow.com/questions/4747706/standard-or-custom-exception-in-c
 * subclass created for the sake of clarity
 */
class TileException : std::logic_error
{
    public:
        TileException(const std::string& what_arg)
            : logic_error(what_arg) {}
};

#endif
<commit_msg>removed redundant const fixed variable initialization order warning the CTOR preamble now initializes variables in the right order<commit_after>#ifndef TILE_H
#define TILE_H

#include <stdexcept>
#include <string>

/** adds some clarity instead of using magic true/false all over the place */
#define TILE_DEAD false
#define TILE_ALIVE true

/**
 * Immutable class for represeting one tile on the board
 * contains information about its position and whether its neighbors are alive
 */
class Tile
{
    const int x, y;
    const bool leftAlive, rightAlive, topAlive, bottomAlive;
    /** whether this tile is alive */
    const bool alive;

    public:
    Tile(int paramX, int paramY, bool paramIsAlive, bool paramLeftAlive, bool paramRightAlive, bool paramTopAlive, bool paramBottomAlive)
     : x(paramX), y(paramY),  leftAlive(paramLeftAlive), rightAlive(paramRightAlive), topAlive(paramTopAlive), bottomAlive(paramBottomAlive), alive(paramIsAlive)
    {}

    int getX();
    int getY();

    bool isAlive();

    /** returns whether this tile will be alive in the next generation */
    bool willBeAlive();
};

/**
 * see http://stackoverflow.com/questions/4747706/standard-or-custom-exception-in-c
 * subclass created for the sake of clarity
 */
class TileException : std::logic_error
{
    public:
        TileException(const std::string& what_arg)
            : logic_error(what_arg) {}
};

#endif

{'fraction_non_alphanumeric': 0.09487080601619745, 'fraction_numerical': 0.005399151561897416, 'mean_word_length': 3.959847036328872, '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': '3453002', 'n_tokens_mistral': 805, 'n_tokens_neox': 776, 'n_words': 253}