<commit_before><title>{{ 'registrationTitle' | translate }}</title>
<div class="container">
  <div class="row">
    <div class="col-md-6 col-md-offset-3">
      <div class="panel panel-login">
        <div class="panel-heading">
          <div class="row">
            <div class="col-xs-6">
              <a href="#/login" class="" id="login-form-link">{{ 'registrationLogin' | translate }}</a>
            </div>
            <div class="col-xs-6">
              <a href="" class="active" id="register-form-link">{{ 'registrationTitle' | translate }}</a>
            </div>
          </div>
          <hr>
        </div>
        <div class="panel-body">
          <div class="row">
            <div class="col-lg-12">
                <form id="registrationForm" method="post" name="registrationForm">
                  <div class="form-group">

                      <div ng-messages="registrationForm.name.$error">
                        <errorMessage ng-message="required">{{ 'registrationErrorName' | translate }}</errorMessage>
                      </div>
                    <input ng-model="firstName" type="text" name="name" id="name" tabindex="1" class="valid" placeholder="{{ 'registrationName' | translate }}" value="" required>

                  </div>
                  <div class="form-group">

                    <div ng-messages="registrationForm.surname.$error">
                      <errorMessage ng-message="required">{{ 'registrationErrorSurname' | translate }}</errorMessage>
                    </div>
                    <input ng-model="lastName" type="text" name="surname" id="surname" tabindex="2" class="valid" placeholder="{{ 'registrationSurname' | translate  }}" required>

                  </div>
                  <div class="form-group">

                    <div ng-messages="registrationForm.email.$error">
                      <errorMessage ng-message="required">{{ 'registrationEnterEmail' | translate }}</errorMessage>
                      <errorMessage ng-message="email">{{ 'registrationErrorEmail' | translate }}</errorMessage>
                    </div>
                    <input ng-model="email" type="email" name="email" id="email" tabindex="3" class="valid" placeholder="{{ 'registrationEmail' | translate  }}" required>

                  </div><commit_msg>Registration form validations refactored in Angular way<commit_after><title>{{ 'registrationTitle' | translate }}</title>
<div class="container">
  <div class="row">
    <div class="col-md-6 col-md-offset-3">
      <div class="panel panel-login">
        <div class="panel-heading">
          <div class="row">
            <div class="col-xs-6">
              <a href="#/login" class="" id="login-form-link">{{ 'registrationLogin' | translate }}</a>
            </div>
            <div class="col-xs-6">
              <a href="" class="active" id="register-form-link">{{ 'registrationTitle' | translate }}</a>
            </div>
          </div>
          <hr>
        </div>
        <div class="panel-body">
          <div class="row">
            <div class="col-lg-12">
                <form id="registrationForm" method="post" name="registrationForm">
                  <div class="form-group">

                      <div ng-messages="registrationForm.name.$error" >
                        <errorMessage ng-message="required">{{ 'registrationErrorName' | translate }}</errorMessage>
                      </div>
                    <input ng-model="firstName" type="text" name="name" id="name" tabindex="1" class="valid" placeholder="{{ 'registrationName' | translate }}" value="" required>

                  </div>
                  <div class="form-group">

                    <div ng-messages="registrationForm.surname.$error">
                      <errorMessage ng-message="required">{{ 'registrationErrorSurname' | translate }}</errorMessage>
                    </div>
                    <input ng-model="lastName" type="text" name="surname" id="surname" tabindex="2" class="valid" placeholder="{{ 'registrationSurname' | translate  }}" required>

                  </div>
                  <div class="form-group">

                    <div ng-messages="registrationForm.email.$error">
                      <errorMessage ng-message="required">{{ 'registrationEnterEmail' | translate }}</errorMessage>
                      <errorMessage ng-message="email">{{ 'registrationErrorEmail' | translate }}</errorMessage>
                    </div>
                    <input ng-model="email" type="email" name="email" id="email" tabindex="3" class="valid" placeholder="{{ 'registrationEmail' | translate  }}" required>

                  </div>
{'fraction_non_alphanumeric': 0.1628455110349261, 'fraction_numerical': 0.00385686736661667, 'mean_word_length': 2.054973821989529, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '4208611', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1169, 'n_words': 251}