<commit_before>'use strict';

import { Component, Type, ViewChild }    from '@angular/core';
import { Platform, ionicBootstrap, Nav } from 'ionic-angular';
import { StatusBar, Splashscreen }       from 'ionic-native';
import { HomePage }                      from './pages/home/page';
import { BasePage }                      from './core/page';

// Application providers
const providers: any[] = [];

// Application config
// http://ionicframework.com/docs/v2/api/config/Config/
const config: any = {
  prodMode: false,
};

interface MenuItem {
  title: string;
  icon: string;
  component?: Type;
  link?: string;
  action?: Function;
  home?: boolean;
}

/**
 * Bootstraps the Ionic app 
 * 
 * @class {Application}
 */
@Component({
  templateUrl: 'build/app.html',
})
export class Application extends BasePage {

  @ViewChild(Nav) private nav: Nav;

  private rootPage: Type;
  private pages: MenuItem[];
  private platform: Platform;

  public constructor(platform: Platform) {
    super();
    this.platform = platform;
    this.rootPage = HomePage;
    this.platform.ready().then(() => this.onReady());

  }

  /**
   * When the cordova platform is ready, it configures the environment
   * @return {void}
   */
  private onReady(): void {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      this.hideSplashScreen();
      StatusBar.styleDefault();
      this.configureMenu();
  }

  /**
   * Configures menu links
   * @return {void}
   */
  private configureMenu(): void {
    // set our app's pages<commit_msg>Fixing menu items load<commit_after>'use strict';

import { Component, Type, ViewChild }    from '@angular/core';
import { Platform, ionicBootstrap, Nav } from 'ionic-angular';
import { StatusBar, Splashscreen }       from 'ionic-native';
import { HomePage }                      from './pages/home/page';
import { BasePage }                      from './core/page';

// Application providers
const providers: any[] = [];

// Application config
// http://ionicframework.com/docs/v2/api/config/Config/
const config: any = {
  prodMode: false,
};

interface MenuItem {
  title: string;
  icon: string;
  component?: Type;
  link?: string;
  action?: Function;
  home?: boolean;
}

/**
 * Bootstraps the Ionic app 
 * 
 * @class {Application}
 */
@Component({
  templateUrl: 'build/app.html',
})
export class Application extends BasePage {

  @ViewChild(Nav) private nav: Nav;

  private rootPage: Type;
  private pages: MenuItem[];

  public constructor(platform: Platform) {
    super();
    this.rootPage = HomePage;
    platform.ready().then(() => this.onReady());

  }

  /**
   * When the cordova platform is ready, it configures the environment
   * @return {void}
   */
  private onReady(): void {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      this.hideSplashScreen();
      StatusBar.styleDefault();
      setTimeout(() => this.configureMenu(), 1);
  }

  /**
   * Configures menu links
   * @return {void}
   */
  private configureMenu(): void {
    // set our app's pages
{'fraction_non_alphanumeric': 0.1328540168802751, 'fraction_numerical': 0.0009377930603313535, 'mean_word_length': 2.907203907203907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6902209', 'n_tokens_mistral': 946, 'n_tokens_neox': 913, 'n_words': 287}