<commit_before>﻿<ion-header>

    <ion-navbar>
        <ion-title>Register</ion-title>
    </ion-navbar>

</ion-header>


<ion-content padding>
    <ion-list no-lines>

        <form [formGroup]="registerForm">

            <ion-item>
                <ion-label floating class="validationLabel">Email</ion-label>
                <ion-input formControlName="email" type="text" [(ngModel)]="userEmail" [class.invalid]="!registerForm.controls.email.valid &&
                           (registerForm.controls.email.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.email.valid && (registerForm.controls.email.dirty || submitAttempt)">
                <p class="warning">Please enter a valid email address.</p>
            </ion-item>

            <ion-item>
                <ion-label floating class="validationLabel">Password</ion-label>
                <ion-input formControlName="password" type="password" [(ngModel)]="userPassword" [class.invalid]="!registerForm.controls.password.valid &&
                           (registerForm.controls.password.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.password.valid && (registerForm.controls.password.dirty || submitAttempt)">
                <p class="warning">Password is not in the correct format. It must be at least 6 digits long.</p><br />
                <p class="warning">It must include both an upper and a lower case lettter.</p><br />
                <p class="warning">It must include at least 1 number and 1 non-number/non-letter special character.</p>
            </ion-item>

            <ion-item>
                <ion-label floating class="validationLabel">Confirm Password</ion-label>
                <ion-input formControlName="confirmPassword" type="password" [(ngModel)]="userConfirmPassword" [class.invalid]="!registerForm.controls.password.valid &&
                           (registerForm.controls.password.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.confirmPassword.valid && (registerForm.controls.confirmPassword.dirty || submitAttempt)">
                <p class="warning">Passwords do not match.</p><commit_msg>Fixed spelling error in warning message.<commit_after>﻿<ion-header>

    <ion-navbar>
        <ion-title>Register</ion-title>
    </ion-navbar>

</ion-header>


<ion-content padding>
    <ion-list no-lines>

        <form [formGroup]="registerForm">

            <ion-item>
                <ion-label floating class="validationLabel">Email</ion-label>
                <ion-input formControlName="email" type="text" [(ngModel)]="userEmail" [class.invalid]="!registerForm.controls.email.valid &&
                           (registerForm.controls.email.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.email.valid && (registerForm.controls.email.dirty || submitAttempt)">
                <p class="warning">Please enter a valid email address.</p>
            </ion-item>

            <ion-item>
                <ion-label floating class="validationLabel">Password</ion-label>
                <ion-input formControlName="password" type="password" [(ngModel)]="userPassword" [class.invalid]="!registerForm.controls.password.valid &&
                           (registerForm.controls.password.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.password.valid && (registerForm.controls.password.dirty || submitAttempt)">
                <p class="warning">Password is not in the correct format. It must be at least 6 digits long.</p><br />
                <p class="warning">It must include both an upper and a lower case letter.</p><br />
                <p class="warning">It must include at least 1 number and 1 non-number/non-letter special character.</p>
            </ion-item>

            <ion-item>
                <ion-label floating class="validationLabel">Confirm Password</ion-label>
                <ion-input formControlName="confirmPassword" type="password" [(ngModel)]="userConfirmPassword" [class.invalid]="!registerForm.controls.password.valid &&
                           (registerForm.controls.password.dirty || submitAttempt)"></ion-input>
            </ion-item>

            <ion-item *ngIf="!registerForm.controls.confirmPassword.valid && (registerForm.controls.confirmPassword.dirty || submitAttempt)">
                <p class="warning">Passwords do not match.</p>
{'fraction_non_alphanumeric': 0.14357080799304953, 'fraction_numerical': 0.0013032145960034753, 'mean_word_length': 2.485995457986374, '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': '7483991', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1185, 'n_words': 234}