<commit_before>class Counter(object):

    def __init__(self):
        self._count = 0

    def inc(self, n = 1):
        self._count += n

    def dec(self, n = 1):
        self._count -= n

    def get_count(self):
        return self._count

    def clear(self):
        self._count = 0
<commit_msg>docstring for counter<commit_after>class Counter(object):
    """
    A counter method that increments and decrements.
    """
    def __init__(self):
        """
        Create a new instance of a L{Counter}.
        """
        self._count = 0

    def inc(self, n = 1):
        """
        Increment the counter by I{n}.

        @type n: C{int}
        @param n: the amount to be incremented
        """
        self._count += n

    def dec(self, n = 1):
        """
        Decrement the counter by I{n}.

        @type n: C{int}
        @param n: the amount to be decrement
        """
        self._count -= n

    def get_count(self):
        """
        Returns the count

        @rtype: C{int}
        @return: the count
        """
        return self._count

    def clear(self):
        """
        Resets the count back to 0.
        """
        self._count = 0

{'fraction_non_alphanumeric': 0.11610169491525424, 'fraction_numerical': 0.007627118644067797, 'mean_word_length': 1.5343347639484979, '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': '6778364', 'n_tokens_mistral': 374, 'n_tokens_neox': 349, 'n_words': 112}