<commit_before><div class="hero-unit">
  <% if @rule %>
    <h1 id="rule"><%= @rule.rule_text %></h1>
  <% else %>
    <h1>No rules yet :(</h1>
  <% end %>
  <br />
  <p>
    <%= link_to "Give me another!", :root, :remote => params[:action] == 'random', :class => "btn btn-primary btn-large" %>
    <%= link_to "permalink for this rule", rule_path(@rule), :id => "rule-permalink" %>
  </p>
</div><commit_msg>Only shows permalink when random rule is selected<commit_after><div class="hero-unit">
  <% if @rule %>
    <h1 id="rule"><%= @rule.rule_text %></h1>
  <% else %>
    <h1>No rules yet :(</h1>
  <% end %>
  <br />
  <p>
    <%= link_to "Give me another!", :root, :remote => params[:action] == 'random', :class => "btn btn-primary btn-large" %>
    <%= link_to "permalink for this rule", rule_path(@rule), :id => "rule-permalink" if params[:action] == 'random' %>
  </p>
</div>
{'fraction_non_alphanumeric': 0.23895809739524349, 'fraction_numerical': 0.009060022650056626, 'mean_word_length': 3.6041666666666665, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 39, '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': '5498722', 'n_tokens_mistral': 360, 'n_tokens_neox': 333, 'n_words': 85}