<commit_before>security:
    encoders:
        Nkt\UserBundle\Entity\User: plaintext

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

    providers:
        main:
            entity:
                class: Nkt\UserBundle\Entity\User
                property: twitterId

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false
        secured_area:
            pattern: ^/
            anonymous: ~
            oauth:
                resource_owners:
                    twitter: "/login/check-twitter"
                login_path:   /login
                use_forward:  false
                failure_path: /login

                oauth_user_provider:
                    service: oauth.user.provider

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/, roles: ROLE_USER }
<commit_msg>Allow anonymous go to ^/connect<commit_after>security:
    encoders:
        Nkt\UserBundle\Entity\User: plaintext

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

    providers:
        main:
            entity:
                class: Nkt\UserBundle\Entity\User
                property: twitterId

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false
        secured_area:
            pattern: ^/
            anonymous: ~
            oauth:
                resource_owners:
                    twitter: "/login/check-twitter"
                login_path:   /login
                use_forward:  false
                failure_path: /login

                oauth_user_provider:
                    service: oauth.user.provider

    access_control:
        - { path: ^/(login|connect), roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/, roles: ROLE_USER }

{'fraction_non_alphanumeric': 0.08224016145307769, 'fraction_numerical': 0.0, 'mean_word_length': 1.4602977667493797, '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': '7184673', 'n_tokens_mistral': 611, 'n_tokens_neox': 578, 'n_words': 100}