<commit_before><% content_for :title, "New Shipment" %>

<% content_for :content do %>
  <%= form_for @shipment do |f| %>
    <div class="form-group">
      <%= f.label :shipping_carrier %>
      <%= f.select :shipping_carrier, Shipment::VALID_CARRIERS, { include_blank: "Please choose ..." }, class: "form-control" %>
    </div>
    <div class="form-group">
      <%= f.label :tracking_number %>
      <%= f.text_field :tracking_number, class: "form-control", placeholder: "Enter the tracking number" %>
    </div>
    <div>
      <%= f.submit "Create", class: "btn btn-primary" %>
      <%= link_to "Cancel", :back, type: "button", class: "btn btn-default" %>
    </div>
  <% end %>
<% end %><commit_msg>Use the shipping carrier enum for the form<commit_after><% content_for :title, "New Shipment" %>

<% content_for :content do %>
  <%= form_for @shipment do |f| %>
    <div class="form-group">
      <%= f.label :shipping_carrier %>
      <%= f.select :shipping_carrier, Shipment.shipping_carriers, { include_blank: "Please choose ..." }, class: "form-control" %>
    </div>
    <div class="form-group">
      <%= f.label :tracking_number %>
      <%= f.text_field :tracking_number, class: "form-control", placeholder: "Enter the tracking number" %>
    </div>
    <div>
      <%= f.submit "Create", class: "btn btn-primary" %>
      <%= link_to "Cancel", :back, type: "button", class: "btn btn-default" %>
    </div>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.19334719334719336, 'fraction_numerical': 0.0, 'mean_word_length': 3.3625377643504533, 'pattern_counts': {'":': 0, '<': 37, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7297798', 'n_tokens_mistral': 532, 'n_tokens_neox': 479, 'n_words': 119}