<commit_before>import {Component, OnInit, ViewChild} from '@angular/core';
import {NgForm} from '@angular/forms';
import {ActivatedRoute, ParamMap} from '@angular/router';
import {FormGroupDto} from '../../../shared/model-utils/form-group-dto.model';
import {SnackbarControl, SnackbarLevel} from '../../../shared/obj-ds/snackbar/snackbar-control';
import {PageSpinner} from '../../../core/page-spinner/page-spinner';
import {HttpErrorResponse} from '@angular/common/http';
import {SelectFieldAsyncSearchDto} from '../../../shared/model-utils/select-field-async-search-dto.model';
import {TeamDto} from '../team-dto.model';
import {TeamService} from './team.service';
import {ComponentLeaveConfirmation} from '../../../shared/form-utils/leave-confirmation/guard/component-leave-confirmation';


@Component({
    selector: 'tb-team',
    templateUrl: './team.component.html',
    styleUrls: ['./team.component.scss'],
    host: {
        class: 'tb-fixed-page'
    }
})
export class TeamComponent extends ComponentLeaveConfirmation implements OnInit {

    @ViewChild('teamForm') form: NgForm;

    private nextTeamGroupId: number;

    snackbar = new SnackbarControl();

    teamName: string;
    team: TeamDto;
    filterMembersByName: string;
    newMembers: NewTeamMemberRow[];

    managerAsyncSearch: SelectFieldAsyncSearchDto;

    constructor(
        private route: ActivatedRoute,
        private pageLoader: PageSpinner,
        private teamService: TeamService
    ) {
        super();
    }

    ngOnInit() {
        this.route.paramMap.subscribe((params: ParamMap) => {
            this.teamName = params.get('teamName');
            this.refreshPage();<commit_msg>[TOOLS-773] Fix: Team page without members<commit_after>import {Component, OnInit, ViewChild} from '@angular/core';
import {NgForm} from '@angular/forms';
import {ActivatedRoute, ParamMap} from '@angular/router';
import {FormGroupDto} from '../../../shared/model-utils/form-group-dto.model';
import {SnackbarControl, SnackbarLevel} from '../../../shared/obj-ds/snackbar/snackbar-control';
import {PageSpinner} from '../../../core/page-spinner/page-spinner';
import {HttpErrorResponse} from '@angular/common/http';
import {SelectFieldAsyncSearchDto} from '../../../shared/model-utils/select-field-async-search-dto.model';
import {TeamDto} from '../team-dto.model';
import {TeamService} from './team.service';
import {ComponentLeaveConfirmation} from '../../../shared/form-utils/leave-confirmation/guard/component-leave-confirmation';


@Component({
    selector: 'tb-team',
    templateUrl: './team.component.html',
    styleUrls: ['./team.component.scss'],
    host: {
        class: 'tb-fixed-page'
    }
})
export class TeamComponent extends ComponentLeaveConfirmation implements OnInit {

    @ViewChild('teamForm') form: NgForm;

    private nextTeamGroupId: number;

    snackbar = new SnackbarControl();

    teamName: string;
    team: TeamDto;
    filterMembersByName: string = '';
    newMembers: NewTeamMemberRow[];

    managerAsyncSearch: SelectFieldAsyncSearchDto;

    constructor(
        private route: ActivatedRoute,
        private pageLoader: PageSpinner,
        private teamService: TeamService
    ) {
        super();
    }

    ngOnInit() {
        this.route.paramMap.subscribe((params: ParamMap) => {
            this.teamName = params.get('teamName');
            this.refreshPage();
{'fraction_non_alphanumeric': 0.15200708382526565, 'fraction_numerical': 0.0008854781582054309, 'mean_word_length': 3.5612382234185733, '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': '5136216', 'n_tokens_mistral': 992, 'n_tokens_neox': 1001, 'n_words': 206}