<commit_before><template>
    <td :class="{ 'has-text-right': numeric }" :data-label="label">
        <span><slot></slot></span>
    </td>
</template>

<script>
    export default {
        name: 'bTableColumn',
        props: {
            label: {
                type: String,
                required: true
            },
            field: String,
            width: [Number, String],
            numeric: Boolean,
            sortable: Boolean,
            customSort: Function
        },
        created() {
            if (!this.$parent.$data._isTable) {
                this.$destroy()
                throw new Error('You should wrap bTableColumn on a bTable')
            }

            // Since we're using scoped prop the columns gonna be multiplied,
            // this finds when to stop based on the label prop.
            const repeated = this.$parent.columns.some((column) => {
                return column.label === this.label
            })
            !repeated && this.$parent.columns.push(this)
        }
    }
</script><commit_msg>Whole instance not necessary<commit_after><template>
    <td :class="{ 'has-text-right': numeric }" :data-label="label">
        <span><slot></slot></span>
    </td>
</template>

<script>
    export default {
        name: 'bTableColumn',
        props: {
            label: {
                type: String,
                required: true
            },
            field: String,
            width: [Number, String],
            numeric: Boolean,
            sortable: Boolean,
            customSort: Function
        },
        created() {
            if (!this.$parent.$data._isTable) {
                this.$destroy()
                throw new Error('You should wrap bTableColumn on a bTable')
            }

            // Since we're using scoped prop the columns gonna be multiplied,
            // this finds when to stop based on the label prop.
            const repeated = this.$parent.columns.some((column) => {
                return column.label === this.label
            })
            !repeated && this.$parent.columns.push(this.$props)
        }
    }
</script>
{'fraction_non_alphanumeric': 0.12172284644194757, 'fraction_numerical': 0.0, 'mean_word_length': 1.4705202312138728, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '804884', 'n_tokens_mistral': 558, 'n_tokens_neox': 534, 'n_words': 150}