<commit_before>import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Dialogs 1.1
import QtQuick.Window 2.1
import QtQuick.Layouts 1.1

BasicWindow {
	id: generalMessageDialog

	property string title
	property string text
	property string detailedText
	property alias	icon: icon

	cancelButton.visible: false
	detailsButton.visible: detailedText.length > 0
	detailsButton.onClicked: detailsRectangle.state === "" ? detailsRectangle.state = "SHOW_DETAILED_TEXT" : detailsRectangle.state = ""

	okButton.onClicked: {
		generalMessageDialog.close()
		error = false
	}
	height: mainTextItem.implicitHeight + okButton.implicitHeight +  3*defaultMargins
	width: mainWindow.width*0.25

	contents: ColumnLayout {
		id: contentColumn

		spacing: defaultMargins
		anchors.fill: parent

		Item {
			id: mainTextItem

			Layout.fillWidth: true
			height: Math.max(icon.implicitHeight, mainText.implicitHeight)
<commit_msg>GeneralMessageDialog title fix<commit_after>import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Dialogs 1.1
import QtQuick.Window 2.1
import QtQuick.Layouts 1.1

BasicWindow {
	id: generalMessageDialog

	property string text
	property string detailedText
	property alias	icon: icon

	cancelButton.visible: false
	detailsButton.visible: detailedText.length > 0
	detailsButton.onClicked: detailsRectangle.state === "" ? detailsRectangle.state = "SHOW_DETAILED_TEXT" : detailsRectangle.state = ""

	okButton.onClicked: {
		generalMessageDialog.close()
		error = false
	}
	height: mainTextItem.implicitHeight + okButton.implicitHeight +  3*defaultMargins
	width: mainWindow.width*0.25

	contents: ColumnLayout {
		id: contentColumn

		spacing: defaultMargins
		anchors.fill: parent

		Item {
			id: mainTextItem

			Layout.fillWidth: true
			height: Math.max(icon.implicitHeight, mainText.implicitHeight)

{'fraction_non_alphanumeric': 0.08096280087527352, 'fraction_numerical': 0.016411378555798686, 'mean_word_length': 4.99672131147541, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1780626', 'n_tokens_mistral': 622, 'n_tokens_neox': 563, 'n_words': 133}