<commit_before>- @title = "#{"#{params[:folder].gsub('/', ' - ')} - " if params[:folder].present?} #{@dataset.slug.upcase} Variables"

= render 'datasets/header'

= render 'variables/folder_breadcrumb', folder: params[:folder]

.content-container
  = render 'variables/per_page', per_page: 100, object_count: @total_count
  = form_tag dataset_variables_path(@dataset), method: :get, class: 'form-inline', id: 'collection_form' do
    = hidden_field_tag 'common', params[:common]
    = text_field_tag 's', params[:s], class: 'form-control'
    = succeed ' ' do
      - if params[:common] == '1'
        = link_to '#', class: 'btn btn-warning', data: { object: 'commonly-used-submit', value: '0', target: '#collection_form' } do
          %span.glyphicon.glyphicon-star
      - else
        = link_to '#', class: 'btn btn-default', data: { object: 'commonly-used-submit', value: '1', target: '#collection_form' } do
          %span.glyphicon.glyphicon-star-empty
    = submit_tag 'Search', class: 'btn btn-primary', name: nil
    = link_to 'Reset', dataset_variables_path(@dataset), class: 'btn btn-default'

- if @variables.count > 0
  .content-container
    %table.table.table-striped
      %thead
        %tr
          %th
          %th Name
          %th.nowrap Display Name
          %th Folder
          %th Description
          - unless params[:s].blank?
            %th Relevance
            - if current_user && current_user.system_admin?
              %th Labels
              %th.nowrap Rank Score
              %th Reason

      - @variables.sort { |a,b| a.rank_sort_order(params[:s]) <=> b.rank_sort_order(params[:s]) }.each do |variable|
        %tr
          %td
            - if variable.commonly_used?
              %span.glyphicon.glyphicon-star.text-warning
            - if false
              - if File.file?( File.join( variable.dataset.root_folder, 'dd', 'images', variable.version.to_s, "#{variable.name}.png") )
                %img.lazy{ width: "27", height: "18", style: "max-width: 100%;min-width:27px;max-height:18px;display:block;vertical-align:text-bottom",  data: { original: image_dataset_variable_path(variable.dataset, variable) } }<commit_msg>Removed content-container wrapper from variables index<commit_after>- @title = "#{"#{params[:folder].gsub('/', ' - ')} - " if params[:folder].present?} #{@dataset.slug.upcase} Variables"

= render 'datasets/header'

= render 'variables/folder_breadcrumb', folder: params[:folder]

= render 'variables/per_page', per_page: 100, object_count: @total_count
= form_tag dataset_variables_path(@dataset), method: :get, class: 'form-inline', id: 'collection_form' do
  = hidden_field_tag 'common', params[:common]
  = text_field_tag 's', params[:s], class: 'form-control'
  = succeed ' ' do
    - if params[:common] == '1'
      = link_to '#', class: 'btn btn-warning', data: { object: 'commonly-used-submit', value: '0', target: '#collection_form' } do
        %span.glyphicon.glyphicon-star
    - else
      = link_to '#', class: 'btn btn-default', data: { object: 'commonly-used-submit', value: '1', target: '#collection_form' } do
        %span.glyphicon.glyphicon-star-empty
  = submit_tag 'Search', class: 'btn btn-primary', name: nil
  = link_to 'Reset', dataset_variables_path(@dataset), class: 'btn btn-default'

- if @variables.count > 0
  .content-container
    %table.table.table-striped
      %thead
        %tr
          %th
          %th Name
          %th.nowrap Display Name
          %th Folder
          %th Description
          - unless params[:s].blank?
            %th Relevance
            - if current_user && current_user.system_admin?
              %th Labels
              %th.nowrap Rank Score
              %th Reason

      - @variables.sort { |a,b| a.rank_sort_order(params[:s]) <=> b.rank_sort_order(params[:s]) }.each do |variable|
        %tr
          %td
            - if variable.commonly_used?
              %span.glyphicon.glyphicon-star.text-warning
            - if false
              - if File.file?( File.join( variable.dataset.root_folder, 'dd', 'images', variable.version.to_s, "#{variable.name}.png") )
                %img.lazy{ width: "27", height: "18", style: "max-width: 100%;min-width:27px;max-height:18px;display:block;vertical-align:text-bottom",  data: { original: image_dataset_variable_path(variable.dataset, variable) } }
{'fraction_non_alphanumeric': 0.15372242647058823, 'fraction_numerical': 0.008272058823529412, 'mean_word_length': 2.8318661971830985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2996749', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1363, 'n_words': 298}