<commit_before><div class="col-md-8 col-md-offset-2">
<br>
    <form role="form" action="<%= search_path %>" method="get">
        <div class="form-group">
            <%= label_tag :course, "I'm looking for a course..." %>
            <%= text_field_tag :course, params[:course], :class => 'form-control', :placeholder => "biology, sociology, Oxford, China..." %>
        </div>
        
        <div class="text-center">
            <%= submit_tag "Search!", :name => nil, :class => "btn btn-default" %>
        </div>
    </form>

</div>

<% if params[:course] != nil && params[:course] != '' %>

<div class="col-md-8 col-md-offset-2">
    
    <% if @courses.count > 0 %>
    
    <h2>Results</h2>
    
    <hr>

    <%= render @courses %>

    <div class="text-center">
        <%= will_paginate @courses, renderer: BootstrapPagination::Rails %>
    </div>
    
    <% else %>
    
    <div class="text-center"><h2>Nothing turned up!</h2></div>
    
    <% end %>
    
</div><commit_msg>Add option for demo mode<commit_after><div class="col-md-8 col-md-offset-2">
<br>
    <form role="form" action="<%= search_path %>" method="get">
        <div class="form-group">
            <%= label_tag :course, "I'm looking for a course..." %>
            <%= text_field_tag :course, params[:course], :class => 'form-control', :placeholder => "biology, sociology, Oxford, China..." %>
        </div>
        
        <div class="text-center">
            <%= submit_tag "Search!", :name => nil, :class => "btn btn-default" %>
        </div>
    </form>
    
    <% if ENV['DEMO_MODE'] == 'true' %>
    <div class="text-center">
        <h4>DEMO MODE</h4>
        <h5>Use these credentials to log in as an admin:</h5>
        <b>Email: </b><%= ENV['DEMO_USER'] %><br/>
        <b>Password: </b><%= ENV['DEMO_PASS'] %>
    </div>
    <% end %>

</div>

<% if params[:course] != nil && params[:course] != '' %>

<div class="col-md-8 col-md-offset-2">
    
    <% if @courses.count > 0 %>
    
    <h2>Results</h2>
    
    <hr>

    <%= render @courses %>

    <div class="text-center">
        <%= will_paginate @courses, renderer: BootstrapPagination::Rails %>
    </div>
    
    <% else %>
    
    <div class="text-center"><h2>Nothing turned up!</h2></div>
    
    <% end %>
    
</div>
{'fraction_non_alphanumeric': 0.21322241681260945, 'fraction_numerical': 0.009632224168126095, 'mean_word_length': 2.3115942028985508, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 88, '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': '6320935', 'n_tokens_mistral': 848, 'n_tokens_neox': 792, 'n_words': 166}