<commit_before>from Space import Space


class Figure(Space):

    def __init__(self, name, coordinate_system=None):
        super(Figure, self).__init__(name, coordinate_system=coordinate_system)

    def __str__(self):
        return 'Figure: ' + self.name<commit_msg>Added volume calculation for Figures.<commit_after>from Space import Space


class Figure(Space):

    def __init__(self, name, coordinate_system=None):
        super(Figure, self).__init__(name, coordinate_system=coordinate_system)

    def __str__(self):
        return 'Figure: ' + self.name

    def volume(self):
        """
        Calculates volume of the Figure.
        :return: Volume (float)
        """
        return 0.0

    def external_volume(self):
        """
        calculates volume of the outer shell of the Figure.
        For figures without voids and inner cavities returns the same value as volume function.
        :return: Volume float
        """
        return self.volume()
{'fraction_non_alphanumeric': 0.09034907597535935, 'fraction_numerical': 0.002053388090349076, 'mean_word_length': 2.8537549407114624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6504878', 'n_tokens_mistral': 266, 'n_tokens_neox': 253, 'n_words': 81}