<commit_before>import {Component, ViewEncapsulation} from 'angular2/core';
import {RouteConfig, RouterOutlet} from 'angular2/router';

import {AuthComponent} from './shared/auth/auth.component';
import {HeaderComponent}  from './header/header.component';
import {NavItemComponent} from './header/navitem.component';
import {NavUserComponent} from './header/navuser.component';
import {FooterComponent}  from './footer/footer.component';
import {LoginComponent} from './login/login.component';

import {HomeComponent} from './home/home.component';
import {UploadComponent} from './upload/upload.component';

@Component({
  directives: [
    RouterOutlet,
    AuthComponent,
    HeaderComponent,
    NavItemComponent,
    NavUserComponent,
    FooterComponent,
    LoginComponent
  ],
  selector: 'publish-app',
  encapsulation: ViewEncapsulation.None, // important!
  styleUrls: [
    'app/app.component.reset.css',
    'app/app.component.css',
    'app/app.component.forms.css',
    'app/app.component.layout.css',
    'app/app.component.loading.css'
  ],
  template: `
    <prx-auth>
      <logged-in>
        <publish-header>
          <nav-item route="Home" text="Home"></nav-item>
          <nav-item href="//www.prx.org/search/all" text="Search"></nav-item>
          <nav-user></nav-user>
        </publish-header>
        <main>
          <router-outlet></router-outlet>
        </main>
        <publish-footer></publish-footer>
      </logged-in>
      <logged-out>
        <publish-header></publish-header>
        <main><publish-login></publish-login></main>
        <publish-footer></publish-footer>
      </logged-out>
    </prx-auth>
    `<commit_msg>Temporarily add upload as a nav link<commit_after>import {Component, ViewEncapsulation} from 'angular2/core';
import {RouteConfig, RouterOutlet} from 'angular2/router';

import {AuthComponent} from './shared/auth/auth.component';
import {HeaderComponent}  from './header/header.component';
import {NavItemComponent} from './header/navitem.component';
import {NavUserComponent} from './header/navuser.component';
import {FooterComponent}  from './footer/footer.component';
import {LoginComponent} from './login/login.component';

import {HomeComponent} from './home/home.component';
import {UploadComponent} from './upload/upload.component';

@Component({
  directives: [
    RouterOutlet,
    AuthComponent,
    HeaderComponent,
    NavItemComponent,
    NavUserComponent,
    FooterComponent,
    LoginComponent
  ],
  selector: 'publish-app',
  encapsulation: ViewEncapsulation.None, // important!
  styleUrls: [
    'app/app.component.reset.css',
    'app/app.component.css',
    'app/app.component.forms.css',
    'app/app.component.layout.css',
    'app/app.component.loading.css'
  ],
  template: `
    <prx-auth>
      <logged-in>
        <publish-header>
          <nav-item route="Home" text="Home"></nav-item>
          <nav-item route="Upload" text="Upload"></nav-item>
          <nav-item href="//www.prx.org/search/all" text="Search"></nav-item>
          <nav-user></nav-user>
        </publish-header>
        <main>
          <router-outlet></router-outlet>
        </main>
        <publish-footer></publish-footer>
      </logged-in>
      <logged-out>
        <publish-header></publish-header>
        <main><publish-login></publish-login></main>
        <publish-footer></publish-footer>
      </logged-out>
    </prx-auth>
    `
{'fraction_non_alphanumeric': 0.1597303634232122, 'fraction_numerical': 0.0011723329425556857, 'mean_word_length': 3.147023086269745, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7445449', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1052, 'n_words': 179}