<commit_before>table class='mdl-data-table mdl-js-data-table resource-table'
  thead
    == render partial: 'shared/pagy_nav', locals: { pagy: pagy, resource: 'chapters', span: 5 }
    tr
      th
        | #
      == render partial: 'shared/ordered_column', locals: { order_key: :chapter_name, column_name: 'Chapter Name' }
      th class="mdl-data-table__cell--non-numeric"
        | Organization
      th
        | Groups in Chapter
      th
        | Students in Chapter
  - chapters.each_with_index do |chapter_summary, i|
    - path = chapter_path(chapter_summary.id)
    tr class='resource-row'
      td
        = link_to pagy.from + i, path
      td class="mdl-data-table__cell--non-numeric"
        = link_to chapter_summary.chapter_name, path
      td class="mdl-data-table__cell--non-numeric"
        = link_to chapter_summary.organization_name, path<commit_msg>Ordering chapters table by organization, group and student count<commit_after>table class='mdl-data-table mdl-js-data-table resource-table'
  thead
    == render partial: 'shared/pagy_nav', locals: { pagy: pagy, resource: 'chapters', span: 5 }
    tr
      th
        | #
      == render partial: 'shared/ordered_column', locals: { order_key: :chapter_name, column_name: 'Chapter Name' }
      == render partial: 'shared/ordered_column', locals: { order_key: :organization_name, column_name: 'Organization Name' }
      == render partial: 'shared/ordered_column', locals: { order_key: :group_count, column_name: 'Groups in Chapter', numeric: true }
      == render partial: 'shared/ordered_column', locals: { order_key: :student_count, column_name: 'Students in Chapter', numeric: true }
  - chapters.each_with_index do |chapter_summary, i|
    - path = chapter_path(chapter_summary.id)
    tr class='resource-row'
      td
        = link_to pagy.from + i, path
      td class="mdl-data-table__cell--non-numeric"
        = link_to chapter_summary.chapter_name, path
      td class="mdl-data-table__cell--non-numeric"
        = link_to chapter_summary.organization_name, path
{'fraction_non_alphanumeric': 0.1162677088422081, 'fraction_numerical': 0.0009770395701025891, 'mean_word_length': 3.311578947368421, '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': '4136006', 'n_tokens_mistral': 651, 'n_tokens_neox': 629, 'n_words': 149}