<commit_before>/*
 * Copyright (C) 2014-2015 <NAME>
 *
 * See the LICENSE file for terms of use.
 */

#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP

#include "GuiGame.hpp"
#include <QMainWindow>

enum GameType {
    WIN_MODE,
    TIME_MODE,
    SCORE_MODE
};

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    explicit MainWindow(QWidget* parent = 0);
    ~MainWindow();

protected:
    int getDeskSize_impl() const;

    void startGame_impl(int row_number);

    void errorHandling_impl(std::exception& e) const;

private:
    Ui::MainWindow* ui;

    GuiGamePtr game_;

    GameType game_type_;

    void setBoardsModel();

    void configureBoard();

    void preparingToPlay();

private slots:
    void on_quitButton_clicked();

    void on_winButton_clicked();

    void on_timeButton_clicked();

    void on_scoreButton_clicked();

    void on_startButton_clicked();

    void on_endButton_clicked();
};

#endif<commit_msg>New private members of MainWindow<commit_after>/*
 * Copyright (C) 2014-2015 <NAME>
 *
 * See the LICENSE file for terms of use.
 */

#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP

#include "GuiGame.hpp"
#include <QMainWindow>

enum GameType {
    WIN_MODE,
    TIME_MODE,
    SCORE_MODE
};

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    explicit MainWindow(QWidget* parent = 0);
    ~MainWindow();

protected:
    int getDeskSize_impl() const;

    void startGame_impl(int row_number);

    void errorHandling_impl(std::exception& e) const;

private:
    Ui::MainWindow* ui;

    GuiGamePtr game_;

    GameType game_type_;

    int win_number_;

    int time_number_;

    void setBoardsModel();

    void configureBoard();

    void preparingToPlay();

private slots:
    void on_quitButton_clicked();

    void on_winButton_clicked();

    void on_timeButton_clicked();

    void on_scoreButton_clicked();

    void on_startButton_clicked();

    void on_endButton_clicked();
};

#endif
{'fraction_non_alphanumeric': 0.09580246913580247, 'fraction_numerical': 0.008888888888888889, 'mean_word_length': 3.722610722610723, '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': '1742459', 'n_tokens_mistral': 716, 'n_tokens_neox': 665, 'n_words': 167}