<commit_before>#include "displaydialog.h"
#include "displaywidget.h"
#include "dcpspaceritem.h"
#include "languageselectcontainer.h"

#include <duitheme.h>
#include <duilabel.h>
#include <duilayout.h>
#include <duilinearlayoutpolicy.h>
#include <duipannableviewport.h>
#include "dcplanguage.h"

DisplayDialog::DisplayDialog()
              :DuiDialog()
{
    initWidget();
}

DisplayDialog::~DisplayDialog()
{
}
void DisplayDialog::initWidget()
{
    DuiPannableViewport* viewport = new DuiPannableViewport(this);
    DisplayWidget *widget = new DisplayWidget();
    viewport->setWidget(widget);
    viewport->setObjectName("LanguageViewport");
    DuiLayout *mainLayout = new DuiLayout();
    DuiLinearLayoutPolicy *mainLayoutPolicy =
            new DuiLinearLayoutPolicy(mainLayout, Qt::Vertical);
    mainLayout->setPolicy(mainLayoutPolicy);
    mainLayoutPolicy->addItemAtPosition(viewport, 0, Qt::AlignCenter);
    setLayout(mainLayout);
    connect(widget, SIGNAL(clicked()), this, SLOT(accept()));
}
<commit_msg>Display language dialog becomes visible<commit_after>#include "displaydialog.h"
#include "displaywidget.h"
#include "dcpspaceritem.h"
#include "languageselectcontainer.h"

#include <duitheme.h>
#include <duilabel.h>
#include <duilayout.h>
#include <duilinearlayoutpolicy.h>
#include <duipannableviewport.h>
#include "dcplanguage.h"

DisplayDialog::DisplayDialog()
              :DuiDialog()
{
    initWidget();
}

DisplayDialog::~DisplayDialog()
{
}
#include <QtDebug>
void DisplayDialog::initWidget()
{
    QSizeF dialogSize = DuiDeviceProfile::instance()->resolution();
    dialogSize.setHeight(dialogSize.height()-60);
    this->setContentsMargins(20,0,20,0);
    qDebug() << "XXX" << dialogSize;
    this->setMinimumSize(dialogSize);
    DuiPannableViewport* viewport = new DuiPannableViewport(this);
    DisplayWidget *widget = new DisplayWidget();

    viewport->setWidget(widget);
    viewport->setObjectName("LanguageViewport");
    DuiLayout *mainLayout = new DuiLayout();
    DuiLinearLayoutPolicy *mainLayoutPolicy =
            new DuiLinearLayoutPolicy(mainLayout, Qt::Vertical);
    mainLayout->setPolicy(mainLayoutPolicy);
    mainLayoutPolicy->addItemAtPosition(viewport, 0, Qt::AlignCenter);
    setLayout(mainLayout);
    connect(widget, SIGNAL(clicked()), this, SLOT(accept()));
}

{'fraction_non_alphanumeric': 0.13405172413793104, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 5.669540229885057, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 25, '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': '5756653', 'n_tokens_mistral': 748, 'n_tokens_neox': 725, 'n_words': 123}