<commit_before>- if resource_class.respond_to?(:by_text) && !defined?(no_list_search)
  = render 'list_search'

- attributes ||= resource_class.attribute_names - ['id', 'created_at', 'updated_at']
%table.striped
  %thead
    %tr
      - attributes.each do |field|
        %th= t_attr field, resource_class
      %th.action-links
  %tbody
    - collection.each do |r|
      %tr
        - attributes.each do |field|
          %td= r.send(field) if r.respond_to?(field)
        %td.action-links
          = list_link_for(:edit, r)
          = list_link_for(:delete, r)<commit_msg>feat(crud): handle click on list items as show actions<commit_after>- if resource_class.respond_to?(:by_text) && !defined?(no_list_search)
  = render 'list_search'

- attributes ||= resource_class.attribute_names - ['id', 'created_at', 'updated_at']
%table.striped
  %thead
    %tr
      - attributes.each do |field|
        %th= t_attr field, resource_class
      %th.action-links
  %tbody
    - collection.each do |r|
      %tr(onClick="window.location.href='#{url_for(r)}'")
        - attributes.each do |field|
          %td= r.send(field) if r.respond_to?(field)
        %td.action-links
          = list_link_for(:edit, r)
          = list_link_for(:delete, r)
{'fraction_non_alphanumeric': 0.14320193081255028, 'fraction_numerical': 0.0, 'mean_word_length': 2.9242902208201893, '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': '1196741', 'n_tokens_mistral': 426, 'n_tokens_neox': 425, 'n_words': 85}