<commit_before><%= form_for(vote, html: { class: "form-horizontal" }) do |f| %>
  <fieldset>
    <legend>New vote</legend>
      <% if vote.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(vote.errors.count, "error") %> prohibited this vote from being saved:</h2>

          <ul>
          <% vote.errors.full_messages.each do |message| %>
            <li><%= message %></li>
          <% end %>
          </ul>
        </div>
      <% end %>

      <div class="field">
        <%= f.label :How_many_voters? %>
        <%= icon('info-circle') %>
        <br>
        <%= icon('file') %>
        <%= f.number_field :voting_form_count, value: 2 %>
      </div>
      <div class="field">
        <%= f.label :How_many_candidates? %>
        <%= icon('info-circle') %>
        <br>
        <%= icon('users') %>
        <%= f.number_field :candidate_count, value: 2 %>
      </div>
      <br>
      <div class="actions">
        <%= f.submit 'Create', :class => 'btn btn-success' %>
      </div>
  </fieldset>
<% end %><commit_msg>Adds privacy, title and system fields to vote form<commit_after><%= form_for(vote, html: { class: "form-horizontal" }) do |f| %>
  <fieldset>
    <legend class="lead">New vote</legend>
      <% if vote.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(vote.errors.count, "error") %> prohibited this vote from being saved:</h2>

          <ul>
          <% vote.errors.full_messages.each do |message| %>
            <li><%= message %></li>
          <% end %>
          </ul>
        </div>
      <% end %>

      <div class="input-group col-sm-6">
        <span class="input-group-addon"><%= icon('font')%></span>
        <input type="text" class="form-control" name="title" placeholder="Title">
        <span class="input-group-addon"><%= icon('info-circle')%></span>
      </div>
      </br>

      <div class="input-group col-sm-6">
        <span class="input-group-addon"><%= icon('users')%></span>
        <%= f.number_field :voting_form_count, value: 2, class: 'form-control' %>
        <span class="input-group-addon">How many voters?</span>
      </div>
      <br/>

      <div class="input-group col-sm-6">
        <span class="input-group-addon"><%= icon('file')%></span>
        <%= f.number_field :candidate_count, value: 2, class: 'form-control' %>
        <span class="input-group-addon">How many candidates?</span>
      </div>
      <br/>

      <div class="control-group">
        <%= f.label :voting_system, class: 'lead' %>
        <br/>
        <label class="radio-inline">
          <input type="radio" name="systemradio" checked>first-past-the-post <%= icon('info-circle') %>
        </label>
        <label class="radio-inline">
          <input type="radio" name="systemradio" disabled>ranked-choice voting <%= icon('info-circle') %>
        </label>
      </div>
      <br>

      <div class="control-group">
        <%= f.label :privacy, class: 'lead' %>
        <br/>
        <label class="radio-inline">
          <input type="radio" name="privacyradio" checked>public <%= icon('info-circle') %>
        </label>
        <label class="radio-inline">
          <input type="radio" name="privacyradio" disabled>private <%= icon('info-circle') %>
        </label>
      </div>
      <br>
      <div class="actions">
        <%= f.submit 'Create', :class => 'btn btn-success' %>
      </div>
  </fieldset>
<% end %>
{'fraction_non_alphanumeric': 0.20081727962638646, 'fraction_numerical': 0.003210741389375365, 'mean_word_length': 2.2731614135625597, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 120, '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': '4415026', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1094, 'n_words': 225}