<commit_before>var App = function(params) {
    
    var utils = params.utils;
    var serverClient = params.serverClient;
    var CommentShower = params.CommentShower;
    var CommentSubmitter = params.CommentSubmitter;
    var StimulusSubmitter = params.StimulusSubmitter;
    var loginView;
    var registerView;

    function onDeregister() {
        serverClient.authDeregister().then(function() {
            loginView.render();
        }, function() {
            console.log("deregister failed");
        });
    }

    function setupUI() {

        // Comment Submitter
        var commentSubmitter= new CommentSubmitter({
            formId: '#comment_form'
        });
        commentSubmitter.addSubmitListener(function(txt) {
            serverClient.submitComment(txt);
        });

        // StimulusSubmitter
        var stimulusSubmitter = new StimulusSubmitter({
            formId: '#stimulus_form'
        });
        stimulusSubmitter.addSubmitListener(function(data) {
            serverClient.submitStimulus(data);
        });

        loginView = new LoginView({
            emailStore: PolisStorage.email,
            usernameStore: PolisStorage.username,
            rootElemId: "login_dropdown",
            submit: serverClient.authLogin,
            onOk: function() { console.log('login success'); },
            formId: "login_form",
            emailFieldId: "login_email",
            passwordFieldId: "<PASSWORD>",
            rememberMeFieldId: "login_rememberme"
        });<commit_msg>cleanup<commit_after>var App = function(params) {
    
    var utils = params.utils;
    var serverClient = params.serverClient;
    var CommentShower = params.CommentShower;
    var CommentSubmitter = params.CommentSubmitter;
    var StimulusSubmitter = params.StimulusSubmitter;
    var loginView;
    var registerView;

    function onDeregister() {
        serverClient.authDeregister().then(function() {
            loginView.render();
        }, function() {
            console.log("deregister failed");
        });
    }

    function setupUI() {

        // CommentSubmitter
        var commentSubmitter= new CommentSubmitter({
            formId: '#comment_form'
        });
        commentSubmitter.addSubmitListener(function(txt) {
            serverClient.submitComment(txt);
        });

        // StimulusSubmitter
        var stimulusSubmitter = new StimulusSubmitter({
            formId: '#stimulus_form'
        });
        stimulusSubmitter.addSubmitListener(function(data) {
            serverClient.submitStimulus(data);
        });

        loginView = new LoginView({
            emailStore: PolisStorage.email,
            usernameStore: PolisStorage.username,
            rootElemId: "login_dropdown",
            submit: serverClient.authLogin,
            onOk: function() { console.log('login success'); },
            formId: "login_form",
            emailFieldId: "login_email",
            passwordFieldId: "<PASSWORD>",
            rememberMeFieldId: "login_rememberme"
        });
{'fraction_non_alphanumeric': 0.10069101678183613, 'fraction_numerical': 0.0, 'mean_word_length': 2.234042553191489, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1819862', 'n_tokens_mistral': 808, 'n_tokens_neox': 780, 'n_words': 145}