<commit_before>sylius_admin_product:
    resource: |
        alias: sylius.product
        section: admin
        templates: :backend/crud
        only: [update, delete]
        redirect: index
        vars:
            all:
                subheader: sylius.ui.manage_products
                templates:
                    form: backend/product/_form.html.twig
            index:
                icon: cube
            update:
                templates:
                    form: backend/product/_form.html.twig
                    toolbar: backend/product/_toolbar.html.twig
    type: sylius.resource

sylius_admin_product_create:
    methods: [GET, POST]
    path: /products/new
    defaults:
        _controller: sylius.controller.product:createAction
        _sylius:
            section: admin
            redirect: sylius_admin_product_update
            factory:
                method: createWithVariant
            template: backend/crud/create.html.twig
            vars:<commit_msg>redirect to update after creating new product<commit_after>sylius_admin_product:
    resource: |
        alias: sylius.product
        section: admin
        templates: :backend/crud
        only: [update, delete]
        redirect: update
        vars:
            all:
                subheader: sylius.ui.manage_products
                templates:
                    form: backend/product/_form.html.twig
            index:
                icon: cube
            update:
                templates:
                    form: backend/product/_form.html.twig
                    toolbar: backend/product/_toolbar.html.twig
    type: sylius.resource

sylius_admin_product_create:
    methods: [GET, POST]
    path: /products/new
    defaults:
        _controller: sylius.controller.product:createAction
        _sylius:
            section: admin
            redirect: sylius_admin_product_update
            factory:
                method: createWithVariant
            template: backend/crud/create.html.twig
            vars:
{'fraction_non_alphanumeric': 0.06722689075630252, 'fraction_numerical': 0.0, 'mean_word_length': 1.5268414481897628, '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': '114970', 'n_tokens_mistral': 541, 'n_tokens_neox': 516, 'n_words': 107}