<commit_before><div class="form-horizontal">
  <%= form_for [resource.resource_template, resource] do |f| %>

    <% if resource.errors.any? %>
      <div id="error_explanation">
        <h2><%= "#{pluralize(resource.errors.count, "error")} prohibited this resource from being saved:" %></h2>
        <ul>
          <% resource.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
        </ul>
      </div>
    <% end %>

    <fieldset>
      <div class="control-group">
        <%= f.hidden_field :resource_template_id %>
        <%= f.hidden_field :requirement_id %>
      </div>

      <div class="control-group">
        <%= f.label :resource_type, "Resource Type", class: "control-label" %>
        <div class="controls">
          <%= f.select :resource_type,
          		options_for_select([ :actionable_url, :expository_guidance, :example_response, :suggested_response], resource.resource_type) %>
        </div>
      </div>

      <div class="control-group">
        <%= f.label :details, "Details", class: "control-label", id: "text_details" %>
        <div class="controls">
          <%= f.text_area :text, size: "20x10",placeholder: "Enter the text", class: "input-xlarge" %>
        </div>
      </div>


      <div class="control-group">
        <%= f.label :details, "Details", class: "control-label", id: "value_details" %>
        <div class="controls">
          <%= f.text_field :label, placeholder: "URL Label", class: "input-xlarge" %>
        </div>
      </div>

      <div class="control-group">
        <div class="controls">
          <%= f.text_field :value, placeholder: "URL", class: "input-xlarge" %>
        </div>
      </div>

      <div class="actions pull-right">
        <%= f.submit 'Save Changes', class: "btn" %>
        <%= button_tag 'Cancel', type: :reset, class: "btn" %>
        <%= link_to 'Delete Resource', [resource.resource_template, resource], :method => :delete,
        data: { confirm: 'Are you sure?' }, class: "btn" %>
      </div>
    </fieldset>


  <% end %>
</div><commit_msg>adding class to resources/_form.html.erb form tag<commit_after>  <%= form_for [resource.resource_template, resource], html: { :class => 'form-horizontal' } do |f| %>

    <% if resource.errors.any? %>
      <div id="error_explanation">
        <h2><%= "#{pluralize(resource.errors.count, "error")} prohibited this resource from being saved:" %></h2>
        <ul>
          <% resource.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
        </ul>
      </div>
    <% end %>

    <fieldset>
      <div class="control-group">
        <%= f.hidden_field :resource_template_id %>
        <%= f.hidden_field :requirement_id %>
      </div>

      <div class="control-group">
        <%= f.label :resource_type, "Resource Type", class: "control-label" %>
        <div class="controls">
          <%= f.select :resource_type,
          		options_for_select([ :actionable_url, :expository_guidance, :example_response, :suggested_response], resource.resource_type) %>
        </div>
      </div>

      <div class="control-group">
        <%= f.label :details, "Details", class: "control-label", id: "text_details" %>
        <div class="controls">
          <%= f.text_area :text, size: "20x10",placeholder: "Enter the text", class: "input-xlarge" %>
        </div>
      </div>


      <div class="control-group">
        <%= f.label :details, "Details", class: "control-label", id: "value_details" %>
        <div class="controls">
          <%= f.text_field :label, placeholder: "URL Label", class: "input-xlarge" %>
        </div>
      </div>

      <div class="control-group">
        <div class="controls">
          <%= f.text_field :value, placeholder: "URL", class: "input-xlarge" %>
        </div>
      </div>

      <div class="actions pull-right">
        <%= f.submit 'Save Changes', class: "btn" %>
        <%= button_tag 'Cancel', type: :reset, class: "btn" %>
        <%= link_to 'Delete Resource', [resource.resource_template, resource], :method => :delete,
        data: { confirm: 'Are you sure?' }, class: "btn" %>
      </div>
    </fieldset>


  <% end %>
{'fraction_non_alphanumeric': 0.18385864374403058, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 2.5113160100586756, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 108, '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': '6626401', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1303, 'n_words': 297}