<commit_before>'use strict';

var log = require('debug')('tricket:services');
var assert = require('assert');
var sesConfig = require('../config/ses.js');
var ses = require('node-ses')
  , client = ses.createClient({ key: sesConfig.key, secret: sesConfig.secret });


module.exports = function(aConnectionFactory, aUrl) {

  return {
    newTicketNotification: function(ticket, callback) {
      this.execute(callback, function(done) {
        newTicketNotification(ticket, done);
      });
    }
  };
};

function newTicketNotification(ticket, callback) {
  log('Sending mail about ticket: '+ ticket.title);
  client.sendEmail({<commit_msg>Issue-42, errores en servicio de correo<commit_after>'use strict';

var log = require('debug')('tricket:services');
var assert = require('assert');
var sesConfig = require('../config/ses.js');
var ses = require('node-ses')
  , client = ses.createClient({ key: sesConfig.key, secret: sesConfig.secret });


module.exports = function(aConnectionFactory, aUrl) {

  return {
    newTicketNotification: newTicketNotification
  };
};

function newTicketNotification(ticket, callback) {
  log('Sending mail about ticket: '+ ticket.title);
  client.sendEmail({
{'fraction_non_alphanumeric': 0.1507537688442211, 'fraction_numerical': 0.0016750418760469012, 'mean_word_length': 5.005025125628141, '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': '482231', 'n_tokens_mistral': 364, 'n_tokens_neox': 353, 'n_words': 79}