<commit_before>export function initialize(container, application) {
  /**
   * Inject the firebase ref created on the FirebaseAdapter into the routes
   * and the authenticator. Makes more sense to create it here and inject it
   * to the adapter but the adapter is initialized before the ember cli
   * initializers are called. Emberfire is not a real ember cli addon.
   *
   * It's important to have just one Firebase ref on the app to avoid bugs
   * mocking it on the tests.
   */
  var ref = container.lookup('adapter:firebase').get('firebase');
  application.register('service:firebase', ref, { instantiate: false });
  application.inject('route', 'firebase', 'service:firebase');
  application.inject('model', 'firebase', 'service:firebase');
  application.inject('controller', 'firebase', 'service:firebase');
  application.inject('component', 'firebase', 'service:firebase');
  application.inject('authenticator', 'firebase', 'service:firebase');
}

export default {
  name: 'firebase-service',
  initialize: initialize
};<commit_msg>initialize after simple-auth to ensure adapter exists<commit_after>export function initialize(container, application) {
  /**
   * Inject the firebase ref created on the FirebaseAdapter into the routes
   * and the authenticator. Makes more sense to create it here and inject it
   * to the adapter but the adapter is initialized before the ember cli
   * initializers are called. Emberfire is not a real ember cli addon.
   *
   * It's important to have just one Firebase ref on the app to avoid bugs
   * mocking it on the tests.
   */
  var ref = container.lookup('adapter:firebase').get('firebase');
  application.register('service:firebase', ref, { instantiate: false });
  application.inject('route', 'firebase', 'service:firebase');
  application.inject('model', 'firebase', 'service:firebase');
  application.inject('controller', 'firebase', 'service:firebase');
  application.inject('component', 'firebase', 'service:firebase');
  application.inject('authenticator', 'firebase', 'service:firebase');
}

export default {
  name: 'firebase-service',
  after: 'simple-auth',
  initialize: initialize
};
{'fraction_non_alphanumeric': 0.11802973977695168, 'fraction_numerical': 0.0, 'mean_word_length': 4.997214484679666, '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': '5548507', 'n_tokens_mistral': 592, 'n_tokens_neox': 581, 'n_words': 204}