<commit_before>#!/usr/bin/env python

import pytest

from circuits import handler, Event, Component

class Test(Event):
    """Test Event"""

class Base(Component):

    def test(self):
        return "Hello World!"

class App1(Base):

    def test(self):
        return "Foobar"

class App2(Base):

    @handler("test", override=True)
    def test(self):<commit_msg>set handler priority in heritance to make sure we get the results in the right harder<commit_after>#!/usr/bin/env python

import pytest

from circuits import handler, Event, Component

class Test(Event):
    """Test Event"""

class Base(Component):

    def test(self):
        return "Hello World!"

class App1(Base):

    @handler("test", priority=-1)
    def test(self):
        return "Foobar"

class App2(Base):

    @handler("test", override=True)
    def test(self):
{'fraction_non_alphanumeric': 0.1261904761904762, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 3.5956284153005464, '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': '4868029', 'n_tokens_mistral': 269, 'n_tokens_neox': 255, 'n_words': 82}