<commit_before><template>
    <div class="kiwi-bufferkey">
        <form @submit.prevent="joinChannel">
            <label>{{$t('bufferkey_input')}}</label>
            <input type="password" v-model='buffer.key'></input>
            <div class="kiwi-bufferkey-buttons">
                <span @click="joinChannel" class="kiwi-bufferkey-button">
                    <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    {{$t('bufferkey_rejoin', {channel: buffer.name})}}
                </span>
            </div>
        </form>
    </div>
</template>

<script>

export default {
    data: function data() {
        return {
        };
    },
    props: ['buffer', 'network'],
    computed: {
    },
    methods: {
        joinChannel: function joinChannel() {
            this.buffer.flags.channel_badkey = false;
            this.buffer.join();
        },
    },
};
</script>

<style lang="less">
.kiwi-bufferkey {
    box-sizing: border-box;
    text-align: center;
    padding: 10% 0;
    margin: 10px 0 0 0;
    background: #d16c6c;
    color: #fff;
    transition: background-color 0.3s;
}<commit_msg>Auto focus key input field; General syntax cleanup;<commit_after><template>
    <div class="kiwi-bufferkey">
        <form @submit.prevent="joinChannel">
            <label>{{$t('bufferkey_input')}}</label>
            <input v-focus type="password" v-model="buffer.key"></input>
            <div class="kiwi-bufferkey-buttons">
                <span @click="joinChannel" class="kiwi-bufferkey-button">
                    <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    {{$t('bufferkey_rejoin', {channel: buffer.name})}}
                </span>
            </div>
        </form>
    </div>
</template>

<script>

export default {
    data: function data() {
        return {
        };
    },
    props: ['buffer', 'network'],
    methods: {
        joinChannel() {
            this.buffer.flags.channel_badkey = false;
            this.buffer.join();
        },
    },
};
</script>

<style lang="less">
.kiwi-bufferkey {
    box-sizing: border-box;
    text-align: center;
    padding: 10% 0;
    margin: 10px 0 0 0;
    background: #d16c6c;
    color: #fff;
    transition: background-color 0.3s;
}
{'fraction_non_alphanumeric': 0.16556583003082342, 'fraction_numerical': 0.011448701012769706, 'mean_word_length': 2.0414993306559572, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '3802287', 'n_tokens_mistral': 738, 'n_tokens_neox': 704, 'n_words': 139}