<commit_before>'use strict';

import * as wx from 'webrx';

import BaseViewModel from '../React/BaseViewModel';
import { RouteHandlerViewModel, IRoutingMap } from '../RouteHandler/RouteHandlerViewModel';
import RouteManager from '../../Routing/RouteManager';

export interface IAppConfig {
  EnablePropertyChangedDebugging: boolean;
  EnableViewRenderDebugging: boolean;
  EnableRouteDebugging: boolean;
  EnableStoreApiDebugging: boolean;

  routingMap: IRoutingMap;
}

export class AppViewModel extends BaseViewModel {
  constructor(public routeManager: RouteManager, config = <IAppConfig>{}) {
    super();

    this.config = config;
    this.routeHandler = new RouteHandlerViewModel(routeManager, config.routingMap);
  }

  public config: IAppConfig;
  public routeHandler: RouteHandlerViewModel;
  public alerts = wx.list<any>();
  public status = wx.property('');
}

export default AppViewModel;<commit_msg>app no longer requires a route manager, it is now optional<commit_after>'use strict';

import * as wx from 'webrx';

import BaseViewModel from '../React/BaseViewModel';
import { RouteHandlerViewModel, IRoutingMap } from '../RouteHandler/RouteHandlerViewModel';
import RouteManager from '../../Routing/RouteManager';

export interface IAppConfig {
  EnablePropertyChangedDebugging: boolean;
  EnableViewRenderDebugging: boolean;
  EnableRouteDebugging: boolean;
  EnableStoreApiDebugging: boolean;

  routingMap: IRoutingMap;
}

export class AppViewModel extends BaseViewModel {
  constructor(public routeManager?: RouteManager, config = <IAppConfig>{}) {
    super();

    this.config = config;
    if (routeManager != null) {
      this.routeHandler = new RouteHandlerViewModel(routeManager, config.routingMap);
    }
  }

  public config: IAppConfig;
  public routeHandler: RouteHandlerViewModel;
  public alerts = wx.list<any>();
  public status = wx.property('');
}

export default AppViewModel;
{'fraction_non_alphanumeric': 0.10251046025104603, 'fraction_numerical': 0.0, 'mean_word_length': 5.231270358306189, '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': '1667836', 'n_tokens_mistral': 529, 'n_tokens_neox': 509, 'n_words': 142}