<commit_before>services:
    phlexible_tree.node_url_generator.language:
        class: Phlexible\Bundle\TreeBundle\NodeUrlGenerator\LanguageNodeUrlGenerator
        arguments:
            - "@phlexible_tree.content_tree_manager"
            - "@router"

    phlexible_tree.pattern_resolver:
        class: Phlexible\Bundle\TreeBundle\Pattern\PatternResolver
        arguments:
            - "@translator"
            - "%phlexible_tree.patterns%"
            - "%phlexible_gui.project.title%"

    phlexible_tree.tree_manager:
        class: Phlexible\Bundle\TreeBundle\Tree\TreeManager
        arguments:
            - "@phlexible_siteroot.siteroot_manager"
            - "@phlexible_tree.tree_factory"

    phlexible_tree.node_serializer:
        class: Phlexible\Bundle\TreeBundle\Tree\Serializer\NodeSerializer
        arguments:
            - "@phlexible_element.element_service"
            - "@phlexible_element.icon_resolver"
            - "@phlexible_tree.state_manager"
            - "@phlexible_access_control.permission_registry"
            - "@phlexible_access_control.access_manager"
            - "@security.authorization_checker"

    phlexible_tree.router.handler.default:
        class: Phlexible\Bundle\TreeBundle\Router\Handler\DefaultHandler
        arguments:
            - "@logger"
            - "@phlexible_tree.content_tree_manager"
            - "@phlexible_siteroot.siteroot_request_matcher"
            - "@phlexible_siteroot.siteroot_hostname_generator"
            - "%phlexible_cms.languages.available%"
            - "%phlexible_cms.languages.default%"
        tags:
            - {name: monolog.logger, channel: router}

    phlexible_tree.router:
        class: Phlexible\Bundle\TreeBundle\Router\TreeRouter
        arguments:
            - "@router.request_context"
            - "@phlexible_tree.router.handler"
            - "@phlexible_tree.router.handler"
            - ""
            - "@event_dispatcher"
        tags:
            - {name: monolog.logger, channel: router}
            - {name: router, priority: 100}

    phlexible_tree.node_hasher:
        class: Phlexible\Bundle\TreeBundle\Tree\NodeHasher
        arguments:
            - "@phlexible_element.element_hasher"

    phlexible_tree.node_sorter:
        class: Phlexible\Bundle\TreeBundle\Tree\NodeSorter
        arguments:
            - "@doctrine.dbal.default_connection"
            - de

    # access control permission providers
    phlexible_tree.permission_provider:
        class: Phlexible\Bundle\TreeBundle\AccessControl\TreePermissionProvider
        public: false
        tags:
            - {name: phlexible_access_control.permission}

    # event listeners
    phlexible_tree.listener.apply_successor:
        class: Phlexible\Bundle\TreeBundle\EventListener\ApplySuccessorListener
        arguments:
            - "@doctrine.dbal.default_connection"
        tags:
            - {name: kernel.event_listener, event: phlexible_user.apply_successor, method: onApplySuccessor}

    phlexible_tree.listener.response:
        class: Phlexible\Bundle\TreeBundle\EventListener\ResponseListener
        arguments:
            - "@router"
            - "@phlexible_tree.content_tree_manager"
        tags:
            - {name: kernel.event_listener, event: kernel.response, method: onResponse}

    phlexible_tree.listener.exception:
        class: Phlexible\Bundle\TreeBundle\EventListener\ExceptionListener
        arguments:
            - "@twig"
            - "@phlexible_element_renderer.configurator"
            - "@phlexible_tree.content_tree_manager"
            - "@logger"
            - "%kernel.debug%"
        tags:
            - {name: kernel.event_listener, event: kernel.exception, method: onKernelException, priority: 700}
