<commit_before><div class="header">
  <div class="title">
    <div class="submenu">
      <a ng-click="openDialog()" os-perms="motions.can_create" class="btn btn-primary btn-sm">
        <i class="fa fa-plus fa-lg"></i>
        <translate>New</translate>
      </a>
      <a ui-sref="motions.category.list" os-perms="motions.can_manage" class="btn btn-default btn-sm">
        <i class="fa fa-sitemap fa-lg"></i>
        <translate>Categories</translate>
      </a>
      <a ui-sref="core.tag.list" os-perms="core.can_manage_tags" class="btn btn-default btn-sm">
        <i class="fa fa-tags fa-lg"></i>
        <translate>Tags</translate>
      </a>
      <a ui-sref="motions.motion.import" os-perms="motions.can_manage" class="btn btn-default btn-sm">
        <i class="fa fa-download fa-lg"></i>
        <translate>Import</translate>
      </a>
    </div>
    <h1 translate>Motions</h1>
  </div>
</div>

<div class="details">
  <div class="row">
    <div class="col-sm-12">
      <!-- delete mode -->
      <button os-perms="motions.can_manage" class="btn"
          ng-class="$parent.isDeleteMode ? 'btn-primary' : 'btn-default'"
          ng-click="$parent.isDeleteMode = !$parent.isDeleteMode; uncheckAll()">
        <i class="fa fa-check-square-o"></i>
        <translate>Select ...</translate>
      </button>
      <!-- Export dropdown -->
      <div class="dropdown pull-right" uib-dropdown>
        <button type=button" class="btn btn-default" id="dropdownExport" uib-dropdown-toggle>
          <i class="fa fa-upload"></i>
          <span ng-if="motionsFiltered.length == motions.length" translate>
            Export all
          </span>
          <span ng-if="motionsFiltered.length != motions.length" translate>
            Export filtered
          </span>
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownExport">
          <li>
            <a ui-sref="motions_pdf" target="_blank">
              <i class="fa fa-file-pdf-o fa-lg"></i>
              <translate>PDF</translate>
            </a>
          </li>
          <!--CSV export -->
          <li>
            <a href="" id="downloadLink"
              os-perms="motions.can_manage"
              ng-click="csv_export()">
              <i class="fa fa-file-text-o fa-lg"></i>
              <translate>CSV</translate>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <div uib-collapse="!isDeleteMode" class="row spacer">
    <div class="col-sm-12 text-left">
      <!-- delete button -->
      <a ng-show="isDeleteMode" os-perms="motions.can_manage"
        ng-bootbox-confirm="{{ 'Are you sure you want to delete these motions?' | translate }}"
        ng-bootbox-confirm-action="deleteMultiple()"
        class="btn btn-primary">
        <i class="fa fa-trash fa-lg"></i>
        <translate>Delete selected motions</translate>
      </a>
    </div>
  </div>

  <div class="spacer-top-lg italic">
    {{ motionsFiltered.length }} /
    {{ motions.length }} {{ "motions" | translate }}<span ng-if="(motions|filter:{selected:true}).length > 0">,
    {{(motions|filter:{selected:true}).length}} {{ "selected" | translate }}</span>
  </div>

  <div id="motion-table" class="container-fluid">
    <div class="row header-row">
      <div class="col-xs-1 centered" ng-show="isDeleteMode">
        <i class="fa text-danger pointer" ng-class=" selectedAll ? 'fa-check-square-o' : 'fa-square-o'"
          ng-click="checkAll()"></i>
      </div>
      <div class="col-xs-11 main-header">

        <span class="form-inline text-right pull-right">
          <span class="sort-spacer pointer" ng-click="reset_filters()"
            ng-if="are_filters_set()" ng-disabled="isDeleteMode"
            ng-class="{'disabled': isDeleteMode}">
            <i class="fa fa-times-circle"></i>
            <translate>Filter</translate><commit_msg>Updated confirm message.<commit_after><div class="header">
  <div class="title">
    <div class="submenu">
      <a ng-click="openDialog()" os-perms="motions.can_create" class="btn btn-primary btn-sm">
        <i class="fa fa-plus fa-lg"></i>
        <translate>New</translate>
      </a>
      <a ui-sref="motions.category.list" os-perms="motions.can_manage" class="btn btn-default btn-sm">
        <i class="fa fa-sitemap fa-lg"></i>
        <translate>Categories</translate>
      </a>
      <a ui-sref="core.tag.list" os-perms="core.can_manage_tags" class="btn btn-default btn-sm">
        <i class="fa fa-tags fa-lg"></i>
        <translate>Tags</translate>
      </a>
      <a ui-sref="motions.motion.import" os-perms="motions.can_manage" class="btn btn-default btn-sm">
        <i class="fa fa-download fa-lg"></i>
        <translate>Import</translate>
      </a>
    </div>
    <h1 translate>Motions</h1>
  </div>
