<commit_before>/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" />

import {Component, ViewChild} from '@angular/core';
import {ionicBootstrap, Events, Platform, Nav, MenuController} from 'ionic-angular';
import {StatusBar, Splashscreen} from 'ionic-native';
import {ConferenceData} from './providers/conference-data';
import {UserData} from './providers/user-data';
import {AccountPage} from './pages/account/account';
import {TabsPage} from './pages/tabs/tabs';
import {LoginPage} from './pages/login/login';
import {SignupPage} from './pages/signup/signup';
import {TweetShare} from './providers/tweet-share';
import { SchedulePage } from './pages/schedule/schedule';
import { SpeakerListPage } from './pages/speaker-list/speaker-list';
import { AboutPage } from './pages/about/about';
import {SponsorsPage} from './pages/sponsors/sponsors';

import * as firebase from 'firebase';

interface PageObj {
  title: string;
  component: any;
  icon: string;
  index?: number;
}

@Component({
  templateUrl: 'build/app.html'
})
class ConferenceApp {
  // the root nav is a child of the root app component
  // @ViewChild(Nav) gets a reference to the app's root nav
  @ViewChild(Nav) nav: Nav;

  // List of pages that can be navigated to from the left menu

  appPages: PageObj[] = [
    { title: 'Schedule', component: TabsPage, icon: 'calendar' },
    { title: 'Speakers', component: TabsPage, icon: 'contacts' },
    { title: 'About', component: TabsPage, icon: 'information-circle' },
    { title: 'Sponsors', component: TabsPage, icon: 'ribbon' }
  ];

  rootPage: any = TabsPage;

  constructor(
    public events: Events,
    public userData: UserData,
    public menu: MenuController,
    platform: Platform,
    confData: ConferenceData
  ) {
    var config = {
      apiKey: "AIzaSyByXyIgWx9_jKNEYvnCpglS8tdY912fGRA",
      authDomain: "agile-africa-fa653.firebaseapp.com",
      databaseURL: "https://agile-africa-fa653.firebaseio.com/",
      storageBucket: "agile-africa-fa653",
      messagingSenderId: "816289217843"
    };

    firebase.initializeApp(config);

    // Call any initial plugins when ready
    platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide();
    });

    // load the conference data
    confData.load();


    this.menu.enable(true, 'mainmenu');

  }

  openPage(page: PageObj) {
    // the nav component was found using @ViewChild(Nav)
    // reset the nav to remove previous pages and only have this page
    // we wouldn't want the back button to show in this scenario
    if (page.index) {
      this.nav.setRoot(page.component, {tabIndex: page.index});

    } else {
      this.nav.setRoot(page.component);
    }
  }
}<commit_msg>fix keys<commit_after>/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" />

import {Component, ViewChild} from '@angular/core';
import {ionicBootstrap, Events, Platform, Nav, MenuController} from 'ionic-angular';
import {StatusBar, Splashscreen} from 'ionic-native';
import {ConferenceData} from './providers/conference-data';
import {UserData} from './providers/user-data';
import {AccountPage} from './pages/account/account';
import {TabsPage} from './pages/tabs/tabs';
import {LoginPage} from './pages/login/login';
import {SignupPage} from './pages/signup/signup';
import {TweetShare} from './providers/tweet-share';
import { SchedulePage } from './pages/schedule/schedule';
import { SpeakerListPage } from './pages/speaker-list/speaker-list';
import { AboutPage } from './pages/about/about';
import {SponsorsPage} from './pages/sponsors/sponsors';

import * as firebase from 'firebase';

interface PageObj {
  title: string;
  component: any;
  icon: string;
  index?: number;
}

@Component({
  templateUrl: 'build/app.html'
})
class ConferenceApp {
  // the root nav is a child of the root app component
  // @ViewChild(Nav) gets a reference to the app's root nav
  @ViewChild(Nav) nav: Nav;

  // List of pages that can be navigated to from the left menu

  appPages: PageObj[] = [
    { title: 'Schedule', component: TabsPage, icon: 'calendar' },
    { title: 'Speakers', component: TabsPage, icon: 'contacts' },
    { title: 'About', component: TabsPage, icon: 'information-circle' },
    { title: 'Sponsors', component: TabsPage, icon: 'ribbon' }
  ];

  rootPage: any = TabsPage;

  constructor(
    public events: Events,
    public userData: UserData,
    public menu: MenuController,
    platform: Platform,
    confData: ConferenceData
  ) {
    var config = {
      apiKey: "<KEY>",
      authDomain: "agile-africa-fa653.firebaseapp.com",
      databaseURL: "https://agile-africa-fa653.firebaseio.com",
      projectId: "agile-africa-fa653",
      storageBucket: "agile-africa-fa653.appspot.com",
      messagingSenderId: "816289217843"
    };

    firebase.initializeApp(config);

    // Call any initial plugins when ready
    platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide();
    });

    // load the conference data
    confData.load();


    this.menu.enable(true, 'mainmenu');

  }

  openPage(page: PageObj) {
    // the nav component was found using @ViewChild(Nav)
    // reset the nav to remove previous pages and only have this page
    // we wouldn't want the back button to show in this scenario
    if (page.index) {
      this.nav.setRoot(page.component, {tabIndex: page.index});

    } else {
      this.nav.setRoot(page.component);
    }
  }
}
{'fraction_non_alphanumeric': 0.13997431663914878, 'fraction_numerical': 0.009539534030453128, 'mean_word_length': 3.5853658536585367, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '4770364', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1698, 'n_words': 465}