<commit_before>@if($model->fieldset)
  @foreach($model->fieldset->fields AS $field)
    <div class="form-group {{ $errors->has($field->db_column_name()) ? ' has-error' : '' }}">
      <label for="{{ $field->db_column_name() }}" class="col-md-2 control-label">{{{ $field->name }}}
        @if ($field->pivot->required=='1')
          *
        @endif
      </label>
      <div class="col-md-7 col-sm-12">
          <input type="text" value="{{{ Input::old('fields[{{$field->db_column_name()}}]',(isset($asset) ? $asset->{$field->db_column_name()} : "")) }}}" id="{{ $field->db_column_name() }}" class="form-control" name="fields[{{{ $field->db_column_name() }}}]">
          {{ $errors->first($field->db_column_name(), '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
      </div>
    </div>
  @endforeach
@endif
<commit_msg>Fixes error messages, and re-filling old input on failed asset create<commit_after>@if($model->fieldset)
  @foreach($model->fieldset->fields AS $field)
    <div class="form-group {{ $errors->has($field->db_column_name()) ? ' has-error' : '' }}">
      <label for="{{ $field->db_column_name() }}" class="col-md-2 control-label">{{{ $field->name }}}
        @if ($field->pivot->required=='1')
          *
        @endif
      </label>
      <div class="col-md-7 col-sm-12">
          <input type="text" value="{{{ Input::old('fields.'.$field->db_column_name(),(isset($asset) ? $asset->{$field->db_column_name()} : "")) }}}" id="{{ $field->db_column_name() }}" class="form-control" name="fields[{{{ $field->db_column_name() }}}]">
          <?php
          $errormessage=$errors->first($field->db_column_name());
          if($errormessage) {
            $errormessage=preg_replace('/ snipeit /','',$errormessage);
            print('<br><span class="alert-msg"><i class="fa fa-times"></i> '.$errormessage.'</span>');
          }
          ?>
      </div>
    </div>
  @endforeach
@endif

{'fraction_non_alphanumeric': 0.24974200206398348, 'fraction_numerical': 0.005159958720330237, 'mean_word_length': 3.467741935483871, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 60, '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': '3396933', 'n_tokens_mistral': 659, 'n_tokens_neox': 657, 'n_words': 97}