<commit_before><% @title = 'Home' %>
<% if user_signed_in? %>
  <h1>Welcome back, <%= current_user.first_name %>.</h1>
<% else %>
  <h1>Hello.</h1>
<% end %>

<h3>Looking for something?</h3>
<form action="/templates" method="GET">
  <input class="form-control" type="text" name="search" placeholder="Search">
</form>
<h5>Not sure what you're looking for? <a href="/discover">Browse the catalogue</a>.</h5>

<% if user_signed_in? %>
  <h3>Recommended for you</h3>
  <% @recommended.each do |template| %>
    <div class="media">
      <%= link_to(template, class: 'pull-left') do %>
        <%= image_tag(template.image_path, class: 'media-object',
          alt: template.title, width: '100') %>
      <% end %><commit_msg>Fixed bug on home page<commit_after><% @title = 'Home' %>
<% if user_signed_in? %>
  <h1>Welcome back, <%= current_user.first_name %>.</h1>
<% else %>
  <h1>Hello.</h1>
<% end %>

<h3>Looking for something?</h3>
<form action="/templates" method="GET">
  <input class="form-control" type="text" name="search" placeholder="Search">
</form>
<h5>Not sure what you're looking for? <a href="/discover">Browse the catalogue</a>.</h5>

<% if user_signed_in? %>
  <h3>Recommended for you</h3>
  <% if @recommended.empty? %>
    <span class="gray">You don't currently have any recommendations :(</span>
  <% end %>
  
  <% @recommended.each do |template| %>
    <div class="media">
      <%= link_to(template, class: 'pull-left') do %>
        <%= image_tag(template.image_path, class: 'media-object',
          alt: template.title, width: '100') %>
      <% end %>
{'fraction_non_alphanumeric': 0.20672162333544705, 'fraction_numerical': 0.016487000634115408, 'mean_word_length': 4.07395498392283, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '1344714', 'n_tokens_mistral': 614, 'n_tokens_neox': 551, 'n_words': 127}