<commit_before>var PaymentAgentTransferUI = (function () {
    "use strict";
    var hiddenClass = 'invisible';
    var $paymentagentTransfer = $('#paymentagent_transfer');
    var $paConfirmTransfer = $('#pa_confirm_transfer');
    var $paTransferDone = $('#pa_transfer_done');
    var $paymentagentTransferNotes = $('#paymentagent_transfer_notes');
    var $paTransferDoneConfirmMsg = $('#pa_transfer_done > #confirm-msg');

    function hideForm() {
        $paymentagentTransfer.addClass(hiddenClass);
    }
    function showForm() {
        $paymentagentTransfer.removeClass(hiddenClass);
    }

    function hideConfirmation() {
        $paConfirmTransfer.addClass(hiddenClass);
    }
    function showConfirmation() {
        $paConfirmTransfer.removeClass(hiddenClass);
    }

    function hideDone() {
        $paTransferDone.addClass(hiddenClass);
    }
    function showDone() {
        $paTransferDone.removeClass(hiddenClass);
    }

    function hideNotes() {
        $paymentagentTransferNotes.addClass(hiddenClass);
    }
    function showNotes() {
        $paymentagentTransferNotes.removeClass(hiddenClass);
    }
    function updateFormView(currency) {
        $('#paymentagent_transfer label[for="amount"]').text(text.localize('Amount') + ' ' + currency);
    }

    function updateConfirmView(username, loginid, amount, currency) {
        $('#pa_confirm_transfer td#user-name').html(username);
        $('#pa_confirm_transfer td#login-id').html(loginid);
        $('#pa_confirm_transfer td#amount').html(currency + ' ' + amount);
    }

    function updateDoneView(fromID, toID, amount, currency) {
        var templateString = "Your request to transfer [_1] [_2] from [_3] to [_4] has been successfully processed.";
        var translated = text.localize(templateString);
        var confirmMsg = translated
            .replace('[_1]', amount)
            .replace('[_2]', currency)
            .replace('[_3]', fromID)
            .replace('[_4]', toID);

        $paTransferDoneConfirmMsg.text(confirmMsg);
        $paTransferDoneConfirmMsg.removeClass(hiddenClass);
    }

    return {
        hideForm: hideForm,
        showForm: showForm,
        hideConfirmation: hideConfirmation,
        showConfirmation: showConfirmation,
        hideDone: hideDone,
        showDone: showDone,
        hideNotes: hideNotes,
        showNotes: showNotes,
        updateFormView: updateFormView,
        updateConfirmView: updateConfirmView,
        updateDoneView: updateDoneView
    };
}());<commit_msg>Inline jquery selector<commit_after>var PaymentAgentTransferUI = (function () {
    "use strict";
    var hiddenClass = 'invisible';
    
    function hideForm() {
        $('#paymentagent_transfer').addClass(hiddenClass);
    }
    function showForm() {
        $('#paymentagent_transfer').removeClass(hiddenClass);
    }

    function hideConfirmation() {
        $('#pa_confirm_transfer').addClass(hiddenClass);
    }
    function showConfirmation() {
        $('#pa_confirm_transfer').removeClass(hiddenClass);
    }

    function hideDone() {
        $('#pa_transfer_done').addClass(hiddenClass);
    }
    function showDone() {
        $('#pa_transfer_done').removeClass(hiddenClass);
    }

    function hideNotes() {
        $('#paymentagent_transfer_notes').addClass(hiddenClass);
    }
    function showNotes() {
        $('#paymentagent_transfer_notes').removeClass(hiddenClass);
    }
    function updateFormView(currency) {
        $('#paymentagent_transfer label[for="amount"]').text(text.localize('Amount') + ' ' + currency);
    }

    function updateConfirmView(username, loginid, amount, currency) {
        $('#pa_confirm_transfer td#user-name').html(username);
        $('#pa_confirm_transfer td#login-id').html(loginid);
        $('#pa_confirm_transfer td#amount').html(currency + ' ' + amount);
    }

    function updateDoneView(fromID, toID, amount, currency) {
        var templateString = "Your request to transfer [_1] [_2] from [_3] to [_4] has been successfully processed.";
        var translated = text.localize(templateString);
        var confirmMsg = translated
            .replace('[_1]', amount)
            .replace('[_2]', currency)
            .replace('[_3]', fromID)
            .replace('[_4]', toID);

        $('#pa_transfer_done > #confirm-msg').text(confirmMsg);
        $('#pa_transfer_done > #confirm-msg').removeClass(hiddenClass);
    }

    return {
        hideForm: hideForm,
        showForm: showForm,
        hideConfirmation: hideConfirmation,
        showConfirmation: showConfirmation,
        hideDone: hideDone,
        showDone: showDone,
        hideNotes: hideNotes,
        showNotes: showNotes,
        updateFormView: updateFormView,
        updateConfirmView: updateConfirmView,
        updateDoneView: updateDoneView
    };
}());
{'fraction_non_alphanumeric': 0.1290188757519187, 'fraction_numerical': 0.003318813524165111, 'mean_word_length': 3.1355060034305318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2771005', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1312, 'n_words': 238}