<commit_before><%= twitter_bootstrap_form_for @zoning, layout: :horizontal do |f| %>
  <%= render 'shared/error_messages', model: @zoning %>
  <% if @planning %>
    <input id="planning_id" type="hidden" value="<%= @planning.id %>" name="planning_id">
  <% end %>
  <%= f.text_field :name %>
  <%= f.actions do %>
    <%= f.submit %>
  <% end %>
  <% if @planning %>
    <div id="zoning_div_input" class="form-group">
      <div class="col-md-offset-2 col-md-6">
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-magic fa-fw"></i> <%= t '.generate' %> <span class="caret"></span></button>
        <ul class="dropdown-menu" role="menu">
          <li><a href="#" id="from_planning"><i class="fa fa-magic fa-fw"></i> <%= t '.from_planning' %></a></li>
          <li class="divider"></li>
          <% @zoning.customer.vehicles.size.times{ |n| %>
          <li><a href="#" class="automatic" data-n="<%= n + 1 %>"><i class="fa fa-magic fa-fw"></i> <%= t('.automatic', count: n + 1) %></a></li>
          <% } %>
        </ul>
      </div>
    </div>
  <% end %>

  <div id="zones"></div>
<% end %>
<%
controller.js(
  zoning_id: @zoning.id,
  planning_id: @planning ? @planning.id : nil,<commit_msg>Remove Generate button in zoning form<commit_after><%= twitter_bootstrap_form_for @zoning, layout: :horizontal do |f| %>
  <%= render 'shared/error_messages', model: @zoning %>
  <% if @planning %>
    <input id="planning_id" type="hidden" value="<%= @planning.id %>" name="planning_id">
  <% end %>
  <%= f.text_field :name %>
  <%= f.actions do %>
    <%= f.submit %>
  <% end %>
  <% if @planning %>
    <div id="zoning_div_input" class="form-group">
      <div class="col-md-offset-2 col-md-6">
        <% if @zoning.id %>
          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-magic fa-fw"></i> <%= t '.generate' %> <span class="caret"></span></button>
          <ul class="dropdown-menu" role="menu">
            <li><a href="#" id="from_planning"><i class="fa fa-magic fa-fw"></i> <%= t '.from_planning' %></a></li>
            <li class="divider"></li>
            <% @zoning.customer.vehicles.size.times{ |n| %>
            <li><a href="#" class="automatic" data-n="<%= n + 1 %>"><i class="fa fa-magic fa-fw"></i> <%= t('.automatic', count: n + 1) %></a></li>
            <% } %>
          </ul>
        <% end %>
      </div>
    </div>
  <% end %>

  <div id="zones"></div>
<% end %>
<%
controller.js(
  zoning_id: @zoning.id,
  planning_id: @planning ? @planning.id : nil,
{'fraction_non_alphanumeric': 0.23730098559514784, 'fraction_numerical': 0.003032600454890068, 'mean_word_length': 3.085139318885449, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 99, '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': '3288114', 'n_tokens_mistral': 1028, 'n_tokens_neox': 930, 'n_words': 193}