<commit_before>import {Component} from 'angular2/core';
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';

@Component({
  selector: 'header',
  directives: [ROUTER_DIRECTIVES],
  template: `<div class="navbar-header">
                <h1>Personal Trainer</h1>
             </div>
             <ul class="nav navbar-nav navbar-right">
                <li><a [routerLink]="['History']" title="Workout History">History</a></li>
             </ul>`
})
export class Header {}<commit_msg>Hiding the history link for workout page.<commit_after>import {Component} from 'angular2/core';
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';

@Component({
  selector: 'header',
  directives: [ROUTER_DIRECTIVES],
  template: `<div class="navbar-header">
                <h1>Personal Trainer</h1>
             </div>
             <ul class="nav navbar-nav navbar-right">
                <li *ngIf="showHistoryLink"><a [routerLink]="['History']" title="Workout History">History</a></li>
             </ul>`
})
export class Header {
  showHistoryLink: boolean;
  private _subscription: any;
  constructor(private _router: Router) {
    this._subscription = this._router.subscribe((data: any) => {
      this.showHistoryLink = data != 'workout';
    });
  }
}
{'fraction_non_alphanumeric': 0.15488482922954727, 'fraction_numerical': 0.006354249404289118, 'mean_word_length': 3.2, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, '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': '1350024', 'n_tokens_mistral': 395, 'n_tokens_neox': 386, 'n_words': 85}