<commit_before><div class="form-group form-element-select {{ $errors->has($name) ? 'has-error' : '' }}">
    <label for="{{ $name }}" class="control-label">
        {{ $label }}

        @if($required)
            <span class="form-element-required">*</span>
        @endif
    </label>

    <deselect :value="{{ $value }}" :multiple="false" :options="{{json_encode($options)}}" inline-template>
        <div>
            <multiselect v-model="val"
                         track-by="id"
                         label="text"
                         :multiple="multiple"
                         :searchable="true"
                         :options="options"
                         placeholder="{{ trans('sleeping_owl::lang.select.placeholder') }}"
                         :select-label="'{{trans('sleeping_owl::lang.select.init')}}'"
                         :selected-label="'{{trans('sleeping_owl::lang.select.selected')}}'"
                         :deselect-label="'{{trans('sleeping_owl::lang.select.deselect')}}'"
            >
            </multiselect>

            <input type="hidden" name="{{$name}}" v-model="preparedVal">
        </div>
    </deselect><commit_msg>Update select.blade.php<commit_after><div class="form-group form-element-select {{ $errors->has($name) ? 'has-error' : '' }}">
    <label for="{{ $name }}" class="control-label">
        {{ $label }}

        @if($required)
            <span class="form-element-required">*</span>
        @endif
    </label>

    <deselect :value="{{ (is_numeric($value) ? $value : json_encode($value)) }}" :multiple="false" :options="{{json_encode($options)}}" inline-template>
        <div>
            <multiselect v-model="val"
                         track-by="id"
                         label="text"
                         :multiple="multiple"
                         :searchable="true"
                         :options="options"
                         placeholder="{{ trans('sleeping_owl::lang.select.placeholder') }}"
                         :select-label="'{{trans('sleeping_owl::lang.select.init')}}'"
                         :selected-label="'{{trans('sleeping_owl::lang.select.selected')}}'"
                         :deselect-label="'{{trans('sleeping_owl::lang.select.deselect')}}'"
            >
            </multiselect>

            <input type="hidden" name="{{$name}}" v-model="preparedVal">
        </div>
    </deselect>
{'fraction_non_alphanumeric': 0.18520049607275735, 'fraction_numerical': 0.0, 'mean_word_length': 1.8337236533957846, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '2976339', 'n_tokens_mistral': 675, 'n_tokens_neox': 634, 'n_words': 84}