<commit_before>:ruby
  table_dom_id = SecureRandom.hex



#table_actions.btn-toolbar
  = render :partial => "index_actions"




:css

  .col-item:nth-child(1){
    width:10%;
  }
  .col-item:nth-child(2){
    width:12%;
  }
  .col-item:nth-child(3){
    width:12%;
  }
  .col-item:nth-child(4){
    width:12%;
  }
  .col-item:nth-child(5){
    width:8%;
  }
  .col-item:nth-child(6){
    width:8%;
  }
  .col-item:nth-child(7){
    width:8%;
  }
  .col-item:nth-child(8){
    width:12%;
  }

= javascript_include_tag  "https://kit.fontawesome.com/#{ENV['FONT_AWESOME']}.js"
.library-table
  %table.elbat{:id => table_dom_id,
    :use => 'true',
    :data => {:use => 'true',
      :side => 'client',
      :current_page => '0',
      :current_page_size => '10',
      :page_sizes => "10,20,50,100,200",
      :search => 'client',
      :export => "['csv', 'txt', 'excel']",
      :columns => "Organization,drilldown-link,
                  Audit Type,
                  Type,
                  Asset ID,
                  Description,
                  Result,
                  Updated At,right-align,
                  Notes,",
        :selected_columns => "Organization,
                  Audit Type,
                  Type,
                  Asset ID,
                  Description,
                  Result,
                  Updated At,
                  Notes",
      :cookies => "true",
      :sort => 'client',
      :params => "{}",
      :filter => "[]",
      :data_source => 'client',
      :url => ''}}

  - audit_results.each_with_index do |a, index|
    - unless a.auditable.nil?
      :javascript
        add_row('#{table_dom_id}',
        {        
          "Organization": '#{h link_to a.organization.short_name }',
          "Audit Type": '#{h a.audit }',
          "Type": '#{h a.class_name }',
          "Asset ID": '#{h a.auditable.asset_tag }',
          "Description": '#{h a.auditable.description }',
          "Result": '#{h a.audit_result_type }',
          "Updated At": '#{h format_as_date(a.updated_at) }',
          "Notes": '#{h sanitize(a.notes, tags:[]).gsub("\n", ' ') }',
        }, #{index});





-# .table-responsive
-#   %table.table.table-hover{:id => 'audit_results_table', :data => {:toggle => 'table',
-#     :pagination => 'true',
-#     :show_pagination_switch => 'false',
-#     :page_list => "[5, 10, 20, 50, 100, 200, 10000]",
-#     :page_size => current_user.num_table_rows,
-#     :search => 'false',
-#     :toolbar => "#table_actions",
-#     :export_types => "['csv', 'txt', 'excel']",
-#     :show_export => 'false',
-#     :resizable => 'true',
-#     :show_columns => 'false',
-#     :show_toggle => 'false',<commit_msg>audit_results drilldown link<commit_after>:ruby
  table_dom_id = SecureRandom.hex



#table_actions.btn-toolbar
  = render :partial => "index_actions"




:css

  .col-item:nth-child(1){
    width:10%;
  }
  .col-item:nth-child(2){
    width:12%;
  }
  .col-item:nth-child(3){
    width:12%;
  }
  .col-item:nth-child(4){
    width:12%;
  }
  .col-item:nth-child(5){
    width:8%;
  }
  .col-item:nth-child(6){
    width:8%;
  }
  .col-item:nth-child(7){
    width:8%;
  }
  .col-item:nth-child(8){
    width:12%;
  }

= javascript_include_tag  "https://kit.fontawesome.com/#{ENV['FONT_AWESOME']}.js"
.library-table
  %table.elbat{:id => table_dom_id,
    :use => 'true',
    :data => {:use => 'true',
      :side => 'client',
      :current_page => '0',
      :current_page_size => '10',
      :page_sizes => "10,20,50,100,200",
      :search => 'client',
      :export => "['csv', 'txt', 'excel']",
      :columns => "Organization,drilldown-link,
                  Audit Type,
                  Type,
                  Asset ID,
                  Description,
                  Result,
                  Updated At,right-align,
                  Notes,",
        :selected_columns => "Organization,
                  Audit Type,
                  Type,
                  Asset ID,
                  Description,
                  Result,
                  Updated At,
                  Notes",
      :cookies => "true",
      :sort => 'client',
      :params => "{}",
      :filter => "[]",
      :data_source => 'client',
      :url => ''}}

  - audit_results.each_with_index do |a, index|
    - unless a.auditable.nil?
      :javascript
        add_row('#{table_dom_id}',
        {        
          "Organization": '#{h link_to a.organization.short_name, inventory_path(a.auditable) }',
          "Audit Type": '#{h a.audit }',
          "Type": '#{h a.class_name }',
          "Asset ID": '#{h a.auditable.asset_tag }',
          "Description": '#{h a.auditable.description }',
          "Result": '#{h a.audit_result_type }',
          "Updated At": '#{h format_as_date(a.updated_at) }',
          "Notes": '#{h sanitize(a.notes, tags:[]).gsub("\n", ' ') }',
        }, #{index});





-# .table-responsive
-#   %table.table.table-hover{:id => 'audit_results_table', :data => {:toggle => 'table',
-#     :pagination => 'true',
-#     :show_pagination_switch => 'false',
-#     :page_list => "[5, 10, 20, 50, 100, 200, 10000]",
-#     :page_size => current_user.num_table_rows,
-#     :search => 'false',
-#     :toolbar => "#table_actions",
-#     :export_types => "['csv', 'txt', 'excel']",
-#     :show_export => 'false',
-#     :resizable => 'true',
-#     :show_columns => 'false',
-#     :show_toggle => 'false',
{'fraction_non_alphanumeric': 0.19541080680977055, 'fraction_numerical': 0.01998519615099926, 'mean_word_length': 1.977961432506887, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 69, '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': '2363311', 'n_tokens_mistral': 2027, 'n_tokens_neox': 1890, 'n_words': 312}