<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>t-stor</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <body>
  <nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <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="/products"><img src="http://www.freeiconspng.com/uploads/leaf-icon-png-17.png" alt="Logo & Home" class="img-responsive center-block"></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
        <li><a href="#">Link</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Sort By<span class="caret"></span></a>
          <ul class="dropdown-menu">Sort By
            <li><a href="/products?sort=name">Name</a></li>
            <li><a href="/products?sort=price&sort_order=asc">Price (Low - High)</a></li>
            <li><a href="/products?sort=price&sort_order=desc">Price (High - Low)</a></li>
            <li class="divider"></li>
            <% Category.all.each do |category| %>
              <li><a href="/products?category_name=<%= category.name %>"><%= category.name %> only</a></li>
            <% end %>
            <li class="divider"></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
      <form class="navbar-form navbar-left">
        <%= form_tag "/search", method: :post do %>
          <%= label_tag :search %>
          <%= text_field_tag :search %>
          <%= submit_tag "Search" %>
        <% end %>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <% if current_user %>
          <li>Hello, <%= current_user.name %>!</li>
          <li><a href="/logout">Logout</a></li>
        <% else %>
          <li><a href="/signup">Signup</a></li>
          <li><a href="/login">Login</a></li>
        <% end %>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Shopping Cart <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
    <div class="container">
      <% flash.each do |name, message| %>
        <div class="alert alert-<%= name %> alert-dismissible" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <%= message %>
        </div>
      <% end %> 

      <%= yield %>
    </div><commit_msg>Made link in nav to connect user to checkout view.<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>t-stor</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <body>
  <nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <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="/products"><img src="http://www.freeiconspng.com/uploads/leaf-icon-png-17.png" alt="Logo & Home" class="img-responsive center-block"></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
        <li><a href="#">Link</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Sort By<span class="caret"></span></a>
          <ul class="dropdown-menu">Sort By
            <li><a href="/products?sort=name">Name</a></li>
            <li><a href="/products?sort=price&sort_order=asc">Price (Low - High)</a></li>
            <li><a href="/products?sort=price&sort_order=desc">Price (High - Low)</a></li>
            <li class="divider"></li>
            <% Category.all.each do |category| %>
              <li><a href="/products?category_name=<%= category.name %>"><%= category.name %> only</a></li>
            <% end %>
            <li class="divider"></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
      <form class="navbar-form navbar-left">
        <%= form_tag "/search", method: :post do %>
          <%= label_tag :search %>
          <%= text_field_tag :search %>
          <%= submit_tag "Search" %>
        <% end %>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <% if current_user %>
          <li>Hello, <%= current_user.name %>!</li>
          <li><a href="/logout">Logout</a></li>
        <% else %>
          <li><a href="/signup">Signup</a></li>
          <li><a href="/login">Login</a></li>
        <% end %>
        <li class="dropdown">
          <a href="/carted_products"><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
    <div class="container">
      <% flash.each do |name, message| %>
        <div class="alert alert-<%= name %> alert-dismissible" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <%= message %>
        </div>
      <% end %> 

      <%= yield %>
    </div>
{'fraction_non_alphanumeric': 0.21316949378923467, 'fraction_numerical': 0.0010685187658608254, 'mean_word_length': 2.596541786743516, 'pattern_counts': {'":': 0, '<': 305, '<?xml version=': 0, '>': 305, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5816024', 'n_tokens_mistral': 2466, 'n_tokens_neox': 2312, 'n_words': 453}