<commit_before>__doc__ = u"""
__getattribute__ and __getattr__ special methods for a single class.

    >>> a = just_getattribute()
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError

    >>> a = just_getattr()
    >>> a.foo
    10
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError

    >>> a = both()
    >>> a.foo
    10
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError
"""

cdef class just_getattribute:
    def __getattribute__(self,n):
        if n == 'bar':
            return n
        else:
            raise AttributeError

cdef class just_getattr:
    cdef readonly int foo
    def __init__(self):
        self.foo = 10
    def __getattr__(self,n):
        if n == 'bar':
            return n
        else:
            raise AttributeError

cdef class both:
    cdef readonly int foo
    def __init__(self):
        self.foo = 10
    def __getattribute__(self,n):
        if n == 'foo':<commit_msg>test case cleanup<commit_after>__doc__ = u"""
__getattribute__ and __getattr__ special methods for a single class.
"""

cdef class just_getattribute:
    """
    >>> a = just_getattribute()
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError
    """
    def __getattribute__(self,n):
        if n == 'bar':
            return n
        else:
            raise AttributeError

cdef class just_getattr:
    """
    >>> a = just_getattr()
    >>> a.foo
    10
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError
    """
    cdef readonly int foo
    def __init__(self):
        self.foo = 10
    def __getattr__(self,n):
        if n == 'bar':
            return n
        else:
            raise AttributeError

cdef class both:
    """
    >>> a = both()
    >>> a.foo
    10
    >>> a.bar
    'bar'
    >>> a.invalid
    Traceback (most recent call last):
    AttributeError
    """
    cdef readonly int foo
    def __init__(self):
        self.foo = 10
    def __getattribute__(self,n):
        if n == 'foo':
{'fraction_non_alphanumeric': 0.11732101616628175, 'fraction_numerical': 0.007390300230946882, 'mean_word_length': 1.927027027027027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 69, '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': '5807375', 'n_tokens_mistral': 686, 'n_tokens_neox': 670, 'n_words': 197}