<commit_before><template>
    <input
            :type="type"
            :value="value"
            :name="name"
            :id="id || ('b_'+_uid)"
            :disabled="disabled"
            ref="input"

            :is="textarea?'textarea':'input'"
            :class="['form-control',inputClass]"
            :rows="rows || rowsCount"

            :placeholder="placeholder"

            @input="onInput($event.target.value)"
            @change="onChange($event.target.value)"
            @keyup="onKeyUp($event)"
    />
</template>

<script>
    import formMixin from '../mixins/form';

    export default {
        mixins: [formMixin],
        computed: {
            rowsCount() {
                return (this.value || '').split('\n').length;
            }
        },
        methods: {
            format(value) {
                if (this.formatter) {
                    const formattedValue = this.formatter(value);<commit_msg>b-form-input: Propagate form & blur events<commit_after><template>
    <input
            :type="type"
            :value="value"
            :name="name"
            :id="id || ('b_'+_uid)"
            :disabled="disabled"
            ref="input"

            :is="textarea?'textarea':'input'"
            :class="['form-control',inputClass]"
            :rows="rows || rowsCount"

            :placeholder="placeholder"

            @input="onInput($event.target.value)"
            @change="onChange($event.target.value)"
            @keyup="onKeyUp($event)"
            @focus="$emit('focus')"
            @blur="$emit('blur')"
    />
</template>

<script>
    import formMixin from '../mixins/form';

    export default {
        mixins: [formMixin],
        computed: {
            rowsCount() {
                return (this.value || '').split('\n').length;
            }
        },
        methods: {
            format(value) {
                if (this.formatter) {
                    const formattedValue = this.formatter(value);
{'fraction_non_alphanumeric': 0.1596766043456291, 'fraction_numerical': 0.0, 'mean_word_length': 1.5916230366492146, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3924946', 'n_tokens_mistral': 561, 'n_tokens_neox': 534, 'n_words': 83}