<commit_before><div class="">
  <nav class="top-bar">
    <ul>
      <!-- Title Area -->
      <li class="name">
        <h1>
          <%= link_to site_name, root_path %>
        </h1>
      </li>
      <li class="toggle-topbar"><a href="#"></a></li>
    </ul>

    <section>
      <!-- Left Nav Section -->
      <ul class="left">
        <li class="divider"></li>
        <li class="has-dropdown">
          <%= link_to 'Products', products_path, :class => 'active' %>
          <ul class="dropdown">
            <li class="has-dropdown">
              <a href="#" class="">Level 1 &rarr;</a>
              <ul class="dropdown">
                <li><a href="#">Add Link here</a></li>
                <li><a href="#">Add Link 2 here</a></li>
              </ul>
            </li>
            <% product_types.each do |pt_tab| %>
              <li> <%= link_to_unless_current pt_tab.name.capitalize, products_path(:product_type_id => pt_tab.id) %> </li>
            <% end %>
            <li class="divider"></li>
            <li>
              <%= link_to 'All Products', products_path %>
            </li>
          </ul>
        </li>
        <li class="divider hide-for-small"></li>
      </ul>

      <!-- Right Nav Section -->
      <ul class="right">
        <li class="divider show-for-medium-and-up"></li>
        <li class="has-dropdown">
          <%= link_to( 'Your Cart', shopping_cart_items_path) %>
          <ul class="dropdown">

            <% if session_cart.shopping_cart_items.size > 0 %>
              <li>
              <%= link_to(shopping_cart_items_path, :id => 'cart_items_buttons') do %>
                 <strong> Items </strong>
              <% end %>
              </li>
              <li class="divider"></li>
              <% session_cart.shopping_cart_items.each do |item| %>
                <li> <%= item.name %> </li>
              <% end %>
            <% elsif current_user %>
              <li class="divider"></li>
              <li>
                <%= link_to( 'Your cart is Empty!', shopping_cart_items_path) %>
              </li>
            <% end %>
          </ul>
        </li>
        <li class="has-dropdown">
          <a href="#">Your Account</a>
          <ul class="dropdown">
            <% unless current_user %>
              <li><%= link_to 'Login',  login_path %></li>
            <% end %>
            <% if current_user %>
              <% if current_user.admin? %>
                <li><%= link_to 'Admin', admin_users_path %></li>
              <% end %>
              <li class="divider"></li>
              <li>
                <%= link_to myaccount_overview_path do %>
                  <label>Account</label>
                <% end %>
              </li>
              <li><%= link_to raw('Orders &rarr;' ), myaccount_orders_path %></li>
              <li><%= link_to 'Addresses', myaccount_addresses_path %></li>
              <li><%= link_to 'Credit Cards', myaccount_credit_cards_path %></li>
              <li><%= link_to 'Credits', myaccount_store_credit_path %></li>
              <li class="divider"></li>
              <li><%= link_to 'Log Out', logout_path %></li>
            <% end %>
          </ul>
        </li>
      </ul>
    </section>
  </nav>
</div>

<% if nil %>
<div class=" bp top-bar">
<div id="header_wrapper" class='bp'>
  <div class="container logged-in" id="header">
    <h1 id="logo">
      <%= link_to image_tag( "logos/#{Image::MAIN_LOGO}.png", :alt => 'hadean image.'), root_path %>
      <%#= link_to 'RoR Ecommerce', root_path %>
    </h1>
    <ul id="menu-main">
      <li id="menu-main-discover">
        <a href="/"><strong>Commerce</strong> <span>that scales</span></a>
      </li>

      <li class="" id="menu-main-cart">
          <%= link_to(shopping_cart_items_path, :id => 'cart_items_buttons') do %>
              <strong> Cart </strong> <span>view your stuff.</span>
          <% end %>
      </li>
      <li class="" id="menu-main-wish">
          <%= link_to(wish_items_path, :id => 'wish_items_button') do %>
              <strong> Wish List </strong> <span>what you want.</span>
          <% end %>
      </li>

      <li class="" id="menu-main-user">
        <div>
          <% unless current_user %>
            <strong><%= link_to 'Login',  login_path %></strong> or
            <span><%= link_to 'Sign up', signup_path %></span>
          <% else %>
            <strong>Hi <%= current_user.first_name %></strong>
            <span>(<%= link_to 'not you?', logout_path %>)</span>
          <% end %>
        </div>
      </li>
    </ul>

    <%= render '/layouts/product_search' %>
  </div>
  <div id="sub_header_wrapper" class='bp'>
    <div id="sub_sub_header_wrapper" class='container'>
      <%= render 'shared/main_product_tabs' %>
    </div>
  </div>
</div>

