class MetricSummary:
    """Class for metrics of insight"""

    def __init__(
        self,
        metric=None,
        metric_level=None,
        metric_average=None,
        is_outlier=None,
        true_sign=None,
        sign=None,
        mark=None,
        unit=None,
        metric_name_frontend=None,
        mark_key=None,
        metric_name_frontend_key=None,
        unit_key=None,
    ):

        self.metric = metric
        self.metric_level = metric_level
        self.metric_average = metric_average
        self.is_outlier = is_outlier
        self.true_sign = true_sign
        self.sign = sign
        self.mark = mark
        self.unit = unit
        self.metric_name_frontend = metric_name_frontend
        self.mark_key = mark_key
        self.metric_name_frontend_key = metric_name_frontend_key
        self.unit_key = unit_key

    def calculate_sum_of_all_attributes(self):
        """Calculate sum of all numerical metrics"""

        sum = 0

        for key, val in self.__dict__.items():

            if isinstance(val, (int, float)):
                sum += val

        return sum

1d6a4ef84930b8763b4ae068e7fa86ccd464655e
class MetricSummary:
    <mask token>
    <mask token>
    <mask token>

class MetricSummary:
    <mask token>
    <mask token>

    def calculate_sum_of_all_attributes(self):
        """Calculate sum of all numerical metrics"""
        sum = 0
        for key, val in self.__dict__.items():
            if isinstance(val, (int, float)):
                sum += val
        return sum

class MetricSummary:
    <mask token>

    def __init__(self, metric=None, metric_level=None, metric_average=None,
        is_outlier=None, true_sign=None, sign=None, mark=None, unit=None,
        metric_name_frontend=None, mark_key=None, metric_name_frontend_key=
        None, unit_key=None):
        self.metric = metric
        self.metric_level = metric_level
        self.metric_average = metric_average
        self.is_outlier = is_outlier
        self.true_sign = true_sign
        self.sign = sign
        self.mark = mark
        self.unit = unit
        self.metric_name_frontend = metric_name_frontend
        self.mark_key = mark_key
        self.metric_name_frontend_key = metric_name_frontend_key
        self.unit_key = unit_key

    def calculate_sum_of_all_attributes(self):
        """Calculate sum of all numerical metrics"""
        sum = 0
        for key, val in self.__dict__.items():
            if isinstance(val, (int, float)):
                sum += val
        return sum

class MetricSummary:
    """Class for metrics of insight"""

    def __init__(self, metric=None, metric_level=None, metric_average=None,
        is_outlier=None, true_sign=None, sign=None, mark=None, unit=None,
        metric_name_frontend=None, mark_key=None, metric_name_frontend_key=
        None, unit_key=None):
        self.metric = metric
        self.metric_level = metric_level
        self.metric_average = metric_average
        self.is_outlier = is_outlier
        self.true_sign = true_sign
        self.sign = sign
        self.mark = mark
        self.unit = unit
        self.metric_name_frontend = metric_name_frontend
        self.mark_key = mark_key
        self.metric_name_frontend_key = metric_name_frontend_key
        self.unit_key = unit_key

    def calculate_sum_of_all_attributes(self):
        """Calculate sum of all numerical metrics"""
        sum = 0
        for key, val in self.__dict__.items():
            if isinstance(val, (int, float)):
                sum += val
        return sum

class MetricSummary:
    """Class for metrics of insight"""

    def __init__(
        self,
        metric=None,
        metric_level=None,
        metric_average=None,
        is_outlier=None,
        true_sign=None,
        sign=None,
        mark=None,
        unit=None,
        metric_name_frontend=None,
        mark_key=None,
        metric_name_frontend_key=None,
        unit_key=None,
    ):

        self.metric = metric
        self.metric_level = metric_level
        self.metric_average = metric_average
        self.is_outlier = is_outlier
        self.true_sign = true_sign
        self.sign = sign
        self.mark = mark
        self.unit = unit
        self.metric_name_frontend = metric_name_frontend
        self.mark_key = mark_key
        self.metric_name_frontend_key = metric_name_frontend_key
        self.unit_key = unit_key

    def calculate_sum_of_all_attributes(self):
        """Calculate sum of all numerical metrics"""

        sum = 0

        for key, val in self.__dict__.items():

            if isinstance(val, (int, float)):
                sum += val

        return sum
