<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setFixedHeight(100);

    widget = new QWidget(this);
    this->setCentralWidget(widget);

    QHBoxLayout* lineLayout = new QHBoxLayout();
    QString date = QString("现在是  2016 年  08 月  26 日");
    QStringList dateList = date.split("  ");
    std::cout << "size = " << dateList.size() << std::endl;
    labels = new QLabel*[4];
    for (int i = 0; i < 4; ++i)
    {
        std::cout << "i = " << i << std::endl;
        labels[i] = new QLabel(widget);
        labels[i]->setText(dateList.at(i));
        lineLayout->addWidget(labels[i]);
    }
    widget->setLayout(lineLayout);

    menubar = new QMenuBar(this);
    this->setMenuBar(menubar);
    QMenu* editMenu = menubar->addMenu("&Edit");
    QAction* modifyAction = new QAction(editMenu);
    editMenu->addAction(modifyAction);
    modifyAction->setText("&Modify...");

    dialog = new QDialog(widget);
    dialog->setWindowTitle("Modify");
    dialog->setModal(true);
    QLabel* dialogLabel = new QLabel(dialog);
    dialogLabel->setText("请更改日期：");
    dialogDate = new QDateEdit(dialog);
    dialogDate->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    dialogDate->setDisplayFormat("yyyy.MM.dd");<commit_msg>Delete a cout Sentence in HW5-P2<commit_after>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setFixedHeight(100);

    widget = new QWidget(this);
    this->setCentralWidget(widget);

    QHBoxLayout* lineLayout = new QHBoxLayout();
    QString date = QString("现在是  2016 年  08 月  26 日");
    QStringList dateList = date.split("  ");
    labels = new QLabel*[4];
    for (int i = 0; i < 4; ++i)
    {
        std::cout << "i = " << i << std::endl;
        labels[i] = new QLabel(widget);
        labels[i]->setText(dateList.at(i));
        lineLayout->addWidget(labels[i]);
    }
    widget->setLayout(lineLayout);

    menubar = new QMenuBar(this);
    this->setMenuBar(menubar);
    QMenu* editMenu = menubar->addMenu("&Edit");
    QAction* modifyAction = new QAction(editMenu);
    editMenu->addAction(modifyAction);
    modifyAction->setText("&Modify...");

    dialog = new QDialog(widget);
    dialog->setWindowTitle("Modify");
    dialog->setModal(true);
    QLabel* dialogLabel = new QLabel(dialog);
    dialogLabel->setText("请更改日期：");
    dialogDate = new QDateEdit(dialog);
    dialogDate->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    dialogDate->setDisplayFormat("yyyy.MM.dd");
{'fraction_non_alphanumeric': 0.16165277274374773, 'fraction_numerical': 0.010873504893077202, 'mean_word_length': 3.717948717948718, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 35, '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': '818236', 'n_tokens_mistral': 964, 'n_tokens_neox': 935, 'n_words': 172}