<commit_before>jms_security_extra:
    secure_all_services: false
    expressions: true

security:
    acl:
        connection: default

    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:
        main:
            pattern: ^/
            form_login:
                login_path:                     /login
                check_path:                     /login_check
                always_use_default_target_path: true
                default_target_path:            /login_success
                use_referer:                    false
                failure_path:                   /login_failure

            logout:
                target: /
            anonymous: true
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

    access_control:
        - { path: ^/login$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/allowed-actions$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/new-token/new-author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/genre$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/book$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/search,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}

        - { path: ^/logout,                     roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/author,                     roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/genre,                      roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/book,                      roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/,                           roles: IS_AUTHENTICATED_FULLY}<commit_msg>Fixed route security issue<commit_after>jms_security_extra:
    secure_all_services: false
    expressions: true

security:
    acl:
        connection: default

    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:
        main:
            pattern: ^/
            form_login:
                login_path:                     /login
                check_path:                     /login_check
                always_use_default_target_path: true
                default_target_path:            /login_success
                use_referer:                    false
                failure_path:                   /login_failure

            logout:
                target: /
            anonymous: true
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

    access_control:
        - { path: ^/login$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/allowed-actions$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/new-token/new-author$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/genre$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/book$,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}
        - { path: ^/search,                      roles: IS_AUTHENTICATED_ANONYMOUSLY}

        - { path: ^/logout,                     roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/author,                     roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/genre,                      roles: IS_AUTHENTICATED_FULLY}
        - { path: ^/book,                      roles: IS_AUTHENTICATED_FULLY}
{'fraction_non_alphanumeric': 0.08078910286519493, 'fraction_numerical': 0.0014091122592766556, 'mean_word_length': 1.3171926006528836, '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': '5288680', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1261, 'n_words': 199}