<commit_before>sylius_product_review_create:
    path: /reviews/new
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.product_review:createAction
        _sylius:
            template: 'frontend/product_review/create.html.twig'
            factory:
                method: createForSubject
                arguments: [$productId]
            redirect:
                route: sylius_product_review_update
                parameters: { productId: $productId, id: resource.id }
            
sylius_product_review_update:
    path: /reviews/{id}/update
    methods: [GET, PUT]
    defaults:
        _controller: sylius.controller.product_review:updateAction
        _sylius:
            template: 'frontend/product_review/update.html.twig'
            repository:
                method: findOneBy
                arguments: [{id: $id, author: expr:service('app.context.customer').getCustomer()}]
            redirect: referer
    options:
        expose: true

sylius_product_rating_create:
    path: /rating/new
    methods: [GET, POST]
    defaults:
        _format: json
        _controller: sylius.controller.product_review:createAction
        _sylius:<commit_msg>fix redirect on product review<commit_after>sylius_product_review_create:
    path: /reviews/new
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.product_review:createAction
        _sylius:
            template: 'frontend/product_review/create.html.twig'
            factory:
                method: createForSubject
                arguments: [$productId]
            redirect:
                route: sylius_product_show
                parameters: { slug: resource.reviewSubject.slug }
            
sylius_product_review_update:
    path: /reviews/{id}/update
    methods: [GET, PUT]
    defaults:
        _controller: sylius.controller.product_review:updateAction
        _sylius:
            template: 'frontend/product_review/update.html.twig'
            repository:
                method: findOneBy
                arguments: [{id: $id, author: expr:service('app.context.customer').getCustomer()}]
            redirect:
                route: sylius_product_show
                parameters: { slug: resource.reviewSubject.slug }
    options:
        expose: true

sylius_product_rating_create:
    path: /rating/new
    methods: [GET, POST]
    defaults:
        _format: json
        _controller: sylius.controller.product_review:createAction
        _sylius:
{'fraction_non_alphanumeric': 0.08467094703049759, 'fraction_numerical': 0.0, 'mean_word_length': 2.147727272727273, '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': '4618100', 'n_tokens_mistral': 710, 'n_tokens_neox': 691, 'n_words': 129}