<commit_before>%h1 Leagues

.row
  .col-sm-3.col-md-3.pull-right
    = render 'search'

- unless games.empty?
  %ul.nav.nav-tabs
    - games.each_with_index do |game, index|
      - klass = ''
      - if index == 0
        - klass = 'active'
      %li{ class: klass }
        %a{ data: { toggle: 'tab' }, href: "##{game.name.parameterize}" }
          = game.name

.tab-content
  - games.each_with_index do |game, index|
    - klass = 'tab-pane fade'
    - if index == 0
      - klass += ' in active'

    - leagues = @leagues.joins(:format).where(formats: { game_id: game.id })
    %div{ id: game.name.parameterize, class: klass }
      - if leagues.empty?
        .panel-body No leagues found...
      - else
        %ul.list-group
          - leagues.each do |league|
            - if league.hidden?
              - next unless user_can_edit_leagues?
              - klass = 'list-group-item-warning'
            - elsif league.running?
              - klass = 'list-group-item-info'
            - else
              - klass = 'list-group-item-success'

            = link_to league_path(league), class: 'list-group-item ' + klass do
              .thumbnail.pull-right
                Teams: #{league.rosters.size}

              %h4.list-group-item-heading
                = league.name

  = bootstrap_paginate @leagues
<commit_msg>Fixed styling of roster counts for leagues/index<commit_after>%h1 Leagues

.row
  .col-sm-3.col-md-3.pull-right
    = render 'search'

- unless games.empty?
  %ul.nav.nav-tabs
    - games.each_with_index do |game, index|
      - klass = ''
      - if index == 0
        - klass = 'active'
      %li{ class: klass }
        %a{ data: { toggle: 'tab' }, href: "##{game.name.parameterize}" }
          = game.name

.tab-content
  - games.each_with_index do |game, index|
    - klass = 'tab-pane fade'
    - if index == 0
      - klass += ' in active'

    - leagues = @leagues.joins(:format).where(formats: { game_id: game.id })
    %div{ id: game.name.parameterize, class: klass }
      - if leagues.empty?
        .panel-body No leagues found...
      - else
        %ul.list-group
          - leagues.each do |league|
            - if league.hidden?
              - next unless user_can_edit_leagues?
              - klass = 'list-group-item-warning'
            - elsif league.running?
              - klass = 'list-group-item-info'
            - else
              - klass = 'list-group-item-success'

            = link_to league_path(league), class: 'list-group-item ' + klass do
              %span.label.label-primary.pull-right
                Teams: #{league.rosters.size}

              %h4.list-group-item-heading
                = league.name

  = bootstrap_paginate @leagues

{'fraction_non_alphanumeric': 0.1343612334801762, 'fraction_numerical': 0.004405286343612335, 'mean_word_length': 1.6715686274509804, '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': '1190010', 'n_tokens_mistral': 903, 'n_tokens_neox': 891, 'n_words': 186}