<commit_before>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cmath>

#include "MainWindow.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"

#include "OrientationAxes.h"
#include "RenderPoints.h"
#include "RenderTetrahedron.h"


// ---------------------------------------------------------------------------


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    setupUi(this);

    connect(actionExit, SIGNAL(triggered()), this, SLOT(fileExit()));

    // renderer
    ren = vtkRenderer::New();
    ren->SetBackground(25./256, 51./256, 102./256);
    qvtkWidget->GetRenderWindow()->AddRenderer(ren);
    AddOrientationAxes(qvtkWidget);

    //RenderPoints(ren);
    RenderTetra(ren);
}


MainWindow::~MainWindow()
{

}


// ---------------------------------------------------------------------------


void MainWindow::fileExit()
{
    qApp->exit();
}


// ---------------------------------------------------------------------------<commit_msg>Added new header to MainWindow.cpp<commit_after>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cmath>

#include "MainWindow.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"

#include "OrientationAxes.h"
#include "RenderPoints.h"
#include "RenderTetrahedron.h"
#include "RenderHexahedron.h"


// ---------------------------------------------------------------------------


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    setupUi(this);

    connect(actionExit, SIGNAL(triggered()), this, SLOT(fileExit()));

    // renderer
    ren = vtkRenderer::New();
    ren->SetBackground(25./256, 51./256, 102./256);
    qvtkWidget->GetRenderWindow()->AddRenderer(ren);
    AddOrientationAxes(qvtkWidget);

    //RenderPoints(ren);
    //RenderTetrahedron(ren);
    RenderHexahedron(ren);
}


MainWindow::~MainWindow()
{

}


// ---------------------------------------------------------------------------


void MainWindow::fileExit()
{
    qApp->exit();
}


// ---------------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.3491295938104449, 'fraction_numerical': 0.015473887814313346, 'mean_word_length': 1.7440318302387268, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '640798', 'n_tokens_mistral': 641, 'n_tokens_neox': 579, 'n_words': 91}