<commit_before>%h2.title
  %a{:href => course_path(@assignment.course)}=h @assignment.course.name
  &gt;
  = link_to 'Assignment #'  + @assignment.position.to_s, @assignment
  &gt;
  Timeline

/ we want a drag-n-drop way of managing modules
/ we also want to focus on the timeline instead of how long each module
/ is open

/ first module opens when the assignment opens
/ so we only need to track when each module ends

//%ul
//  - if @assignment.course.is_designer?(@user)
//    %li= link_to 'Edit timeline', { :action => 'edit', :assignment_id => @assignment }

%p
  The assignment begins on 
  = @assignment.starts_at.strftime("%a, %b %d at %I:%M %p.")
  - cur_date = @assignment.starts_at

/ if designer, allow editing -- otherwise, just show the info
- if @assignment.course.is_designer?(@user)
  %a{ :href => new_assignment_assignment_module_path(@assignment) } Add Module

.item-set
  - counter = 0
  - last  = @assignment.assignment_modules.size
  - @assignment.assignment_modules.each do |m|
    counter += 1
    .item
      .title
        %a{ :href => assignment_module_path(m) }= h m.name
      .description
        %p
          = cur_date.strftime("%a, %b %d at %I:%M %p")
          through
          - cur_date = cur_date + m.duration
          = cur_date.strftime("%a, %b %d at %I:%M %p")
        %p= pluralize(m.number_participants, 'participant')
      - if @assignment.course.is_designer?(@user)
        .options
          - if counter > 1
            = link_to 'Move up', { :action => 'move_higher', :id => m }
          - if counter < last
            = link_to 'Move down', { :action => 'move_lower', :id => m }
          = link_to 'Edit', { :action => 'edit', :id => m }
          - if !m.module_def.nil?
            = link_to 'Params', { :action => 'edit_params', :id => m }
          = link_to("Delete", { :action => "destroy", :id => m }, :confirm => "Are you sure you want to delete this module?", :method => :delete)
        
  - if !@assignment.eval_name.blank? || @assignment.author_rubric || @assignment.participant_rubric
    .assignment-module
      .title= h @assignment.eval_name || 'Evaluation'<commit_msg>Make counter code<commit_after>%h2.title
  %a{:href => course_path(@assignment.course)}=h @assignment.course.name
  &gt;
  = link_to 'Assignment #'  + @assignment.position.to_s, @assignment
  &gt;
  Timeline

/ we want a drag-n-drop way of managing modules
/ we also want to focus on the timeline instead of how long each module
/ is open

/ first module opens when the assignment opens
/ so we only need to track when each module ends

//%ul
//  - if @assignment.course.is_designer?(@user)
//    %li= link_to 'Edit timeline', { :action => 'edit', :assignment_id => @assignment }

%p
  The assignment begins on 
  = @assignment.starts_at.strftime("%a, %b %d at %I:%M %p.")
  - cur_date = @assignment.starts_at

/ if designer, allow editing -- otherwise, just show the info
- if @assignment.course.is_designer?(@user)
  %a{ :href => new_assignment_assignment_module_path(@assignment) } Add Module

.item-set
  - counter = 0
  - last  = @assignment.assignment_modules.size
  - @assignment.assignment_modules.each do |m|
    - counter += 1
    .item
      .title
        %a{ :href => assignment_module_path(m) }= h m.name
      .description
        %p
          = cur_date.strftime("%a, %b %d at %I:%M %p")
          through
          - cur_date = cur_date + m.duration
          = cur_date.strftime("%a, %b %d at %I:%M %p")
        %p= pluralize(m.number_participants, 'participant')
      - if @assignment.course.is_designer?(@user)
        .options
          - if counter > 1
            = link_to 'Move up', { :action => 'move_higher', :id => m }
          - if counter < last
            = link_to 'Move down', { :action => 'move_lower', :id => m }
          = link_to 'Edit', { :action => 'edit', :id => m }
          - if !m.module_def.nil?
            = link_to 'Params', { :action => 'edit_params', :id => m }
          = link_to("Delete", { :action => "destroy", :id => m }, :confirm => "Are you sure you want to delete this module?", :method => :delete)
        
  - if !@assignment.eval_name.blank? || @assignment.author_rubric || @assignment.participant_rubric
    .assignment-module
      .title= h @assignment.eval_name || 'Evaluation'
{'fraction_non_alphanumeric': 0.14855410447761194, 'fraction_numerical': 0.0018656716417910447, 'mean_word_length': 2.7006039689387404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '4929262', 'n_tokens_mistral': 1464, 'n_tokens_neox': 1433, 'n_words': 387}