<commit_before>- if tmpl = admin_partial_name(table_builder)
  = render tmpl
- else
  table.table.table-striped.index_table#list
    thead
      tr.pjax_links
        = batch_action_toggle
        th= list_sort_link(:id)
        - table_builder.fields.each do |field|
          th class=('hide_cell' if field.options[:hidden])
            - if field.options[:sortable] && !field.options[:image]
              - if field.options[:sortable].is_a?(TrueClass)
                = list_sort_link field.name
              - else
                - opts = field.options[:sortable].is_a?(Hash) ? field.options[:sortable] : {column: field.options[:sortable]}
                = list_sort_link field.name, opts
            - else
              = field.name.is_a?(Symbol) ? ha(field.name) : field.name
        th=t 'admin.table.actions'
    tbody
      - is_edit_link = manager.actions.include?(:edit)
      - collection.each do |item|
        tr id=dom_id(item, 'list')
          = batch_action_item(item)
          td= id_link(item, edit: is_edit_link)
          - table_builder.fields.each do |field|
            td
              - if field.options[:editable] && field.data.is_a?(Symbol)
                = admin_editable item, field.data, field.options[:editable]
              - elsif field.options[:image]
                = item_image_link(item, assoc: field.name)
              - else
                = admin_pretty_data call_method_or_proc_on(item, field.data)
          td.actions= item_index_actions(item)<commit_msg>Allow row_class option it table dsl method<commit_after>- if tmpl = admin_partial_name(table_builder)
  = render tmpl
- else
  table.table.table-striped.index_table#list
    thead
      tr.pjax_links
        = batch_action_toggle
        th= list_sort_link(:id)
        - table_builder.fields.each do |field|
          th class=('hide_cell' if field.options[:hidden])
            - if field.options[:sortable] && !field.options[:image]
              - if field.options[:sortable].is_a?(TrueClass)
                = list_sort_link field.name
              - else
                - opts = field.options[:sortable].is_a?(Hash) ? field.options[:sortable] : {column: field.options[:sortable]}
                = list_sort_link field.name, opts
            - else
              = field.name.is_a?(Symbol) ? ha(field.name) : field.name
        th=t 'admin.table.actions'
    tbody
      - is_edit_link = manager.actions.include?(:edit)
      - collection.each do |item|
        tr id=dom_id(item, 'list') class=(table_builder.options[:row_class].call(item) if table_builder.options[:row_class])
          = batch_action_item(item)
          td= id_link(item, edit: is_edit_link)
          - table_builder.fields.each do |field|
            td
              - if field.options[:editable] && field.data.is_a?(Symbol)
                = admin_editable item, field.data, field.options[:editable]
              - elsif field.options[:image]
                = item_image_link(item, assoc: field.name)
              - else
                = admin_pretty_data call_method_or_proc_on(item, field.data)
          td.actions= item_index_actions(item)
{'fraction_non_alphanumeric': 0.11524992040751353, 'fraction_numerical': 0.0, 'mean_word_length': 2.12636815920398, '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': '2125698', 'n_tokens_mistral': 967, 'n_tokens_neox': 955, 'n_words': 164}