<commit_before><%= form_for project do |f| %>
  <%= render partial: 'application/form_errors', locals: {object: project} %>
  <div class="form-group">
    <%= f.label :name %>
    <%= f.text_field :name, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description, class: 'form-control' %>
  </div>
  <%= f.fields_for :messages do |message_form| %>
    <div class="form-group">
      <%= message_form.label :message_type %>
      <%= message_form.select :message_type, {'None' => '', 'Info' => 'info', 'Success' => 'success', 'Warning' => 'warning', 'Danger' => 'danger'}, class: 'form-control' %>
    </div>
    <div class="form-group">
      <%= message_form.label :content %>
      <%= message_form.text_field :content, class: 'form-control' %>
    </div>
  <% end %>
  <%= f.submit class: 'btn btn-primary'%>
<% end %>
<commit_msg>Fixed class for project messages nested form message_type<commit_after><%= form_for project do |f| %>
  <%= render partial: 'application/form_errors', locals: {object: project} %>
  <div class="form-group">
    <%= f.label :name %>
    <%= f.text_field :name, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description, class: 'form-control' %>
  </div>
  <%= f.fields_for :messages do |message_form| %>
    <div class="form-group">
      <%= message_form.label :message_type %>
      <%= message_form.select :message_type, {'None' => '', 'Info' => 'info', 'Success' => 'success', 'Warning' => 'warning', 'Danger' => 'danger'}, {}, class: 'form-control' %>
    </div>
    <div class="form-group">
      <%= message_form.label :content %>
      <%= message_form.text_field :content, class: 'form-control' %>
    </div>
  <% end %>
  <%= f.submit class: 'btn btn-primary'%>
<% end %>

{'fraction_non_alphanumeric': 0.21783783783783783, 'fraction_numerical': 0.0, 'mean_word_length': 3.6624685138539044, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 57, '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': '907369', 'n_tokens_mistral': 685, 'n_tokens_neox': 628, 'n_words': 139}