<commit_before><%= form_for @vehicle do |f| %>
  <% if @vehicle.errors.any? %>
    <div class="panel panel-danger">
      <div class="panel-heading"><%= translate_helper("vehicle_form_error_message", count: @vehicle.errors.count) %></div>
      <div class="panel-body">
        <ul>
          <% @vehicle.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="row">
    <div class="col-sm-12 col-md-6">
      <div class="panel panel-primary">
        <div class="panel-heading"><%= translate_helper("vehicle_form_details_heading") %></div>
        <div class="panel-body form-horizontal">
          <div class="form-group">
            <%= f.label :name, translate_helper("vehicle_form_name_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :name, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :year, translate_helper("vehicle_form_year_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :year, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :make, translate_helper("vehicle_form_make_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :make, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :model, translate_helper("vehicle_form_model_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :model, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :license_plate, translate_helper("vehicle_form_license_plate_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :license_plate, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :vin, translate_helper("vehicle_form_vin_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :vin, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :default_driver_id, translate_helper("vehicle_form_driver_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.collection_select :default_driver_id, Driver.active.for_provider(current_user.current_provider_id), :id, :name, {include_blank: true}, { class: "form-control", disabled: @readonly } %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :active, translate_helper("vehicle_form_active_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.select :active, [["Yes", "true"], ["No", "false"]], {:selected => @vehicle.active.to_s }, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :reportable, translate_helper("vehicle_form_reportable_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.select :reportable, [["Yes", "true"], ["No", "false"]], {:selected => @vehicle.reportable.to_s }, class: "form-control", disabled: @readonly %>
            </div><commit_msg>Remove assigning default driver from Vehicle form (G.8)<commit_after><%= form_for @vehicle do |f| %>
  <% if @vehicle.errors.any? %>
    <div class="panel panel-danger">
      <div class="panel-heading"><%= translate_helper("vehicle_form_error_message", count: @vehicle.errors.count) %></div>
      <div class="panel-body">
        <ul>
          <% @vehicle.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="row">
    <div class="col-sm-12 col-md-6">
      <div class="panel panel-primary">
        <div class="panel-heading"><%= translate_helper("vehicle_form_details_heading") %></div>
        <div class="panel-body form-horizontal">
          <div class="form-group">
            <%= f.label :name, translate_helper("vehicle_form_name_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :name, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :year, translate_helper("vehicle_form_year_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :year, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :make, translate_helper("vehicle_form_make_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :make, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :model, translate_helper("vehicle_form_model_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :model, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :license_plate, translate_helper("vehicle_form_license_plate_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :license_plate, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :vin, translate_helper("vehicle_form_vin_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.text_field :vin, class: "form-control", disabled: @readonly %>
            </div>
          </div>   
          <div class="form-group">
            <%= f.label :active, translate_helper("vehicle_form_active_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.select :active, [["Yes", "true"], ["No", "false"]], {:selected => @vehicle.active.to_s }, class: "form-control", disabled: @readonly %>
            </div>
          </div>  
          <div class="form-group">
            <%= f.label :reportable, translate_helper("vehicle_form_reportable_label"), class: "col-md-2 control-label" %>
            <div class="col-md-10">
              <%= f.select :reportable, [["Yes", "true"], ["No", "false"]], {:selected => @vehicle.reportable.to_s }, class: "form-control", disabled: @readonly %>
            </div>
{'fraction_non_alphanumeric': 0.18284265389491478, 'fraction_numerical': 0.008170164811945345, 'mean_word_length': 2.2494279176201375, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 155, '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': '6625016', 'n_tokens_mistral': 2345, 'n_tokens_neox': 2164, 'n_words': 429}