<commit_before>import {App, IonicApp, Config} from 'ionic/ionic';
import {ConferenceData} from './providers/conference-data';
import {UserData} from './providers/user-data';
import {TabsPage} from './tabs/tabs';
import {LoginPage} from './login/login';
import {SignupPage} from './signup/signup';
import {TutorialPage} from './tutorial/tutorial';


@App({
  templateUrl: 'app/app.html',
  providers: [ConferenceData, UserData]
})
class ConferenceApp {
  constructor(app: IonicApp, confData: ConferenceData, config: Config) {
    this.app = app;

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

    // We plan to add auth to only show the login page if not logged in
    this.root = TutorialPage;

    // create an list of pages that can be navigated to from the left menu
    // the left menu only works after login
    // the login page disables the left menu
    this.pages = [
      { title: 'Login', component: LoginPage, icon: 'log-in' },
      { title: 'Signup', component: SignupPage, icon: 'person-add' },
      { title: 'Logout', component: LoginPage, icon: 'log-out' },
    ];
  }

  openPage(page) {
    // find the nav component and set what the root page should be
    // reset the nav to remove previous pages and only have this page
    // we wouldn't want the back button to show in this scenario
    let nav = this.app.getComponent('nav');
    nav.setRoot(page.component).then(() => {
      // wait for the root page to be completely loaded
      // then close the menu
      this.app.getComponent('leftMenu').close();
    });
  }
}
<commit_msg>Set root back to Login<commit_after>import {App, IonicApp, Config} from 'ionic/ionic';
import {ConferenceData} from './providers/conference-data';
import {UserData} from './providers/user-data';
import {TabsPage} from './tabs/tabs';
import {LoginPage} from './login/login';
import {SignupPage} from './signup/signup';
import {TutorialPage} from './tutorial/tutorial';


@App({
  templateUrl: 'app/app.html',
  providers: [ConferenceData, UserData]
})
class ConferenceApp {
  constructor(app: IonicApp, confData: ConferenceData, config: Config) {
    this.app = app;

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

    // We plan to add auth to only show the login page if not logged in
    this.root = LoginPage;

    // create an list of pages that can be navigated to from the left menu
    // the left menu only works after login
    // the login page disables the left menu
    this.pages = [
      { title: 'Login', component: LoginPage, icon: 'log-in' },
      { title: 'Signup', component: SignupPage, icon: 'person-add' },
      { title: 'Logout', component: LoginPage, icon: 'log-out' },
    ];
  }

  openPage(page) {
    // find the nav component and set what the root page should be
    // reset the nav to remove previous pages and only have this page
    // we wouldn't want the back button to show in this scenario
    let nav = this.app.getComponent('nav');
    nav.setRoot(page.component).then(() => {
      // wait for the root page to be completely loaded
      // then close the menu
      this.app.getComponent('leftMenu').close();
    });
  }
}

{'fraction_non_alphanumeric': 0.12603437301082113, 'fraction_numerical': 0.0, 'mean_word_length': 3.1409749670619234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5061907', 'n_tokens_mistral': 946, 'n_tokens_neox': 925, 'n_words': 342}