<commit_before><!DOCTYPE html>
<html lang="en" ng-app="libraryApp">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Energia Libraries</title>

    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="app/css/app.css" rel="stylesheet">

    <script src="bower_components/angularjs/angular.js"></script>
    <script src="bower_components/lodash/dist/lodash.min.js"></script>
    <script src="bower_components/angular-lodash/angular-lodash.js"></script>
    <script src="app/js/app.js"></script>
    <script src="app/js/controllers.js"></script>
  </head>
  <body>
    <div ng-controller="FilterController as filterCtrl">
      <h4>Categories</h4>
      <ul class="nav nav-pills" ng-controller="CategoryController as categoryCtrl">
        <li ng-repeat="category in categories" ng-class="{ active: filterCtrl.isCategoryActive(category.name) }">
          <a href ng-click="filterCtrl.toggleCategory(category.name)">{{category.name}}</a>
        </li>
      </ul>
      <h4>Boards</h4>
      <ul class="nav nav-pills" ng-controller="BoardController as boardCtrl">
        <li ng-repeat="board in boards" ng-class="{ active: filterCtrl.isBoardActive(board.name) }">
          <a href ng-click="filterCtrl.toggleBoard(board.name)">{{board.name}}</a>
        </li>
      </ul>
      <ul ng-controller="LibraryController as libraryCtrl">
        <table class="table table-striped table-hover table-condensed">
          <thead>
            <tr>
              <th>Library Name</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="library in libraries | filter:filterCtrl.filterResults:false">
              <td>{{library.name}}</td>
              <td>{{library.description}}</td>
            </tr>
        </table>
      </ul>
    </div>
  </body>
</html><commit_msg>Search box working<commit_after><!DOCTYPE html>
<html lang="en" ng-app="libraryApp">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Energia Libraries</title>

    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="app/css/app.css" rel="stylesheet">

    <script src="bower_components/angularjs/angular.js"></script>
    <script src="bower_components/lodash/dist/lodash.min.js"></script>
    <script src="bower_components/angular-lodash/angular-lodash.js"></script>
    <script src="app/js/app.js"></script>
    <script src="app/js/controllers.js"></script>
  </head>
  <body>
    <div ng-controller="FilterController as filterCtrl">
      <h4>Search</h4>
      <form role="form">
        <div class="form-group">
          <label for="filter">Search:</label>
          <input type="text" class="form-control" id="filter" placeholder="Search for a library" ng-model="search" ng-init="search = ''">
        </div>
      </form>
      <h4>Categories</h4>
      <ul class="nav nav-pills" ng-controller="CategoryController as categoryCtrl">
        <li ng-repeat="category in categories" ng-class="{ active: filterCtrl.isCategoryActive(category.name) }">
          <a href ng-click="filterCtrl.toggleCategory(category.name)">{{category.name}}</a>
        </li>
      </ul>
      <h4>Boards</h4>
      <ul class="nav nav-pills" ng-controller="BoardController as boardCtrl">
        <li ng-repeat="board in boards" ng-class="{ active: filterCtrl.isBoardActive(board.name) }">
          <a href ng-click="filterCtrl.toggleBoard(board.name)">{{board.name}}</a>
        </li>
      </ul>
      <ul ng-controller="LibraryController as libraryCtrl">
        <table class="table table-striped table-hover table-condensed">
          <thead>
            <tr>
              <th>Library Name</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="library in libraries | filter:search | filter:filterCtrl.filterResults">
              <td>{{library.name}}</td>
              <td>{{library.description}}</td>
            </tr>
        </table>
      </ul>
    </div>
  </body>
</html>
{'fraction_non_alphanumeric': 0.1726851851851852, 'fraction_numerical': 0.0032407407407407406, 'mean_word_length': 2.8857913669064748, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 134, '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': '6453693', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1335, 'n_words': 235}