<commit_before>@component($typeForm, get_defined_vars())
    <div data-controller="fields--select">
        <select @attributes($attributes)>
            @foreach($options as $key => $option)
                <option value="{{$key}}"
                        @isset($value)
                        @if (is_array($value) && in_array($key, $value)) selected
                        @elseif (isset($value[$key]) && $value[$key] == $option) selected
                        @elseif ($key == $value) selected
                        @endif
                        @endisset
                >{{$option}}</option>
            @endforeach
        </select>
    </div>
@endcomponent<commit_msg>Use strict type casting in select<commit_after>@component($typeForm, get_defined_vars())
    <div data-controller="fields--select">
        <select @attributes($attributes)>
            @foreach($options as $key => $option)
                <option value="{{$key}}"
                        @isset($value)
                        @if (is_array($value) && in_array($key, $value, true)) selected
                        @elseif (isset($value[$key]) && $value[$key] == $option) selected
                        @elseif ($key === $value) selected
                        @endif
                        @endisset
                >{{$option}}</option>
            @endforeach
        </select>
    </div>
@endcomponent
{'fraction_non_alphanumeric': 0.14788226848528357, 'fraction_numerical': 0.0, 'mean_word_length': 1.567219152854512, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '658770', 'n_tokens_mistral': 350, 'n_tokens_neox': 335, 'n_words': 73}