<commit_before>import QtQuick 2.0
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import QtQuick.Window 2.0
import Machinekit.Application.Controls 1.0

Tab {
    title: qsTr("Settings")

    Item {
    ScrollView {
        id: scrollView
        anchors.fill: parent
        anchors.margins: Screen.pixelDensity
        horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
        contentItem:

        ColumnLayout {
            id: column1
            width: scrollView.width
            spacing: Screen.pixelDensity

            VelocityExtrusionControl {
                Layout.fillWidth: false
                id: velocityExtrusionControl
            }

            GantryConfigControl {
                Layout.fillWidth: false
                id: gantryConfigControl
            }

            Label {
                text: qsTr("Digital Read Out")
                font.bold: true
            }

            ToggleSettingCheck {
                groupName: "dro"
                valueName: "showOffsets"
                text: qsTr("Show offsets")
            }

            ToggleSettingCheck {
                id: showVelocityAction
                groupName: "dro"
                valueName: "showVelocity"
                text: qsTr("Show velocity")
            }

            ToggleSettingCheck {
                id: showDistanceToGoAction
                groupName: "dro"
                valueName: "showDistanceToGo"
                text: qsTr("Show distance to go")
            }

            // temporarily disable preview until it is working in a better way
            ToggleSettingCheck {
                id: enablePreviewAction
                groupName: "preview"
                valueName: "enable"
                text: qsTr("Enable preview")
                visible: checked  // in case preview was accidentally enabled show this check box
            }

           /* ToggleSettingCheck {
                id: showMachineLimitsAction
                groupName: "preview"
                valueName: "showMachineLimits"
                text: qsTr("Show machine limits")
            }

            ToggleSettingCheck {
                id: showProgramAction
                groupName: "preview"
                valueName: "showProgram"
                text: qsTr("Show program")
            }

            ToggleSettingCheck {
                id: showProgramExtentsAction
                groupName: "preview"
                valueName: "showProgramExtents"
                text: qsTr("Show program extents")
            }

            ToggleSettingCheck {
                id: showProgramRapidsAction
                groupName: "preview"
                valueName: "showProgramRapids"
                text: qsTr("Show program rapids")
            }

            ToggleSettingCheck {<commit_msg>add control for teleop mode<commit_after>import QtQuick 2.0
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import QtQuick.Window 2.0
import Machinekit.Application.Controls 1.0

Tab {
    title: qsTr("Settings")

    Item {
    ScrollView {
        id: scrollView
        anchors.fill: parent
        anchors.margins: Screen.pixelDensity
        horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
        contentItem:

        ColumnLayout {
            id: column1
            width: scrollView.width
            spacing: Screen.pixelDensity

            VelocityExtrusionControl {
                Layout.fillWidth: false
                id: velocityExtrusionControl
            }

            GantryConfigControl {
                Layout.fillWidth: false
                id: gantryConfigControl
            }

            Label {
                text: qsTr("Digital Read Out")
                font.bold: true
            }

            ToggleSettingCheck {
                groupName: "dro"
                valueName: "showOffsets"
                text: qsTr("Show offsets")
            }

            ToggleSettingCheck {
                id: showVelocityAction
                groupName: "dro"
                valueName: "showVelocity"
                text: qsTr("Show velocity")
            }

            ToggleSettingCheck {
                id: showDistanceToGoAction
                groupName: "dro"
                valueName: "showDistanceToGo"
                text: qsTr("Show distance to go")
            }

            Label {
                text: qsTr("Other")
                font.bold: true
            }

            // temporarily disable preview until it is working in a better way
            ToggleSettingCheck {
                id: enablePreviewAction
                groupName: "preview"
                valueName: "enable"
                text: qsTr("Enable preview")
                visible: checked  // in case preview was accidentally enabled show this check box
            }

            CheckBox {
                id: teleopCheck
                checked: teleopAction.checked
                text: teleopAction.text
                onClicked: teleopAction.trigger()

                TeleopAction {
                    id: teleopAction
                }
            }

           /* ToggleSettingCheck {
                id: showMachineLimitsAction
                groupName: "preview"
                valueName: "showMachineLimits"
                text: qsTr("Show machine limits")
            }

            ToggleSettingCheck {
                id: showProgramAction
                groupName: "preview"
                valueName: "showProgram"
                text: qsTr("Show program")
            }

            ToggleSettingCheck {
                id: showProgramExtentsAction
                groupName: "preview"
                valueName: "showProgramExtents"
                text: qsTr("Show program extents")
            }

            ToggleSettingCheck {
                id: showProgramRapidsAction
                groupName: "preview"
                valueName: "showProgramRapids"
                text: qsTr("Show program rapids")
            }

            ToggleSettingCheck {
{'fraction_non_alphanumeric': 0.061464546056991386, 'fraction_numerical': 0.003644797879390325, 'mean_word_length': 1.260202171471359, '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': '5801838', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1374, 'n_words': 341}