<commit_before>#include <QChildEvent>
#include "ButtonItem.h"
#include "LayoutItem.h"
#include "ModeItem.h"

ModeItem::ModeItem(QQuickItem *parent):
	QQuickItem(parent),
	m_layout(0)
{
	setVisible(false);
	setLayout(new LayoutItem());
}

ModeItem::~ModeItem()
{
}

LayoutItem *ModeItem::layout() const
{
	return m_layout;
}

void ModeItem::setLayout(LayoutItem *layout)
{
	if (m_layout == layout) {
		return;
	}

	if (m_layout) {
		m_layout->setParentItem(0);<commit_msg>Changed default layout to GridLayout.<commit_after>#include <QChildEvent>
#include "ButtonItem.h"
#include "GridLayoutItem.h"
#include "ModeItem.h"

ModeItem::ModeItem(QQuickItem *parent):
	QQuickItem(parent),
	m_layout(0)
{
	setVisible(false);
	setLayout(new GridLayoutItem());
}

ModeItem::~ModeItem()
{
}

LayoutItem *ModeItem::layout() const
{
	return m_layout;
}

void ModeItem::setLayout(LayoutItem *layout)
{
	if (m_layout == layout) {
		return;
	}

	if (m_layout) {
		m_layout->setParentItem(0);
{'fraction_non_alphanumeric': 0.15503080082135523, 'fraction_numerical': 0.004106776180698152, 'mean_word_length': 6.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6564964', 'n_tokens_mistral': 376, 'n_tokens_neox': 371, 'n_words': 65}