<% end %>
<commit_msg>cart was ugly for no current user<commit_after><div class="">
  <nav class="top-bar">
    <ul>
      <!-- Title Area -->
      <li class="name">
        <h1>
          <%= link_to site_name, root_path %>
        </h1>
      </li>
      <li class="toggle-topbar"><a href="#"></a></li>
    </ul>

    <section>
      <!-- Left Nav Section -->
      <ul class="left">
        <li class="divider"></li>
        <li class="has-dropdown">
          <%= link_to 'Products', products_path, :class => 'active' %>
          <ul class="dropdown">
            <li class="has-dropdown">
              <a href="#" class="">Level 1 &rarr;</a>
              <ul class="dropdown">
                <li><a href="#">Add Link here</a></li>
                <li><a href="#">Add Link 2 here</a></li>
              </ul>
            </li>
            <% product_types.each do |pt_tab| %>
              <li> <%= link_to_unless_current pt_tab.name.capitalize, products_path(:product_type_id => pt_tab.id) %> </li>
            <% end %>
            <li class="divider"></li>
            <li>
              <%= link_to 'All Products', products_path %>
            </li>
          </ul>
        </li>
        <li class="divider hide-for-small"></li>
      </ul>

      <!-- Right Nav Section -->
      <ul class="right">
        <li class="divider show-for-medium-and-up"></li>
        <li class="has-dropdown">
          <%= link_to( 'Your Cart', shopping_cart_items_path) %>
          <ul class="dropdown">

            <% if session_cart.shopping_cart_items.size > 0 %>
              <li>
              <%= link_to(shopping_cart_items_path, :id => 'cart_items_buttons') do %>
                 <strong> Items </strong>
              <% end %>
              </li>
              <li class="divider"></li>
              <% session_cart.shopping_cart_items.each do |item| %>
                <li> <%= item.name %> </li>
              <% end %>
            <% else %>
              <li class="divider"></li>
              <li>
                <%= link_to( 'Your cart is Empty!', shopping_cart_items_path) %>
              </li>
            <% end %>
          </ul>
        </li>
        <li class="has-dropdown">
          <a href="#">Your Account</a>
          <ul class="dropdown">
            <% unless current_user %>
              <li><%= link_to 'Login',  login_path %></li>
            <% else %>
              <% if current_user.admin? %>
                <li><%= link_to 'Admin', admin_users_path %></li>
              <% end %>
              <li class="divider"></li>
              <li>
                <%= link_to myaccount_overview_path do %>
                  <label>Account</label>
                <% end %>
              </li>
              <li><%= link_to raw('Orders &rarr;' ), myaccount_orders_path %></li>
              <li><%= link_to 'Addresses', myaccount_addresses_path %></li>
              <li><%= link_to 'Credit Cards', myaccount_credit_cards_path %></li>
              <li><%= link_to 'Credits', myaccount_store_credit_path %></li>
              <li class="divider"></li>
              <li><%= link_to 'Log Out', logout_path %></li>
            <% end %>
          </ul>
        </li>
      </ul>
    </section>
  </nav>
</div>

<% if nil %>
<div class=" bp top-bar">
<div id="header_wrapper" class='bp'>
  <div class="container logged-in" id="header">
    <h1 id="logo">
      <%= link_to image_tag( "logos/#{Image::MAIN_LOGO}.png", :alt => 'hadean image.'), root_path %>
      <%#= link_to 'RoR Ecommerce', root_path %>
    </h1>
    <ul id="menu-main">
      <li id="menu-main-discover">
        <a href="/"><strong>Commerce</strong> <span>that scales</span></a>
      </li>

      <li class="" id="menu-main-cart">
          <%= link_to(shopping_cart_items_path, :id => 'cart_items_buttons') do %>
              <strong> Cart </strong> <span>view your stuff.</span>
          <% end %>
      </li>
      <li class="" id="menu-main-wish">
          <%= link_to(wish_items_path, :id => 'wish_items_button') do %>
              <strong> Wish List </strong> <span>what you want.</span>
          <% end %>
      </li>

      <li class="" id="menu-main-user">
        <div>
          <% unless current_user %>
            <strong><%= link_to 'Login',  login_path %></strong> or
            <span><%= link_to 'Sign up', signup_path %></span>
          <% else %>
            <strong>Hi <%= current_user.first_name %></strong>
            <span>(<%= link_to 'not you?', logout_path %>)</span>
          <% end %>
        </div>
      </li>
    </ul>

    <%= render '/layouts/product_search' %>
  </div>
  <div id="sub_header_wrapper" class='bp'>
    <div id="sub_sub_header_wrapper" class='container'>
      <%= render 'shared/main_product_tabs' %>
    </div>
  </div>
</div>

<% end %>

{'fraction_non_alphanumeric': 0.187584767866458, 'fraction_numerical': 0.0014606155451225874, 'mean_word_length': 1.7094403617863199, 'pattern_counts': {'":': 0, '<': 382, '<?xml version=': 0, '>': 396, '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': '811165', 'n_tokens_mistral': 3233, 'n_tokens_neox': 2997, 'n_words': 639}