<commit_before>import Vue from 'vue';
import { PluginObject } from 'vue';
import Component from 'vue-class-component';
import { Prop } from 'vue-property-decorator';
import WithRender from './radio-buttons.html?style=./radio-buttons.scss';
import { RADIO_BUTTONS_NAME } from '../component-names';

const POSITION_LEFT: string = 'left';

export interface MRadioData {
    value: string;
    label: string;
    checked: boolean;
}

@WithRender
@Component
export class MRadioButtons extends Vue {

    @Prop({
        default: () => {
            return [
                {
                    'value': 'radio-1',
                    'label': 'Radio 1',
                    'checked': true
                },
                {
                    'value': 'radio-2',
                    'label': 'Radio 2'
                },
                {
                    'value': 'radio-3',
                    'label': 'Radio 3'
                },
                {
                    'value': 'radio-4',
                    'label': 'Radio 4'
                }
            ];
        }
    })
    public radioValues: MRadioData[];
    @Prop({ default: 'radio' })
    public name: string;
    @Prop({ default: true })
    public hasLabel: boolean;
    @Prop({ default: POSITION_LEFT })
    public position: string;

    public componentName: string = RADIO_BUTTONS_NAME;
    private propsHasLabel: boolean = true;
    private propsPosition: string = POSITION_LEFT;
    private isFocus: boolean = false;
    private checkedValue: string = '';
    private defaultCheckedValue: string = this.findChecked();
    private test: boolean = false;

    private mounted(): void {
        this.propsHasLabel = this.hasLabel;
        this.propsPosition = this.position;
        if (this.defaultCheckedValue != '') {
            this.checkedValue = this.defaultCheckedValue;
        }
    }<commit_msg>Remove unnecessary var in radio-buttons component<commit_after>import Vue from 'vue';
import { PluginObject } from 'vue';
import Component from 'vue-class-component';
import { Prop } from 'vue-property-decorator';
import WithRender from './radio-buttons.html?style=./radio-buttons.scss';
import { RADIO_BUTTONS_NAME } from '../component-names';

const POSITION_LEFT: string = 'left';

export interface MRadioData {
    value: string;
    label: string;
    checked: boolean;
}

@WithRender
@Component
export class MRadioButtons extends Vue {

    @Prop({
        default: () => {
            return [
                {
                    'value': 'radio-1',
                    'label': 'Radio 1',
                    'checked': true
                },
                {
                    'value': 'radio-2',
                    'label': 'Radio 2'
                },
                {
                    'value': 'radio-3',
                    'label': 'Radio 3'
                },
                {
                    'value': 'radio-4',
                    'label': 'Radio 4'
                }
            ];
        }
    })
    public radioValues: MRadioData[];
    @Prop({ default: 'radio' })
    public name: string;
    @Prop({ default: true })
    public hasLabel: boolean;
    @Prop({ default: POSITION_LEFT })
    public position: string;

    public componentName: string = RADIO_BUTTONS_NAME;
    private propsHasLabel: boolean = true;
    private propsPosition: string = POSITION_LEFT;
    private isFocus: boolean = false;
    private checkedValue: string = '';
    private defaultCheckedValue: string = this.findChecked();

    private mounted(): void {
        this.propsHasLabel = this.hasLabel;
        this.propsPosition = this.position;
        if (this.defaultCheckedValue != '') {
            this.checkedValue = this.defaultCheckedValue;
        }
    }
{'fraction_non_alphanumeric': 0.11699016219090667, 'fraction_numerical': 0.00425418771603297, 'mean_word_length': 1.7621145374449338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4730810', 'n_tokens_mistral': 1033, 'n_tokens_neox': 985, 'n_words': 257}