<commit_before><% title('キーワード') %>
<div class="container main-container">
  <div class="row">
    <div class="col-xs-12">
      <div class="main-panel">
        <div class="panel-body">
          <%= render('shared/flash') %>

          <div class="page-header">
            <h1>キーワード</h1>
          </div>

          <p><%= page_entries_info(@keyword_privmsg_counts) %></p>

          <table class="table table-striped keyword-list">
            <thead>
              <tr>
                <th class="keyword-keyword">キーワード</th>
                <th class="keyword-num-of-privmsgs">発言数</th>
              </tr>
            </thead>
            <tbody>
              <% @keyword_privmsg_counts.each do |keyword| %>
                <tr>
                  <td class="keyword-keyword"><%= link_to(h(keyword.display_title), keyword) %></td>
                  <td class="keyword-num-of-privmsgs"><%= keyword.privmsg_count %></td>
                </tr>
              <% end %>
            </tbody>
          </table>

          <%= paginate(@keyword_privmsg_counts, outer_window: 2) %>
        </div>
      </div>
    </div>
  </div>
</div><commit_msg>[CI skip] キーワード未登録時、キーワード一覧画面でその旨を表示する<commit_after><% title('キーワード') %>
<div class="container main-container">
  <div class="row">
    <div class="col-xs-12">
      <div class="main-panel">
        <div class="panel-body">
          <%= render('shared/flash') %>

          <div class="page-header">
            <h1>キーワード</h1>
          </div>

          <% if @keyword_privmsg_counts.empty? %>
            <div class="alert alert-info">キーワードが登録されていません。</div>
          <% else %>
            <p><%= page_entries_info(@keyword_privmsg_counts) %></p>

            <table class="table table-striped keyword-list">
              <thead>
                <tr>
                  <th class="keyword-keyword">キーワード</th>
                  <th class="keyword-num-of-privmsgs">発言数</th>
                </tr>
              </thead>
              <tbody>
                <% @keyword_privmsg_counts.each do |keyword| %>
                  <tr>
                    <td class="keyword-keyword"><%= link_to(h(keyword.display_title), keyword) %></td>
                    <td class="keyword-num-of-privmsgs"><%= keyword.privmsg_count %></td>
                  </tr>
                <% end %>
              </tbody>
            </table>

            <%= paginate(@keyword_privmsg_counts, outer_window: 2) %>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.172317510969286, 'fraction_numerical': 0.003988831272437176, 'mean_word_length': 1.5989637305699482, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '907354', 'n_tokens_mistral': 868, 'n_tokens_neox': 796, 'n_words': 126}