<commit_before><h4>Profile</h4>
<h4>Group membership</h4>
<h4>Change Password</h4>

<form name="userEditForm" novalidate>
    <md-input-container class="md-block" flex-gt-sm>
        <label for="username">Username</label>
        <md-icon ng-md-icon icon="account_circle" style="fill: black" size="24"></md-icon>
        <input type="text" id="username" name="username" ng-model="ctrl.list[0].username" required>

        <div ng-if="userEditForm.username.$dirty" ng-messages="userEditForm.username.$error">
            <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
        </div>
    </md-input-container>
    <md-input-container class="md-block" flex-gt-sm>
        <label for="email">Email</label>
        <md-icon ng-md-icon icon="email" style="fill: black" size="24"></md-icon>
        <input type="email" id="email" name="email" ng-model="ctrl.list[0].email" ng-minlength="4" ng-maxlength="254" required>

        <div ng-if="userEditForm.email.$dirty" ng-messages="userEditForm.email.$error">
            <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
        </div>
    </md-input-container>
    <md-input-container class="md-block" flex-gt-sm>
        <label for="password">Password</label>
        <md-icon ng-md-icon icon="lock" style="fill: black" size="24"></md-icon>
        <input password-strength type="password" id="password" name="password" ng-model="ctrl.list[0].password" ng-minlength="8" required>

        <div ng-if="userEditForm.password.$dirty" ng-messages="userEditForm.password.$error">
            <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
        </div>
    </md-input-container>
    <md-input-container class="md-block" flex-gt-sm>
        <label for="password_confirmation">Confirm Password</label>
        <md-icon ng-md-icon icon="lock" style="fill: black" size="24"></md-icon>
        <input password-match="ctrl.list[0].password" type="password" id="password_confirmation" name="password_confirmation" ng-model="ctrl.list[0].password_confirmation" ng-minlength="8" required>

        <div ng-if="userEditForm.password_confirmation.$dirty" ng-messages="userEditForm.password_confirmation.$error">
            <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
        </div>
    </md-input-container>

    <md-checkbox ng-model="ctrl.list[0].activate" ng-true-value="'activate'" class="md-warn" flex>
        Activated
    </md-checkbox>

    <div layout="row" layout-align="end center">
        <md-button ng-click="ctrl.update(ctrl.list[0].id)" ng-disabled="userEditForm.$invalid" class="md-raised md-primary md-hue-3">
            <ng-md-icon icon="input" style="fill: black" size="24"></ng-md-icon>
            Update
        </md-button>
    </div>
</form>

<!--<md-divider></md-divider>-->

<pre style="height:200px;scroll:auto;"><code>Data : {{ctrl.list | json: 2}}</code></pre>
<pre style="height:200px;scroll:auto;"><code>Data : {{ctrl.list[0].username | json: 2}}</code></pre>
<commit_msg>New user-edit-form.html<commit_after><!--
<h4>Profile</h4>
<h4>Group membership</h4>
<h4>Change Password</h4>
-->

<fieldset class="standard">
    <legend>Edit User</legend>
    <form name="userEditForm" novalidate>
        <md-input-container class="md-block" flex-gt-sm>
            <label for="username">Username</label>
            <md-icon ng-md-icon icon="account_circle" style="fill: black" size="24"></md-icon>
            <input type="text" id="username" name="username" ng-model="ctrl.list[0].username" required>

            <div ng-if="userEditForm.username.$dirty" ng-messages="userEditForm.username.$error">
                <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
            </div>
        </md-input-container>
        <md-input-container class="md-block" flex-gt-sm>
            <label for="email">Email</label>
            <md-icon ng-md-icon icon="email" style="fill: black" size="24"></md-icon>
            <input type="email" id="email" name="email" ng-model="ctrl.list[0].email" ng-minlength="4" ng-maxlength="254" required>

            <div ng-if="userEditForm.email.$dirty" ng-messages="userEditForm.email.$error">
                <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
            </div>
        </md-input-container>

        <!--
        <md-checkbox ng-model="ctrl.list[0].activate" ng-true-value="'activate'" class="md-warn" flex>
            Activated
        </md-checkbox>
        -->

        <div layout="row" layout-align="end center">
            <md-button ng-click="ctrl.update(ctrl.list[0].id)" ng-disabled="userEditForm.$invalid" class="md-raised md-primary md-hue-3">
                <ng-md-icon icon="input" style="fill: black" size="24"></ng-md-icon>
                Update
            </md-button>
        </div>
    </form>
</fieldset>

<fieldset class="standard">
    <legend>Change password</legend>
    <form name="changePasswordForm" novalidate>
        <md-input-container class="md-block" flex-gt-sm>
            <label for="old_password">Old Password</label>
            <md-icon ng-md-icon icon="lock" style="fill: black" size="24"></md-icon>
            <input password-strength type="password" id="old_password" name="old_password" ng-model="ctrl.list[0].old_password" ng-minlength="8" required>

            <div ng-if="changePasswordForm.old_password.$dirty" ng-messages="changePasswordForm.old_password.$error">
                <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
            </div>
        </md-input-container>
        <md-input-container class="md-block" flex-gt-sm>
            <label for="password">Password</label>
            <md-icon ng-md-icon icon="lock" style="fill: black" size="24"></md-icon>
            <input password-strength type="password" id="password" name="password" ng-model="ctrl.list[0].password" ng-minlength="8" required>

            <div ng-if="changePasswordForm.password.$dirty" ng-messages="changePasswordForm.password.$error">
                <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
            </div>
        </md-input-container>
        <md-input-container class="md-block" flex-gt-sm>
            <label for="password_confirmation">Confirm Password</label>
            <md-icon ng-md-icon icon="lock" style="fill: black" size="24"></md-icon>
            <input password-match="ctrl.list[0].password" type="password" id="password_confirmation" name="password_confirmation" ng-model="ctrl.list[0].password_confirmation" ng-minlength="8" required>

            <div ng-if="changePasswordForm.password_confirmation.$dirty" ng-messages="changePasswordForm.password_confirmation.$error">
                <div ng-messages-include="./views/ngMessages/ngMessages.html"></div>
            </div>
        </md-input-container>
        <div layout="row" layout-align="end center">
            <md-button ng-click="ctrl.update(ctrl.list[0].id)" ng-disabled="changePasswordForm.$invalid" class="md-raised md-primary md-hue-3">
                <ng-md-icon icon="input" style="fill: black" size="24"></ng-md-icon>
                Update
            </md-button>
        </div>
    </form>

</fieldset>

<md-divider></md-divider>

<pre style="height:200px;scroll:auto;"><code>Data : {{ctrl.list | json: 2}}</code></pre>

{'fraction_non_alphanumeric': 0.18382352941176472, 'fraction_numerical': 0.011029411764705883, 'mean_word_length': 3.110240626748741, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 169, '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': '5623946', 'n_tokens_mistral': 2362, 'n_tokens_neox': 2285, 'n_words': 352}