<commit_before>import {Component} from 'angular2/core';
import {HTTP_PROVIDERS} from 'angular2/http';

import {PizzaService} from '../services/pizza.service';

@Component({
    selector: 'pizza-app',
    providers: [PizzaService, HTTP_PROVIDERS],
    template: `
    <span>Anzahl an Pizzen: {{pizzas.length}}</span>
    `
})
export class PizzaAppComponent {
    public pizzas = [];

    constructor(private _pizzaService: PizzaService) {
        this._pizzaService.getPizza().subscribe(pizzas => this.pizzas = pizzas);
    }
}<commit_msg>use own loadData method instead calling http-service directly<commit_after>import {Component} from 'angular2/core';
import {HTTP_PROVIDERS} from 'angular2/http';

import {PizzaService} from '../services/pizza.service';

@Component({
    selector: 'pizza-app',
    providers: [PizzaService, HTTP_PROVIDERS],
    template: `
    <span>Anzahl an Pizzen: {{pizzas.length}}</span>
    `
})
export class PizzaAppComponent {
    public pizzas = [];

    constructor(private _pizzaService: PizzaService) {
        this.loadData();
    }
    
    loadData() {
        this._pizzaService.getPizza().subscribe(pizzas => this.pizzas = pizzas);
    }
}
{'fraction_non_alphanumeric': 0.13848768054375532, 'fraction_numerical': 0.0033984706881903144, 'mean_word_length': 3.970464135021097, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4654754', 'n_tokens_mistral': 387, 'n_tokens_neox': 381, 'n_words': 77}