<commit_before>.expanding-sidebar.cart-sidebar{ng: {controller: 'CartCtrl', class: "{'shown': showCartSidebar}"}}
  .background{ng: {click: 'toggleCartSidebar()'}}
  .sidebar
    .cart-header
      %span.title{"ng-show" => "Cart.line_items.length == 1"}
        = t('.items_in_cart_singular', num: "{{ Cart.total_item_count() }}")
      %span.title{"ng-show" => "Cart.line_items.length > 1"}
        = t('.items_in_cart_plural', num: "{{ Cart.total_item_count() }}")
      %a.close{ng: {click: 'toggleCartSidebar()'}}
        = t('.close')
        %i.ofn-i_009-close

    .cart-content
      %table
        %tr.product-cart{"ng-repeat" => "line_item in Cart.line_items", "id" => "cart-variant-{{ line_item.variant.id }}"}
          %td.image
            %img{'ng-src' => '{{ line_item.variant.thumb_url }}'}
          %td
            %span {{ line_item.variant.extended_name | truncate: max_characters }}
            %br
            %span.options-text {{ line_item.variant.options_text | truncate: max_characters }}
          %td.text-right
            %span.quantity {{ line_item.quantity }}
          %td
            .total-price.text-right {{ line_item.total_price | localizeCurrency }}
            .flex.unit-price
              %div{:style => "margin-right: 5px"}
                %question-mark-with-tooltip{"question-mark-with-tooltip" => "_",
                "question-mark-with-tooltip-append-to-body" => "true",
                "question-mark-with-tooltip-placement" => "top",
                "question-mark-with-tooltip-animation" => true,
                context: "'cart-sidebar'"}
              .options-text
                {{ line_item.variant.unit_price_price | localizeCurrency }} / {{ line_item.variant.unit_price_unit }}

      .cart-empty{"ng-show" => "Cart.line_items.length == 0"}
        %p
          = t('.cart_empty')

        %a.go-shopping.button.large.bright{ng: {show: "#{show_shopping_cta?}", href: "{{ CurrentHub.hub.id ? '#{main_app.shop_path}' : '#{main_app.shops_path}' }}"}}
          = t('.take_me_shopping')

  .sidebar-footer{"ng-show" => "Cart.line_items.length > 0"}
    %p.cart-total
      %strong<commit_msg>Display unit price info if feature is enabled<commit_after>.expanding-sidebar.cart-sidebar{ng: {controller: 'CartCtrl', class: "{'shown': showCartSidebar}"}}
  .background{ng: {click: 'toggleCartSidebar()'}}
  .sidebar
    .cart-header
      %span.title{"ng-show" => "Cart.line_items.length == 1"}
        = t('.items_in_cart_singular', num: "{{ Cart.total_item_count() }}")
      %span.title{"ng-show" => "Cart.line_items.length > 1"}
        = t('.items_in_cart_plural', num: "{{ Cart.total_item_count() }}")
      %a.close{ng: {click: 'toggleCartSidebar()'}}
        = t('.close')
        %i.ofn-i_009-close

    .cart-content
      %table
        %tr.product-cart{"ng-repeat" => "line_item in Cart.line_items", "id" => "cart-variant-{{ line_item.variant.id }}"}
          %td.image
            %img{'ng-src' => '{{ line_item.variant.thumb_url }}'}
          %td
            %span {{ line_item.variant.extended_name | truncate: max_characters }}
            %br
            %span.options-text {{ line_item.variant.options_text | truncate: max_characters }}
          %td.text-right
            %span.quantity {{ line_item.quantity }}
          %td
            .total-price.text-right {{ line_item.total_price | localizeCurrency }}
            - if feature? :unit_price, spree_current_user
              .flex.unit-price
                %div{:style => "margin-right: 5px"}
                  %question-mark-with-tooltip{"question-mark-with-tooltip" => "_",
                  "question-mark-with-tooltip-append-to-body" => "true",
                  "question-mark-with-tooltip-placement" => "top",
                  "question-mark-with-tooltip-animation" => true,
                  context: "'cart-sidebar'"}
                .options-text
                  {{ line_item.variant.unit_price_price | localizeCurrency }} / {{ line_item.variant.unit_price_unit }}

      .cart-empty{"ng-show" => "Cart.line_items.length == 0"}
        %p
          = t('.cart_empty')

        %a.go-shopping.button.large.bright{ng: {show: "#{show_shopping_cta?}", href: "{{ CurrentHub.hub.id ? '#{main_app.shop_path}' : '#{main_app.shops_path}' }}"}}
          = t('.take_me_shopping')

  .sidebar-footer{"ng-show" => "Cart.line_items.length > 0"}
    %p.cart-total
      %strong
{'fraction_non_alphanumeric': 0.17657739446209714, 'fraction_numerical': 0.003631411711302769, 'mean_word_length': 2.3692660550458715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '5517221', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1426, 'n_words': 194}