<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <title>Student Insights</title>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
    <link rel="apple-touch-icon" href="/icon.png"/>
    <%= render('shared/rollbar') %>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => false %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %>
    <%= csrf_meta_tags %>
    <%= render('shared/mixpanel') if Rails.env.production? %>
  </head>
  <body class="<%= controller_name %> <%= action_name %> <%= if educator_signed_in? then "educator-signed-in" end %>">
    <div class="nav">
      <% if ENV['DEPLOYMENT_KEY'] == 'demo' %>
        <div class="big_warning">
          <div>This is the demo site! It's filled with fake data.</div>
          <div>The real site is <a href="https://somerville.studentinsights.org/">somerville.studentinsights.org</a>.</div>
        </div>
      <% end %>
      <% if ENV['STATUS_MESSAGE'] %>
        <div class="status_message"><%= ENV['STATUS_MESSAGE'] %></div>
      <% end %>
      <div id="renew-session">
        Please click <a href="#" id="renew-sesion-link">this link</a> or your session will timeout due to inactivity.
      </div>
      <div class="navwrap">
        <a class="logo-container" href="/">
          <div class="logo">
            <div class="title" alt="Student Insights"></div>
          </div>
        </a>
        <% if educator_signed_in? %>
          <div class="nav-options">
            <% if current_educator.districtwide_access? %>
              <%= link_to 'Admin', educators_districtwide_url %>
              &nbsp; &nbsp; &nbsp;
            <% elsif current_educator.schoolwide_access? || current_educator.has_access_to_grade_levels? %>
              <%= link_to 'School Overview', school_path(current_educator.school) %>
              &nbsp; &nbsp; &nbsp;
            <% end %>
            <%= link_to "My notes", educators_notes_feed_path %>
            &nbsp; &nbsp; &nbsp;
            <%= link_to "Home", home_path %>
            &nbsp; &nbsp; &nbsp;
            <p class="search-label">Search for student:</p>
            <input class="student-searchbar" />
            &nbsp; &nbsp; &nbsp;
            <%= link_to "Sign Out", destroy_educator_session_path, method: :delete %>
          </div>
        <% else %>
          <div class="sign-in-container">
            <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
              <div class="sign-in-item">
                <%= f.label :email %>
                <%= f.email_field :email, class: 'sign-in-text', autofocus: true %>
              </div>
              <div class="sign-in-item">
                <%= f.label :password %>
                <%= f.password_field :password, class: 'sign-in-text', autocomplete: "off" %>
              </div>
              <div class="sign-in-item">
                <%= f.submit "Log in", class: "btn btn-primary" %>
              </div>
            <% end %>
          </div>
        <% end %>
      </div>
      <div class="flash">
        <p class="notice"><%= notice %></p>
        <p class="alert"><%= alert %></p>
      </div>
    </div>
    <%= yield %>
    <%= json_div(id: "calendar-icon-path", data: { path: asset_path('calendar-icon.svg') }) %>
    <%= # Gives the front-end clues about what UI elements to render or not.
        # All functionality meant for admins only should be restricted on the server side.
        # This tag is a helper for the UI, not a security feature.

        json_div(id: "educator-is-admin") if current_educator.try(:admin) %>
    <%= javascript_include_tag webpack_bundle('bundle.js') %>
  </body>
</html>
<commit_msg>Add links to navbar for absences and tardies<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <title>Student Insights</title>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
    <link rel="apple-touch-icon" href="/icon.png"/>
    <%= render('shared/rollbar') %>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => false %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %>
    <%= csrf_meta_tags %>
    <%= render('shared/mixpanel') if Rails.env.production? %>
  </head>
  <body class="<%= controller_name %> <%= action_name %> <%= if educator_signed_in? then "educator-signed-in" end %>">
    <div class="nav">
      <% if ENV['DEPLOYMENT_KEY'] == 'demo' %>
        <div class="big_warning">
          <div>This is the demo site! It's filled with fake data.</div>
          <div>The real site is <a href="https://somerville.studentinsights.org/">somerville.studentinsights.org</a>.</div>
        </div>
      <% end %>
      <% if ENV['STATUS_MESSAGE'] %>
        <div class="status_message"><%= ENV['STATUS_MESSAGE'] %></div>
      <% end %>
      <div id="renew-session">
        Please click <a href="#" id="renew-sesion-link">this link</a> or your session will timeout due to inactivity.
      </div>
      <div class="navwrap">
        <a class="logo-container" href="/">
          <div class="logo">
            <div class="title" alt="Student Insights"></div>
          </div>
        </a>
        <% if educator_signed_in? %>
          <div class="nav-options">
            <% if current_educator.districtwide_access? %>
              <%= link_to 'Admin', educators_districtwide_url %>
              &nbsp; &nbsp; &nbsp;
            <% elsif current_educator.schoolwide_access? || current_educator.has_access_to_grade_levels? %>
              <%= link_to 'Roster', school_path(current_educator.school) %>
              &nbsp;
            <% end %>
            <% if current_educator.schoolwide_access? && !current_educator.districtwide_access? %>
              <%= link_to "Absences", school_administrator_dashboard_school_path + '#/absences_dashboard' %>
              &nbsp;
              <%= link_to "Tardies", school_administrator_dashboard_school_path + '#/tardies_dashboard' %>
              &nbsp;
              &nbsp; &nbsp; &nbsp;
            <% end %>
            <%= link_to "My notes", educators_notes_feed_path %>
            &nbsp;
            <%= link_to "Home", home_path %>
            &nbsp;
            &nbsp; &nbsp;
            <p class="search-label">Search for student:</p>
            <input class="student-searchbar" />
            &nbsp; &nbsp; &nbsp;
            <%= link_to "Sign Out", destroy_educator_session_path, method: :delete %>
          </div>
        <% else %>
          <div class="sign-in-container">
            <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
              <div class="sign-in-item">
                <%= f.label :email %>
                <%= f.email_field :email, class: 'sign-in-text', autofocus: true %>
              </div>
              <div class="sign-in-item">
                <%= f.label :password %>
                <%= f.password_field :password, class: 'sign-in-text', autocomplete: "off" %>
              </div>
              <div class="sign-in-item">
                <%= f.submit "Log in", class: "btn btn-primary" %>
              </div>
            <% end %>
          </div>
        <% end %>
      </div>
      <div class="flash">
        <p class="notice"><%= notice %></p>
        <p class="alert"><%= alert %></p>
      </div>
    </div>
    <%= yield %>
    <%= json_div(id: "calendar-icon-path", data: { path: asset_path('calendar-icon.svg') }) %>
    <%= # Gives the front-end clues about what UI elements to render or not.
        # All functionality meant for admins only should be restricted on the server side.
        # This tag is a helper for the UI, not a security feature.

        json_div(id: "educator-is-admin") if current_educator.try(:admin) %>
    <%= javascript_include_tag webpack_bundle('bundle.js') %>
  </body>
</html>

{'fraction_non_alphanumeric': 0.16858285428642839, 'fraction_numerical': 0.0022494376405898524, 'mean_word_length': 2.2920608802961744, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 193, 'https://': 4, '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': '1543965', 'n_tokens_mistral': 2651, 'n_tokens_neox': 2431, 'n_words': 541}