<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <%= hook :inside_head do %>
    <%= render 'shared/head' %>
  <% end %>
  <%= render 'shared/synergy_startup_javascript' %>
  <%= stylesheet_link_tag 'style' %>
</head>
<%
   if @body_class.nil?
     if content_for?(:sidebar)
       @body_class = 'two-col'
     else
       @body_class = 'one-col'
     end
   end
%>

<body class="<%= @body_class %>" id="<%= @body_id %>">

<div class="wrapper">
  <div class="main_top" align="center">
    <div class="header_panel">
      <ul>
        <li style="text-align: center; width: 265px">
          <div><%= link_to image_tag("logo.png", :alt => "Synergy logo"), root_url %></div></li>
        <li style="padding-left: 16px; width: 400px"><%= render 'shared/search' %></li>
        <li>
          <% if store_menu? and not current_page?(cart_path) %>
            <div><%= link_to_cart %></div>
          <% end %>
        </li>
        <li>
          <% if @comparable_products %>
            <div><%= link_to "Сравнение товаров (#{@comparable_products.count})", compare_products_path, {:id => "compare_products"} %></div>
            <div id="tooltip" class="tooltip" style="display: none">
              <div class="tooltip_top"></div>
              <div class="tooltip_middle">
                <div style="font-size: 0px">&nbsp;</div>
                <div class="tooltip_content" id="tooltip_content"></div>
                <div style="font-size: 0px">&nbsp;</div>
              </div>
              <div class="tooltip_bottom"></div>
            </div>
          <% end %>
        </li>
      </ul>
    </div>
  </div>
  <div align="center">
    <div class="fixed_width">
      <div align="left" style="margin-top: 1em">
        <%= hook :shared_login_bar %>
      </div>
      <%= render :partial => 'shared/comparable_products' %>
      <% if content_for?(:sidebar) %>
        <div class="sidebar">
          <%= hook :sidebar do %>
            <%= yield :sidebar %>
          <% end %>
        </div>
      <% end %>
      <div id="content" class="content">
        <% if flash.notice %>
          <div class="flash notice"><%= flash.notice %></div>
        <% end %>
        <% if flash[:errors] %><commit_msg>Исправлено неправильное условие для отображение ошибок<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <%= hook :inside_head do %>
    <%= render 'shared/head' %>
  <% end %>
  <%= render 'shared/synergy_startup_javascript' %>
  <%= stylesheet_link_tag 'style' %>
</head>
<%
   if @body_class.nil?
     if content_for?(:sidebar)
       @body_class = 'two-col'
     else
       @body_class = 'one-col'
     end
   end
%>

<body class="<%= @body_class %>" id="<%= @body_id %>">

<div class="wrapper">
  <div class="main_top" align="center">
    <div class="header_panel">
      <ul>
        <li style="text-align: center; width: 265px">
          <div><%= link_to image_tag("logo.png", :alt => "Synergy logo"), root_url %></div></li>
        <li style="padding-left: 16px; width: 400px"><%= render 'shared/search' %></li>
        <li>
          <% if store_menu? and not current_page?(cart_path) %>
            <div><%= link_to_cart %></div>
          <% end %>
        </li>
        <li>
          <% if @comparable_products %>
            <div><%= link_to "Сравнение товаров (#{@comparable_products.count})", compare_products_path, {:id => "compare_products"} %></div>
            <div id="tooltip" class="tooltip" style="display: none">
              <div class="tooltip_top"></div>
              <div class="tooltip_middle">
                <div style="font-size: 0px">&nbsp;</div>
                <div class="tooltip_content" id="tooltip_content"></div>
                <div style="font-size: 0px">&nbsp;</div>
              </div>
              <div class="tooltip_bottom"></div>
            </div>
          <% end %>
        </li>
      </ul>
    </div>
  </div>
  <div align="center">
    <div class="fixed_width">
      <div align="left" style="margin-top: 1em">
        <%= hook :shared_login_bar %>
      </div>
      <%= render :partial => 'shared/comparable_products' %>
      <% if content_for?(:sidebar) %>
        <div class="sidebar">
          <%= hook :sidebar do %>
            <%= yield :sidebar %>
          <% end %>
        </div>
      <% end %>
      <div id="content" class="content">
        <% if flash.notice %>
          <div class="flash notice"><%= flash.notice %></div>
        <% end %>
        <% if flash[:error] %>
{'fraction_non_alphanumeric': 0.19401096583719948, 'fraction_numerical': 0.009278785322648671, 'mean_word_length': 2.2891816920943135, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '5991082', 'n_tokens_mistral': 1695, 'n_tokens_neox': 1545, 'n_words': 317}