<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>parsers and formatters</title>

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

</head>
<body ng-app='app'>

    <div class="jumbotron">
    </div>

    <div class="row" ng-controller="Controller">
      <div class="col-md-6">
        <h4>User Account</h4>

        <form name="userForm" ng-submit="save(user)">

          <div class="form-group">
            <input name="name" class="form-control" ng-model="user.name"
              placeholder="Name" required>
          </div>

          <div class="form-group">
            <div class="input-group">
              <span class="input-group-addon">@</span>
              <input name="email" class="form-control" ng-model="user.email"
                placeholder="Email" required>
            </div>
          </div>

          <div class="form-group">
            <input name="username" class="form-control" ng-model="user.username"
              placeholder="Username" required>
          </div>

          whole form: {{userForm.$error}}
          <br>
          name: {{userForm.name.$error}}
          <br>
          email: {{userForm.email.$error}}
          <br>
          username: {{userForm.username.$error}}

          <button type="submit" class="btn btn-default pull-right">
            Save
          </button>

        </form>
      </div>

      <div class="col-md-6">
        <div ng-show="savedUser">
          <h4>Saved User:</h4>
          <dl>
            <dt>Name</dt>
            <dd>{{savedUser.name}}</dd>

            <dt>Email</dt>
            <dd>{{savedUser.email}}</dd>
<commit_msg>inline alert for each dirty required field<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>parsers and formatters</title>

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

</head>
<body ng-app='app'>

    <div class="jumbotron">
    </div>

    <div class="row" ng-controller="Controller">
      <div class="col-md-6">
        <h4>User Account</h4>

        <form name="userForm" ng-submit="save(user)">

          <div class="form-group">
            <input name="name" class="form-control" ng-model="user.name"
              placeholder="Name" required>
            <div class="alert alert-danger"
              ng-show="userForm.name.$error.required && userForm.name.$dirty">
              Please enter your name!
            </div>
          </div>

          <div class="form-group">
            <div class="input-group">
              <span class="input-group-addon">@</span>
              <input name="email" class="form-control" ng-model="user.email"
                placeholder="Email" required>
              <div class="alert alert-danger"
                ng-show="userForm.email.$error.required && userForm.email.$dirty">
                Please enter your email!
              </div>
            </div>
          </div>

          <div class="form-group">
            <input name="username" class="form-control" ng-model="user.username"
              placeholder="Username" required>
            <div class="alert alert-danger"
              ng-show="userForm.username.$error.required && userForm.username.$dirty">
              Please enter your username!
            </div>
          </div>

          <button type="submit" class="btn btn-default pull-right">
            Save
          </button>

        </form>
      </div>

      <div class="col-md-6">
        <div ng-show="savedUser">
          <h4>Saved User:</h4>
          <dl>
            <dt>Name</dt>
            <dd>{{savedUser.name}}</dd>

            <dt>Email</dt>
            <dd>{{savedUser.email}}</dd>

{'fraction_non_alphanumeric': 0.1648497739962776, 'fraction_numerical': 0.003722414251528849, 'mean_word_length': 1.880551301684533, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 104, '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': '163318', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1095, 'n_words': 210}