<commit_before>import {Component, FORM_DIRECTIVES, View} from 'angular2/angular2';
import {RouteParams} from 'angular2/router';
import {Hero} from './hero';
import {HeroService} from './hero-service';

@Component({
  selector: 'my-hero-detail'
})
@View({
  templateUrl: 'app/hero-detail-component.html',
  styles: [`h2 { color: #444; font-weight: lighter; }
            input, button{font-family:inherit;} `],
  directives: [FORM_DIRECTIVES]
})
export class HeroDetailComponent {
  hero: Hero;

  constructor(private _heroService: HeroService, private _routeParams: RouteParams) {
    let id = +(_routeParams.get('id'));
    this._heroService.getHero(id).then(hero => this.hero = hero);
  }
}
<commit_msg>removed style cuz its now in global style sheet<commit_after>import {Component, FORM_DIRECTIVES, View} from 'angular2/angular2';
import {RouteParams} from 'angular2/router';
import {Hero} from './hero';
import {HeroService} from './hero-service';

@Component({
  selector: 'my-hero-detail'
})
@View({
  templateUrl: 'app/hero-detail-component.html',
  directives: [FORM_DIRECTIVES]
})
export class HeroDetailComponent {
  hero: Hero;

  constructor(private _heroService: HeroService, private _routeParams: RouteParams) {
    let id = +(_routeParams.get('id'));
    this._heroService.getHero(id).then(hero => this.hero = hero);
  }
}

{'fraction_non_alphanumeric': 0.15097159940209268, 'fraction_numerical': 0.007473841554559043, 'mean_word_length': 5.086363636363636, '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': '7369551', 'n_tokens_mistral': 436, 'n_tokens_neox': 432, 'n_words': 102}