<commit_before><% content_for :sidebar_left do %>
  <ul class="nav nav-list well">
    <li class="nav-header">Problems?</li>
    <li>Call Dag-Inge: 92491526</li>
  </ul>
<% end %>

<%= search_form_for @q, :builder => SimpleForm::FormBuilder, url: hosts_path, method: :post, :html => { :class => "form-horizontal" } do |f| %>
  <fieldset>
    <legend>Search hosts</legend>
    <%= f.input :first_name_cont, :label => "First name", :input_html => { :class => "span4" }, required: false %>
    <%= f.input :last_name_cont, :label => "Last name", :input_html => { :class => "span4" }, required: false %>
    <div class="control-group string optional">
      <%= label_tag 'has_free_beds', "Has free beds", :class => "string optional control-label" %>
      <div class="controls">
        <%= check_box_tag :has_free_beds, "selected", (not params[:has_free_beds].nil?) %>
      </div>
    </div>
    <!--%= f.input :student_eq, label: "Student?", as: :select, collection: [["True", true], ["False", false]], required: false %--><commit_msg>hosts#index: Number of checked in participants<commit_after><% content_for :sidebar_left do %>
  <ul class="nav nav-list well">
    <li class="nav-header">Problems?</li>
    <li>Call Dag-Inge: 92491526</li>
    <li class="nav-header"># Checked in participants</li>
    <li><%= Participant.where("checked_in IS NOT NULL").count %> participants checked in</li>
  </ul>
<% end %>

<%= search_form_for @q, :builder => SimpleForm::FormBuilder, url: hosts_path, method: :post, :html => { :class => "form-horizontal" } do |f| %>
  <fieldset>
    <legend>Search hosts</legend>
    <%= f.input :first_name_cont, :label => "First name", :input_html => { :class => "span4" }, required: false %>
    <%= f.input :last_name_cont, :label => "Last name", :input_html => { :class => "span4" }, required: false %>
    <div class="control-group string optional">
      <%= label_tag 'has_free_beds', "Has free beds", :class => "string optional control-label" %>
      <div class="controls">
        <%= check_box_tag :has_free_beds, "selected", (not params[:has_free_beds].nil?) %>
      </div>
    </div>
    <!--%= f.input :student_eq, label: "Student?", as: :select, collection: [["True", true], ["False", false]], required: false %-->
{'fraction_non_alphanumeric': 0.2039911308203991, 'fraction_numerical': 0.008869179600886918, 'mean_word_length': 4.186206896551724, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 70, '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': '2464536', 'n_tokens_mistral': 808, 'n_tokens_neox': 756, 'n_words': 190}