<commit_before>@if($isHorizontal)
    <div class="col-sm-{{ $fieldWidth }}">
@endif

    {!! $controlHtml !!}

    @if(! $errors->isEmpty() && ! $errors->has($name))
        <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" style="margin-right: 35px;"></span>
        <span id="inputSuccess2Status" class="sr-only">(success)</span>
    @endif

    @if(! $errors->isEmpty() && $errors->has($name))
        <span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" style="margin-right: 35px;"></span>
        <span id="inputError2Status" class="sr-only">(error)</span>
        <span class="help-block">{{ implode(' ', $errors->get($name)) }}</span>
    @endif
    <script>
        window['genealabsLaravelCasts'] = window.genealabsLaravelCasts || {};
        window.genealabsLaravelCasts['comboboxLoaders'] = window.genealabsLaravelCasts.comboboxLoaders || [];
        window.genealabsLaravelCasts['framework'] = window.genealabsLaravelCasts.framework || 'bootstrap4';
        window.genealabsLaravelCasts.comboboxLoaders.push(function () {
            @if(array_key_exists('subFormClass', $options))
                $('{{ $options['subFormClass'] }}').find('input,textarea,select').attr('disabled', 'disabled');
            @endif

            $('{!! array_key_exists('subFormClass', $options) ? '[subFormClass="' . $options['subFormClass'] . '"]' : '' !!}[name="{{ $name }}"]').selectize({
                options: {!! $options['list'] !!},
                list: {!! $options['selected'] !!},
                labelField: 'text',
                valueField: 'value',
                sortField: [
                    {
                        field: 'text',
                        direction: 'asc'
                    },
                    {
                        field: '$score'
                    }
                ],
                create:
                    @if(array_key_exists('multiple', $options) && $options['multiple'] === 'multiple')
                        false,
                    @else
                        function (name) {
                            @if(array_key_exists('createCallback', $options))
                                {{ $options['createCallback'] }}(name);
                            @endif

                            return {'text': name, 'value': -1};
                        },
                    @endif
                onChange: function (value) {
                    @if(array_key_exists('changeCallback', $options))
                        {{ $options['changeCallback'] }}(value);
                    @endif

                    @if(array_key_exists('subFormClass', $options))
                        if (value == -1) {
                            $('{{ $options['subFormClass'] }}').find('input,textarea,select').removeAttr('disabled');
                            $('{{ $options['subFormClass'] }}').removeClass('hidden-xs-up');
                            $('{{ $options['subFormClass'] }} [name="{{ $options['subFormFieldName'] }}"]').val($('[name={{ $name }}]').text());
                        } else {
                            $('[name={{ $name }}]').selectize()[0].selectize.removeOption(-1);
                            $('{{ $options['subFormClass'] }}').addClass('hidden-xs-up');
                            $('{{ $options['subFormClass'] }} [name="{{ $options['subFormFieldName'] }}"]').val('');
                            $('{{ $options['subFormClass'] }}').find('input,textarea,select').attr('disabled', 'disabled');
                        }
                    @endif
                }
            });

            @if(array_key_exists('subFormClass', $options))
            $('{!! $options['subFormClass'] !!} input[type="submit"]').on('click', function (event) {<commit_msg>WIP - fixes for bootstrap 4 beta<commit_after>@if($isHorizontal)
    <div class="col-sm-{{ $fieldWidth }}">
@endif

    {!! $controlHtml !!}

    @if(! $errors->isEmpty() && ! $errors->has($name))
        <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" style="margin-right: 35px;"></span>
        <span id="inputSuccess2Status" class="sr-only">(success)</span>
    @endif

    @if(! $errors->isEmpty() && $errors->has($name))
        <span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" style="margin-right: 35px;"></span>
        <span id="inputError2Status" class="sr-only">(error)</span>
        <span class="help-block">{{ implode(' ', $errors->get($name)) }}</span>
    @endif
    <script>
        window['genealabsLaravelCasts'] = window.genealabsLaravelCasts || {};
        window.genealabsLaravelCasts['comboboxLoaders'] = window.genealabsLaravelCasts.comboboxLoaders || [];
        window.genealabsLaravelCasts['framework'] = window.genealabsLaravelCasts.framework || 'bootstrap4';
        window.genealabsLaravelCasts.comboboxLoaders.push(function () {
            @if(array_key_exists('subFormClass', $options))
                $('{{ $options['subFormClass'] }}').find('input,textarea,select').attr('disabled', 'disabled');
            @endif

            $('{!! array_key_exists('subFormClass', $options) ? '[subFormClass="' . $options['subFormClass'] . '"]' : '' !!}[name="{{ $name }}"]').selectize({
                options: {!! $options['list'] !!},
                list: {!! $options['selected'] !!},
                labelField: 'text',
                valueField: 'value',
                sortField: [
                    {
                        field: 'text',
                        direction: 'asc'
                    },
                    {
                        field: '$score'
                    }
                ],
                create:
                    @if(array_key_exists('multiple', $options) && $options['multiple'] === 'multiple')
                        false,
                    @else
                        function (name) {
                            @if(array_key_exists('createCallback', $options))
                                {{ $options['createCallback'] }}(name);
                            @endif

                            return {'text': name, 'value': -1};
                        },
                    @endif
                onChange: function (value) {
                    @if(array_key_exists('changeCallback', $options))
                        {{ $options['changeCallback'] }}(value);
                    @endif

                    @if(array_key_exists('subFormClass', $options))
                        if (value == -1) {
                            $('{{ $options['subFormClass'] }}').find('input,textarea,select').removeAttr('disabled');
                            $('{{ $options['subFormClass'] }}').removeClass('d-none');
                            $('{{ $options['subFormClass'] }} [name="{{ $options['subFormFieldName'] }}"]').val($('[name={{ $name }}]').text());
                        } else {
                            $('[name={{ $name }}]').selectize()[0].selectize.removeOption(-1);
                            $('{{ $options['subFormClass'] }}').addClass('d-none');
                            $('{{ $options['subFormClass'] }} [name="{{ $options['subFormFieldName'] }}"]').val('');
                            $('{{ $options['subFormClass'] }}').find('input,textarea,select').attr('disabled', 'disabled');
                        }
                    @endif
                }
            });

            @if(array_key_exists('subFormClass', $options))
            $('{!! $options['subFormClass'] !!} input[type="submit"]').on('click', function (event) {
{'fraction_non_alphanumeric': 0.18522413566451953, 'fraction_numerical': 0.003023530958327856, 'mean_word_length': 1.772594752186589, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5277618', 'n_tokens_mistral': 2095, 'n_tokens_neox': 1961, 'n_words': 283}