<commit_before># To get started with security, check out the documentation:
# http://symfony.com/doc/current/security.html
security:

    encoders:
      FOS\UserBUndle\Model\UserInterface: bcrypt

    role_hierarchy:
      ROLE_ADMIN:         ROLE_USER
      ROLE_SUPER_ADMIN:   ROLE_ADMIN

    # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        fos_userbundle:
          id: fos_user.user_provider.username

        in_memory:
            memory: ~

    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        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: fos_user_security_login
              check_path: fos_user_security_check
              default_target_path: index
            logout:
              #path: fos_user_security_logout
              target: index
            anonymous: true
            # activate different ways to authenticate

            # http_basic: ~
            # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

            #form_login:
            # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
              #login_path: login
              #check_path: login

    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/entries/, role: ROLE_ADMIN }
        - { path: ^/admin/, role: ROLE_ADMIN }
        - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY }<commit_msg>Restrct all except administrator to view logs<commit_after># To get started with security, check out the documentation:
# http://symfony.com/doc/current/security.html
security:

    encoders:
      FOS\UserBUndle\Model\UserInterface: bcrypt

    role_hierarchy:
      ROLE_ADMIN:         ROLE_USER
      ROLE_SUPER_ADMIN:   ROLE_ADMIN

    # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        fos_userbundle:
          id: fos_user.user_provider.username

        in_memory:
            memory: ~

    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        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: fos_user_security_login
              check_path: fos_user_security_check
              default_target_path: index
            logout:
              #path: fos_user_security_logout
              target: index
            anonymous: true
            # activate different ways to authenticate

            # http_basic: ~
            # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate

            #form_login:
            # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
              #login_path: login
              #check_path: login

    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/entries/, role: ROLE_ADMIN }
        - { path: ^/admin/, role: ROLE_ADMIN }
        - { path: ^/logging/, role: ROLE_ADMIN }
        - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY }
{'fraction_non_alphanumeric': 0.09011102504518462, 'fraction_numerical': 0.0, 'mean_word_length': 2.0384313725490197, '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': '7623331', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1174, 'n_words': 216}