</div>

<div class="details">
  <div class="row">
    <div class="col-sm-12">
      <!-- delete mode -->
      <button os-perms="motions.can_manage" class="btn"
          ng-class="$parent.isDeleteMode ? 'btn-primary' : 'btn-default'"
          ng-click="$parent.isDeleteMode = !$parent.isDeleteMode; uncheckAll()">
        <i class="fa fa-check-square-o"></i>
        <translate>Select ...</translate>
      </button>
      <!-- Export dropdown -->
      <div class="dropdown pull-right" uib-dropdown>
        <button type=button" class="btn btn-default" id="dropdownExport" uib-dropdown-toggle>
          <i class="fa fa-upload"></i>
          <span ng-if="motionsFiltered.length == motions.length" translate>
            Export all
          </span>
          <span ng-if="motionsFiltered.length != motions.length" translate>
            Export filtered
          </span>
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownExport">
          <li>
            <a ui-sref="motions_pdf" target="_blank">
              <i class="fa fa-file-pdf-o fa-lg"></i>
              <translate>PDF</translate>
            </a>
          </li>
          <!--CSV export -->
          <li>
            <a href="" id="downloadLink"
              os-perms="motions.can_manage"
              ng-click="csv_export()">
              <i class="fa fa-file-text-o fa-lg"></i>
              <translate>CSV</translate>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <div uib-collapse="!isDeleteMode" class="row spacer">
    <div class="col-sm-12 text-left">
      <!-- delete button -->
      <a ng-show="isDeleteMode" os-perms="motions.can_manage"
        ng-bootbox-confirm="{{ 'Are you sure you want to delete all selected motions?' | translate }}"
        ng-bootbox-confirm-action="deleteMultiple()"
        class="btn btn-primary">
        <i class="fa fa-trash fa-lg"></i>
        <translate>Delete selected motions</translate>
      </a>
    </div>
  </div>

  <div class="spacer-top-lg italic">
    {{ motionsFiltered.length }} /
    {{ motions.length }} {{ "motions" | translate }}<span ng-if="(motions|filter:{selected:true}).length > 0">,
    {{(motions|filter:{selected:true}).length}} {{ "selected" | translate }}</span>
  </div>

  <div id="motion-table" class="container-fluid">
    <div class="row header-row">
      <div class="col-xs-1 centered" ng-show="isDeleteMode">
        <i class="fa text-danger pointer" ng-class=" selectedAll ? 'fa-check-square-o' : 'fa-square-o'"
          ng-click="checkAll()"></i>
      </div>
      <div class="col-xs-11 main-header">

        <span class="form-inline text-right pull-right">
          <span class="sort-spacer pointer" ng-click="reset_filters()"
            ng-if="are_filters_set()" ng-disabled="isDeleteMode"
            ng-class="{'disabled': isDeleteMode}">
            <i class="fa fa-times-circle"></i>
            <translate>Filter</translate>
{'fraction_non_alphanumeric': 0.18199184921039227, 'fraction_numerical': 0.0025471217524197657, 'mean_word_length': 2.3660522931847408, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 213, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '676197', 'n_tokens_mistral': 2569, 'n_tokens_neox': 2490, 'n_words': 478}