<commit_before>function RecaptchaV3() {
    $(".recaptcha-v3").each(function () {
        var el = $(this);
        var clientId = grecaptcha.render($(el).attr("id"), {
            'sitekey': $(el).attr('data-sitekey'),
            'badge': $(el).attr('data-badge'),
            'theme': $(el).attr('data-theme'),
            'size': 'invisible',
        });
        grecaptcha.ready(function () {
            grecaptcha.execute(clientId, {
                action: 'submit'
            })
        });
    });
}<commit_msg>Configure jshint, simplify javascript structure<commit_after>/* jshint unused:vars, undef:true, browser:true, jquery:true */
/* global grecaptcha */

;(function(global, $) {
'use strict';

function render(element) {
    var $element = $(element),
        clientId = grecaptcha.render(
            $element.attr('id'),
            {
                sitekey: $element.data('sitekey'),
                badge: $element.data('badge'),
                theme: $element.data('theme'),
                size: 'invisible'
            }
        );
    grecaptcha.ready(function () {
        grecaptcha.execute(
            clientId,
            {
                action: 'submit'
            }
        );
    });
}

global.RecaptchaV3 = function() {
    $('.recaptcha-v3').each(function () {
        render(this);
    });
};

})(window, jQuery);
{'fraction_non_alphanumeric': 0.17269372693726937, 'fraction_numerical': 0.002952029520295203, 'mean_word_length': 1.825, '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': '6418862', 'n_tokens_mistral': 421, 'n_tokens_neox': 408, 'n_words': 63}