<commit_before>import Btn from './Btn'
import BtnGroup from './BtnGroup'

export default {
    name: 'btn-radio',
    props: {
        ...BtnGroup.props,
        value: null
    },
    methods: {
        _updateValue({ target }) {
            this.$emit('input', target.__vue__.value)
        }
    },
    computed: {
        stateOptions() {
            return this.options.map((option) => {
                return {
                    ...option,
                    active: this.value === option.value
                }
            })
        }
    },
    render(h) {
        return <BtnGroup>
            { this.stateOptions.map((props) => <Btn on-click={this._updateValue} { ...{ props } } />)}
        </BtnGroup>
    }
}<commit_msg>extend BtnGroup props<commit_after>import Btn from './Btn'
import BtnGroup from './BtnGroup'

export default {
    name: 'btn-radio',
    props: {
        ...BtnGroup.props,
        value: null
    },
    methods: {
        _updateValue({ target }) {
            this.$emit('input', target.__vue__.value)
        }
    },
    computed: {
        stateOptions() {
            return this.options.map((option) => {
                return {
                    ...option,
                    active: this.value === option.value
                }
            })
        }
    },
    render(h) {
        const btnGroupProps = this.$options.props || {}
        const props = {}

        for (let propName in btnGroupProps)
            if (btnGroupProps.hasOwnProperty(propName))
                props[propName] = this[propName]

        delete props.value

        return <BtnGroup { ...{ props } }>
            { this.stateOptions.map((props) => <Btn on-click={this._updateValue} { ...{ props } } />)}
        </BtnGroup>
    }
}
{'fraction_non_alphanumeric': 0.14350538854225753, 'fraction_numerical': 0.0, 'mean_word_length': 1.4230769230769231, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '179723', 'n_tokens_mistral': 508, 'n_tokens_neox': 497, 'n_words': 95}