<commit_before>#include <QTreeWidget>

#include "ParameterInterface.h"
#include "ParamTreeModel.h"
#include "UASManager.h"
#include "ui_ParameterInterface.h"

#include <QDebug>

ParameterInterface::ParameterInterface(QWidget *parent) :
        QWidget(parent),
        m_ui(new Ui::parameterWidget)
{
    m_ui->setupUi(this);
    connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*)));

    tree = new ParamTreeModel();

    treeView = new QTreeView();
    treeView->setModel(tree);

    QStackedWidget* stack = m_ui->stackedWidget;
    stack->addWidget(treeView);
    stack->setCurrentWidget(treeView);

}

ParameterInterface::~ParameterInterface()
{
    delete m_ui;
}
<commit_msg>Fixed crash in tree view, needs further inspection<commit_after>#include <QTreeWidget>

#include "ParameterInterface.h"
#include "ParamTreeModel.h"
#include "UASManager.h"
#include "ui_ParameterInterface.h"

#include <QDebug>

ParameterInterface::ParameterInterface(QWidget *parent) :
        QWidget(parent),
        m_ui(new Ui::parameterWidget)
{
    m_ui->setupUi(this);
    connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*)));

    tree = new ParamTreeModel();

    treeView = new QTreeView(this);
    //treeView->setModel(tree);

    QStackedWidget* stack = m_ui->stackedWidget;
    stack->addWidget(treeView);
    stack->setCurrentWidget(treeView);

}

ParameterInterface::~ParameterInterface()
{
    delete m_ui;
}

{'fraction_non_alphanumeric': 0.13639387890884896, 'fraction_numerical': 0.0, 'mean_word_length': 5.319327731092437, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '6691938', 'n_tokens_mistral': 494, 'n_tokens_neox': 489, 'n_words': 81}