<commit_before><%- model_class = Order %>
<% if current_user.instance_of? Admin %>
<div class="btn-group dropup">
      <% if @order.current_state.events.keys.count > 0 %>
  <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
    <%= "Current: #{model_class.human_attribute_name(@order.current_state)}" %> 
        <span class="caret"></span>
      </a>
          <ul class="dropdown-menu">
           <% @order.current_state.events.keys.each do |i| %> 
             <li> <%= link_to model_class.human_attribute_name(i), "#{root_url}orders/#{@order.id}/#{i}", method: :put, data: {confirm: 'Are you sure?'}
           %> </li>
           <% end %>
         </ul>
       <% else %>
         <%= link_to "Status: #{model_class.human_attribute_name(@order.current_state)}", '', class: 'btn' %>
    <% end %>
  </div>
    <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                order_path(@order),
                :method => 'delete',
                :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                :class => 'btn btn-danger' %>
            
            <% end %><commit_msg>move delete button iss#148<commit_after><%- model_class = Order %>
<% if current_user.instance_of? Admin %>
<div class="btn-group dropup">
      <% if @order.current_state.events.keys.count > 0 %>
  <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
    <%= "Current: #{model_class.human_attribute_name(@order.current_state)}" %> 
        <span class="caret"></span>
      </a>
          <ul class="dropdown-menu">
           <% @order.current_state.events.keys.each do |i| %> 
             <li> <%= link_to model_class.human_attribute_name(i), "#{root_url}orders/#{@order.id}/#{i}", method: :put, data: {confirm: 'Are you sure?'}
           %> </li>
           <% end %>
         </ul>
       <% else %>
         <%= link_to "Status: #{model_class.human_attribute_name(@order.current_state)}", '', class: 'btn' %>
    <% end %>
  </div>
  <div class="pull-right">
    <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                order_path(@order),
                :method => 'delete',
                :data => { :confirm => 'This action will permanently DELETE the order. Are you sure??' },
                :class => 'btn btn-danger' %>
            </div> 
            <% end %>
{'fraction_non_alphanumeric': 0.19858451290591175, 'fraction_numerical': 0.0020815986677768525, 'mean_word_length': 2.432857142857143, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 63, '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': '7477828', 'n_tokens_mistral': 804, 'n_tokens_neox': 738, 'n_words': 147}