<commit_before><h1>Available Studies</h1>
<p>Choose a study to start voting or view shared analytics.</p>
<div class="search pull-right">
<%= form_tag studies_path, :method => 'get' do %>
  <%= text_field_tag :q, params[:q], :placeholder => 'Search for a study', :autocomplete => 'off'%>
  <button type="submit" class="btn btn-primary search-button" >
    <i class="icon-search icon-white"></i> Search
  </button>
<% end %>
</div>
<% if @studies.empty? and params[:q].nil? %>
  <p class="empty-text">There are no active studies.
  <% if !user_signed_in? %>
    To create a study, please <%= link_to 'log in', new_user_session_path %>.
  <% end %>
  </p>
<% elsif @studies.empty? %>
  <p><span class="no-studies">No studies match your current search.</span></p>
<% else %>
  <div id="search-results">
  <%= render 'studies/list', :studies => @studies, :show_user => true  %>
  </div>
  <br />
<% end %><commit_msg>Minor UI fix<commit_after><h1>Available Studies</h1>
<p>Choose a study to start voting or view shared analytics.</p>
<div class="search pull-right">
  <%= form_tag studies_path, :method => 'get' do %>
    <%= text_field_tag :q, params[:q], :placeholder => 'Search for a study', :autocomplete => 'off' %>
    <button type="submit" class="btn btn-primary search-button">
      <i class="icon-search icon-white"></i> Search
    </button>
  <% end %>
</div>
<div class="clearfix">&nbsp;</div>
<% if @studies.empty? and params[:q].nil? %>
  <p class="empty-text">There are no active studies.
    <% if !user_signed_in? %>
      To create a study, please <%= link_to 'log in', new_user_session_path %>.
    <% end %>
  </p>
<% elsif @studies.empty? %>
  <p><span class="no-studies">No studies match your current search.</span></p>
<% else %>
  <div id="search-results">
    <%= render 'studies/list', :studies => @studies, :show_user => true %>
  </div>
  <br/>
<% end %>
{'fraction_non_alphanumeric': 0.2012779552715655, 'fraction_numerical': 0.002129925452609159, 'mean_word_length': 4.105978260869565, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 75, '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': '5427393', 'n_tokens_mistral': 689, 'n_tokens_neox': 645, 'n_words': 176}