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

ApplicationWindow {
    id: root
    visible: true
    width: 640
    height: 480
    title: qsTr(Qt.application.name)

    signal enterPressed(string msg)

    menuBar: MenuBar {
        id: menu
        Menu {
            title: qsTr("&File")

            MenuItem {
                text: qsTr("&Connect")
            }

            MenuItem {
                text: qsTr("&Disconnect")
            }

            MenuItem {
                text: qsTr("&Settings")
            }

            MenuItem {
                text: qsTr("E&xit")
                onTriggered: Qt.quit();
            }
        }

        Menu {
            title: qsTr("&About")

            MenuItem {
                text: qsTr("&" + Qt.application.name)
            }
        }
    }

    statusBar: StatusBar {
        id: status
        RowLayout {
            Label { text: "Future spot for settings ..." }
        }
    }

    TextField {
        id: consoleInput

        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        Keys.onEnterPressed: root.enterPressed(text)
        Keys.onReturnPressed: root.enterPressed(text)
    }

    TextArea {
        id: consoleOutput
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: consoleInput.top
        anchors.top: parent.top
        readOnly: true
    }
}<commit_msg>Used some javscript to properly clear consoleInput after emitting the signal.<commit_after>import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1

ApplicationWindow {
    id: root
    visible: true
    width: 640
    height: 480
    title: qsTr(Qt.application.name)

    signal enterPressed(string msg)

    menuBar: MenuBar {
        id: menu
        Menu {
            title: qsTr("&File")

            MenuItem {
                text: qsTr("&Connect")
            }

            MenuItem {
                text: qsTr("&Disconnect")
            }

            MenuItem {
                text: qsTr("&Settings")
            }

            MenuItem {
                text: qsTr("E&xit")
                onTriggered: Qt.quit();
            }
        }

        Menu {
            title: qsTr("&About")

            MenuItem {
                text: qsTr("&" + Qt.application.name)
            }
        }
    }

    statusBar: StatusBar {
        id: status
        RowLayout {
            Label { text: "Future spot for settings ..." }
        }
    }

    TextField {
        id: consoleInput

        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        Keys.onEnterPressed: {
            root.enterPressed(text)
            text = ""
        }
        Keys.onReturnPressed: {
            root.enterPressed(text)
            text = ""
        }

        focus: true
    }

    TextArea {
        id: consoleOutput
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: consoleInput.top
        anchors.top: parent.top
        readOnly: true
    }
}
{'fraction_non_alphanumeric': 0.09342230695900858, 'fraction_numerical': 0.0076263107721639654, 'mean_word_length': 1.3232472324723248, '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': '7257889', 'n_tokens_mistral': 955, 'n_tokens_neox': 878, 'n_words': 190}