<commit_before><section data-ng-controller="CategoriesController" data-ng-init="find()">
  <div class="page-header">
    <h1>Categories</h1>
  </div>
  <div class="list-group">
    <a data-ng-repeat="category in categories" data-ng-href="#!/categories/{{category._id}}" class="list-group-item">
      <h4 class="list-group-item-heading" data-ng-bind="category.name"></h4>
      <span data-ng-bind="category.description"></span>
    </a>
  </div>
  <div class="alert alert-warning text-center" data-ng-hide="!categories.$resolved || categories.length">
    No categories yet, why don't you <a href="/#!/categories/create">create one</a>?
  </div>
</section>
<commit_msg>Add search and pagination function to Categories list view.<commit_after><section data-ng-controller="CategoriesController" data-ng-init="find()">
  <div class="page-header">
    <h1>Categories</h1>
  </div>

  <div class="form-group">
    <input type="text" ng-model="search" typeahead="category as category.name for category in categories | filter:$viewValue | limitTo:8" class="form-control" typeahead-on-select="categorySearch($item)" placeholder="Search Category...">
  </div>

  <div class="list-group">
    <a data-ng-repeat="category in categories" data-ng-href="#!/categories/{{category._id}}" class="list-group-item">
      <h4 class="list-group-item-heading" data-ng-bind="category.name"></h4>
      <span data-ng-bind="category.description"></span>
    </a>
  </div>

  <pagination
          total-items="categories.length" ng-model="currentPage" ng-change="pageChanged()" max-size="pageSize" ng-show="categories.length > pageSize">
  </pagination>

  <div class="alert alert-warning text-center" data-ng-hide="!categories.$resolved || categories.length">
    No categories yet, why don't you <a href="/#!/categories/create">create one</a>?
  </div>
</section>

{'fraction_non_alphanumeric': 0.19001085776330076, 'fraction_numerical': 0.004885993485342019, 'mean_word_length': 4.6189024390243905, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 45, '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': '3748139', 'n_tokens_mistral': 594, 'n_tokens_neox': 575, 'n_words': 113}