<commit_before>import numpy
from fir_filter import firFilter


class MA(firFilter):
    r"""
    Class representing movin average smoothing filter.
    """

    def __init__(self, step=3):
        r"""
        Initialize new instance of this class with given step.

        :param step: step of moving average. Should be odd and greater than 1.

        :type step: integer.
        """

        self.step = step

    @property
    def step(self):
        r"""
        Get step of this moving average filter.

        :return: step.

        :rtype: integer.
        """
        return len(self)

    @step.setter
    def step(self, value):
        r"""
        Set step of this moving average filter.

        :param value: new value of step. Should be odd and greater than 1.

        :type value: integer.<commit_msg>Fixed bug with MA.step property in asc.fir_filters.MA. It's now not trying to access self's length (which doesn't exist).<commit_after>import numpy
from fir_filter import firFilter


class MA(firFilter):
    r"""
    Class representing movin average smoothing filter.
    """

    def __init__(self, step=3):
        r"""
        Initialize new instance of this class with given step.

        :param step: step of moving average. Should be odd and greater than 1.

        :type step: integer.
        """

        self.step = step

    @property
    def step(self):
        r"""
        Get step of this moving average filter.

        :return: step.

        :rtype: integer.
        """
        return len(self._firFilter__ir)

    @step.setter
    def step(self, value):
        r"""
        Set step of this moving average filter.

        :param value: new value of step. Should be odd and greater than 1.

        :type value: integer.
{'fraction_non_alphanumeric': 0.08564946114577425, 'fraction_numerical': 0.003403289846851957, 'mean_word_length': 2.0205479452054793, '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': '6021445', 'n_tokens_mistral': 503, 'n_tokens_neox': 471, 'n_words': 198}