<commit_before><div class="modal-header">
    <h3 class="modal-title">{{title}}</h3>
</div>
<div class="modal-body">
    <form name="registerForm" novalidate>

        <div class="form-group">
            <input name="email" type="email" class="form-control" data-ng-model="email"
                   ng-enter="register()" focus="displayForm" placeholder="你的常用邮箱" maxlength="30" required
                   autocomplete="off"/>
            <div class="validation-error-message"
                 ng-show="registerForm.email.$error.required && registerForm.email.$dirty">邮箱不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.email.$error.email && registerForm.email.$dirty">邮箱格式不正确
            </div>
        </div>
        <div class="form-group">
            <input name="name" type="text" class="form-control" data-ng-model="name"
                   ng-enter="register()" placeholder="你的用户名" maxlength="20" minlength="4" required
                   autocomplete="off"
                   ng-pattern="/^\w+$/"/>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.required&& registerForm.name.$dirty">用户名不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.minlength && registerForm.name.$dirty">
                用户名至少包含4个字符
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.pattern && registerForm.name.$dirty">用户名只能包含数字、字母以及下划线
            </div>

        </div>
        <div class="form-group">
            <input name="password" type="password" class="form-control" data-ng-model="password"
                   ng-enter="register()" placeholder="密码" ng-minlength="6" maxlength="20" required
                   ng-pattern="/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&*]+$)(?![\d!@#$%^&*]+$)[a-zA-Z\d!@#$%^&*]+$/"/>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.required && registerForm.password.$dirty">密码不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.pattern && registerForm.password.$dirty">
                密码必须含有数字、字母以及特殊字符
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.minlength && registerForm.password.$dirty">
                密码至少6个字符
            </div>
        </div>
        <div class="modal-footer form-group" ng-enter="register()">
            <button class="btn btn-primary thiki-button-large" type="submit" ng-click="register()"
                    ng-disabled="registerForm.$invalid">注册
            </button>
        </div>
    </form>

</div>

<commit_msg>Optimizing register.html layout.<commit_after><div class="modal-header">
    <h3 class="modal-title">{{title}}</h3>
</div>
<div class="modal-body">
    <form name="registerForm" novalidate>

        <div class="form-group">
            <input name="email" type="email" class="form-control" data-ng-model="email"
                   ng-enter="register()" focus="displayForm" placeholder="你的常用邮箱" maxlength="30" required
                   autocomplete="off"/>
            <div class="validation-error-message"
                 ng-show="registerForm.email.$error.required && registerForm.email.$dirty">邮箱不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.email.$error.email && registerForm.email.$dirty">邮箱格式不正确
            </div>
        </div>
        <div class="form-group">
            <input name="name" type="text" class="form-control" data-ng-model="name"
                   ng-enter="register()" placeholder="你的用户名" maxlength="20" minlength="4" required
                   autocomplete="off"
                   ng-pattern="/^\w+$/"/>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.required&& registerForm.name.$dirty">用户名不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.minlength && registerForm.name.$dirty">
                用户名至少包含4个字符
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.name.$error.pattern && registerForm.name.$dirty">用户名只能包含数字、字母以及下划线
            </div>

        </div>
        <div class="form-group">
            <input name="password" type="password" class="form-control" data-ng-model="password"
                   ng-enter="register()" placeholder="密码" ng-minlength="6" maxlength="20" required
                   ng-pattern="/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&*]+$)(?![\d!@#$%^&*]+$)[a-zA-Z\d!@#$%^&*]+$/"/>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.required && registerForm.password.$dirty">密码不能为空
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.pattern && registerForm.password.$dirty">
                密码必须含有数字、字母以及特殊字符
            </div>
            <div class="validation-error-message"
                 ng-show="registerForm.password.$error.minlength && registerForm.password.$dirty">
                密码至少6个字符
            </div>
        </div>
    </form>
</div>
<div class="modal-footer" ng-enter="register()">
    <button class="btn btn-primary" type="submit" ng-click="register()"
            ng-disabled="registerForm.$invalid">注册
    </button>
</div>

{'fraction_non_alphanumeric': 0.18039697874582822, 'fraction_numerical': 0.004215703495520815, 'mean_word_length': 2.1739130434782608, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '6712752', 'n_tokens_mistral': 1781, 'n_tokens_neox': 1777, 'n_words': 222}