<commit_before><div class="container registration-form">
    <div class="row">
        <div class="col-md-offset-2 col-md-6">

            <form action="" method="post" class="form-horizontal">
                <div class="form-group" ng-class="{'has-error': vm.form.email.$invalid && vm.form.email.$dirty}">
                    <label class="col-md-4 control-label">E-mail (логін)*:</label>
                    <div class="col-md-8" >
                        <input ng-model="credentials.email" type="email" class="form-control" placeholder="E-mail" required>
                        <p ng-show="vm.form.email.$error.required && vm.form.email.$dirty" class="help-block">This field is required.</p>
        <p ng-show="vm.form.email.$invalid && vm.form.email.$dirty" class="help-block">Enter a valid email.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Пароль*:</label>
                    <div class="col-md-8" ng-class="{'has-error': vm.form.password.$invalid && vm.form.password.$dirty}">
                        <input ng-model="credentials.password" type="password" class="form-control" placeholder="Пар<PASSWORD>" required>
                        <p ng-show="vm.form.password.$error.minlength" class="help-block">Password is too short.</p>
        <p ng-show="vm.form.password.$error.required && vm.form.password.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.phone.$invalid && vm.form.phone.$dirty}">
                    <label class="col-md-4 control-label">Телефон*:</label>
                    <div class="col-md-8" >
                        <input ng-model="credentials.phone" type="tel" class="form-control" placeholder="Телефон" required>
                        <p ng-show="vm.form.phone.$error.required && vm.form.phone.$dirty" class="help-block">This field is required.</p>
        <p ng-show="vm.form.phone.$invalid && vm.form.phone.$dirty" class="help-block">Enter a valid email.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.username.$invalid && vm.form.username.$dirty}">
                    <label class="col-md-4 control-label">Ім'я*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.username" type="text" class="form-control" placeholder="Ім'я" required>
                        <p ng-show="vm.form.username.$error.required && vm.form.username.$dirty" class="help-block">This field is required.</p>
        <p ng-show="vm.form.username.$invalid && vm.form.username.$dirty" class="help-block">Enter a valid email.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.usersurname.$invalid && vm.form.usersurname.$dirty}">
                    <label class="col-md-4 control-label">Прізвище*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.usersurname" type="tel" class="form-control" placeholder="Прізвище" required>
                        <p ng-show="vm.form.usersurname.$error.required && vm.form.usersurname.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.city.$invalid && vm.form.city.$dirty}">
                    <label class="col-md-4 control-label">Місто*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.city" type="tel" class="form-control" placeholder="Місто" required>
                        <p ng-show="vm.form.city.$error.minlength" class="help-block">City is too short.</p>
                         <p ng-show="vm.form.city.$error.required && vm.form.city.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.date.$invalid && vm.form.date.$dirty}">
                    <label class="col-md-4 control-label">Дата народження*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.date" type="date" class="form-control" placeholder="Дата народження" required>
                        <p ng-show="vm.form.number.$error.minlength" class="help-block">Date of birth is too short.</p>
                         <p ng-show="vm.form.number.$error.required && vm.form.number.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Стать*:</label>
                    <div class="col-md-8">
                        <select ng-model="credentials.sex" class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свою стать</option>
                            <option value="man">Чоловік</option>
                            <option value="woman">Жінка</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" >
                    <label class="col-md-4 control-label">№ загону*:</label>
                    <div class="col-md-8">
                        <select class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свій загін</option>
                            <!-- <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="999">999</option> -->
                            <option ng-repeat="option in vm.availableOptions" value="{{option}}">{{option}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.group.$invalid && vm.form.date.$dirty}">
                    <label class="col-md-4 control-label">Назва ланки:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.group" type="text" class="form-control" placeholder="Назва ланки">
                        <p ng-show="vm.form.group.$error.minlength" class="help-block">Name group is too short.</p>
                         <p ng-show="vm.form.group.$error.required && vm.form.group.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Статус*:</label>
                    <div class="col-md-8">
                        <select ng-model="credentials.status" class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свій статус</option>
                            <option value="man">Рейнджер</option>
                            <option value="woman">Командир</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-4 col-md-8">
                        <button class="btn btn-primary" type="submit">Зареєструватися</button>
                    </div>
                </div><commit_msg>Add modes & validation on Register page (fixes)<commit_after><div class="container registration-form">
    <div class="row">
        <div class="col-md-offset-2 col-md-6">

            <form action="" method="post" class="form-horizontal">
                <div class="form-group" ng-class="{'has-error': vm.form.email.$invalid && vm.form.email.$dirty}">
                    <label class="col-md-4 control-label">E-mail (логін)*:</label>
                    <div class="col-md-8" >
                        <input ng-model="credentials.email" type="email" class="form-control" placeholder="E-mail" required>
                        <p ng-show="vm.form.email.$error.required && vm.form.email.$dirty" class="help-block">This field is required.</p>
                        <p ng-show="vm.form.email.$invalid && vm.form.email.$dirty" class="help-block">Enter a valid email.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Пароль*:</label>
                    <div class="col-md-8" ng-class="{'has-error': vm.form.password.$invalid && vm.form.password.$dirty}">
                        <input ng-model="credentials.password" type="password" class="form-control" placeholder="<PASSWORD>" required>
                        <p ng-show="vm.form.password.$error.minlength" class="help-block">Password is too short.</p>
                        <p ng-show="vm.form.password.$error.required && vm.form.password.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.phone.$invalid && vm.form.phone.$dirty}">
                    <label class="col-md-4 control-label">Телефон*:</label>
                    <div class="col-md-8" >
                        <input ng-model="credentials.phone" type="tel" class="form-control" placeholder="Телефон" required>
                        <p ng-show="vm.form.phone.$error.required && vm.form.phone.$dirty" class="help-block">This field is required.</p>
                        <p ng-show="vm.form.phone.$invalid && vm.form.phone.$dirty" class="help-block">Enter a valid phone.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.username.$invalid && vm.form.username.$dirty}">
                    <label class="col-md-4 control-label">Ім'я*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.username" type="text" class="form-control" placeholder="Ім'я" required>
                        <p ng-show="vm.form.username.$error.required && vm.form.username.$dirty" class="help-block">This field is required.</p>
                        <p ng-show="vm.form.username.$invalid && vm.form.username.$dirty" class="help-block">Enter a valid name.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.usersurname.$invalid && vm.form.usersurname.$dirty}">
                    <label class="col-md-4 control-label">Прізвище*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.usersurname" type="tel" class="form-control" placeholder="Прізвище" required>
                        <p ng-show="vm.form.usersurname.$error.required && vm.form.usersurname.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.city.$invalid && vm.form.city.$dirty}">
                    <label class="col-md-4 control-label">Місто*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.city" type="tel" class="form-control" placeholder="Місто" required>
                        <p ng-show="vm.form.city.$error.minlength" class="help-block">City is too short.</p>
                         <p ng-show="vm.form.city.$error.required && vm.form.city.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.date.$invalid && vm.form.date.$dirty}">
                    <label class="col-md-4 control-label">Дата народження*:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.date" type="date" class="form-control" placeholder="Дата народження" required>
                        <p ng-show="vm.form.number.$error.minlength" class="help-block">Date of birth is too short.</p>
                        <p ng-show="vm.form.number.$error.required && vm.form.number.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Стать*:</label>
                    <div class="col-md-8">
                        <select ng-model="credentials.sex" class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свою стать</option>
                            <option value="man">Чоловік</option>
                            <option value="woman">Жінка</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" >
                    <label class="col-md-4 control-label">№ загону*:</label>
                    <div class="col-md-8">
                        <select class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свій загін</option>
                            <!-- <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="999">999</option> -->
                            <option ng-repeat="option in vm.availableOptions" value="{{option}}">{{option}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" ng-class="{'has-error': vm.form.group.$invalid && vm.form.date.$dirty}">
                    <label class="col-md-4 control-label">Назва ланки:</label>
                    <div class="col-md-8">
                        <input ng-model="credentials.group" type="text" class="form-control" placeholder="<NAME>">
                        <p ng-show="vm.form.group.$error.minlength" class="help-block">Name group is too short.</p>
                        <p ng-show="vm.form.group.$error.required && vm.form.group.$dirty" class="help-block">This field is required.</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">Статус*:</label>
                    <div class="col-md-8">
                        <select ng-model="credentials.status" class="form-control" required>
                            <option value="" disabled selected hidden>Виберіть свій статус</option>
                            <option value="man">Рейнджер</option>
                            <option value="woman">Командир</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-4 col-md-8">
                        <button class="btn btn-primary" type="submit">Зареєструватися</button>
                    </div>
                </div>
{'fraction_non_alphanumeric': 0.16127762838591198, 'fraction_numerical': 0.004984587131894799, 'mean_word_length': 1.6248924083318987, 'pattern_counts': {'":': 0, '<': 296, '<?xml version=': 0, '>': 296, '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': '5293543', 'n_tokens_mistral': 4290, 'n_tokens_neox': 4149, 'n_words': 722}