<commit_before>reCAPTCHA = {
    settings: {},
    config: function(settings) {
        return _.extend(this.settings, settings);
    },
    verifyCaptcha: function(clientIP, data) {
        var captcha_data = {
            privatekey: this.settings.privatekey,
            remoteip: clientIP,
            challenge: data.captcha_challenge_id,
            response: data.captcha_solution
        };

        var serialized_captcha_data =
            'privatekey=' + captcha_data.privatekey +
            '&remoteip=' + captcha_data.remoteip +
            '&challenge=' + captcha_data.challenge +
            '&response=' + captcha_data.response;
        var captchaVerificationResult = null;
        var success, parts; // used to process response string

        try {
            captchaVerificationResult = HTTP.call("POST", "http://www.google.com/recaptcha/api/verify", {
                content: serialized_captcha_data.toString('utf8'),
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded',
                    'Content-Length': serialized_captcha_data.length
                }
            });
        } catch (e) {
            console.log(e);
            return {
                'success': false,
                'error': 'Service Not Available'
            };
        }

        parts = captchaVerificationResult.content.split('\n');
        success = parts[0];

        if (success !== 'true') {
            return {
                'success': false,
                'error': 'Entered Text Does Not Match'
            };
        }
<commit_msg>Update server.js<commit_after>reCAPTCHA = {
    settings: {},
    config: function(settings) {
        return _.extend(this.settings, settings);
    },
    verifyCaptcha: function(clientIP, data) {
        var captcha_data = {
            privatekey: this.settings.privatekey,
            remoteip: clientIP,
            challenge: data.captcha_challenge_id,
            response: data.captcha_solution
        };

        var serialized_captcha_data =
            'privatekey=' + captcha_data.privatekey +
            '&remoteip=' + captcha_data.remoteip +
            '&challenge=' + captcha_data.challenge +
            '&response=' + captcha_data.response;
        var captchaVerificationResult = null;
        var success, parts; // used to process response string

        try {
            captchaVerificationResult = HTTP.call("POST", "https://www.google.com/recaptcha/api/siteverify", {
                content: serialized_captcha_data.toString('utf8'),
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded',
                    'Content-Length': serialized_captcha_data.length
                }
            });
        } catch (e) {
            console.log(e);
            return {
                'success': false,
                'error': 'Service Not Available'
            };
        }

        parts = captchaVerificationResult.content.split('\n');
        success = parts[0];

        if (success !== 'true') {
            return {
                'success': false,
                'error': 'Entered Text Does Not Match'
            };
        }

{'fraction_non_alphanumeric': 0.11135371179039301, 'fraction_numerical': 0.0012476606363069245, 'mean_word_length': 1.652605459057072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, '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': '7272902', 'n_tokens_mistral': 877, 'n_tokens_neox': 830, 'n_words': 157}