<commit_before><template name="fullPageSigninForm">
  <div class="container">
    <div class="row">
      <div class="col-md-5 col-md-offset-3">
          {{> signinForm}}
      </div>
    </div>
  </div>
</template>

<template name="signinForm">
  <div class="at">
    {{#unless currentUser}}
      {{#if stateIs 'fpwd'}}
        <h3> {{t9n "resetYourPassword"}} </h3>
      {{/if}}
      {{#if stateIs 'sgin'}}
        {{#if otherLoginServices}}
          <div class="at-social">
            {{#each loginServices}}
              {{> atSocial}}
            {{/each}}
            {{#if passwordLoginService}}
              <div class="email-option">
                <strong class="line-thru or-sign-in">{{t9n "OR"}}</strong>
              </div>
            {{/if}}
          </div>
        {{/if}}
        {{#unless otherLoginServices}}
          <div class="email-option">
            <h3>{{t9n "signIn"}}</h3>
          </div>
        {{/unless}}
      {{/if}}
      {{#if stateIs 'sgup'}}
        <h3>{{t9n "createAccount"}}</h3>
        <p class="at-signin-cta">{{t9n "ifYouAlreadyHaveAnAccount"}} <a href="{{signInLink}}" id="at-sgin" class="{{disabled}}">{{t9n "signin"}}</a>.</p>
      {{/if}}
      {{#if overallError}}
        <div id="atError">
          <div class='alert alert-danger'>{{overallError}}</div>
        </div>
      {{/if}}
      {{#if result}}
        <div id="atResult">
          <div class='alert alert-success'>{{result}}</div>
        </div>
      {{/if}}
      {{#if passwordLoginService}}
        <form role="form" id="at-form-login" class="at-form" novalidate>
          {{#each fields}}
            {{#if displayField}}
              {{> atInput}}
            {{/if}}   
          {{/each}}
          {{#if showForgotPassword}}
            <p><a href="{{forgotPwdLink}}" id="at-fpwd" class="{{disabled}}">{{t9n "forgotPassword"}}</a></p>
          {{/if}}
          <button type='submit' class="submit btn btn-lg btn-default {{disabled}}" id="at-btn">{{buttonText}}</button>
        </form>
        {{#unless stateIs 'sgup'}}
          {{#if showSignUpLink}}
            <p class="at-signup-cta">{{t9n "dontHaveAnAccount"}} <a href="{{signUpLink}}" id="at-sgup" class="{{disabled}}">{{t9n "signUp"}}</a></p>
          {{/if}}
        {{/unless}}
      {{/if}}
    {{else}}
        <h3>Hi {{signedInAs}}</h3>
        {{#if showAddRemoveServices}}
          <div class="at-social">
            {{#each loginServices}}
              {{> atSocial}}
            {{/each}}
          </div>
        {{/if}}
        <div class="text-center">
          <div class="btn btn-lg btn-default {{disabled}}" id="at-btn-logout">{{t9n "signOut"}}</div>
        </div>
    {{/unless}}    
  </div>
</template>


<template name="fullPageResetPassword">
  <div class="container">
    <div class="row">
      <div class="col-md-5 col-md-offset-3">
          {{> atResetPassword}}<commit_msg>disabling submit button in presence of errors<commit_after><template name="fullPageSigninForm">
  <div class="container">
    <div class="row">
      <div class="col-md-5 col-md-offset-3">
          {{> signinForm}}
      </div>
    </div>
  </div>
</template>

<template name="signinForm">
  <div class="at">
    {{#unless currentUser}}
      {{#if stateIs 'fpwd'}}
        <h3> {{t9n "resetYourPassword"}} </h3>
      {{/if}}
      {{#if stateIs 'sgin'}}
        {{#if otherLoginServices}}
          <div class="at-social">
            {{#each loginServices}}
              {{> atSocial}}
            {{/each}}
            {{#if passwordLoginService}}
              <div class="email-option">
                <strong class="line-thru or-sign-in">{{t9n "OR"}}</strong>
              </div>
            {{/if}}
          </div>
        {{/if}}
        {{#unless otherLoginServices}}
          <div class="email-option">
            <h3>{{t9n "signIn"}}</h3>
          </div>
        {{/unless}}
      {{/if}}
      {{#if stateIs 'sgup'}}
        <h3>{{t9n "createAccount"}}</h3>
        <p class="at-signin-cta">{{t9n "ifYouAlreadyHaveAnAccount"}} <a href="{{signInLink}}" id="at-sgin" class="{{disabled}}">{{t9n "signin"}}</a>.</p>
      {{/if}}
      {{#if overallError}}
        <div id="atError">
          <div class='alert alert-danger'>{{overallError}}</div>
        </div>
      {{/if}}
      {{#if result}}
        <div id="atResult">
          <div class='alert alert-success'>{{result}}</div>
        </div>
      {{/if}}
      {{#if passwordLoginService}}
        <form role="form" id="at-form-login" class="at-form" novalidate>
          {{#each fields}}
            {{#if displayField}}
              {{> atInput}}
            {{/if}}   
          {{/each}}
          {{#if showForgotPassword}}
            <p><a href="{{forgotPwdLink}}" id="at-fpwd" class="{{disabled}}">{{t9n "forgotPassword"}}</a></p>
          {{/if}}
          <button type='submit' class="submit btn btn-lg btn-default {{submitDisabled}} {{disabled}}" id="at-btn">{{buttonText}}</button>
        </form>
        {{#unless stateIs 'sgup'}}
          {{#if showSignUpLink}}
            <p class="at-signup-cta">{{t9n "dontHaveAnAccount"}} <a href="{{signUpLink}}" id="at-sgup" class="{{disabled}}">{{t9n "signUp"}}</a></p>
          {{/if}}
        {{/unless}}
      {{/if}}
    {{else}}
        <h3>Hi {{signedInAs}}</h3>
        {{#if showAddRemoveServices}}
          <div class="at-social">
            {{#each loginServices}}
              {{> atSocial}}
            {{/each}}
          </div>
        {{/if}}
        <div class="text-center">
          <div class="btn btn-lg btn-default {{disabled}}" id="at-btn-logout">{{t9n "signOut"}}</div>
        </div>
    {{/unless}}    
  </div>
</template>


<template name="fullPageResetPassword">
  <div class="container">
    <div class="row">
      <div class="col-md-5 col-md-offset-3">
          {{> atResetPassword}}
{'fraction_non_alphanumeric': 0.2175618073316283, 'fraction_numerical': 0.007502131287297527, 'mean_word_length': 2.0552083333333333, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 137, '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': '6328786', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1931, 'n_words': 356}