<commit_before>CloudPebble.Settings = (function() {
    var settings_template = null;
    var shared_pane = null;

    var show_settings_pane = function() {
        CloudPebble.Sidebar.SuspendActive();
        if(CloudPebble.Sidebar.Restore("settings")) {
            return;
        }
        ga('send', 'event', 'project', 'load settings');
        var pane = settings_template;
        shared_pane = pane;

        pane.find('#settings-app-keys').keydown(function(e) {
            if(e.keyCode == 9) {
                var start = $(this).get(0).selectionStart;
                $(this).val($(this).val().substring(0, start) + "    " + $(this).val().substring($(this).get(0).selectionEnd));
                $(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 4;
                return false;
            }
        });

        if(CloudPebble.ProjectInfo.type != 'native') {
            pane.find('.native-only').hide();
        }

        var display_error = function(message) {
            window.scrollTo(0);
            pane.find('.alert').addClass('alert-error').removeClass('hide').text(message);
            pane.find('input, button, select').removeAttr('disabled');
        };

        var display_success = function(message) {
            window.scrollTo(0);
            pane.find('.alert').addClass('alert-success').removeClass('hide').text(message);
            pane.find('input, button, select').removeAttr('disabled');
        };

        pane.find('#settings-name').val(CloudPebble.ProjectInfo.name);
        pane.find('#settings-version-def-name').val(CloudPebble.ProjectInfo.version_def_name);
        pane.find('form').submit(function(e) {e.preventDefault();});
        pane.find('#project-save').click(function() {
            var name = pane.find('#settings-name').val();
            var version_def_name = pane.find('#settings-version-def-name').val();
            var sdk_version = parseInt(pane.find('#settings-sdk-version').val(), 10);
            var short_name = pane.find('#settings-short-name').val();
            var long_name = pane.find('#settings-long-name').val();
            var company_name = pane.find('#settings-company-name').val();
            var version_code = pane.find('#settings-version-code').val();
            var version_label = pane.find('#settings-version-label').val();
            var app_uuid = pane.find('#settings-uuid').val();
            var app_is_watchface = pane.find('#settings-app-is-watchface').val();
            var app_keys = pane.find('#settings-app-keys').val();
            var app_jshint = pane.find('#settings-app-jshint').prop("checked") ? 1 : 0;
            var menu_icon = pane.find('#settings-menu-image').val();

            var app_capabilities = [];<commit_msg>window.scrollTo takes two arguments.<commit_after>CloudPebble.Settings = (function() {
    var settings_template = null;
    var shared_pane = null;

    var show_settings_pane = function() {
        CloudPebble.Sidebar.SuspendActive();
        if(CloudPebble.Sidebar.Restore("settings")) {
            return;
        }
        ga('send', 'event', 'project', 'load settings');
        var pane = settings_template;
        shared_pane = pane;

        pane.find('#settings-app-keys').keydown(function(e) {
            if(e.keyCode == 9) {
                var start = $(this).get(0).selectionStart;
                $(this).val($(this).val().substring(0, start) + "    " + $(this).val().substring($(this).get(0).selectionEnd));
                $(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 4;
                return false;
            }
        });

        if(CloudPebble.ProjectInfo.type != 'native') {
            pane.find('.native-only').hide();
        }

        var display_error = function(message) {
            window.scrollTo(window.scrollX, 0);
            pane.find('.alert').addClass('alert-error').removeClass('hide').text(message);
            pane.find('input, button, select').removeAttr('disabled');
        };

        var display_success = function(message) {
            window.scrollTo(window.scrollX, 0);
            pane.find('.alert').addClass('alert-success').removeClass('hide').text(message);
            pane.find('input, button, select').removeAttr('disabled');
        };

        pane.find('#settings-name').val(CloudPebble.ProjectInfo.name);
        pane.find('#settings-version-def-name').val(CloudPebble.ProjectInfo.version_def_name);
        pane.find('form').submit(function(e) {e.preventDefault();});
        pane.find('#project-save').click(function() {
            var name = pane.find('#settings-name').val();
            var version_def_name = pane.find('#settings-version-def-name').val();
            var sdk_version = parseInt(pane.find('#settings-sdk-version').val(), 10);
            var short_name = pane.find('#settings-short-name').val();
            var long_name = pane.find('#settings-long-name').val();
            var company_name = pane.find('#settings-company-name').val();
            var version_code = pane.find('#settings-version-code').val();
            var version_label = pane.find('#settings-version-label').val();
            var app_uuid = pane.find('#settings-uuid').val();
            var app_is_watchface = pane.find('#settings-app-is-watchface').val();
            var app_keys = pane.find('#settings-app-keys').val();
            var app_jshint = pane.find('#settings-app-jshint').prop("checked") ? 1 : 0;
            var menu_icon = pane.find('#settings-menu-image').val();

            var app_capabilities = [];
{'fraction_non_alphanumeric': 0.17525588076854012, 'fraction_numerical': 0.004668701741784881, 'mean_word_length': 2.498743718592965, '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': '7222473', 'n_tokens_mistral': 1643, 'n_tokens_neox': 1588, 'n_words': 219}