<commit_msg>fix tree exception listener priority<commit_after>services:
    phlexible_tree.node_url_generator.language:
        class: Phlexible\Bundle\TreeBundle\NodeUrlGenerator\LanguageNodeUrlGenerator
        arguments:
            - "@phlexible_tree.content_tree_manager"
            - "@router"

    phlexible_tree.pattern_resolver:
        class: Phlexible\Bundle\TreeBundle\Pattern\PatternResolver
        arguments:
            - "@translator"
            - "%phlexible_tree.patterns%"
            - "%phlexible_gui.project.title%"

    phlexible_tree.tree_manager:
        class: Phlexible\Bundle\TreeBundle\Tree\TreeManager
        arguments:
            - "@phlexible_siteroot.siteroot_manager"
            - "@phlexible_tree.tree_factory"

    phlexible_tree.node_serializer:
        class: Phlexible\Bundle\TreeBundle\Tree\Serializer\NodeSerializer
        arguments:
            - "@phlexible_element.element_service"
            - "@phlexible_element.icon_resolver"
            - "@phlexible_tree.state_manager"
            - "@phlexible_access_control.permission_registry"
            - "@phlexible_access_control.access_manager"
            - "@security.authorization_checker"

    phlexible_tree.router.handler.default:
        class: Phlexible\Bundle\TreeBundle\Router\Handler\DefaultHandler
        arguments:
            - "@logger"
            - "@phlexible_tree.content_tree_manager"
            - "@phlexible_siteroot.siteroot_request_matcher"
            - "@phlexible_siteroot.siteroot_hostname_generator"
            - "%phlexible_cms.languages.available%"
            - "%phlexible_cms.languages.default%"
        tags:
            - {name: monolog.logger, channel: router}

    phlexible_tree.router:
        class: Phlexible\Bundle\TreeBundle\Router\TreeRouter
        arguments:
            - "@router.request_context"
            - "@phlexible_tree.router.handler"
            - "@phlexible_tree.router.handler"
            - ""
            - "@event_dispatcher"
        tags:
            - {name: monolog.logger, channel: router}
            - {name: router, priority: 100}

    phlexible_tree.node_hasher:
        class: Phlexible\Bundle\TreeBundle\Tree\NodeHasher
        arguments:
            - "@phlexible_element.element_hasher"

    phlexible_tree.node_sorter:
        class: Phlexible\Bundle\TreeBundle\Tree\NodeSorter
        arguments:
            - "@doctrine.dbal.default_connection"
            - de

    # access control permission providers
    phlexible_tree.permission_provider:
        class: Phlexible\Bundle\TreeBundle\AccessControl\TreePermissionProvider
        public: false
        tags:
            - {name: phlexible_access_control.permission}

    # event listeners
    phlexible_tree.listener.apply_successor:
        class: Phlexible\Bundle\TreeBundle\EventListener\ApplySuccessorListener
        arguments:
            - "@doctrine.dbal.default_connection"
        tags:
            - {name: kernel.event_listener, event: phlexible_user.apply_successor, method: onApplySuccessor}

    phlexible_tree.listener.response:
        class: Phlexible\Bundle\TreeBundle\EventListener\ResponseListener
        arguments:
            - "@router"
            - "@phlexible_tree.content_tree_manager"
        tags:
            - {name: kernel.event_listener, event: kernel.response, method: onResponse}

    phlexible_tree.listener.exception:
        class: Phlexible\Bundle\TreeBundle\EventListener\ExceptionListener
        arguments:
            - "@twig"
            - "@phlexible_element_renderer.configurator"
            - "@phlexible_tree.content_tree_manager"
            - "@logger"
            - "%kernel.debug%"
        tags:
            - {name: kernel.event_listener, event: kernel.exception, method: onKernelException, priority: -64}

{'fraction_non_alphanumeric': 0.09199205823957644, 'fraction_numerical': 0.001455989410986102, 'mean_word_length': 2.311130587204207, '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': '1888572', 'n_tokens_mistral': 2154, 'n_tokens_neox': 2111, 'n_words': 264}