<commit_before>class UpdateEffect(object):
    pass


class ReadEffect(object):
    pass


class Intrinsic:
    def __init__(self, argument_effects=(UpdateEffect(),) * 11,
            global_effects=True):
        self.argument_effects = argument_effects
        self.global_effects = global_effects

    def isscalar(self):
        return False

    def isfunction(self):
        return False

    def isstaticfunction(self):
        return False

    def ismethod(self):
        return False

    def isattribute(self):
        return False

    def isconst(self):
        return any(isinstance(x, UpdateEffect) for x in self.argument_effects)


class FunctionIntr(Intrinsic):
    def __init__(self, argument_effects=(UpdateEffect(),) * 11,
            global_effects=False):
        Intrinsic.__init__(self, argument_effects, global_effects)

    def isfunction(self):
        return True

    def isstaticfunction(self):
        return True


class ConstFunctionIntr(FunctionIntr):
    def __init__(self):
        FunctionIntr.__init__(self, argument_effects=())


class MethodIntr(FunctionIntr):
    def __init__(self, *combiners):
        FunctionIntr.__init__(self)
        self.combiners = combiners

    def add_combiner(self, _combiner):
        self.combiners += (_combiner,)

    def combiner(self, s, node):
        for comb in self.combiners:
            comb(s, node)

    def ismethod(self):
        return True

    def isstaticfunction(self):
        return False

<commit_msg>Fix default behavior of the method intrinsic.<commit_after>class UpdateEffect(object):
    pass


class ReadEffect(object):
    pass


class Intrinsic:
    def __init__(self, argument_effects=(UpdateEffect(),) * 11,
            global_effects=True):
        self.argument_effects = argument_effects
        self.global_effects = global_effects

    def isscalar(self):
        return False

    def isfunction(self):
        return False

    def isstaticfunction(self):
        return False

    def ismethod(self):
        return False

    def isattribute(self):
        return False

    def isconst(self):
        return any(isinstance(x, UpdateEffect) for x in self.argument_effects)


class FunctionIntr(Intrinsic):
    def __init__(self, argument_effects=(UpdateEffect(),) * 11,
            global_effects=False):
        Intrinsic.__init__(self, argument_effects, global_effects)

    def isfunction(self):
        return True

    def isstaticfunction(self):
        return True


class ConstFunctionIntr(FunctionIntr):
    def __init__(self):
        FunctionIntr.__init__(self, argument_effects=())


class MethodIntr(FunctionIntr):
    def __init__(self, *combiners):
        FunctionIntr.__init__(self, (UpdateEffect(),) + (ReadEffect(),) * 10)
        self.combiners = combiners

    def add_combiner(self, _combiner):
        self.combiners += (_combiner,)

    def combiner(self, s, node):
        for comb in self.combiners:
            comb(s, node)

    def ismethod(self):
        return True

    def isstaticfunction(self):
        return False


{'fraction_non_alphanumeric': 0.08942558746736293, 'fraction_numerical': 0.0032637075718015664, 'mean_word_length': 2.8553459119496853, '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': '4079220', 'n_tokens_mistral': 932, 'n_tokens_neox': 829, 'n_words': 211}