<commit_before>services:

    #
    # Event Listeners
    #
    elcodi.event_listener.cart_coupon.refresh_coupons:
        class: Elcodi\Component\CartCoupon\EventListener\RefreshCouponsListener
        arguments:
            - @elcodi.manager.coupon
            - @elcodi.manager.cart_coupon
            - @elcodi.wrapper.currency
            - @elcodi.converter.currency
            - @elcodi.event_dispatcher.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: refreshCartCoupons, priority: 0 }
            - { name: kernel.event_listener, event: cart.onload, method: refreshCouponAmount, priority: -32 }

    elcodi.event_listener.cart_coupon.automatic_coupons:
        class: Elcodi\Component\CartCoupon\EventListener\AutomaticCouponApplicatorListener
        arguments:
            - @elcodi.manager.cart_coupon
            - @elcodi.repository.coupon
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: tryAutomaticCoupons, priority: -16 }

    elcodi.event_listener.cart_coupon.avoid_coupon_duplicates:
        class: Elcodi\Component\CartCoupon\EventListener\AvoidDuplicatesListener
        arguments:
            - @elcodi.repository.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: checkDuplicates, priority: 16 }

    elcodi.event_listener.cart_coupon.cart_coupon_checker:
        class: Elcodi\Component\CartCoupon\EventListener\CheckCartCouponListener
        arguments:
            - @elcodi.event_dispatcher.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: checkCoupon, priority: 16 }

    elcodi.event_listener.cart_coupon.cart_coupon_manager:
        class: Elcodi\Component\CartCoupon\EventListener\CartCouponManagerListener
        arguments:
            - @elcodi.object_manager.cart_coupon
            - @elcodi.factory.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: onCartCouponApply, priority: 0 }
            - { name: kernel.event_listener, event: cart_coupon.onremove, method: onCartCouponRemove, priority: 0 }

    elcodi.event_listener.cart_coupon.coupon_checker:
        class: Elcodi\Component\CartCoupon\EventListener\CheckCouponListener
        arguments:
            - @elcodi.manager.coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkCoupon, priority: 32 }

    elcodi.event_listener.cart_coupon.check_minimum_price:
        class: Elcodi\Component\CartCoupon\EventListener\MinimumPriceCouponListener
        arguments:
            - @elcodi.converter.currency
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkMinimumPrice, priority: 0 }

    elcodi.event_listener.cart_coupon.check_rules:
        class: Elcodi\Component\CartCoupon\EventListener\CheckRulesListener
        arguments:
            - @elcodi.manager.cart_coupon_rule
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkCoupon, priority: -16 }

    elcodi.event_listener.cart_coupon.convert_to_order:
        class: Elcodi\Component\CartCoupon\EventListener\ConvertToOrderCouponsListener
        arguments:
            - @elcodi.event_dispatcher.order_coupon
            - @elcodi.manager.cart_coupon
            - @elcodi.manager.order_coupon
            - @elcodi.object_manager.order_coupon
        tags:
            - { name: kernel.event_listener, event: order.oncreated, method: convertCouponToOrder, priority: -16 }

    elcodi.event_listener.cart_coupon.order_coupon_manager:
        class: Elcodi\Component\CartCoupon\Services\OrderCouponManager
        arguments:
            - @elcodi.object_manager.order_coupon
            - @elcodi.event_dispatcher.coupon
            - @elcodi.factory.order_coupon
        tags:
            - { name: kernel.event_listener, event: order_coupon.onapply, method: convertToOrderCoupons, priority: 0 }
<commit_msg>Fixed service definition<commit_after>services:

    #
    # Event Listeners
    #
    elcodi.event_listener.cart_coupon.refresh_coupons:
        class: Elcodi\Component\CartCoupon\EventListener\RefreshCouponsListener
        arguments:
            - @elcodi.manager.coupon
            - @elcodi.manager.cart_coupon
            - @elcodi.wrapper.currency
            - @elcodi.converter.currency
            - @elcodi.event_dispatcher.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: refreshCartCoupons, priority: 0 }
            - { name: kernel.event_listener, event: cart.onload, method: refreshCouponAmount, priority: -32 }

    elcodi.event_listener.cart_coupon.automatic_coupons:
        class: Elcodi\Component\CartCoupon\EventListener\AutomaticCouponApplicatorListener
        arguments:
            - @elcodi.manager.cart_coupon
            - @elcodi.repository.coupon
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: tryAutomaticCoupons, priority: -16 }

    elcodi.event_listener.cart_coupon.avoid_coupon_duplicates:
        class: Elcodi\Component\CartCoupon\EventListener\AvoidDuplicatesListener
        arguments:
            - @elcodi.repository.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: checkDuplicates, priority: 16 }

    elcodi.event_listener.cart_coupon.cart_coupon_checker:
        class: Elcodi\Component\CartCoupon\EventListener\CheckCartCouponListener
        arguments:
            - @elcodi.event_dispatcher.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: checkCoupon, priority: 16 }

    elcodi.event_listener.cart_coupon.cart_coupon_manager:
        class: Elcodi\Component\CartCoupon\EventListener\CartCouponManagerListener
        arguments:
            - @elcodi.object_manager.cart_coupon
            - @elcodi.factory.cart_coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: onCartCouponApply, priority: 0 }
            - { name: kernel.event_listener, event: cart_coupon.onremove, method: onCartCouponRemove, priority: 0 }

    elcodi.event_listener.cart_coupon.coupon_checker:
        class: Elcodi\Component\CartCoupon\EventListener\CheckCouponListener
        arguments:
            - @elcodi.manager.coupon
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkCoupon, priority: 32 }

    elcodi.event_listener.cart_coupon.check_minimum_price:
        class: Elcodi\Component\CartCoupon\EventListener\MinimumPriceCouponListener
        arguments:
            - @elcodi.converter.currency
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkMinimumPrice, priority: 0 }

    elcodi.event_listener.cart_coupon.check_rules:
        class: Elcodi\Component\CartCoupon\EventListener\CheckRulesListener
        arguments:
            - @elcodi.manager.cart_coupon_rule
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: checkCoupon, priority: -16 }

    elcodi.event_listener.cart_coupon.convert_to_order:
        class: Elcodi\Component\CartCoupon\EventListener\ConvertToOrderCouponsListener
        arguments:
            - @elcodi.event_dispatcher.order_coupon
            - @elcodi.manager.cart_coupon
            - @elcodi.manager.order_coupon
            - @elcodi.object_manager.order_coupon
        tags:
            - { name: kernel.event_listener, event: order.oncreated, method: convertCouponToOrder, priority: -16 }

    elcodi.event_listener.cart_coupon.order_coupon_manager:
        class: Elcodi\Component\CartCoupon\EventListener\OrderCouponManagerListener
        arguments:
            - @elcodi.object_manager.order_coupon
            - @elcodi.event_dispatcher.coupon
            - @elcodi.factory.order_coupon
        tags:
            - { name: kernel.event_listener, event: order_coupon.onapply, method: convertToOrderCoupons, priority: 0 }

{'fraction_non_alphanumeric': 0.0854763654175851, 'fraction_numerical': 0.004653441097232427, 'mean_word_length': 2.703854875283447, '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': '1794035', 'n_tokens_mistral': 2548, 'n_tokens_neox': 2573, 'n_words': 342}