<commit_before><!DOCTYPE html>
<html>
<head>
  <title>GoingPostalWeb</title>
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': true %>
  <%= stylesheet_link_tag params[:controller], media: "all" %>

  <%= javascript_include_tag 'application', 'data-turbolinks-track': true %>
  <%= javascript_include_tag params[:controller] %>

  <%= csrf_meta_tags %>
</head>
<body>
  <!-- Fixed navbar -->
  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed"
                data-toggle="collapse" data-target="#navbar"
                aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/">Going postal</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <%= menu_item :'/welcome', :index, 'Home' %>
          <% if user_signed_in? %>
            <%= menu_item :devices, :index, 'Devices' %>
          <% end %>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <% if user_signed_in? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"
               role="button" aria-expanded="false">
               <%= current_user.email %> <span class="caret"></span>
            </a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to('Edit account', edit_user_registration_path) %></li>
              <li><%= link_to('Sign out', destroy_user_session_path, method: :delete) %></li>
            </ul>
          </li>
          <% else %>
            <li><%= link_to('Sign in', new_user_session_path) %></li>
          <% end %>
        </ul>
      </div>
    </div>
  </nav>
  <div class="container" role="main">
    <% unless notice.blank? %>
      <div class="alert alert-info" role="alert">
        <%= notice %>
      </div>
    <% end %>
    <% unless alert.blank? %>
      <div class="alert alert-danger" role="alert">
        <%= alert %>
      </div>
    <% end %>
    <%= yield %>
  </div>
</body>
</html><commit_msg>Move JS to the bottom of HTML page<commit_after><!DOCTYPE html>
<html>
<head>
  <title>GoingPostalWeb</title>
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': true %>
  <%= stylesheet_link_tag params[:controller], media: "all" %>
  <%= csrf_meta_tags %>
</head>
<body>
  <!-- Fixed navbar -->
  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed"
                data-toggle="collapse" data-target="#navbar"
                aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/">Going postal</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <%= menu_item :'/welcome', :index, 'Home' %>
          <% if user_signed_in? %>
            <%= menu_item :devices, :index, 'Devices' %>
          <% end %>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <% if user_signed_in? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"
               role="button" aria-expanded="false">
               <%= current_user.email %> <span class="caret"></span>
            </a>
            <ul class="dropdown-menu" role="menu">
              <li><%= link_to('Edit account', edit_user_registration_path) %></li>
              <li><%= link_to('Sign out', destroy_user_session_path, method: :delete) %></li>
            </ul>
          </li>
          <% else %>
            <li><%= link_to('Sign in', new_user_session_path) %></li>
          <% end %>
        </ul>
      </div>
    </div>
  </nav>
  <div class="container" role="main">
    <% unless notice.blank? %>
      <div class="alert alert-info" role="alert">
        <%= notice %>
      </div>
    <% end %>
    <% unless alert.blank? %>
      <div class="alert alert-danger" role="alert">
        <%= alert %>
      </div>
    <% end %>
    <%= yield %>
  </div>

  <%= javascript_include_tag 'application', 'data-turbolinks-track': true %>
  <%= javascript_include_tag params[:controller] %>
</body>
</html>
{'fraction_non_alphanumeric': 0.1887905604719764, 'fraction_numerical': 0.0, 'mean_word_length': 2.3500352858151023, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, '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': '6975877', 'n_tokens_mistral': 1596, 'n_tokens_neox': 1460, 'n_words': 300}