<commit_before>{% verbatim %}
<div class="navbar navbar-top" ng-controller="EpicenterCtrl">
  <div class="navbar-inner">
    <a class="brand" href="#/">{{spaceAPI.space}}</a>
    <ul class="nav">
      <li><a href="#/">Home</a></li>
      <li check-permission="'inventory.list_resource'">
        <a ng-if="hasPermission" href="#/resources">Resources</a>
      </li>
      <li check-permission="'membership.list_member'">
        <a ng-if="hasPermission" href="#/members">Members</a>
      </li>
      <li check-permission="'sensors.list_sensor'">
        <a ng-if="hasPermission" href="#/sensors">Sensors</a>
      </li>
    </ul>
    <ul class="nav pull-right" id="epicenter">
      <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown">
          <i class="icon-home" ng-if="Spiff.currentUser.isAnonymous"></i>
          <gravatar-image ng-if="!Spiff.currentUser.isAnonymous" gravatar-email="Spiff.currentUser.email" gravatar-size="14"></gravatar-image>
          {{Spiff.currentUser.firstName}} {{Spiff.currentUser.lastName}}
          <b class="caret"></b>
        </a>
        <ul class="dropdown-menu">
          <li ng-if="Spiff.currentUser.isAnonymous"><a ng-click="showLogin()">Login</a></li>
          <li ng-if="Spiff.currentUser.isAnonymous"><a href="#">Register</a></li>
          <li ng-if="Spiff.currentUser.isAnonymous"><a href="#">Reset Password</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#/members/self">View Profile</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#" ng-click="logout()">Logout</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#">Change Password</a></li>
        </ul>
      </li>
    </ul>
  </div>

  <div id="loginModal" class="modal hide fade">
    <div class="modal-header">
      <h3>Login</h3>
    </div>
    <div class="modal-body">
      <form class="form-horizontal" id="loginForm">
        <div class="control-group">
          <label class="control-label" for="username">
            Username:
          </label>
          <div class="controls">
            <input type="text" id="username">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="username">
            Password:
          </label>
          <div class="controls">
            <input type="password" id="password">
          </div>
        </div>
      </form>
      <div class="alert alert-error hide" id="error-msg"></div>
    </div>
    <div class="modal-footer">
      <button class="btn btn-primary" ng-click="login()">Login</button>
      <button class="btn" ng-click="hideLogin()">Cancel</button>
    </div>
  </div>
</div>
{% endverbatim %}<commit_msg>Use ng-submit instead of ng-click<commit_after>{% verbatim %}
<div class="navbar navbar-top" ng-controller="EpicenterCtrl">
  <div class="navbar-inner">
    <a class="brand" href="#/">{{spaceAPI.space}}</a>
    <ul class="nav">
      <li><a href="#/">Home</a></li>
      <li check-permission="'inventory.list_resource'">
        <a ng-if="hasPermission" href="#/resources">Resources</a>
      </li>
      <li check-permission="'membership.list_member'">
        <a ng-if="hasPermission" href="#/members">Members</a>
      </li>
      <li check-permission="'sensors.list_sensor'">
        <a ng-if="hasPermission" href="#/sensors">Sensors</a>
      </li>
    </ul>
    <ul class="nav pull-right" id="epicenter">
      <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown">
          <i class="icon-home" ng-if="Spiff.currentUser.isAnonymous"></i>
          <gravatar-image ng-if="!Spiff.currentUser.isAnonymous" gravatar-email="Spiff.currentUser.email" gravatar-size="14"></gravatar-image>
          {{Spiff.currentUser.firstName}} {{Spiff.currentUser.lastName}}
          <b class="caret"></b>
        </a>
        <ul class="dropdown-menu">
          <li ng-if="Spiff.currentUser.isAnonymous"><a ng-click="showLogin()">Login</a></li>
          <li ng-if="Spiff.currentUser.isAnonymous"><a href="#">Register</a></li>
          <li ng-if="Spiff.currentUser.isAnonymous"><a href="#">Reset Password</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#/members/self">View Profile</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#" ng-click="logout()">Logout</a></li>
          <li ng-if="!Spiff.currentUser.isAnonymous"><a href="#">Change Password</a></li>
        </ul>
      </li>
    </ul>
  </div>

  <div id="loginModal" class="modal hide fade">
    <form class="form-horizontal" id="loginForm" ng-submit="login()">
      <div class="modal-header">
        <h3>Login</h3>
      </div>
      <div class="modal-body">
          <div class="control-group">
            <label class="control-label" for="username">
              Username:
            </label>
            <div class="controls">
              <input type="text" id="username">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="username">
              Password:
            </label>
            <div class="controls">
              <input type="password" id="password">
            </div>
          </div>
        <div class="alert alert-error hide" id="error-msg"></div>
      </div>
      <div class="modal-footer">
        <button type="submit" class="btn btn-primary">Login</button>
        <button class="btn" ng-click="hideLogin()">Cancel</button>
      </div>
    </form>
  </div>
</div>
{% endverbatim %}
{'fraction_non_alphanumeric': 0.2025247971145176, 'fraction_numerical': 0.001442741208295762, 'mean_word_length': 2.6777188328912467, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, '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': '1354096', 'n_tokens_mistral': 1815, 'n_tokens_neox': 1736, 'n_words': 295}