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

export function initialize(container, application) {
  if (config.exportApplicationGlobal !== false) {
    var globalName = typeof config.exportApplicationGlobal === 'string' ?
      config.exportApplicationGlobal :
      Ember.String.classify(config.modulePrefix);

    if (!window[globalName]) {
      window[globalName] = application;

      application.reopen({
        willDestroy: function(){
          this._super.apply(this, arguments);<commit_msg>cleanup expression<commit_after>import Ember from 'ember';
import config from '../config/environment';

export function initialize(container, application) {
  if (config.exportApplicationGlobal !== false) {
    var value = config.exportApplicationGlobal;
    var globalName;

    if (typeof value === 'string') {
      globalName = value;
    } else {
      globalName = Ember.String.classify(config.modulePrefix);
    }

    if (!window[globalName]) {
      window[globalName] = application;

      application.reopen({
        willDestroy: function(){
          this._super.apply(this, arguments);
{'fraction_non_alphanumeric': 0.11733800350262696, 'fraction_numerical': 0.0, 'mean_word_length': 3.7037037037037037, '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': '5554167', 'n_tokens_mistral': 296, 'n_tokens_neox': 290, 'n_words': 69}