<commit_before>security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt

    role_hierarchy:
        ROLE_OAUTH:       ROLE_OAUTH
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

    providers:
        fos_userbundle:
            id: email_user_provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                csrf_token_generator: security.csrf.token_manager
                login_path: /login
                check_path: /login_check
                username_parameter: _username
                password_parameter: <PASSWORD>
                require_previous_session: false
                use_forward: false
                always_use_default_target_path: true
                default_target_path:            /
                target_path_parameter:          _target_path
                use_referer:                    false

            access_denied_handler: app.access_denied_handler
            oauth:
                resource_owners:
                    facebook:           "/login/check-facebook"
                    google:             "/login/check-google"
                login_path:        /login
                failure_path:      /login

                oauth_user_provider:
                    #this is my custom user provider, created from FOSUBUserProvider - will manage the
                    #automatic user registration on your site, with data from the provider (facebook. google, etc.)
                    service: my_user_provider
            logout:       true
            anonymous:    true

        login:
            pattern:  ^/login$
            security: false

            remember_me:
                secret: "%secret%"
                lifetime: 31536000 # 365 days in seconds
                path: /
                domain: ~ # Defaults to the current domain from $_SERVER
                # by default, the feature is enabled by checking a
                # checkbox in the login form (see below), uncomment the
                # following line to always enable it.
                #always_remember_me: true

    access_control:
        - { path: ^/login$, allow_if: "!has_role('ROLE_USER')" }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/profile/edit,  allow_if: "!has_role('ROLE_OAUTH')" }
        - { path: ^/profile/change-password,  allow_if: "!has_role('ROLE_OAUTH')" }
        - { path: ^/admin/, role: ROLE_ADMIN }
        - { path: ^/api/doc, role: "ROLE_ADMIN" }
#        - { path: ^/user/cars, role: "ROLE_OAUTH" }<commit_msg>update acl for user car page<commit_after>security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt

    role_hierarchy:
        ROLE_OAUTH:       ROLE_OAUTH
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

    providers:
        fos_userbundle:
            id: email_user_provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                csrf_token_generator: security.csrf.token_manager
                login_path: /login
                check_path: /login_check
                username_parameter: _username
                password_parameter: <PASSWORD>
                require_previous_session: false
                use_forward: false
                always_use_default_target_path: true
                default_target_path:            /
                target_path_parameter:          _target_path
                use_referer:                    false

            access_denied_handler: app.access_denied_handler
            oauth:
                resource_owners:
                    facebook:           "/login/check-facebook"
                    google:             "/login/check-google"
                login_path:        /login
                failure_path:      /login

                oauth_user_provider:
                    #this is my custom user provider, created from FOSUBUserProvider - will manage the
                    #automatic user registration on your site, with data from the provider (facebook. google, etc.)
                    service: my_user_provider
            logout:       true
            anonymous:    true

        login:
            pattern:  ^/login$
            security: false

            remember_me:
                secret: "%secret%"
                lifetime: 31536000 # 365 days in seconds
                path: /
                domain: ~ # Defaults to the current domain from $_SERVER
                # by default, the feature is enabled by checking a
                # checkbox in the login form (see below), uncomment the
                # following line to always enable it.
                #always_remember_me: true

    access_control:
        - { path: ^/login$, allow_if: "!has_role('ROLE_USER')" }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/profile/edit,  allow_if: "!has_role('ROLE_OAUTH')" }
        - { path: ^/profile/change-password,  allow_if: "!has_role('ROLE_OAUTH')" }
        - { path: ^/admin/, role: ROLE_ADMIN }
        - { path: ^/api/doc, role: "ROLE_ADMIN" }
        - { path: ^/user/cars/, role: IS_AUTHENTICATED_FULLY }
{'fraction_non_alphanumeric': 0.07674542547521762, 'fraction_numerical': 0.003908331852904601, 'mean_word_length': 1.4703817463799913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4190832', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1501, 'n_words': 353}