<commit_before>:javascript
  $('.nav.nav-pills li.active').removeClass('active');
  $('.nav.nav-pills li[data-model="#{@abstract_model.to_param}"]').addClass('active');

%title= "#{@abstract_model.try(:pretty_name) || @page_name} | #{[_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' ')}"

- page_slug = @page_name.parameterize

- flash && flash.each do |key, value|
  .alert{class: flash_alert_class(key), style: "margin-bottom: #{page_slug=='dashboard' ? '0' : '20px'}"}
    %a.close{href: '#', :'data-dismiss' => "alert"} &times;
    = value

= breadcrumb

=render :partial => 'rails_admin/rest_api_sdk/menu' if respond_to?(:api_current_paths) && !api_current_paths.empty?

- if ['dashboard', 'list-of-shared-collections'].include? page_slug
  - @count ||= {}
  - query = params[:query]
  .col-md-12{style: 'margin-bottom: 20px;'}
    .col-md-8.col-lg-6
      %h3.label-heading{style: 'margin: 0;'}
        %small=  t("admin.misc.title_search_shared_collections")
        %h4{style: "margin-top: 0px;"}= t("admin.misc.sub_title_search_shared_collections", count: @count[Setup::CrossSharedCollection.name])
        - shared_path = index_path(model_name: "cross_shared_collection", query: query)
        = form_tag(shared_path, method: :get, class: "pjax-form form-inline") do
          .input-group.col-xs-12
            %input.form-control.btb.btn-default{name: "query", type: "search", value: query}
              %span.input-group-btn
                %button.btn.btn-primary
                  %i.fa.fa-search
      = 'Try'
      - sample = integration_sample(3)
      = link_to(sample[0], index_path(model_name: "cross_shared_collection", query: sample[0]))+','
      = link_to(sample[1], index_path(model_name: "cross_shared_collection", query: sample[1]))+' or'
      = link_to(sample[2], index_path(model_name: "cross_shared_collection", query: sample[2]))
    .col-lg-4.visible-lg
      %h4.text-muted
        - if current_user
          = "#{current_user.account.name.split('@')[0]} tenant"
          - users = tenant_users
        - else
          = t('admin.actions.dashboard.recent_users.title')
          - users = recent_users
      %ul.list-inline.list-unstyled
        - users.each do |u|
          - url = u.picture_url(50)
          - alt = (u.email.split('@'))[0]
          - title = u.name.present? ? u.name : alt
          %li
            = image_tag url, alt: alt, title: title, class: 'img-circle', height: 50, width: 50
      - if current_user
        = pluralize(current_user.account.users.count, 'member')
      - else
        %span.text-muted
          = t('admin.actions.dashboard.recent_users.more', count: (User.all.count/5 * 5))
          = link_to 'Be in community', (ENV['SLACK_INVITATION'] || 'http://cenit-slack.herokuapp.com')
          %iframe{ frameborder: "0", height: "20", src: "http://cenit-slack.herokuapp.com/badge.svg", width: "100", :style => 'margin-left: 5px' }


    .col-md-4.col-lg-2.tenants.hidden-xs{style:'padding-left: 30px;'}
      %h4.text-muted{style:'margin-top: 10px;'}
        - if current_user
          = link_to(pluralize(current_user.all_accounts.count, 'tenant'), index_path(model_name: 'account'))
        - else
          = pluralize(Account.count, 'tenant')
      %ul.list-inline.list-unstyled{style: 'margin-left: -11px;'}
        %li
          .block
            .icon
              %i.fa.fa-fw.fa-home{style: 'font-size: 40px;'}
            .icon{style: 'margin-left: -20px;'}
              %i.fa.fa-fw.fa-home{style: 'font-size: 24px;'}
      %span.text-muted
        = link_to(t('admin.misc.add_tenant'), new_path(model_name: 'account'))

%ul.nav.nav-tabs
  = menu_for((@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root), @abstract_model, @abstract_model && @object, false, Cenit.max_tab_actions_count.to_i.abs)
  = content_for :contextual_tabs
= yield<commit_msg>added https for call slack status badge<commit_after>:javascript
  $('.nav.nav-pills li.active').removeClass('active');
  $('.nav.nav-pills li[data-model="#{@abstract_model.to_param}"]').addClass('active');

