<commit_before>#include "mainwindow.hpp"

#include "drape_surface.hpp"

#include <QtWidgets/QWidget>

MainWindow::MainWindow(QWidget *parent)
  : QMainWindow(parent)
{
  resize(600, 400);
  DrapeSurface * surface = new DrapeSurface();
  m_surface = QWidget::createWindowContainer(surface, this);
  setCentralWidget(m_surface);
}

MainWindow::~MainWindow()
{
}

void MainWindow::closeEvent(QCloseEvent * closeEvent)
{
  delete m_surface;
}<commit_msg>[codereview]<commit_after>#include "mainwindow.hpp"

#include "drape_surface.hpp"

#include <QtWidgets/QWidget>

MainWindow::MainWindow(QWidget *parent)
  : QMainWindow(parent)
  , m_surface(NULL)
{
  resize(600, 400);
  DrapeSurface * surface = new DrapeSurface();
  m_surface = QWidget::createWindowContainer(surface, this);
  setCentralWidget(m_surface);
}

MainWindow::~MainWindow()
{
  ASSERT(m_surface == NULL, ());
}

void MainWindow::closeEvent(QCloseEvent * closeEvent)
{
  delete m_surface;
  m_surface = NULL;
}
{'fraction_non_alphanumeric': 0.1368312757201646, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 6.722222222222222, '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': '1846493', 'n_tokens_mistral': 359, 'n_tokens_neox': 337, 'n_words': 55}