<commit_before><script>
    const items = [];
</script>
<nav class="navbar navbar-inverse sidebar" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-sidebar-navbar-collapse-1">
        <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="/">Organic Hustler</a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li>
          <a href="/admin/home">Home<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-home"></span></a>
        </li>
        <li class="active">
          <a href="/admin/products">Products<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-product-hunt"></span></a>
        </li>
        <li>
          <a href="/admin/logos">Logos<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-picture-o"></span></a>
        </li>
        <li>
          <a href="/admin/orders">Orders<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-truck"></span></a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<body style="background-color: #dedede">
<div class="main">

  <div class="head-bread-crumbs card">
    <h4><a class="breadcrumb" href="/admin/products">Products</a> /
      <a class="breadcrumb" href="/admin/edit/<%= @product %>"><%= @product %></a> / <%= @id %></h4>
  </div>

  <div class="table_products card modal-g">
    <table class="table" id="table">
      <thead>
      <tr>
        <th><input id="select-all" type="checkbox" name="select-all"></th>
        <th onclick="sort_title()" class="header-ele">Size</th>
        <th onclick="sort_title()" class="header-ele">Color</th>
        <th onclick="sort_title()" class="header-ele">Title</th>
        <th onclick="sort_category()" class="header-ele">Current price $</th>
        <th onclick="sort_inventory()" class="header-ele">Inventory</th>
        <th onclick="sort_price()" class="header-ele">Status</th>
      </tr>
      </thead>
      <tbody id="list-to-m">
      <% get_product_variations(@product).each do |product| %>

          <% variations = ['', '', ''] %>
          <% variant = false %>
          <% product['modifiers'].each do |modifiers| %>

              <% if modifiers[1]['data']['title'].eql?('Color')
                   variations[2] = modifiers
                 elsif modifiers[1]['data']['title'].eql?('Size')
                   variations[1] = modifiers
                 elsif modifiers[1]['data']['title'].eql?('Logo preset')
                   variations[0] = modifiers
                 end
              %>

              <% if modifiers[1]['var_id'].eql?(@id) %>
                  <% variant = true %>
              <% end %>
          <% end %>


          <% if variant %>
              <tr id="product-row">
                <td>
                  <input id="select-obj" type="checkbox" name="select-obj" onclick="add_item(this, '<%= product['id'] %>')">
                </td>
                <td onclick="window.location.href = '/admin/edit/<%= product['id'] %>'"><%= variations[1][1]['var_title'] %></td>
                <td><%= variations[2][1]['var_title'] %></td>
                <td><%= product['title'] %></td>
                <td class="price" style="text-align: right"><%= product['price']['data']['raw']['with_tax'] %></td>
                <td><%= product['stock_level'] %></td>
                <td><%= product['status']['value'] %></td>
              </tr>
          <% end %>
      <% end %>

      </tbody>
    </table>
  </div>
  <div class="card modal-h">

    <button id="btn_w" onclick="loadLogoDrop()" class="btn btn-success menu-buttons" type="button">Add group images
    </button>

    <div id="logo-drop" class="container-menu hidden">
    </div>

  </div>

  <script id="logo_drop_load">

      function loadLogoDrop() {
          document.getElementById("logo-drop").className = 'container-menu dropzone';<commit_msg>Shipping gen. Temp user controls. Starting tracking purchase 3/4 done. Better orders management. Added TUC (Temporary User Controller).<commit_after><script>
    const items = [];
</script>
<nav class="navbar navbar-inverse sidebar" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-sidebar-navbar-collapse-1">
        <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="/">Organic Hustler</a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li>
          <a href="/admin/home">Home<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-home"></span></a>
        </li>
        <li class="active">
          <a href="/admin/products">Products<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-product-hunt"></span></a>
        </li>
        <li>
          <a href="/admin/logos">Logos<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-picture-o"></span></a>
        </li>
        <li>
          <a href="/admin/orders">Orders<span style="font-size:16px;" class="pull-right hidden-xs show opacity fa fa-truck"></span></a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<body style="background-color: #dedede">
<div class="main">

  <div class="head-bread-crumbs card">
    <h4><a class="breadcrumb" href="/admin/products">Products</a> /
      <a class="breadcrumb" href="/admin/edit/<%= @product %>"><%= @product %></a> / <%= @id %></h4>
  </div>

  <div class="table_products card modal-g">
    <table class="table" id="table">
      <thead>
      <tr>
        <th><input id="select-all" type="checkbox" name="select-all"></th>
        <th onclick="sort_title()" class="header-ele">Size</th>
        <th onclick="sort_title()" class="header-ele">Color</th>
        <th onclick="sort_title()" class="header-ele">Title</th>
        <th onclick="sort_category()" class="header-ele">Current price $</th>
        <th onclick="sort_inventory()" class="header-ele">Inventory</th>
        <th onclick="sort_price()" class="header-ele">Status</th>
      </tr>
      </thead>
      <tbody id="list-to-m">
      <% get_product_variations(@product).each do |product| %>

          <% variations = ['', '', ''] %>
          <% variant = false %>
          <% product['modifiers'].each do |modifiers| %>

              <% if modifiers[1]['data']['title'].eql?('Color')
                   variations[2] = modifiers
                 elsif modifiers[1]['data']['title'].eql?('Size')
                   variations[1] = modifiers
                 elsif modifiers[1]['data']['title'].eql?('Logo preset')
                   variations[0] = modifiers
                 end
              %>

              <% if modifiers[1]['var_id'].eql?(@id) %>
                  <% variant = true %>
              <% end %>
          <% end %>


          <% if variant %>
              <tr id="product-row">
                <td>
                  <input id="select-obj" type="checkbox" name="select-obj" onclick="add_item(this, '<%= product['id'] %>')">
                </td>
                <td onclick="window.location.href = '/admin/product/edit/<%= product['id'] %>'"><%= variations[1][1]['var_title'] %></td>
                <td><%= variations[2][1]['var_title'] %></td>
                <td><%= product['title'] %></td>
                <td class="price" style="text-align: right"><%= product['price']['data']['raw']['with_tax'] %></td>
                <td><%= product['stock_level'] %></td>
                <td><%= product['status']['value'] %></td>
              </tr>
          <% end %>
      <% end %>

      </tbody>
    </table>
  </div>
  <div class="card modal-h">

    <button id="btn_w" onclick="loadLogoDrop()" class="btn btn-success menu-buttons" type="button">Add group images
    </button>

    <div id="logo-drop" class="container-menu hidden">
    </div>

  </div>

  <script id="logo_drop_load">

      function loadLogoDrop() {
          document.getElementById("logo-drop").className = 'container-menu dropzone';
{'fraction_non_alphanumeric': 0.20277903298689562, 'fraction_numerical': 0.005422503389064619, 'mean_word_length': 2.4868058290665616, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 267, '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': '5215416', 'n_tokens_mistral': 2833, 'n_tokens_neox': 2664, 'n_words': 540}