<commit_before>#include <QDebug>

#ifndef HAS_CXX11_NULLPTR
#define nullptr 0
#endif

#include "QGenderSelector.h"

QGenderSelector::QGenderSelector(QWidget *parent) :
    QFrame(parent),
    m_orientation(Qt::Horizontal),
    m_layout(nullptr),
    m_radioMale(nullptr), m_radioFemale(nullptr), m_radioOther(nullptr)
{
    qRegisterMetaType<Gender>("QGenderSelector::Gender");
    setupUi();
}


void QGenderSelector::setOrientation(Qt::Orientation o) {
    if (m_orientation == o)
        return;

    setupUi();
    m_orientation = o;
}


void QGenderSelector::setupUi() {<commit_msg>Initialize default gender to 'Other' in QGenderSelector ctor<commit_after>#include <QDebug>

#ifndef HAS_CXX11_NULLPTR
#define nullptr 0
#endif

#include "QGenderSelector.h"

QGenderSelector::QGenderSelector(QWidget *parent) :
    QFrame(parent),
    m_orientation(Qt::Horizontal),
    m_layout(nullptr),
    m_radioMale(nullptr), m_radioFemale(nullptr), m_radioOther(nullptr),
    m_selectedGender(Other)
{
    qRegisterMetaType<Gender>("QGenderSelector::Gender");
    setupUi();
    setSelectedGender(m_selectedGender);
}


void QGenderSelector::setOrientation(Qt::Orientation o) {
    if (m_orientation == o)
        return;

    setupUi();
    m_orientation = o;
}


void QGenderSelector::setupUi() {
{'fraction_non_alphanumeric': 0.12238574748257165, 'fraction_numerical': 0.004647560030983733, 'mean_word_length': 5.396039603960396, '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': '4395158', 'n_tokens_mistral': 459, 'n_tokens_neox': 419, 'n_words': 73}