<commit_before>define([
    'find/app/page/find-settings-page',
    'js-utils/js/empty-navbar',
    'find/app/util/test-browser',
    'i18n!find/nls/bundle',
    'text!find/templates/config/config.html',
    'underscore'
], function(SettingsPage, EmptyNavbar, testBrowser, i18n, template, _) {

    return function () {
        jQuery.ajaxSetup({ cache: false });

        var $page = $('.page');

        $page.html(_.template(template));

        this.settingsPage = new SettingsPage({});
        this.settingsPage.render();

        var $submitButton = this.settingsPage.$('');

        this.navigation = new (EmptyNavbar.extend({
            events: {
                'click a': function(e) {
                    if(!this.options.settingsPage.hasSavedSettings) {
                        e.preventDefault();

                        alert('You should save your settings before you can log out.');
                    }
                }
            }
        }))({
            strings: {
                appName: 'Find',
                logout: 'Logout from Settings'
            },
            logoutUri: '../logout',
            settingsPage: this.settingsPage,
            showLogout: true
        });

        this.navigation.render();
        $('.header').append(this.navigation.el);
        this.settingsPage.show();<commit_msg>Removed unused variable.<commit_after>define([
    'find/app/page/find-settings-page',
    'js-utils/js/empty-navbar',
    'find/app/util/test-browser',
    'i18n!find/nls/bundle',
    'text!find/templates/config/config.html',
    'underscore'
], function(SettingsPage, EmptyNavbar, testBrowser, i18n, template, _) {

    return function () {
        jQuery.ajaxSetup({ cache: false });

        var $page = $('.page');

        $page.html(_.template(template));

        this.settingsPage = new SettingsPage({});
        this.settingsPage.render();

        this.navigation = new (EmptyNavbar.extend({
            events: {
                'click a': function(e) {
                    if(!this.options.settingsPage.hasSavedSettings) {
                        e.preventDefault();

                        alert('You should save your settings before you can log out.');
                    }
                }
            }
        }))({
            strings: {
                appName: 'Find',
                logout: 'Logout from Settings'
            },
            logoutUri: '../logout',
            settingsPage: this.settingsPage,
            showLogout: true
        });

        this.navigation.render();
        $('.header').append(this.navigation.el);
        this.settingsPage.show();
{'fraction_non_alphanumeric': 0.1394906879513493, 'fraction_numerical': 0.003040668947168377, 'mean_word_length': 1.6775178026449644, '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': '4929704', 'n_tokens_mistral': 737, 'n_tokens_neox': 695, 'n_words': 124}