<commit_before>import {
    Component,
    OnDestroy,
    ChangeDetectionStrategy,
    ChangeDetectorRef,
    AfterViewInit,
    ViewChild } from '@angular/core';
import { style, state, trigger, transition, animate, keyframes } from '@angular/animations';
import { Router } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/takeWhile';

import { MatSidenav } from '@angular/material';

import { ShoutService } from '../common/shout.service';

import { Store } from '@ngrx/store';
import * as app from '../app.store';
import {
    Person,
    Message,
    AuthService,
    SystemSettings,
    Interaction,
    SettingsState,
    SignOutAction,
    ContextButton,
    UpdateSettingAction,
    ClearSettingsMessageAction,
    ClearInteractionMessageAction,
    PersonClearMessageAction,
    LayoutSettings
} from 'mh-core';

@Component({
    selector: 'mh-view',
    templateUrl: './view.component.html',
    styleUrls: ['./view.component.scss'],
    animations: [
        trigger('drawer', [
            state('open', style({
                width: '220px'
            })),
            state('close',  style({
                width: '75px',
                flex: '1 1 75px;',
                'min-width': '75px',
                'max-width': '75px'
            }))
            /*transition('open <=> close', animate('300ms ease-in', keyframes([
                style({opacity: 0, transform: 'translateY(-75%)', offset: 0}),
                style({opacity: 1, transform: 'translateY(35px)',  offset: 0.5}),
                style({opacity: 1, transform: 'translateY(0)',     offset: 1.0})
            ])))*/
        ])
    ],
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class ViewComponent implements OnDestroy, AfterViewInit {
    private _alive: boolean = true;
    @ViewChild('sidenav')
    private _sidenav: MatSidenav;
    private _layout: LayoutSettings;

    routes: Object[] = [
        {
            title: 'Dashboard', route: '/dashboard', icon: 'dashboard'
        },
        {
            title: 'People', route: '/person', icon: 'people'
        },
        /* {
            title: 'Events', route: '', icon: 'today'
        },
        {
            title: 'Groups', route: '', icon: 'people_outline'
        },*/
        {
            title: 'Settings', route: '/settings', icon: 'build'<commit_msg>part of #79<commit_after>import {
    Component,
    OnDestroy,
    ChangeDetectionStrategy,
    ChangeDetectorRef,
    AfterViewInit,
    ViewChild } from '@angular/core';
import { style, state, trigger, transition, animate, keyframes } from '@angular/animations';
import { Router } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/takeWhile';

import { MatSidenav } from '@angular/material';

import { ShoutService } from '../common/shout.service';

import { Store } from '@ngrx/store';
import * as app from '../app.store';
import {
    Person,
    Message,
    AuthService,
    SystemSettings,
    Interaction,
    SettingsState,
    SignOutAction,
    ContextButton,
    UpdateSettingAction,
    ClearSettingsMessageAction,
    ClearInteractionMessageAction,
    PersonClearMessageAction,
    LayoutSettings
} from 'mh-core';

@Component({
    selector: 'mh-view',
    templateUrl: './view.component.html',
    styleUrls: ['./view.component.scss'],
    animations: [
        trigger('drawer', [
            state('open', style({
                width: '220px'
            })),
            state('close',  style({
                width: '75px',
                flex: '1 1 75px;',
                'min-width': '75px',
                'max-width': '75px'
            }))
            /*transition('open <=> close', animate('300ms ease-in', keyframes([
                style({opacity: 0, transform: 'translateY(-75%)', offset: 0}),
                style({opacity: 1, transform: 'translateY(35px)',  offset: 0.5}),
                style({opacity: 1, transform: 'translateY(0)',     offset: 1.0})
            ])))*/
        ])
    ],
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class ViewComponent implements OnDestroy, AfterViewInit {
    private _alive: boolean = true;
    @ViewChild('sidenav')
    private _sidenav: MatSidenav;
    private _layout: LayoutSettings;

    routes: Object[] = [
        {
            title: 'Dashboard', route: '/dashboard', icon: 'dashboard'
        },
        {
            title: 'People', route: '/person', icon: 'people'
        },
        {
            title: 'Interactions', route: '/interaction', icon: 'forum'
        },
        /* {
            title: 'Events', route: '', icon: 'today'
        },
        {
            title: 'Groups', route: '', icon: 'people_outline'
        },*/
        {
            title: 'Settings', route: '/settings', icon: 'build'
{'fraction_non_alphanumeric': 0.14477766287487073, 'fraction_numerical': 0.012409513960703205, 'mean_word_length': 2.2675675675675677, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3091008', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1380, 'n_words': 323}