<commit_before>import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.1
import CodeEditorExtensionManager 1.0

Rectangle {
	objectName: "mainContent"
	signal keyPressed(variant event)
	focus: true
	Keys.enabled: true
	Keys.onPressed:
	{
		root.keyPressed(event.key);
	}
	anchors.fill: parent
	height: parent.height
	width: parent.width;
    id:root
    SplitView {
        orientation: Qt.Horizontal
        anchors.fill: parent
        SplitView {
            //anchors.fill: parent
            width: parent.width * 0.8
            orientation: Qt.Vertical
            Rectangle {
                anchors.top: parent.top
                id: contentView
                width: parent.width
                height: parent.height * 0.7
                TextArea {
					id: codeEditor
					textColor: "#EEE8D5"
					style: TextAreaStyle {
						backgroundColor: "#002B36"
					}
                    height: parent.height
					font.family: "Monospace"
					font.pointSize: 12
                    width: parent.width
                    anchors.centerIn: parent
                    tabChangesFocus: false
                    Keys.onPressed: {
						if (event.key === Qt.Key_Tab) {
							codeEditor.insert(codeEditor.cursorPosition, "\t");
							event.accepted = true;
						}
					}
                }<commit_msg>line number indicator<commit_after>import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.1
import CodeEditorExtensionManager 1.0

Rectangle {
	objectName: "mainContent"
	signal keyPressed(variant event)
	focus: true
	Keys.enabled: true
	Keys.onPressed:
	{
		root.keyPressed(event.key);
	}
	anchors.fill: parent
	height: parent.height
	width: parent.width;
    id:root
    SplitView {
        orientation: Qt.Horizontal
        anchors.fill: parent
        SplitView {
            //anchors.fill: parent
            width: parent.width * 0.8
            orientation: Qt.Vertical
            Rectangle {
                anchors.top: parent.top
                id: contentView
                width: parent.width
                height: parent.height * 0.7

				Item {
						anchors.fill: parent
						Rectangle {
							id: lineColumn
							property int rowHeight: codeEditor.font.pixelSize + 3
							color: "#202020"
							width: 50
							height: parent.height
							Column {
								y: -codeEditor.flickableItem.contentY + 4
								width: parent.width
								Repeater {
									model: Math.max(codeEditor.lineCount + 2, (lineColumn.height/lineColumn.rowHeight))
									delegate: Text {
										id: text
										color: codeEditor.textColor
										font: codeEditor.font
										width: lineColumn.width - 4
										horizontalAlignment: Text.AlignRight
										verticalAlignment: Text.AlignVCenter
										height: lineColumn.rowHeight
										renderType: Text.NativeRendering
										text: index + 1
									}
								}
							}
						}

					TextArea {
						id: codeEditor
						textColor: "#EEE8D5"
						style: TextAreaStyle {
							backgroundColor: "#002B36"
						}

						anchors.left: lineColumn.right
						anchors.right: parent.right
						anchors.top: parent.top
						anchors.bottom: parent.bottom
						wrapMode: TextEdit.NoWrap
						frameVisible: false

						height: parent.height
						font.family: "Monospace"
						font.pointSize: 12
						width: parent.width
						//anchors.centerIn: parent
						tabChangesFocus: false
						Keys.onPressed: {
							if (event.key === Qt.Key_Tab) {
								codeEditor.insert(codeEditor.cursorPosition, "\t");
								event.accepted = true;
							}
						}
					}
				}

{'fraction_non_alphanumeric': 0.08537915984724495, 'fraction_numerical': 0.01609383524277141, 'mean_word_length': 1.8272937548188126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7451452', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1049, 'n_words': 236}