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

import UM 1.0 as UM

UM.PreferencesPage {
    //: General configuration page title
    title: qsTr("View");

    GridLayout {
        columns: 2;

        CheckBox {
            checked: UM.Preferences.getValue('view/show_overhang');
            onCheckedChanged: UM.Preferences.setValue('view/show_overhang', checked)

            text: qsTr("Display overhang");
        }

        Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
    }
}<commit_msg>Implement reset() for ViewPage<commit_after>import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1

import UM 1.0 as UM

UM.PreferencesPage {
    //: View configuration page title
    title: qsTr("View");

    function reset()
    {
        UM.Preferences.resetPreference('view/show_overhang');
    }

    GridLayout {
        columns: 2;

        CheckBox {
            checked: UM.Preferences.getValue('view/show_overhang');
            onCheckedChanged: UM.Preferences.setValue('view/show_overhang', checked)

            //: Display Overhang preference checkbox
            text: qsTr("Display Overhang");
        }

        Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
    }
}
{'fraction_non_alphanumeric': 0.10580747812251393, 'fraction_numerical': 0.015910898965791568, 'mean_word_length': 2.5139664804469275, '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': '4858882', 'n_tokens_mistral': 392, 'n_tokens_neox': 362, 'n_words': 86}