<commit_before>@php
    // Build a value => label array from the passed in collection
    // Use 'id' as the value field unless otherwise specified
    $valueField = $valueField ?? 'id';
    $options = $options ?? $items->pluck($labelField, $valueField);

    $selected = $selected ?? old($name, $item->{$name}) ?? null;

    // Whether to include a blank option
    if (isset($blank) && $blank) {
        $options = $options->prepend('','');
    }

    $classes = $classes ?? 'custom-select';
@endphp

<select class="{{ $classes }}" id="{{ $name }}" name="{{ $name }}">
    @foreach($options as $value => $label)
        <option @if($value == $selected) selected @endif value="{{ $value }}">{{ $label }}</option>
    @endforeach
</select>

<commit_msg>Fixing reference to undefined variable<commit_after>@php
    // Build a value => label array from the passed in collection
    // Use 'id' as the value field unless otherwise specified
    $valueField = $valueField ?? 'id';
    $options = $options ?? $items->pluck($labelField, $valueField);

    $selected = $selected ?? old($name) ?? $item->{$name} ?? null;

    // Whether to include a blank option
    if (isset($blank) && $blank) {
        $options = $options->prepend('','');
    }

    $classes = $classes ?? 'custom-select';
@endphp

<select class="{{ $classes }}" id="{{ $name }}" name="{{ $name }}">
    @foreach($options as $value => $label)
        <option @if($value == $selected) selected @endif value="{{ $value }}">{{ $label }}</option>
    @endforeach
</select>


{'fraction_non_alphanumeric': 0.19765166340508805, 'fraction_numerical': 0.0, 'mean_word_length': 3.4593023255813953, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '971610', 'n_tokens_mistral': 455, 'n_tokens_neox': 449, 'n_words': 142}