<commit_before>﻿import {Replica} from './../models/replica';
import {ViewModel} from './viewmodel';

export class DeployedReplicaViewModel extends ViewModel<DeployedReplicaViewModel> {

    public elementHeight: number;

    public constructor(
        public selectedMetric: number,
        public selectedClass: string,
        public roleClass: string,
        public replica: Replica) {
        super(replica.partitionId + replica.id);
    }

    public copyFrom(other: DeployedReplicaViewModel): void {
        this.replica = other.replica;
        this.selectedMetric = other.selectedMetric;
        this.selectedClass = other.selectedClass;
    }
}<commit_msg>copying roleClass in deployed replica view model.<commit_after>﻿import {Replica} from './../models/replica';
import {ViewModel} from './viewmodel';

export class DeployedReplicaViewModel extends ViewModel<DeployedReplicaViewModel> {

    public elementHeight: number;

    public constructor(
        public selectedMetric: number,
        public selectedClass: string,
        public roleClass: string,
        public replica: Replica) {
        super(replica.partitionId + replica.id);
    }

    public copyFrom(other: DeployedReplicaViewModel): void {
        this.replica = other.replica;
        this.roleClass = other.roleClass;
        this.selectedMetric = other.selectedMetric;
        this.selectedClass = other.selectedClass;
    }
}
{'fraction_non_alphanumeric': 0.09277620396600567, 'fraction_numerical': 0.0, 'mean_word_length': 3.268882175226586, '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': '2974660', 'n_tokens_mistral': 384, 'n_tokens_neox': 387, 'n_words': 92}