<commit_before><%- model_class = Material -%>
<div class="page-header">
  <h1><%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
                                 :default => "Edit #{model_class.model_name.human}s") %></h1>
</div>
<br/>

<%= form_for [@course, @material], :html => { :class => 'form-horizontal' } do |f| %>
<div class="control-group">
  <%= f.label :filename, :class => 'control-label' %>
  <div class="controls">
    <%= f.text_field :filename, :class => 'text_field span7' %>
  </div>
</div>
<div class="control-group">
  <%= f.label :description, :class => 'control-label' %>
  <div class="controls">
    <%= f.text_field :description, :class => 'text_field span7' %>
  </div>
</div>
<div class="control-group">
  <label>Upload new version</label>
  <div class="controls">
    <div class="upload-target-done" style="display:none">Uploaded!</div>
    <input type="hidden" name="new_file_id"
           class="upload-target-input"
           value="" />
    <a href="#file-uploader-modal"
       class="file-uploader-trigger"
       data-target=".upload-target"
       data-toggle="modal">Upload Zip File</a>
  </div>
</div>
<div class="form-actions">
  <%= f.submit nil, :class => 'btn btn-primary', data: {disable_with: "Submitting..."} %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
              course_material_folders_url(@course, @material.folder), :class => 'btn' %>
</div><commit_msg>Remove misnomer.<commit_after><%- model_class = Material -%>
<div class="page-header">
  <h1><%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
                                 :default => "Edit #{model_class.model_name.human}s") %></h1>
</div>
<br/>

<%= form_for [@course, @material], :html => { :class => 'form-horizontal' } do |f| %>
<div class="control-group">
  <%= f.label :filename, :class => 'control-label' %>
  <div class="controls">
    <%= f.text_field :filename, :class => 'text_field span7' %>
  </div>
</div>
<div class="control-group">
  <%= f.label :description, :class => 'control-label' %>
  <div class="controls">
    <%= f.text_field :description, :class => 'text_field span7' %>
  </div>
</div>
<div class="control-group">
  <label>Upload new version</label>
  <div class="controls">
    <div class="upload-target-done" style="display:none">Uploaded!</div>
    <input type="hidden" name="new_file_id"
           class="upload-target-input"
           value="" />
    <a href="#file-uploader-modal"
       class="file-uploader-trigger"
       data-target=".upload-target"
       data-toggle="modal">Upload file</a>
  </div>
</div>
<div class="form-actions">
  <%= f.submit nil, :class => 'btn btn-primary', data: {disable_with: "Submitting..."} %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
              course_material_folders_url(@course, @material.folder), :class => 'btn' %>
</div>
{'fraction_non_alphanumeric': 0.2169779286926995, 'fraction_numerical': 0.0027164685908319186, 'mean_word_length': 3.603125, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4111242', 'n_tokens_mistral': 1031, 'n_tokens_neox': 995, 'n_words': 195}