<commit_before><div id="create-subfolder-modal" class="<%= "modal hide fade" if modal %>">
  <%= form_for [@course, @subfolder], :html => { :class => 'form-horizontal' }, :url => course_material_create_path(@course, @folder), :method => subfolder_method do |f| %>
  <% if modal  %>
  <div class="modal-header">
    Create Subfolder
  </div>
  <% end %>
  <div class="modal-body control-group">
    <%= f.label :name, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :name, :class => 'text_field span3' %>
    </div>
  </div>
  <div class="modal-body control-group">
    <%= f.label :description, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :description, :class => 'text_field span3' %>
    </div>
  </div>
  <div class="modal-footer">
    <%= hidden_field_tag :type, :subfolder %>
    <%= f.submit nil, :class => 'btn btn-primary', data: {disable_with: "Submitting..."} %>
    <button type="button" class="btn" data-dismiss="modal">Cancel</button>
  </div>
<% end %>
</div><commit_msg>Fully skin the subfolder form to be both modal and non-modal<commit_after><div id="create-subfolder-modal" class="<%= "modal hide fade" if modal %>">
  <%= form_for [@course, @subfolder], :html => { :class => 'form-horizontal' }, :url => course_material_create_path(@course, @folder), :method => subfolder_method do |f| %>
  <% if modal  %>
  <div class="modal-header">
    Create Subfolder
  </div>
  <% end %>
  <div class="<%= "modal-body" if modal %> control-group">
    <%= f.label :name, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :name, :class => 'text_field span3' %>
    </div>
  </div>
  <div class="<%= "modal-body" if modal %> control-group">
    <%= f.label :description, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :description, :class => 'text_field span3' %>
    </div>
  </div>
  <div class="<%= if modal then "modal-footer" else "form-actions" end %>">
    <%= hidden_field_tag :type, :subfolder %>
    <%= f.submit nil, :class => 'btn btn-primary', data: {disable_with: "Submitting..."} %>
    <% if modal then %>
    <button type="button" class="btn" data-dismiss="modal">Cancel</button>
    <% else %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                course_material_folders_url(@course, @folder.parent_folder), :class => 'btn' %>
    <% end %>
  </div>
<% end %>
</div>
{'fraction_non_alphanumeric': 0.21323529411764705, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 3.7096153846153848, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 84, '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': '7381540', 'n_tokens_mistral': 887, 'n_tokens_neox': 824, 'n_words': 197}