<commit_before>#ifndef PLAYERINFOPANEWIDGET_HPP
#define PLAYERINFOPANEWIDGET_HPP

#include <QWidget>
#include "Logics/Entities/OwPlayer.hpp"

namespace Ui
{
class PlayerInfoPaneWidget;
}

class PlayerInfoPaneWidget : public QWidget
{
    Q_OBJECT

private:
    Ui::PlayerInfoPaneWidget *ui;
    OwPlayer player;
    bool isPlayerInfoDirty = false;

public:
    explicit PlayerInfoPaneWidget(QWidget *parent, OwPlayer player);
    ~PlayerInfoPaneWidget(void);

protected:
    virtual bool eventFilter(QObject * object, QEvent * event) override;

private:
    void updateStatsSiteButtons(void);
    void updateToolButtons(void);

    void saveCurrentPlayerInfo(void);

signals:
    void playerInfoChanged(const OwPlayer & player);

private slots:
    void on_toolButton_savePlayerInfo_clicked(void);
    void on_toolButton_updatePlayerInfo_clicked(void);
    void on_toolButton_deletePlayerInfo_clicked(void);
    void on_lineEdit_playerBattleTag_textEdited(const QString & newBattleTag);
    void on_comboBox_owRegion_currentIndexChanged(const QString & region);
    void on_plainTextEdit_playerNote_textChanged(void);
    void on_checkBox_isFavorite_toggled(bool checked);
    void on_radioButton_likesPlayer_toggled(bool checked);
    void on_radioButto_undecidedPlayer_toggled(bool checked);
    void on_radioButton_dislikesPlayer_toggled(bool checked);
    void on_toolButton_openUrlPlayOverwatch_clicked();
    void on_toolButton_openUrlMasterOverwatch_clicked();
    void on_toolButton_openUrlOverbuff_clicked();
};

#endif // PLAYERINFOPANEWIDGET_HPP<commit_msg>reformat code<commit_after>#ifndef PLAYERINFOPANEWIDGET_HPP
#define PLAYERINFOPANEWIDGET_HPP

#include <QWidget>
#include "Logics/Entities/OwPlayer.hpp"

namespace Ui
{
class PlayerInfoPaneWidget;
}

class PlayerInfoPaneWidget : public QWidget
{
    Q_OBJECT

private:
    Ui::PlayerInfoPaneWidget *ui;
    OwPlayer player;
    bool isPlayerInfoDirty = false;

public:
    explicit PlayerInfoPaneWidget(QWidget *parent, OwPlayer player);
    ~PlayerInfoPaneWidget(void);

protected:
    virtual bool eventFilter(QObject * object, QEvent * event) override;

private:
    void updateStatsSiteButtons(void);
    void updateToolButtons(void);

    void saveCurrentPlayerInfo(void);

signals:
    void playerInfoChanged(const OwPlayer & player);

private slots:
    void on_toolButton_savePlayerInfo_clicked(void);
    void on_toolButton_updatePlayerInfo_clicked(void);
    void on_toolButton_deletePlayerInfo_clicked(void);
    void on_lineEdit_playerBattleTag_textEdited(const QString & newBattleTag);
    void on_comboBox_owRegion_currentIndexChanged(const QString & region);
    void on_plainTextEdit_playerNote_textChanged(void);
    void on_checkBox_isFavorite_toggled(bool checked);
    void on_radioButton_likesPlayer_toggled(bool checked);
    void on_radioButto_undecidedPlayer_toggled(bool checked);
    void on_radioButton_dislikesPlayer_toggled(bool checked);
    void on_toolButton_openUrlPlayOverwatch_clicked(void);
    void on_toolButton_openUrlMasterOverwatch_clicked(void);
    void on_toolButton_openUrlOverbuff_clicked(void);
};

#endif // PLAYERINFOPANEWIDGET_HPP
{'fraction_non_alphanumeric': 0.06734434561626429, 'fraction_numerical': 0.0, 'mean_word_length': 6.357476635514018, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5996635', 'n_tokens_mistral': 1017, 'n_tokens_neox': 994, 'n_words': 180}