<commit_before>import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { UserCreationService } from './user-creation.service';

@Component({
    selector: 'app-scrum-poker-user-creation',
    templateUrl: './user-creation.component.html'
})

export class UserCreationComponent implements OnDestroy, OnInit {
    private subscription: Subscription = new Subscription();
    public name: String = '';
    public password: String = '';

    constructor(private userCreationService: UserCreationService) {}

    ngOnInit(): void {

    }

    ngOnDestroy(): void {
        this.subscription.unsubscribe();
    }

    public createUser() {
        this.subscription.add(
            this.userCreationService
                .create(this.name, this.password)
                .subscribe(userId => {
                    console.log(`User Created with ID: ${userId}`);
                })
        );
    }
}<commit_msg>fixed unsubscribing of user creation<commit_after>import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { UserCreationService } from './user-creation.service';

@Component({
    selector: 'app-scrum-poker-user-creation',
    templateUrl: './user-creation.component.html'
})

export class UserCreationComponent implements OnDestroy, OnInit {
    private createSubscription: Subscription = new Subscription();
    public name: String = '';
    public password: String = '';

    constructor(private userCreationService: UserCreationService) {}

    ngOnInit(): void {

    }

    ngOnDestroy(): void {
        this.createSubscription.unsubscribe();
    }

    public createUser() {
            this.createSubscription = this.userCreationService
                .create(this.name, this.password)
                .subscribe(userId => {
                    console.log(`User Created with ID: ${userId}`);
                    this.createSubscription.unsubscribe();
                });
    }
}
{'fraction_non_alphanumeric': 0.11913000494315373, 'fraction_numerical': 0.0, 'mean_word_length': 2.7551020408163267, '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': '5998616', 'n_tokens_mistral': 531, 'n_tokens_neox': 518, 'n_words': 117}