<commit_before>var request = require('request');
var email = require('email.js');

var options = {
    endpoint: 'https://api.smtplw.com.br/v1/messages',
    headers: {
        'x-auth-token': ''
    }

var sendMail = function(emailObject){
    request.post({url:endpoint, form:emailObject}, function(err, httpResponse, body){
        if (err) { return console.error(err);}
        console.log("HTTP Code: " + httpResponse);
        console.log("Response body: " + body);
    }
}<commit_msg>refactorin on smtp-locaweb.js e test.js<commit_after>var request = require('request');
var email = require('./email.js');

var endpoint = 'https://api.smtplw.com.br/v1/messages';
var options = {
    headers: {
        'x-auth-token': ''
    }
};

module.exports = function (emailObject){
    request.post(options, {url:endpoint, form:emailObject}, function(err, httpResponse, body){
        if (err) { return console.error(err);}
        console.log("HTTP Code: " + httpResponse);
        console.log("Response body: " + body);
    });
};
{'fraction_non_alphanumeric': 0.1729834791059281, 'fraction_numerical': 0.001943634596695821, 'mean_word_length': 3.382978723404255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4690556', 'n_tokens_mistral': 329, 'n_tokens_neox': 327, 'n_words': 66}