<commit_before>#ifndef BLOCKOPTIONSDIALOG_H
#define BLOCKOPTIONSDIALOG_H

#include <QDialog>
#include "flowchart/blocktype.h"
#include <QHash>
#include <QString>
#include "gui/blockoptioncontrol.h"

namespace Ui {
    class BlockOptionsDialog;
}

class BlockOptionsDialog : public QDialog {
    Q_OBJECT
public:
    explicit BlockOptionsDialog(BlockType bt, QHash<QString, QString> optionValues, QWidget *parent = 0);
    ~BlockOptionsDialog();
    QHash<QString, QString> optionValues() const;
protected slots:
    void accept();
    void reject();
private:
    Ui::BlockOptionsDialog *ui;
    QHash<QString, BlockOptionControl*> m_optionControls;
    QHash<QString, QString> m_optionValues;
};

#endif // BLOCKOPTIONSDIALOG_H<commit_msg>Document BlockOptionsDialog<commit_after>#ifndef BLOCKOPTIONSDIALOG_H
#define BLOCKOPTIONSDIALOG_H

#include <QDialog>
#include "flowchart/blocktype.h"
#include <QHash>
#include <QString>
#include "gui/blockoptioncontrol.h"

namespace Ui {
    class BlockOptionsDialog;
}

/**
 * A BlockOptionsDialog is a dialog box for setting a block's options.
 */
class BlockOptionsDialog : public QDialog {
    Q_OBJECT
public:
    /**
     * Construct a BlockOptionsDialog.
     * @param bt the type of block to get options for
     * @param optionValues the mapping of option names to their current values
     * @param parent the optional parent widget
     */
    explicit BlockOptionsDialog(BlockType bt, QHash<QString, QString> optionValues, QWidget *parent = 0);

    ~BlockOptionsDialog();

    /**
     * @return the mapping of option names to the values set in this dialog
     */
    QHash<QString, QString> optionValues() const;

protected slots:
    void accept();
    void reject();

private:
    Ui::BlockOptionsDialog *ui;
    QHash<QString, BlockOptionControl*> m_optionControls;
    QHash<QString, QString> m_optionValues;
};

#endif // BLOCKOPTIONSDIALOG_H
{'fraction_non_alphanumeric': 0.09458749343142407, 'fraction_numerical': 0.0010509721492380452, 'mean_word_length': 4.487031700288185, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3185699', 'n_tokens_mistral': 586, 'n_tokens_neox': 574, 'n_words': 164}