<commit_before>import { Component, OnInit } from '@angular/core';
import { AuthService } from './shared/security/auth.service';
import { NotificationsService } from './shared/model/notifications.service';
import { UserService, UserStatus } from './shared/model/user.service';

declare const componentHandler;

@Component({
	selector: 'app-root',
	templateUrl: './app.component.html',
	styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {

	constructor (private authService: AuthService, private notificationsService: NotificationsService, private userService: UserService) { }

	ngOnInit() {
		this.notificationsService.init();
		this.authService.auth$.subscribe(val => {
			if (val) {
				this.userService.uid = val.uid;
				this.userService.changeStatus(UserStatus.ONLINE);
			} else {
				if (this.userService.uid) {
					this.userService.changeStatus(UserStatus.OFFLINE);
				}<commit_msg>Fix navbar login/logout, get rid of test component from router<commit_after>import { Component, OnInit } from '@angular/core';
import { FirebaseAuthState } from 'angularfire2';

import { AuthService } from './shared/security/auth.service';
import { NotificationsService } from './shared/model/notifications.service';
import { UserService, UserStatus } from './shared/model/user.service';

declare const componentHandler;

@Component({
	selector: 'app-root',
	templateUrl: './app.component.html',
	styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {

	authInfo: FirebaseAuthState;

	constructor (private authService: AuthService, private notificationsService: NotificationsService, private userService: UserService) { }

	ngOnInit() {
		this.notificationsService.init();
		this.authService.auth$.subscribe(val => {
			this.authInfo = val;
			if (val) {
				this.userService.uid = val.uid;
				this.userService.changeStatus(UserStatus.ONLINE);
			} else {
				if (this.userService.uid) {
					this.userService.changeStatus(UserStatus.OFFLINE);
				}
{'fraction_non_alphanumeric': 0.12967581047381546, 'fraction_numerical': 0.0004987531172069825, 'mean_word_length': 4.882697947214076, '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': '3067420', 'n_tokens_mistral': 632, 'n_tokens_neox': 577, 'n_words': 127}