<commit_before>(function () {
    'use strict';

    $('form#volunteer-form').ajaxForm({
        beforeSubmit: function () {
            //validate email for staff side processing
            var email = $('#email').val();
            if(email.search(/^.+<EMAIL>$/) === -1 &&
                email.search(/^.+<EMAIL>$/) === -1)
            {
                alert('Email must be a valid Auburn Email address');
            }
        },

        success: function (data, status) {
            if (status === 'success'){
                if(data === 'ok') {
                    window.location.replace('/volunteer/success');
                }
                else {
                    window.location.replace('/staff/volunteer/account/' + data.id);
                }
            }
        },

        error: function (data, status) {
            if(data === 'staff') {
                window.location.replace('/staff/volunteer/failure');
            } else {
                window.location.replace('/volunteer/failure');
            }
        }
    });
})();<commit_msg>Removing client-side email validation for registering volunteers<commit_after>(function () {
    'use strict';

    $('form#volunteer-form').ajaxForm({

        success: function (data, status) {
            if (status === 'success'){
                if(data === 'ok') {
                    window.location.replace('/volunteer/success');
                }
                else {
                    window.location.replace('/staff/volunteer/account/' + data.id);
                }
            }
        },

        error: function (data) {
            if (data === 'staff') {
                window.location.replace('/staff/volunteer/failure');
            } else {
                window.location.replace('/volunteer/failure');
            }
        }

    });
})();
{'fraction_non_alphanumeric': 0.15577342047930284, 'fraction_numerical': 0.0010893246187363835, 'mean_word_length': 1.343112244897959, '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': '4718672', 'n_tokens_mistral': 488, 'n_tokens_neox': 456, 'n_words': 81}