<commit_before>import Ember from 'ember';
import config from '../config/environment';

const DEFAULT_CONFIG = {
  hardDelete: false,
  links: {
    'account.delete': 'Delete Account',
    'account.email': 'Change Email',
    'account.password': '<PASSWORD>',
    'account.verify-email': 'Send Email Verification'
  },
  messages: {
    successfulLogin: 'You have logged in successfully!',
    unsuccessfulLogin: 'You were unable to log in.',
    successfulUpdateAccount: 'You have successfully updated your account information!',
    unsuccessfulUpdateAccount: 'We were unable to update your account information.',
    successfulUpdateEmail: 'You have successfully updated your email!',
    unsuccessfulUpdateEmail: 'We were unable to update your email.',
    successfulUpdatePassword: 'You have successfully updated your password!',
    unsuccessfulUpdatePassword: 'We were unable to update your password.',
    successfulDeleteAccount: 'You have successfully deleted your account!',
    unsuccessfulDeleteAccount: 'We were unable to delete your account.',
    successfulLogout: 'You are now logged out!',
    unsuccessfulLogout: 'We were unable to log out of your account.',
    successfulCreateAccount: 'You have created an account successfully!',
    unsuccessfulCreateAccount: 'We were unable to create your account.',
    currentEmailPrompt: 'Your current account email adress is: ',
    incorrectPassword: '<PASSWORD>.'
  }
};

const { merge, set } = Ember;

export function initialize(appInstance) {
  let configService = appInstance.lookup('service:account-config');
  let efConfig = {};

  Object.keys(DEFAULT_CONFIG).forEach(() => {
    efConfig = merge(DEFAULT_CONFIG, config['emberfire-account']);
  });

  Object.keys(efConfig).forEach((key) => {
    set(configService, key, efConfig[key]);
  });
}

export default {
  name: 'route-initializer',
  initialize
};<commit_msg>corrected type on email prompt<commit_after>import Ember from 'ember';
import config from '../config/environment';

const DEFAULT_CONFIG = {
  hardDelete: false,
  links: {
    'account.delete': 'Delete Account',
    'account.email': 'Change Email',
    'account.password': '<PASSWORD>',
    'account.verify-email': 'Send Email Verification'
  },
  messages: {
    successfulLogin: 'You have logged in successfully!',
    unsuccessfulLogin: 'You were unable to log in.',
    successfulUpdateAccount: 'You have successfully updated your account information!',
    unsuccessfulUpdateAccount: 'We were unable to update your account information.',
    successfulUpdateEmail: 'You have successfully updated your email!',
    unsuccessfulUpdateEmail: 'We were unable to update your email.',
    successfulUpdatePassword: 'You have successfully updated your password!',
    unsuccessfulUpdatePassword: 'We were unable to update your password.',
    successfulDeleteAccount: 'You have successfully deleted your account!',
    unsuccessfulDeleteAccount: 'We were unable to delete your account.',
    successfulLogout: 'You are now logged out!',
    unsuccessfulLogout: 'We were unable to log out of your account.',
    successfulCreateAccount: 'You have created an account successfully!',
    unsuccessfulCreateAccount: 'We were unable to create your account.',
    currentEmailPrompt: 'Your current account email address is: ',
    incorrectPassword: '<PASSWORD>.'
  }
};

const { merge, set } = Ember;

export function initialize(appInstance) {
  let configService = appInstance.lookup('service:account-config');
  let efConfig = {};

  Object.keys(DEFAULT_CONFIG).forEach(() => {
    efConfig = merge(DEFAULT_CONFIG, config['emberfire-account']);
  });

  Object.keys(efConfig).forEach((key) => {
    set(configService, key, efConfig[key]);
  });
}

export default {
  name: 'route-initializer',
  initialize
};

{'fraction_non_alphanumeric': 0.11073029264434485, 'fraction_numerical': 0.0, 'mean_word_length': 4.612426035502959, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5317357', 'n_tokens_mistral': 983, 'n_tokens_neox': 1004, 'n_words': 336}