<commit_before>import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
    template: `<div class="col-md-6 col-md-offset-3">
    <h2>Register</h2>
</div>`
})

export class RegisterComponent {
    model: any = {};

    constructor(
        private router: Router
    ) {}

    register() {
        // TODO:
    }<commit_msg>fix register component template<commit_after>import { Component } from '@angular/core';
import { Router } from '@angular/router';

import { User } from '.././models/user';
import { UserService } from '.././services/user.service';

@Component({
    templateUrl: 'register.component.html'
})

export class RegisterComponent {
    model: any = {};

    constructor(
        private router: Router,
        private userService: UserService
    ) {}

    register() {
       this.userService.createUser(this.model)
       .subscribe(
           data => {
               this.router.navigate(['/login']);
           },
           error => {
               console.log(error);
           }
       )
    } 
{'fraction_non_alphanumeric': 0.14943609022556392, 'fraction_numerical': 0.0037593984962406013, 'mean_word_length': 2.256880733944954, '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': '6626363', 'n_tokens_mistral': 307, 'n_tokens_neox': 300, 'n_words': 67}