<commit_before><%= form_for @project, :html => { :class => "form-horizontal project" } do |f| %>

    <% if @project.errors.any? %>
    <div id="error_expl" class="panel panel-danger">
      <div class="panel-heading">
        <h3 class="panel-title"><%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:</h3>
      </div>
      <div class="panel-body">
        <ul>
        <% @project.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :title, :class => 'control-label' %>
    <div class="controls col-md-12 projectTitleControl">
      <div class="col-md-6" style="margin-left: -5px">
      <%= f.text_field :title, :class => 'form-control' %>
      </div>
    </div>
    <%= error_span(@project[:title]) %>
  </div>


    <div class="control-group">
      <%= f.label :status, "Status",  :class => 'control-label' %>
      <div class="radio">
        <div>
          <div class="col-md-1"> <%= label :status, "active"%>
          </div>
          <div class="col-md-1"> <%= f.radio_button :status, true, :value => true%>
          </div>
        </div>
        <div>
          <div class="col-md-1"><%= label :status, "inactive"%>
          </div>
          <div class="col-md-1"> <%= f.radio_button :status, false, :value => false%>
          </div>
        </div>
      </div>
      <%= error_span(@project[:status]) %>
    </div>

    <div class="control-group">
      <%= f.label :public, "Accessibility",  :class => 'control-label' %>
      <div class="radio">
        <div>
          <div class="col-md-1"> <%= label :public, "public"%>
          </div>
         <div class="col-md-1"> <%= f.radio_button :public, true, :value => true%>
         </div>
        </div>
        <div>
          <div class="col-md-1"><%= label :public, "private"%>
          </div>
         <div class="col-md-1"> <%= f.radio_button :public, false, :value => false%>
         </div>
        </div>
      </div>
      <%= error_span(@project[:public]) %>
    </div>

    <div class="control-group">
      <div class="col-md-12">
        <div class="col-md-5 projectCheckbox" >
          <%= f.label :users, :class => 'control-label' %>
        </div>
      </div>
      <div class="col-md-12">
      <div class="col-md-4 userProjectCheckbox">
          <%= User.find_each do |user| %>
            <% is_member = @project.users.include?(user) %>
            <% element_id = (user == current_user && is_member ? "currentUserCheckbox" : "project_user_ids_#{user.id}") %>
              <div class="checkbox" >
              <input value="<%= user.id %>" name="project[user_ids][]" id="<%= element_id %>" type="checkbox" <%= "checked" if is_member %> >
              <label for="<%= element_id %>"><%= user.email %></label>
              </div>
          <% end %>
        <input name="project[user_ids][]" value="" type="hidden">
      </div>
      </div>
    </div>
    <%= error_span(@project[:users]) %>

  <%= f.submit nil, :class => 'btn btn-primary' %><commit_msg>Add chair field for projects<commit_after><%= form_for @project, :html => { :class => "form-horizontal project" } do |f| %>

    <% if @project.errors.any? %>
    <div id="error_expl" class="panel panel-danger">
      <div class="panel-heading">
        <h3 class="panel-title"><%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:</h3>
      </div>
      <div class="panel-body">
        <ul>
        <% @project.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :title, :class => 'control-label' %>
    <div class="controls col-md-12 projectTitleControl">
      <div class="col-md-6" style="margin-left: -5px">
      <%= f.text_field :title, :class => 'form-control' %>
      </div>
    </div>
    <%= error_span(@project[:title]) %>
  </div>

  <div class="control-group">
    <%= f.label :current_user.chair, 'chair', :class => 'control-label' %>
    <div class="controls col-md-12 projectTitleControl">
      <div class="col-md-6" style="margin-left: -5px">
        <%= f.label :current_user.chair, :class => 'form-control' %>
      </div>
    </div>
    <%= error_span(@project[:title]) %>
  </div>

    <div class="control-group">
      <%= f.label :status, 'Status',  :class => 'control-label' %>
      <div class="radio">
        <div>
          <div class="col-md-1"> <%= label :status, 'active'%>
          </div>
          <div class="col-md-1"> <%= f.radio_button :status, true, :value => true%>
          </div>
        </div>
        <div>
          <div class="col-md-1"><%= label :status, 'inactive'%>
          </div>
          <div class="col-md-1"> <%= f.radio_button :status, false, :value => false%>
          </div>
        </div>
      </div>
      <%= error_span(@project[:status]) %>
    </div>

    <div class="control-group">
      <%= f.label :public, 'Accessibility',  :class => 'control-label' %>
      <div class="radio">
        <div>
          <div class="col-md-1"> <%= label :public, 'public'%>
          </div>
         <div class="col-md-1"> <%= f.radio_button :public, true, :value => true%>
         </div>
        </div>
        <div>
          <div class="col-md-1"><%= label :public, 'private'%>
          </div>
         <div class="col-md-1"> <%= f.radio_button :public, false, :value => false%>
         </div>
        </div>
      </div>
      <%= error_span(@project[:public]) %>
    </div>

    <div class="control-group">
      <div class="col-md-12">
        <div class="col-md-5 projectCheckbox" >
          <%= f.label :users, :class => 'control-label' %>
        </div>
      </div>
      <div class="col-md-12">
      <div class="col-md-4 userProjectCheckbox">
          <%= User.find_each do |user| %>
            <% is_member = @project.users.include?(user) %>
            <% element_id = (user == current_user && is_member ? 'currentUserCheckbox' : "project_user_ids_#{user.id}") %>
              <div class="checkbox" >
              <input value="<%= user.id %>" name="project[user_ids][]" id="<%= element_id %>" type="checkbox" <%= 'checked' if is_member %> >
              <label for="<%= element_id %>"><%= user.email %></label>
              </div>
          <% end %>
        <input name="project[user_ids][]" value="" type="hidden">
      </div>
      </div>
    </div>
    <%= error_span(@project[:users]) %>

  <%= f.submit nil, :class => 'btn btn-primary' %>
{'fraction_non_alphanumeric': 0.21555891238670694, 'fraction_numerical': 0.006646525679758308, 'mean_word_length': 2.2047434656340754, 'pattern_counts': {'":': 0, '<': 212, '<?xml version=': 0, '>': 238, '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': '798464', 'n_tokens_mistral': 2340, 'n_tokens_neox': 2193, 'n_words': 453}