<commit_before>{{< core_form/element-template }}
    {{$element}}
        <input type="password"
                {{#element.frozen}}readonly{{/element.frozen}}
                class="form-control {{#error}}form-control-danger{{/error}}"
                name="{{element.name}}"
                id="{{element.id}}"
                value="{{element.value}}"
                size="{{element.size}}"
                {{#error}}
                    autofocus aria-describedby="id_error_{{element.name}}"
                {{/error}} {{{attributes}}}>
    {{/element}}
{{/ core_form/element-template }}
{{#js}}
require(['core/yui'], function(Y) {
    Y.use('moodle-form-passwordunmask', function() {
        M.form.passwordunmask({ formid: {{#quote}}{{element.id}}{{/quote}},
                                checkboxlabel: {{#quote}}{{#str}}unmaskpassword, form{{/str}}{{/quote}},
                                checkboxname: {{#quote}}{{element.name}}{{/quote}} });
    });
});
{{/js}}<commit_msg>MDL-55657 theme_noname: Re-use the password template.<commit_after>{{> core_form/element-password }}
{{#js}}
require(['core/yui'], function(Y) {
    Y.use('moodle-form-passwordunmask', function() {
        M.form.passwordunmask({ formid: {{#quote}}{{element.id}}{{/quote}},
                                checkboxlabel: {{#quote}}{{#str}}unmaskpassword, form{{/str}}{{/quote}},
                                checkboxname: {{#quote}}{{element.name}}{{/quote}} });
    });
});
{{/js}}
{'fraction_non_alphanumeric': 0.223202170963365, 'fraction_numerical': 0.0033921302578018998, 'mean_word_length': 2.33710407239819, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1087867', 'n_tokens_mistral': 459, 'n_tokens_neox': 430, 'n_words': 53}