<commit_before>import {Component} from 'angular2/core';
import {NgFor} from 'angular2/common';
import {RouteParams} from 'angular2/router';

import {UserService} from '../../../services/users/user-service';


@Component({
    selector: 'users-list',
    templateUrl: './components/users/user-details/user-details.html',
    providers: [UserService],
    directives: [NgFor]
})
export class UserDetailsComponent {
    public user = {};
    public user_id;

    constructor(public user_service:UserService, params: RouteParams) {
        this.user_id = params.get('id');
        this.getUser(params.get('id'));
    };

    getUser(id: string) {
        this.user_service.getUser(id)
            .subscribe(res => this.user = res.json());
    }
}
<commit_msg>Remove useless variable<commit_after>import {Component} from 'angular2/core';
import {NgFor} from 'angular2/common';
import {RouteParams} from 'angular2/router';

import {UserService} from '../../../services/users/user-service';


@Component({
    selector: 'users-list',
    templateUrl: './components/users/user-details/user-details.html',
    providers: [UserService],
    directives: [NgFor]
})
export class UserDetailsComponent {
    public user = {};

    constructor(public user_service:UserService, params: RouteParams) {
        this.getUser(params.get('id'));
    };

    getUser(id: string) {
        this.user_service.getUser(id)
            .subscribe(res => this.user = res.json());
    }
}

{'fraction_non_alphanumeric': 0.1567419575633128, 'fraction_numerical': 0.004106776180698152, 'mean_word_length': 3.4846625766871164, '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': '819206', 'n_tokens_mistral': 448, 'n_tokens_neox': 445, 'n_words': 88}