<commit_before><%= content_for :title, title("#{@course.title}") %>
<div id="lesson-nav">
  <div class="inner-nav">
    <%= link_to "Course List", courses_path %> >> 
    <%= @course.title %>
  </div>
</div>
<div class="CoursesController">
  <div class="container">
    <div class="heading-box">
      <div class="heading">
        <h1><%= @course.title %></h1>
      </div>
      <div class="subheading">
        <p>
          <%= @course.description %>
        </p>
      </div>
    </div>

    
    <div class="sections-list">
      <% @sections.each do |section| %>

        <div class="section" id="section-<%= section.title_url %>">
          <div class="section-title">
            <h2>
              <%= section.title %>
            </h2>
          </div>
          <div class="section-description">
            <p>
              <%= section.description %>
            </p>
          </div>

          <div class="lessons-list">
            <!-- <h2>lessons:</h2> -->
            <% lesson_num = 0 %>
            <% section.lessons.order("position asc").each do |lesson| %>
              <% lesson_num += 1 unless lesson.is_project %>

                <div class="lesson <%= lesson.is_project ? 'project' :''%>">
                  
                  <div class="lc-checkbox-wrapper">                                                                                                           
                    <%= form_for LessonCompletion.new, :method => "POST", :remote => true do |f| %>                                                           
                      <a href="#" id="lc-id-<%= lesson.id %>" class="lc-checkbox lc-unchecked">                                                               
                        <%= hidden_field_tag(:lesson_id, lesson.id) %>                                                                                        
                      </a>                                                                                                                                    
                    <% end %>                                                                                                                                 
                  </div>
                  
                  <a href="<%= lesson_path(lesson.course.title_url, lesson.title_url) %>" class="lesson-link">
                    <div class="lesson-number">
                      <h3>
                        <%= lesson.is_project ? "Project" : "Step #{lesson_num}"%>: &nbsp;
                      </h3>
                    </div>
  
                    <div class="lesson-content">
                      <div class="lesson-title">
                        <h3>
                          <%= lesson.title %>
                        </h3>
                      </div>
                      <div class="description">
                        <p>
                          <%= lesson.description %>
                        </p>
                      </div>
                    </div>
                  </a>
                </div>

            <% end %>
          </div>

        </div>
      <% end %>
    <div class="back-link">
      <%= link_to "Back to Courses List", courses_path %>
    </div><commit_msg>fix and update index page lesson completion specs<commit_after><%= content_for :title, title("#{@course.title}") %>
<div id="lesson-nav">
  <div class="inner-nav">
    <%= link_to "Course List", courses_path %> >> 
    <%= @course.title %>
  </div>
</div>
<div class="CoursesController">
  <div class="container">
    <div class="heading-box">
      <div class="heading">
        <h1><%= @course.title %></h1>
      </div>
      <div class="subheading">
        <p>
          <%= @course.description %>
        </p>
      </div>
    </div>

    
    <div class="sections-list">
      <% @sections.each do |section| %>

        <div class="section" id="section-<%= section.title_url %>">
          <div class="section-title">
            <h2>
              <%= section.title %>
            </h2>
          </div>
          <div class="section-description">
            <p>
              <%= section.description %>
            </p>
          </div>

          <div class="lessons-list">
            <!-- <h2>lessons:</h2> -->
            <% lesson_num = 0 %>
            <% section.lessons.order("position asc").each do |lesson| %>
              <% lesson_num += 1 unless lesson.is_project %>

                <div class="lesson <%= lesson.is_project ? 'project' :''%>">
                  
                  <% if user_signed_in? %>
                    <div class="lc-checkbox-wrapper">                                                                                                           
                      <%= form_for LessonCompletion.new, :method => "POST", :remote => true do |f| %>                                                           
                        <a href="#" id="lc-id-<%= lesson.id %>" class="lc-checkbox lc-unchecked">                                                               
                          <%= hidden_field_tag(:lesson_id, lesson.id) %>                                                                                        
                        </a>                                                                                                                                    
                      <% end %>                                                                                                                                 
                    </div>
                  <% end %>
                  
                  <a href="<%= lesson_path(lesson.course.title_url, lesson.title_url) %>" class="lesson-link">
                    <div class="lesson-number">
                      <h3>
                        <%= lesson.is_project ? "Project" : "Step #{lesson_num}"%>: &nbsp;
                      </h3>
                    </div>
  
                    <div class="lesson-content">
                      <div class="lesson-title">
                        <h3>
                          <%= lesson.title %>
                        </h3>
                      </div>
                      <div class="description">
                        <p>
                          <%= lesson.description %>
                        </p>
                      </div>
                    </div>
                  </a>
                </div>

            <% end %>
          </div>

        </div>
      <% end %>
    <div class="back-link">
      <%= link_to "Back to Courses List", courses_path %>
    </div>
{'fraction_non_alphanumeric': 0.1366318656377667, 'fraction_numerical': 0.003631411711302769, 'mean_word_length': 0.7937584803256446, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 173, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '646048', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1481, 'n_words': 285}