<commit_before>Vue.component('passwords-edit-item', {
    template: '\
    <div class="password row">\
    <div class="col-sm-3">\
    <label>Name</label>\
    <input v-model="item.name" type="text">\
    </div>\
    <div class="col-sm-4">\
    <label>Password</label>\
    <input v-model="item.password" :type="item.visibility ? \'text\': \'password\'">\
    <button @click="$emit(\'gen\')" type="button" class="btn btn-xs btn-default button-gen-password">\
    <span class="glyphicon glyphicon-flash" aria-hidden="true"></span>\
    </button>\
    <button @click="$emit(\'visibility\')" type="button" class="btn btn-xs btn-default button-show-password">\
    <span :class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>\
    </button>\
    </div>\
    <div class="col-sm-3">\
    <label>Confirm</label>\
    <input v-model="item.confirm" :type="item.visibility ? \'text\': \'password\'">\
    </div>\
    <div class="pull-right">\
    <button @click="$emit(\'delete\')" type="button" class="btn btn-sm btn-default">\
    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>\
    </button>\
    </div>\
    </div>\
    ',
    props: ['index', 'item'],
    methods: {

    }
});

var vmPasswordsEditWidget = new Vue({
    el: '.passwords-edit-area',
    data: {
        passwords: []
    },
    methods: {
        addPasswordEditWidget: function () {
            this.passwords.push({
                name: '',
                password: '',
                confirm: '',
                visibility: false
            });
        },
        deleteItem: function (index) {
            // if (confirm('Are you sure you want to delete this password?')) {
            //     this.todos.splice(index, 1);
            // }
            this.passwords.splice(index, 1);
        },
        genPassword: function (index) {
            this.passwords[index].confirm = this.passwords[index].password = genPassword();

        },
        changeVisibility: function (index) {
            this.passwords[index].visibility = !this.passwords[index].visibility;

        }
    }
});
<commit_msg>point<commit_after>Vue.component('passwords-edit-item', {
    template: '\
    <div class="password row">\
    <div class="col-sm-3">\
    <label>Name</label>\
    <input v-model="item.name" type="text">\
    </div>\
    <div class="col-sm-4">\
    <label>Password</label>\
    <input v-model="item.password" :type="item.visibility ? \'text\': \'password\'">\
    <button @click="$emit(\'gen\')" type="button" class="btn btn-xs btn-default button-gen-password">\
    <span class="glyphicon glyphicon-flash" aria-hidden="true"></span>\
    </button>\
    <button @click="$emit(\'visibility\')" type="button" class="btn btn-xs btn-default button-show-password">\
    <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>\
    </button>\
    </div>\
    <div class="col-sm-3">\
    <label>Confirm</label>\
    <input v-model="item.confirm" :type="item.visibility ? \'text\': \'password\'">\
    </div>\
    <div class="pull-right">\
    <button @click="$emit(\'delete\')" type="button" class="btn btn-sm btn-default">\
    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>\
    </button>\
    </div>\
    </div>\
    ',
    props: ['index', 'item'],
    methods: {

    }
});

var vmPasswordsEditWidget = new Vue({
    el: '.passwords-edit-area',
    data: {
        passwords: []
    },
    methods: {
        addPasswordEditWidget: function () {
            this.passwords.push({
                name: '',
                password: '',
                confirm: '',
                visibility: false
            });
        },
        deleteItem: function (index) {
            // if (confirm('Are you sure you want to delete this password?')) {
            //     this.todos.splice(index, 1);
            // }
            this.passwords.splice(index, 1);
        },
        genPassword: function (index) {
            this.passwords[index].confirm = this.passwords[index].password = genPassword();

        },
        changeVisibility: function (index) {
            this.passwords[index].visibility = !this.passwords[index].visibility;

        }
    }
});

{'fraction_non_alphanumeric': 0.1935099021713195, 'fraction_numerical': 0.0023860653781913625, 'mean_word_length': 2.2420726991492654, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '6781062', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1289, 'n_words': 236}