<commit_before><div class='admin-controls'>
  <div class='span15'>
    <ul class="nav nav-pills">
      <li>{{#linkTo adminFlags.active}}{{i18n admin.flags.active}}{{/linkTo}}</li>
      <li>{{#linkTo adminFlags.old}}{{i18n admin.flags.old}}{{/linkTo}}</li>
    </ul>
  </div>
</div>

{{#if model.loading}}
  <div class='admin-loading'>{{i18n loading}}</div>
{{else}}
  {{#if model.length}}
    <table class='admin-flags'>
      <thead>
        <tr>
          <th class='user'></th>
          <th class='excerpt'></th>
          <th class='flaggers'>{{i18n admin.flags.flagged_by}}</th>
          <th class='last-flagged'></th>
          <th class='action'></th>
        </tr>
      </thead>
      <tbody>
        {{#each flag in content}}
        <tr {{bindAttr class="flag.hiddenClass"}}>

          <td class='user'>{{#linkTo 'adminUser' flag.user}}{{avatar flag.user imageSize="small"}}{{/linkTo}}</td>

          <td class='excerpt'>{{#if flag.topicHidden}}<i title='{{i18n topic_statuses.invisible.help}}' class='icon icon-eye-close'></i> {{/if}}<h3><a href='{{unbound flag.url}}'>{{flag.title}}</a></h3><br>{{{flag.excerpt}}}
          </td>

          <td class='flaggers'>{{#each flag.flaggers}}{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}} {{/linkTo}}{{/each}}
            <p class='flag-summary'>{{flag.summary}}</p>
          </td>

          <td class='last-flagged'>{{date flag.lastFlagged}}</td>

        </tr>

          {{#each flag.messages}}
            <tr>
              <td></td>
              <td class='message'>
                <div>{{#linkTo 'adminUser' user}}{{avatar user imageSize="small"}}{{/linkTo}} {{message}} <a href="{{unbound permalink}}">{{i18n admin.flags.view_message}}</a></div>
              </td>
              <td></td>
              <td></td>
            </tr>
          {{/each}}
        {{/each}}

        <tr>
            <td colspan="4" class="action">
            {{#if adminActiveFlagsView}}
              {{#if flag.postHidden}}
                <button title='{{i18n admin.flags.disagree_unhide_title}}' class='btn' {{action disagreeFlags flag}}><i class="icon-thumbs-down"></i>  {{i18n admin.flags.disagree_unhide}}</button>
                <button title='{{i18n admin.flags.defer_title}}' class='btn' {{action deferFlags flag}}><i class="icon-external-link"></i> {{i18n admin.flags.defer}}</button>
              {{else}}
                <button title='{{i18n admin.flags.agree_hide_title}}' class='btn' {{action agreeFlags flag}}><i class="icon-thumbs-up"></i> {{i18n admin.flags.agree_hide}}</button>
                <button title='{{i18n admin.flags.disagree_title}}' class='btn' {{action disagreeFlags flag}}><i class="icon-thumbs-down"></i> {{i18n admin.flags.disagree}}</button>
              {{/if}}
              <button title='{{i18n admin.flags.delete_post_title}}' class='btn' {{action deletePost flag}}><i class="icon-trash"></i> {{i18n admin.flags.delete_post}}</button>
            {{/if}}
            </td>
        </tr>
      </tbody>
    </table>
  {{else}}
    <p>{{i18n admin.flags.no_results}}</p>
  {{/if}}
{{/if}}<commit_msg>incorrect nesting of #each on /admin/flags<commit_after><div class='admin-controls'>
  <div class='span15'>
    <ul class="nav nav-pills">
      <li>{{#linkTo adminFlags.active}}{{i18n admin.flags.active}}{{/linkTo}}</li>
      <li>{{#linkTo adminFlags.old}}{{i18n admin.flags.old}}{{/linkTo}}</li>
    </ul>
  </div>
</div>

{{#if model.loading}}
  <div class='admin-loading'>{{i18n loading}}</div>
{{else}}
  {{#if model.length}}
    <table class='admin-flags'>
      <thead>
        <tr>
          <th class='user'></th>
          <th class='excerpt'></th>
          <th class='flaggers'>{{i18n admin.flags.flagged_by}}</th>
          <th class='last-flagged'></th>
          <th class='action'></th>
        </tr>
      </thead>
      <tbody>
        {{#each flag in content}}
        <tr {{bindAttr class="flag.hiddenClass"}}>

          <td class='user'>{{#linkTo 'adminUser' flag.user}}{{avatar flag.user imageSize="small"}}{{/linkTo}}</td>

          <td class='excerpt'>{{#if flag.topicHidden}}<i title='{{i18n topic_statuses.invisible.help}}' class='icon icon-eye-close'></i> {{/if}}<h3><a href='{{unbound flag.url}}'>{{flag.title}}</a></h3><br>{{{flag.excerpt}}}
          </td>

          <td class='flaggers'>{{#each flag.flaggers}}{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}} {{/linkTo}}{{/each}}
            <p class='flag-summary'>{{flag.summary}}</p>
          </td>

          <td class='last-flagged'>{{date flag.lastFlagged}}</td>

        </tr>

          {{#each flag.messages}}
            <tr>
              <td></td>
              <td class='message'>
                <div>{{#linkTo 'adminUser' user}}{{avatar user imageSize="small"}}{{/linkTo}} {{message}} <a href="{{unbound permalink}}">{{i18n admin.flags.view_message}}</a></div>
              </td>
              <td></td>
              <td></td>
            </tr>
          {{/each}}

        <tr>
            <td colspan="4" class="action">
            {{#if adminActiveFlagsView}}
              {{#if flag.postHidden}}
                <button title='{{i18n admin.flags.disagree_unhide_title}}' class='btn' {{action disagreeFlags flag}}><i class="icon-thumbs-down"></i>  {{i18n admin.flags.disagree_unhide}}</button>
                <button title='{{i18n admin.flags.defer_title}}' class='btn' {{action deferFlags flag}}><i class="icon-external-link"></i> {{i18n admin.flags.defer}}</button>
              {{else}}
                <button title='{{i18n admin.flags.agree_hide_title}}' class='btn' {{action agreeFlags flag}}><i class="icon-thumbs-up"></i> {{i18n admin.flags.agree_hide}}</button>
                <button title='{{i18n admin.flags.disagree_title}}' class='btn' {{action disagreeFlags flag}}><i class="icon-thumbs-down"></i> {{i18n admin.flags.disagree}}</button>
              {{/if}}
              <button title='{{i18n admin.flags.delete_post_title}}' class='btn' {{action deletePost flag}}><i class="icon-trash"></i> {{i18n admin.flags.delete_post}}</button>
            {{/if}}
            </td>
        </tr>

        {{/each}}

      </tbody>
    </table>
  {{else}}
    <p>{{i18n admin.flags.no_results}}</p>
  {{/if}}
{{/if}}
{'fraction_non_alphanumeric': 0.22273670764809197, 'fraction_numerical': 0.01245409548139869, 'mean_word_length': 2.637630662020906, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, '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': '5448813', 'n_tokens_mistral': 2195, 'n_tokens_neox': 2045, 'n_words': 350}