<commit_before>var request = require('request');
var config = require('config');

var options = {
    "url": config.VR.RaceDB.URL,
    "method": "POST",
    "json": true
};

module.exports = function (server) {
    server.on('bestlap', function(lap) {
        options.body = lap;
        console.log('plugin.bestlap', options);

        request.post(options, function(err, resp, body) {
            if(err) console.error(err);
            console.log('request.post', err, resp, body);
        });
    });
};<commit_msg>removed logging<commit_after>var request = require('request');
var config = require('config');

var options = {
    "url": config.VR.RaceDB.URL,
    "method": "POST",
    "json": true
};

module.exports = function (server) {
    server.on('bestlap', function(lap) {
        options.body = lap;
        console.log('plugin.bestlap', options);

        request.post(options, function(err, resp, body) {
            if(err) {
                console.error(err);
            }
        });
    });
};
{'fraction_non_alphanumeric': 0.17159763313609466, 'fraction_numerical': 0.0, 'mean_word_length': 2.5489510489510487, 'pattern_counts': {'":': 6, '<': 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': '2251140', 'n_tokens_mistral': 313, 'n_tokens_neox': 310, 'n_words': 63}