<commit_before>- if !user_signed_in?
  %a#btn-login.btn.btn-action-blue.gradient{href: user_clave_unica_omniauth_authorize_path}
    = image_tag "clave-unica.svg", size: "28"
    Clave<span>única</span>
- else
  .notifications-box{:class => "#{'with-notifications' if current_user.unseen_notifications? }" }
    =link_to user_notifications_path(current_user), :title => t(:shownotifications) do
      %i.material-icons
        notifications
      %span= current_user.unread_notifications

  .btn-group#user-menu
    %button.btn.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button"}
      %span.name
        = current_user.name
      %span.caret
    %ul.dropdown-menu.pull-right
      - current_user.organizations.each do |org|
        %li.institution
          %small
            =t(:institution)
          = org.name
        %li
          = link_to t(:services), organization_services_path(org)
        %li
          %a{:href => "/agreements/index"}
            =t(:agreements)
      -if current_user.can_create_schemas
        %li.new-schema
          = link_to new_schema_path, id: "menu-new-schema" do
            %i.material-icons
              add
            %span= t(:new_schema)
      -if current_user.is_service_admin?
        %li.pending-services
          =link_to pending_approval_services_path do
            %i.material-icons
              check
            %span= t(:services_pending_approval)
      %li.logout
        =link_to destroy_user_session_path, method: :delete, id: 'btn-logout' do
          %i.material-icons
            exit_to_app
          %span= t(:logout)<commit_msg>Add id for pending_approval_service menu item<commit_after>- if !user_signed_in?
  %a#btn-login.btn.btn-action-blue.gradient{href: user_clave_unica_omniauth_authorize_path}
    = image_tag "clave-unica.svg", size: "28"
    Clave<span>única</span>
- else
  .notifications-box{:class => "#{'with-notifications' if current_user.unseen_notifications? }" }
    =link_to user_notifications_path(current_user), :title => t(:shownotifications) do
      %i.material-icons
        notifications
      %span= current_user.unread_notifications

  .btn-group#user-menu
    %button.btn.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button"}
      %span.name
        = current_user.name
      %span.caret
    %ul.dropdown-menu.pull-right
      - current_user.organizations.each do |org|
        %li.institution
          %small
            =t(:institution)
          = org.name
        %li
          = link_to t(:services), organization_services_path(org)
        %li
          %a{:href => "/agreements/index"}
            =t(:agreements)
      -if current_user.can_create_schemas
        %li.new-schema
          = link_to new_schema_path, id: "menu-new-schema" do
            %i.material-icons
              add
            %span= t(:new_schema)
      -if current_user.is_service_admin?
        %li.pending-services
          =link_to pending_approval_services_path, id: "menu-pending-approval" do
            %i.material-icons
              check
            %span= t(:services_pending_approval)
      %li.logout
        =link_to destroy_user_session_path, method: :delete, id: 'btn-logout' do
          %i.material-icons
            exit_to_app
          %span= t(:logout)
{'fraction_non_alphanumeric': 0.12334021835349661, 'fraction_numerical': 0.0011802891708468574, 'mean_word_length': 2.4173387096774195, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '5428803', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1096, 'n_words': 178}