<commit_before>var fs            = require('fs')
  , config        = JSON.parse(process.env.CONFIG || fs.readFileSync(__dirname + '/../config/config.json').toString())
  , moment        = require('moment')
  , nodemailer    = require('nodemailer')
  , smtpTransport = nodemailer.createTransport("SMTP", {
      service: "Gmail",
      auth: config.gmail
    })
  , _       = require('lodash')

var Helpers = module.exports = {
  getMailAddresses: function() {
    return config.mails || {}
  },

  getNotificationAddresses: function() {
    return config.notifications || {}
  },

  getCurrentMailData: function() {
    var dayOfTheYear     = parseInt(moment().format('DDD'))
      , addresses        = _.keys(this.getMailAddresses())
      , names            = _.values(this.getMailAddresses())
      , currentMailIndex = dayOfTheYear % addresses.length

      return {
        name:    names[currentMailIndex],
        address: addresses[currentMailIndex]
      }
  },

  getBugsBunnyMailAddress: function() {
    return getCurrentMailData().address
  },

  getBugsBunnyName: function() {
    return getCurrentMailData().name
  },

  getTimeDiff: function(time) {
    var momentTime = moment.isMoment(time) ? time : moment(time)
    return momentTime.valueOf() - moment().valueOf()
  },

  getTomorrowMorning: function() {
    return moment().add('days', 1).hours(10).minutes(0).seconds(0)
  },

  sendMail: function(address, subject, message) {
    var mailOptions = {
      from:     "<EMAIL>",
      to:       address,
      subject:  subject,
      text:     message<commit_msg>send mail at 11 o clock<commit_after>var fs            = require('fs')
  , config        = JSON.parse(process.env.CONFIG || fs.readFileSync(__dirname + '/../config/config.json').toString())
  , moment        = require('moment')
  , nodemailer    = require('nodemailer')
  , smtpTransport = nodemailer.createTransport("SMTP", {
      service: "Gmail",
      auth: config.gmail
    })
  , _       = require('lodash')

var Helpers = module.exports = {
  getMailAddresses: function() {
    return config.mails || {}
  },

  getNotificationAddresses: function() {
    return config.notifications || {}
  },

  getCurrentMailData: function() {
    var dayOfTheYear     = parseInt(moment().format('DDD'))
      , addresses        = _.keys(this.getMailAddresses())
      , names            = _.values(this.getMailAddresses())
      , currentMailIndex = dayOfTheYear % addresses.length

      return {
        name:    names[currentMailIndex],
        address: addresses[currentMailIndex]
      }
  },

  getBugsBunnyMailAddress: function() {
    return getCurrentMailData().address
  },

  getBugsBunnyName: function() {
    return getCurrentMailData().name
  },

  getTimeDiff: function(time) {
    var momentTime = moment.isMoment(time) ? time : moment(time)
    return momentTime.valueOf() - moment().valueOf()
  },

  getTomorrowMorning: function() {
    return moment().add('days', 1).hours(9).minutes(0).seconds(0)
  },

  sendMail: function(address, subject, message) {
    var mailOptions = {
      from:     "<EMAIL>",
      to:       address,
      subject:  subject,
      text:     message
{'fraction_non_alphanumeric': 0.13849543594586086, 'fraction_numerical': 0.003462385898646522, 'mean_word_length': 2.8197115384615383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6908957', 'n_tokens_mistral': 973, 'n_tokens_neox': 941, 'n_words': 170}