<commit_before>import { Component, OnInit, AfterViewInit, ViewEncapsulation } from '@angular/core';
import { CORE_DIRECTIVES } from '@angular/common';

import { AuthService } from '../auth/services/auth.service';
import { FirebaseAuthService } from '../auth/services/firebaseauth.service';
import { ContentSwap } from './services/contentswap.service';
import { AuthModel } from '../auth/models/auth.model';
import { FirebaseUser } from '../auth/models/firebaseuser.model';

@Component({
    selector: 'dashboard',
    templateUrl: 'dashboard.component.html',
    styleUrls: ['dashboard.scss'],
    encapsulation: ViewEncapsulation.None,
    directives: [CORE_DIRECTIVES]
})
export class Dashboard implements OnInit {

    private _authModel:AuthModel;
    private _fbUser:FirebaseUser;
    private _content:String;

    // constructor
    constructor(private _authService:AuthService,
                private _contentSwapService:ContentSwap) {}

    // on-init
    ngOnInit() {
        // navigate if not authorized
        this._authService.navigate();
        // init vars
        this._authModel = {isAuthorized:this._authService.isUserAuthorized()};
        this._content = 'home';

        // subscribe to content swap
        this._contentSwapService.emitter$.subscribe((content) => {
          this._content = content;
        });
    }

}<commit_msg>remove unused<commit_after>import { Component, OnInit, AfterViewInit, ViewEncapsulation } from '@angular/core';
import { CORE_DIRECTIVES } from '@angular/common';

import { AuthService } from '../auth/services/auth.service';
import { FirebaseAuthService } from '../auth/services/firebaseauth.service';
import { ContentSwap } from './services/contentswap.service';
import { AuthModel } from '../auth/models/auth.model';

@Component({
    selector: 'dashboard',
    templateUrl: 'dashboard.component.html',
    styleUrls: ['dashboard.scss'],
    encapsulation: ViewEncapsulation.None,
    directives: [CORE_DIRECTIVES]
})
export class Dashboard implements OnInit {

    private _authModel:AuthModel;
    private _content:String;

    // constructor
    constructor(private _authService:AuthService,
                private _contentSwapService:ContentSwap) {}

    // on-init
    ngOnInit() {
        // navigate if not authorized
        this._authService.navigate();
        // init vars
        this._authModel = {isAuthorized:this._authService.isUserAuthorized()};
        this._content = 'home';

        // subscribe to content swap
        this._contentSwapService.emitter$.subscribe((content) => {
          this._content = content;
        });
    }

}
{'fraction_non_alphanumeric': 0.12270642201834862, 'fraction_numerical': 0.0, 'mean_word_length': 3.304276315789474, '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': '964834', 'n_tokens_mistral': 734, 'n_tokens_neox': 724, 'n_words': 151}