<commit_before><div class="session-timeline box-align">
  <% urls = [
      [_('Edition'), 'edition'],
      #[_('Call'), 'call'],
      [_('Orders'), 'orders'],
      #[_('Parcels'), 'parcels'],
      #[_('Redistribution'), 'redistribution'],
      #[_('Delivery'), 'delivery'],
      #[_('Close'), 'close'],
    ]
  %>
  <% view = params[:view] || session.status %>

  <div>
    <% urls.each do |name, status| %>
      <%= link_to name, params.merge(:action => :edit, :id => session.id, :view => status),
        :class => "session-timeline-item #{timeline_class(session, status, view)}" %>
    <% end %>
  </div>

  <%
    actions = {
      :edition => [
      ],
      :orders => [
        [ _('Spreadsheet with the orders'), {:action => :report_orders, :id => session.id} ],
        [ _('Spreadsheet with product listing'), {:action => :report_products, :id => session.id} ],
      ],
    }
    actions[:edition].unshift [ _('Finish cycle editing'), {:action => :step, :id => session.id, :method => :post},
      { :id => 'session-open-session' } ] unless session.passed_by?('edition')
    actions[:orders].unshift [ session.orders? ? _('Block orders period') : _('Close orders period'),<commit_msg>Remove link to order period being in the edition state<commit_after><div class="session-timeline box-align">
  <% urls = [
      [_('Edition'), 'edition'],
      #[_('Call'), 'call'],
      [_('Orders'), 'orders'],
      #[_('Parcels'), 'parcels'],
      #[_('Redistribution'), 'redistribution'],
      #[_('Delivery'), 'delivery'],
      #[_('Close'), 'close'],
    ]
  %>
  <% view = params[:view] || session.status %>

  <div>
    <% urls.each do |name, status| %>
      <% klass = "session-timeline-item #{timeline_class(session, status, view)}" %>
      <% if session.passed_by?(status) or session.status == status %>
        <%= link_to name, params.merge(:action => :edit, :id => session.id, :view => status), :class => klass %>
      <% else %>
        <span class="<%=klass%>"><%= name %></span>
      <% end %>
    <% end %>
  </div>

  <%
    actions = {
      :edition => [
      ],
      :orders => [
        [ _('Spreadsheet with the orders'), {:action => :report_orders, :id => session.id} ],
        [ _('Spreadsheet with product listing'), {:action => :report_products, :id => session.id} ],
      ],
    }
    actions[:edition].unshift [ _('Finish cycle editing'), {:action => :step, :id => session.id, :method => :post},
      { :id => 'session-open-session' } ] unless session.passed_by?('edition')
    actions[:orders].unshift [ session.orders? ? _('Block orders period') : _('Close orders period'),
{'fraction_non_alphanumeric': 0.22408536585365854, 'fraction_numerical': 0.0, 'mean_word_length': 3.0760869565217392, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 55, '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': '680063', 'n_tokens_mistral': 881, 'n_tokens_neox': 837, 'n_words': 185}