<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>Expense - Simple, personal expense tracking.</title>

  <%= stylesheet_link_tag 'reset', 'screen' %>
</head>
<body>

<div id="header">
  <div class="container">
    <h1><a href="/">Expense</a></h1>
    <p>Simple, personal expense tracking.</p>

    <% if logged_in? %>
      <ul>
        <li><a href="/logout">Logout</a></li>
      </ul>

      <% if @expense %>
        <% form_for(@expense) do |form| %>
          <fieldset>
            <legend>Add an Expense</legend>

            <label for="expense_item">Item</label><br />
            <%= form.text_field :item %>
            <br />

            <button type="submit">Add</button>
          </fieldset>
        <% end %>
      <% end %>
    <% end %>
  </div>
</div>

<div id="content-container">
  <div class="container">
    <%= yield %>
  </div>
</div>

<div id="footer" class="container">
  <% form_for(:search, :url => search_expenses_path, :html => { :method => :get }) do %>
    <fieldset>
      <legend>Search</legend>

      <label for="search_query">Query</label><br />
      <%= text_field :search, 'query' %>
      <br />

      <button type="submit">Search</button>
    </fieldset>
  <% end %>

  <p>
    Created by <a href="http://tristandunn.com"><NAME></a>.<br />
    Open-source and <a href="http://github.com/tristandunn/expense">available on GitHub</a>.
  </p>
</div>

<% if logged_in? %>
  <%= javascript_include_tag 'application' %>
<% end %>

</body>
</html><commit_msg>Shouldn't be able to search unless logged in.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>Expense - Simple, personal expense tracking.</title>

  <%= stylesheet_link_tag 'reset', 'screen' %>
</head>
<body>

<div id="header">
  <div class="container">
    <h1><a href="/">Expense</a></h1>
    <p>Simple, personal expense tracking.</p>

    <% if logged_in? %>
      <ul>
        <li><a href="/logout">Logout</a></li>
      </ul>

      <% if @expense %>
        <% form_for(@expense) do |form| %>
          <fieldset>
            <legend>Add an Expense</legend>

            <label for="expense_item">Item</label><br />
            <%= form.text_field :item %>
            <br />

            <button type="submit">Add</button>
          </fieldset>
        <% end %>
      <% end %>
    <% end %>
  </div>
</div>

<div id="content-container">
  <div class="container">
    <%= yield %>
  </div>
</div>

<div id="footer" class="container">
  <% if logged_in? %>
    <% form_for(:search, :url => search_expenses_path, :html => { :method => :get }) do %>
      <fieldset>
        <legend>Search</legend>

        <label for="search_query">Query</label><br />
        <%= text_field :search, 'query' %>
        <br />

        <button type="submit">Search</button>
      </fieldset>
    <% end %>
  <% end %>

  <p>
    Created by <a href="http://tristandunn.com"><NAME></a>.<br />
    Open-source and <a href="http://github.com/tristandunn/expense">available on GitHub</a>.
  </p>
</div>

<% if logged_in? %>
  <%= javascript_include_tag 'application' %>
<% end %>

</body>
</html>
{'fraction_non_alphanumeric': 0.21296296296296297, 'fraction_numerical': 0.007856341189674524, 'mean_word_length': 2.6981327800829877, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '352037', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1232, 'n_words': 237}