<commit_before>var winston = module.parent.require('winston'),
    Meta = module.parent.require('./meta'),

    Emailer = {},
    ses,
    sender;

Emailer.init = function (app, middleware, controllers)
{
  console.log('===========emailer-amazonses init============');
  var AWS = require('aws-sdk');
  AWS.config.loadFromPath('./emailer-amazonses-config.json');

  ses = new AWS.SES({
      apiVersion: '2010-12-01'
  });


  require('fs').readFile('./emailer-amazonses-sender.json', 'utf8', 
   function (err, data) {
  if (err) {
    console.log('Error: ' + err);
    return;
  }
 
  var obj1 = JSON.parse(data);
 
  console.log(obj1);
  sender = obj1.email;
  console.log(sender);

});

    var render = function (req, res, next)
    {
        res.render('admin/plugins/emailer-amazonses', {});
    };

    app.get('/admin/plugins/emailer-amazonses', middleware.admin.buildHeader, render);<commit_msg>commit<commit_after>var winston = module.parent.require('winston'),
    Meta = module.parent.require('./meta'),

    Emailer = {},
    ses,
    sender;

Emailer.init = function (app, middleware, controllers)
{
  console.log('===========emailer-amazonses init============');
  var AWS = require('aws-sdk');
  AWS.config.loadFromPath('./emailer-amazonses-config.json');

  ses = new AWS.SES({
      apiVersion: '2010-12-01'
  });

sender = "<EMAIL>";

/*
  require('fs').readFile('./emailer-amazonses-sender.json', 'utf8', 
   function (err, data) {
  if (err) {
    console.log('Error: ' + err);
    return;
  }
 
  var obj1 = JSON.parse(data);
 
  console.log(obj1); 
  sender = obj1.email;
  console.log(sender);

});
*/
    var render = function (req, res, next)
    {
        res.render('admin/plugins/emailer-amazonses', {});
    };

    app.get('/admin/plugins/emailer-amazonses', middleware.admin.buildHeader, render);
{'fraction_non_alphanumeric': 0.20448332422088572, 'fraction_numerical': 0.013121924548933843, 'mean_word_length': 3.3364928909952605, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4897170', 'n_tokens_mistral': 656, 'n_tokens_neox': 621, 'n_words': 103}