<commit_before>import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.1

BasicWindow {

	title: qsTr("About Elektra Editor")

	width: Math.ceil(mainWindow.width*0.25)
	height: Math.ceil(mainWindow.width*0.25)

	ColumnLayout {
		anchors.fill: parent
		spacing: defaultMargins

		RowLayout {
			spacing: 2*defaultMargins
			Image {
				source: "icons/elektra-logo.png"
			}
			Column {
				Text {
					text: "Elektra Editor"
					font.bold: true
					color: activePalette.windowText
				}
				Text {
					text: "Version: " + version
					color: activePalette.windowText
				}
			}
		}

		RowLayout {
			TabView {
				id: tabs

				anchors.fill: parent
				Layout.fillHeight: true
				Layout.fillWidth: true

				Tab {
					id: aboutTab

					title: qsTr("About")

					TextArea{
						property string link: "http://www.libelektra.org"
						readOnly: true
						textFormat: TextEdit.RichText
						text: "<html><style type=\"text/css\"></style><b>Elektra provides a universal and secure framework to store configuration " +
						"parameters in a global, hierarchical key database.</b><br><br><br>For further information and for reporting bugs " +
						"<a href=\"" + link + "\">visit Elektra's Website</a></html>"
						onLinkActivated: Qt.openUrlExternally(link)
					}
				}
				Tab {
					id: authorsTab

					title: qsTr("Authors")
					TextArea {
						property string pancheri: "mailto:<EMAIL>"
						property string loose: "mailto:<EMAIL>"
						property string jens: "http://qt-project.org/forums/viewthread/30521/#146845"
						property string ian: "mailto:<EMAIL>"
						readOnly: true
						textFormat: TextEdit.RichText
						textMargin: defaultSpacing
						wrapMode: Text.WordWrap
						text: "<html>" +
							  "<style type=\"text/css\"></style>" +
							  "<p>Elektra Editor designed and implemented by <a href=\"" + pancheri + "\"><NAME></a></p>" +
							  "<p>DiscountMarkdownConverter used with kind permission by <a href=\"" + loose + "\"><NAME></a></p>" +
							  "<p>TreeView based on code <a href=\"" + jens + "\">posted by Jens</a></p>" +
							  "<p>Helptext by <a href=\"" + ian + "\"><NAME></a></p>" +
							  "</html>"
						onLinkActivated: {
							Qt.openUrlExternally(link)
						}
					}
				}
				Tab {
					id: licenseTab

					title: qsTr("License")
					TextArea {
						property string ccUrl: "https://creativecommons.org/licenses/by-sa/3.0/legalcode"
						property string oxygenUrl: "http://www.oxygen-icons.org/"
						readOnly: true
						textFormat: TextEdit.RichText
						textMargin: defaultSpacing
						wrapMode: Text.WordWrap
						text: "<html>" +
							  "<style type=\"text/css\"></style>" +
							  "<p><a href=\"" + oxygenUrl + "\">Oxygen Icons</a> are used under <a href=\"" + ccUrl + "\">Creative Commons BY-SA 3.0</a></p></html>"
						onLinkActivated: {
							Qt.openUrlExternally(link)
						}
					}
				}
			}<commit_msg>beautify aboutwindow<commit_after>import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.1

BasicWindow {

	title: qsTr("About Elektra Editor")

	width: Math.ceil(mainWindow.width*0.25)
	height: Math.ceil(mainWindow.width*0.25)

	ColumnLayout {
		anchors.fill: parent
		spacing: defaultMargins

		RowLayout {
			spacing: 2*defaultMargins
			Image {
				source: "icons/elektra-logo.png"
			}
			Column {
				Text {
					text: "Elektra Editor"
					font.bold: true
					color: activePalette.windowText
				}
				Text {
					text: "Version: " + version
					color: activePalette.windowText
				}
			}
		}

		RowLayout {
			TabView {
				id: tabs

				anchors.fill: parent
				Layout.fillHeight: true
				Layout.fillWidth: true

				Tab {
					id: aboutTab

					title: qsTr("About")

					TextArea{
						property string link: "http://www.libelektra.org"
						readOnly: true
						textFormat: TextEdit.RichText
						backgroundVisible: false
						textMargin: defaultMargins
						frameVisible: false
						text: "<html><style type=\"text/css\"></style><b>Elektra provides a universal and secure framework to store configuration " +
						"parameters in a global, hierarchical key database.</b><br><br><br>For further information and for reporting bugs " +
						"<a href=\"" + link + "\">visit Elektra's Website</a></html>"
						onLinkActivated: Qt.openUrlExternally(link)
					}
				}
				Tab {
					id: authorsTab

					title: qsTr("Authors")
					TextArea {
						property string pancheri: "mailto:<EMAIL>"
						property string loose: "mailto:<EMAIL>"
						property string jens: "http://qt-project.org/forums/viewthread/30521/#146845"
						property string ian: "mailto:<EMAIL>"
						readOnly: true
						textFormat: TextEdit.RichText
						textMargin: defaultMargins
						wrapMode: Text.WordWrap
						backgroundVisible: false
						frameVisible: false
						text: "<html>" +
							  "<style type=\"text/css\"></style>" +
							  "<p>Elektra Editor designed and implemented by <a href=\"" + pancheri + "\"><NAME></a></p>" +
							  "<p>DiscountMarkdownConverter used with kind permission by <a href=\"" + loose + "\"><NAME></a></p>" +
							  "<p>TreeView based on code <a href=\"" + jens + "\">posted by Jens</a></p>" +
							  "<p>Helptext by <a href=\"" + ian + "\"><NAME></a></p>" +
							  "</html>"
						onLinkActivated: {
							Qt.openUrlExternally(link)
						}
					}
				}
				Tab {
					id: licenseTab

					title: qsTr("License")
					TextArea {
						property string ccUrl: "https://creativecommons.org/licenses/by-sa/3.0/legalcode"
						property string oxygenUrl: "http://www.oxygen-icons.org/"
						readOnly: true
						textFormat: TextEdit.RichText
						textMargin: defaultMargins
						wrapMode: Text.WordWrap
						backgroundVisible: false
						frameVisible: false
						text: "<html>" +
							  "<style type=\"text/css\"></style>" +
							  "<p><a href=\"" + oxygenUrl + "\">Oxygen Icons</a> are used under <a href=\"" + ccUrl + "\">Creative Commons BY-SA 3.0</a></p></html>"
						onLinkActivated: {
							Qt.openUrlExternally(link)
						}
					}
				}
			}
{'fraction_non_alphanumeric': 0.14356846473029045, 'fraction_numerical': 0.009294605809128631, 'mean_word_length': 2.5699052132701423, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '4107202', 'n_tokens_mistral': 2713, 'n_tokens_neox': 1948, 'n_words': 449}