<commit_before>#ifndef MAINBOARD_H
#define MAINBOARD_H

#include <QMainWindow>

namespace Ui {
class MainBoard;
}

class MainBoard : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainBoard(QWidget *parent = 0);
    ~MainBoard();

private:
    Ui::MainBoard *ui;
};

#endif // MAINBOARD_H<commit_msg>functions for creating the board and the figures<commit_after>#ifndef MAINBOARD_H
#define MAINBOARD_H

#include <QMainWindow>
#include <QLabel>
#include <QString>
#include <QPushButton>
#include <QIcon>
#include <QSize>

namespace Ui {
class MainBoard;
}

class MainBoard : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainBoard(QWidget *parent = 0);

    void initializeBoard();
    void createBoard();

    void initializeFigures();

    void createPawns();
    void createBishops();
    void createHorses();
    void createRooks();
    void createQueens();
    void createKings();

    void createFigures();

    void disableButtons();
    ~MainBoard();

private:
    Ui::MainBoard *ui;
    const static int BOARD_ROWS = 8;
    const static int BOARD_COLS = 8;

    const static int NUMBER_OF_FIGURES = 6;

    const static int squares_size = 100;
    const static int squares_label_width = 12;
    const static int squares_label_height = 20;

    const  int x_axis[8] = {480, 580, 680, 780, 880, 980, 1080, 1180}; //pushing columns from left to right, starting at 480 pixels
    const  int y_axis[8] = {50, 150, 250, 350, 450, 550, 650, 750}; //pushing rows from top to bottom, starting at 50 pixels

    const  QString numb_label[8] ={"8", "7", "6", "5", "4", "3", "2", "1"};
    const  QString letter_label[8] = {"A", "B", "C", "D", "E", "F", "G", "H"};
    const QString whiteFigureNames[NUMBER_OF_FIGURES] = {"wPawn", "wBishop", "wHorse", "wRook", "wQueen", "wKing"};
    const QString blackFigureNames[NUMBER_OF_FIGURES] = {"bPawn", "bBishop", "bHorse", "bRook", "bQueen", "bKing"};

    QLabel* Sqares[BOARD_COLS][BOARD_ROWS];
    QLabel* square_numb_label[8];
    QLabel* square_letter_label[8];

    QPushButton* positions[BOARD_COLS][BOARD_ROWS]; //buttons ontop of sqares labels

    QIcon* blackFigures[NUMBER_OF_FIGURES];
    QIcon* whiteFigures[NUMBER_OF_FIGURES];
    QSize size;
};

#endif // MAINBOARD_H
{'fraction_non_alphanumeric': 0.13062862238074008, 'fraction_numerical': 0.03566651805617477, 'mean_word_length': 4.146788990825688, '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': '6241442', 'n_tokens_mistral': 878, 'n_tokens_neox': 785, 'n_words': 221}