<commit_before>import {bootstrap} from '@angular/platform-browser-dynamic';
import {HTTP_PROVIDERS} from '@angular/http';
import {Component, ExceptionHandler} from '@angular/core';
import {LocationStrategy, HashLocationStrategy} from '@angular/common';
import {ROUTER_DIRECTIVES} from '@angular/router';
import {APP_ROUTER_PROVIDERS} from './app.routes';
import {MediatorService, SnippetManager} from './shared/services';
import {Utilities, ContextUtil, UxUtil, ExceptionHelper, NotificationHelper, RequestHelper, ContextType} from './shared/helpers';
import {Authenticator, TokenManager} from './shared/services/oauth';

require('./assets/styles/spinner.scss');
require('./assets/styles/globals.scss');

require('./assets/styles/excel.scss');
require('./assets/styles/word.scss');
require('./assets/styles/powerpoint.scss');
require('./assets/styles/onenote.scss');
require('./assets/styles/generic.scss');

ContextUtil.applyTheme();

export const PROVIDER_OVERRIDES = [
    { provide: ExceptionHandler, useClass: ExceptionHelper },
    { provide: LocationStrategy, useClass: HashLocationStrategy }
];

export const APP_PROVIDERS = [
    SnippetManager,
    ExceptionHelper,
    NotificationHelper,
    RequestHelper,
    MediatorService,
    HTTP_PROVIDERS
];

@Component({
    selector: 'app',
    template: '<router-outlet></router-outlet>',
    directives: [ROUTER_DIRECTIVES]
})

export class AppComponent { }

export function launch() {
    $('.app .ms-ProgressIndicator-itemDescription').text('Loading the runtime...');
    bootstrap(AppComponent, [
        ...APP_ROUTER_PROVIDERS,
        ...PROVIDER_OVERRIDES,<commit_msg>apply master's app.ts change for enableProdMode()<commit_after>import {bootstrap} from '@angular/platform-browser-dynamic';
import {HTTP_PROVIDERS} from '@angular/http';
import {Component, ExceptionHandler, enableProdMode} from '@angular/core';
import {LocationStrategy, HashLocationStrategy} from '@angular/common';
import {ROUTER_DIRECTIVES} from '@angular/router';
import {APP_ROUTER_PROVIDERS} from './app.routes';
import {MediatorService, SnippetManager} from './shared/services';
import {Utilities, ContextUtil, UxUtil, ExceptionHelper, NotificationHelper, RequestHelper, ContextType} from './shared/helpers';
import {Authenticator, TokenManager} from './shared/services/oauth';

require('./assets/styles/spinner.scss');
require('./assets/styles/globals.scss');

require('./assets/styles/excel.scss');
require('./assets/styles/word.scss');
require('./assets/styles/powerpoint.scss');
require('./assets/styles/onenote.scss');
require('./assets/styles/generic.scss');

ContextUtil.applyTheme();
if (!window.location.href.indexOf('localhost')) {
    enableProdMode();
}

export const PROVIDER_OVERRIDES = [
    { provide: ExceptionHandler, useClass: ExceptionHelper },
    { provide: LocationStrategy, useClass: HashLocationStrategy }
];

export const APP_PROVIDERS = [
    SnippetManager,
    ExceptionHelper,
    NotificationHelper,
    RequestHelper,
    MediatorService,
    HTTP_PROVIDERS
];

@Component({
    selector: 'app',
    template: '<router-outlet></router-outlet>',
    directives: [ROUTER_DIRECTIVES]
})

export class AppComponent { }

export function launch() {
    $('.app .ms-ProgressIndicator-itemDescription').text('Loading the runtime...');
    bootstrap(AppComponent, [
        ...APP_ROUTER_PROVIDERS,
        ...PROVIDER_OVERRIDES,
{'fraction_non_alphanumeric': 0.14622641509433962, 'fraction_numerical': 0.0, 'mean_word_length': 5.353932584269663, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7073386', 'n_tokens_mistral': 1000, 'n_tokens_neox': 992, 'n_words': 196}