%title= "#{@abstract_model.try(:pretty_name) || @page_name} | #{[_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' ')}"

- page_slug = @page_name.parameterize

- flash && flash.each do |key, value|
  .alert{class: flash_alert_class(key), style: "margin-bottom: #{page_slug=='dashboard' ? '0' : '20px'}"}
    %a.close{href: '#', :'data-dismiss' => "alert"} &times;
    = value

= breadcrumb

=render :partial => 'rails_admin/rest_api_sdk/menu' if respond_to?(:api_current_paths) && !api_current_paths.empty?

- if ['dashboard', 'list-of-shared-collections'].include? page_slug
  - @count ||= {}
  - query = params[:query]
  .col-md-12{style: 'margin-bottom: 20px;'}
    .col-md-8.col-lg-6
      %h3.label-heading{style: 'margin: 0;'}
        %small=  t("admin.misc.title_search_shared_collections")
        %h4{style: "margin-top: 0px;"}= t("admin.misc.sub_title_search_shared_collections", count: @count[Setup::CrossSharedCollection.name])
        - shared_path = index_path(model_name: "cross_shared_collection", query: query)
        = form_tag(shared_path, method: :get, class: "pjax-form form-inline") do
          .input-group.col-xs-12
            %input.form-control.btb.btn-default{name: "query", type: "search", value: query}
              %span.input-group-btn
                %button.btn.btn-primary
                  %i.fa.fa-search
      = 'Try'
      - sample = integration_sample(3)
      = link_to(sample[0], index_path(model_name: "cross_shared_collection", query: sample[0]))+','
      = link_to(sample[1], index_path(model_name: "cross_shared_collection", query: sample[1]))+' or'
      = link_to(sample[2], index_path(model_name: "cross_shared_collection", query: sample[2]))
    .col-lg-4.visible-lg
      %h4.text-muted
        - if current_user
          = "#{current_user.account.name.split('@')[0]} tenant"
          - users = tenant_users
        - else
          = t('admin.actions.dashboard.recent_users.title')
          - users = recent_users
      %ul.list-inline.list-unstyled
        - users.each do |u|
          - url = u.picture_url(50)
          - alt = (u.email.split('@'))[0]
          - title = u.name.present? ? u.name : alt
          %li
            = image_tag url, alt: alt, title: title, class: 'img-circle', height: 50, width: 50
      - if current_user
        = pluralize(current_user.account.users.count, 'member')
      - else
        %span.text-muted
          = t('admin.actions.dashboard.recent_users.more', count: (User.all.count/5 * 5))
          = link_to 'Be in community', (ENV['SLACK_INVITATION'] || 'https://cenit-slack.herokuapp.com')
          %iframe{ frameborder: "0", height: "20", src: "https://cenit-slack.herokuapp.com/badge.svg", width: "100", :style => 'margin-left: 5px' }


    .col-md-4.col-lg-2.tenants.hidden-xs{style:'padding-left: 30px;'}
      %h4.text-muted{style:'margin-top: 10px;'}
        - if current_user
          = link_to(pluralize(current_user.all_accounts.count, 'tenant'), index_path(model_name: 'account'))
        - else
          = pluralize(Account.count, 'tenant')
      %ul.list-inline.list-unstyled{style: 'margin-left: -11px;'}
        %li
          .block
            .icon
              %i.fa.fa-fw.fa-home{style: 'font-size: 40px;'}
            .icon{style: 'margin-left: -20px;'}
              %i.fa.fa-fw.fa-home{style: 'font-size: 24px;'}
      %span.text-muted
        = link_to(t('admin.misc.add_tenant'), new_path(model_name: 'account'))

%ul.nav.nav-tabs
  = menu_for((@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root), @abstract_model, @abstract_model && @object, false, Cenit.max_tab_actions_count.to_i.abs)
  = content_for :contextual_tabs
= yield
{'fraction_non_alphanumeric': 0.17811378780112763, 'fraction_numerical': 0.01486417221937468, 'mean_word_length': 3.0087313816127375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5553536', 'n_tokens_mistral': 2821, 'n_tokens_neox': 2762, 'n_words': 429}