<commit_before><form class="form">
  <h1><%= @resource.title %></h1>  

  
  <div class="control-group">
    <% if @resource.course_subjects.any? %>
      <label>Grades</label>
      <div class="controls">
        <% @resource.course_grades.each do |x| %>
          <%= x.name %>
        <% end %>
      </div>
    <% end %>
  </div>
  


  <div class="control-group">
    
      <% if @resource.course_subjects.any? %>
      <label>Subjects</label>
      <div class="controls">
        <% @resource.course_subjects.each do |x| %>
          <%= x.name %>
        <% end %>
      </div>
      <% end %>  
    
  </div>


  <div class="control-group">
    <div class="controls">
      <% if @resource.type == LinkResource::TYPE %>
        <%= link_to 'Open Link', @resource.link, :class => 'btn', :target => "_blank"  %>
      <% else %>
        <%= link_to 'Open File', @resource.open_link, :class => 'btn', :target => "_blank"  %>
      <% end %>
      
      <%= link_to t('resources.delete_label'), resource_path(@resource) , :confirm => t('resources.delete_file_confirmation', :title=>@resource.title), :method => :delete, :class=>'btn' %>
      <%= link_to 'Edit', "#", :class=>"btn btn-primary start", :id=>'editResourceLinkView', 'resource-id'=>@resource.id  %>
    </div>
  </div>

</form><commit_msg>added csv layout to resource view grades/subjects<commit_after><form class="form">
  <h1><%= @resource.title %></h1>  

  
  <div class="control-group">
    <% if @resource.course_grades.any? %>
      <label ><strong>Grades</strong></label>
      <div class="controls" style="margin-left:10px;">
        <%= @resource.course_grades.map(&:name).join(", ") %>
      </div>
    <% end %>
  </div>
  


  <div class="control-group">
    
      <% if @resource.course_subjects.any? %>
      <label><strong>Subjects</strong></label>
      <div class="controls" style="margin-left:10px;">
        <%= @resource.course_subjects.map(&:name).join(", ") %>
      </div>
      <% end %>  
    
  </div>


  <div class="control-group">
    <div class="controls">
      <% if @resource.type == LinkResource::TYPE %>
        <%= link_to 'Open Link', @resource.link, :class => 'btn', :target => "_blank"  %>
      <% else %>
        <%= link_to 'Open File', @resource.open_link, :class => 'btn', :target => "_blank"  %>
      <% end %>
      
      <%= link_to t('resources.delete_label'), resource_path(@resource) , :confirm => t('resources.delete_file_confirmation', :title=>@resource.title), :method => :delete, :class=>'btn' %>
      <%= link_to 'Edit', "#", :class=>"btn btn-primary start", :id=>'editResourceLinkView', 'resource-id'=>@resource.id  %>
    </div>
  </div>

</form>
{'fraction_non_alphanumeric': 0.2170339932760553, 'fraction_numerical': 0.0029884198729921555, 'mean_word_length': 2.842180774748924, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 101, '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': '4803763', 'n_tokens_mistral': 962, 'n_tokens_neox': 892, 'n_words': 158}