<commit_before>- color_class = @order_cycle_count > 0 ? "blue" : "orange"
%div.dashboard_item.seven.columns.omega#order_cycles
  %div.header.seven.columns.alpha{class: color_class}
    %h3.four.columns.alpha
      = t "spree_admin_order_cycles"
    - if @order_cycle_count > 0
      %a.three.columns.omega.icon-plus.button.blue{ href: main_app.new_admin_order_cycle_path }
        = t "spree_admin_enterprises_create_new"
    - else
      %a{ "ofn-with-tip" => t(:spree_admin_order_cycles_tip) }
        = t "admin.whats_this"
  %div.seven.columns.alpha.list
    - if @order_cycle_count > 0
      %div.seven.columns.alpha.list-item
        %span.six.columns.alpha
          = t('.you_have_active', count: @order_cycle_count)
        %span.one.column.omega
          %span.icon-ok-sign
      %a.seven.columns.alpha.button.bottom{ href: main_app.admin_order_cycles_path, class: color_class }
        = t "spree_admin_enterprises_producers_manage_order_cycles"
        %span.icon-arrow-right
    - else
      %div.seven.columns.alpha.list-item{class: color_class}
        %span.six.columns.alpha
          = t('.you_have_active', count: @order_cycle_count)
        %span.one.column.omega
          %span.icon-warning-sign
      %a.seven.columns.alpha.button.bottom{ href: main_app.admin_order_cycles_path, class: color_class }
        = t "spree_admin_enterprises_producers_manage_order_cycles"
        %span.icon-arrow-right<commit_msg>Remove duplicate haml code<commit_after>- color_class = @order_cycle_count > 0 ? "blue" : "orange"
- icon_class = @order_cycle_count > 0 ? "icon-ok-sign" : "icon-warning-sign"
%div.dashboard_item.seven.columns.omega#order_cycles
  %div.header.seven.columns.alpha{class: color_class}
    %h3.four.columns.alpha
      = t "spree_admin_order_cycles"
    - if @order_cycle_count > 0
      %a.three.columns.omega.icon-plus.button.blue{ href: main_app.new_admin_order_cycle_path }
        = t "spree_admin_enterprises_create_new"
    - else
      %a{ "ofn-with-tip" => t(:spree_admin_order_cycles_tip) }
        = t "admin.whats_this"
  %div.seven.columns.alpha.list
    %div.seven.columns.alpha.list-item{class: color_class}
      %span.six.columns.alpha
        = t('.you_have_active', count: @order_cycle_count)
      %span.one.column.omega
        %span{class: icon_class}
    %a.seven.columns.alpha.button.bottom{ href: main_app.admin_order_cycles_path, class: color_class }
      = t "spree_admin_enterprises_producers_manage_order_cycles"
      %span.icon-arrow-right
{'fraction_non_alphanumeric': 0.12390087929656275, 'fraction_numerical': 0.0031974420463629096, 'mean_word_length': 3.3606271777003482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '672765', 'n_tokens_mistral': 905, 'n_tokens_neox': 878, 'n_words': 113}