<commit_before><!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title>Selectable Example</title>
    
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular.min.js"></script>
    <script src="../angular-selectable.js"></script>
    <script src="example.js"></script>
  </head>

  <body ng-app="example">

    <div ng-controller="singleSelectCtrl">
      <h1>Simple Multi-Select</h1>

      <ul>
        <li ng-repeat="pet in pets"
            ng-click="selectables.select(pet)">
          {{ pet }} <span ng-if="selectables.isSelected(pet)">picked me</span>
        </li>
      </ul>

    </div>

    <div ng-controller="singleSelectCtrl">
      <h1>Toggleable Multi-Select</h1>

      <ul>
        <li ng-repeat="pet in pets"
            ng-click="selectables.toggle(pet)">
          {{ pet }} <span ng-if="selectables.isSelected(pet)">picked me</span>
        </li>
      </ul>

    </div>

    <div ng-controller="singleSelectCtrl">
      <h1>Simple Single-Select</h1>

      <ul>
        <li ng-repeat="pet in pets"
            ng-click="selectables.selectOnly(pet)">
          {{ pet }} <span ng-if="selectables.isSelected(pet)">picked me</span>
        </li>
      </ul>

    </div>

  </body>
</html>
<commit_msg>example shows how to select all or none<commit_after><!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title>Selectable Example</title>
    
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular.min.js"></script>
    <script src="../angular-selectable.js"></script>
    <script src="example.js"></script>
  </head>

  <body ng-app="example">

    <div ng-controller="singleSelectCtrl">
      <h1>Simple Multi-Select</h1>

      <ul>
        <li ng-repeat="pet in pets"
            ng-click="selectables.toggle(pet)">
          {{ pet }} <span ng-if="selectables.isSelected(pet)">picked me</span>
        </li>
      </ul>

      <button ng-click="selectables.select(pets)">select all</button>
      <button ng-click="selectables.deselectAll()">deselect all</button>
      <span>Selected: {{ selectables.getSelected().length }}</span>

    </div>

    <div ng-controller="singleSelectCtrl">
      <h1>Simple Single-Select</h1>

      <ul>
        <li ng-repeat="pet in pets"
            ng-click="selectables.toggleOnly(pet)">
          {{ pet }} <span ng-if="selectables.isSelected(pet)">picked me</span>
        </li>
      </ul>

    </div>

  </body>
</html>

{'fraction_non_alphanumeric': 0.18666666666666668, 'fraction_numerical': 0.00784313725490196, 'mean_word_length': 2.552924791086351, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '6494417', 'n_tokens_mistral': 896, 'n_tokens_neox': 847, 'n_words': 143}