<commit_before>let generateEmailAuthenticationExpress = require('./generateEmailAuthenticationExpress');

function generateEmailAuthentication(params) {
  switch (params.framework) {
    case 'express':
      return generateEmailAuthenticationExpress(params);
      break;
    case 'hapi':
      // TODO: not implemented
      return Promise.resolve();
      break;
    case 'sails':
      // TODO: not implemented
      return Promise.resolve();
      break;
    default:
      return Promise.reject('Unsupported Framework');
  }
}

function cleanupEmailAuthenticationString(params) {
  if (params.framework === 'express') {
    let appFile = path.join(__dirname, 'build', params.uuid, 'app.js');

    return removeCode(appFile, 'EXPRESS_TEMPLATE_ENGINE_CONFIG');
  } else if (params.framework === 'hapi') {
    // TODO: not implemented
  } else if (params.framework === 'sails') {
    // TODO: not implemented
  }
}

module.exports = generateEmailAuthentication;<commit_msg>Cleaned up unused function in generateEmailAuthentication<commit_after>let generateEmailAuthenticationExpress = require('./generateEmailAuthenticationExpress');

function generateEmailAuthentication(params) {
  switch (params.framework) {
    case 'express':
      return generateEmailAuthenticationExpress(params);
      break;
    case 'hapi':
      // TODO
      break;
    case 'sails':
      // TODO
      break;
    default:
      return Promise.reject('Unsupported Framework');
  }
}

module.exports = generateEmailAuthentication;
{'fraction_non_alphanumeric': 0.11103767349636484, 'fraction_numerical': 0.0, 'mean_word_length': 3.761006289308176, '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': '2492685', 'n_tokens_mistral': 391, 'n_tokens_neox': 387, 'n_words': 92}