<commit_before>{{#partial "content"}}
  <h1>Add a new greeting</h1>

  {{#if errors}}
    <p class="h2 text-danger">There were errors in the submitted greeting!</p>
  {{/if}}

  <form action="/greeting/" method="post">
    <div class="form-group {{#if errors.template}}has-error{{/if}}">
      <label for="template">Greeting text</label>
      <input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
      {{#if errors.template}}
      <p class="text-danger">{{errors.template}}</p>
      {{/if}}
    </div>

    <button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
    <a class="btn btn-danger" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
  </form>
{{/partial}}

{{> layouts/base title="New greeting"}}
<commit_msg>Downgrade cancel button on the new page to warning.<commit_after>{{#partial "content"}}
  <h1>Add a new greeting</h1>

  {{#if errors}}
    <p class="h2 text-danger">There were errors in the submitted greeting!</p>
  {{/if}}

  <form action="/greeting/" method="post">
    <div class="form-group {{#if errors.template}}has-error{{/if}}">
      <label for="template">Greeting text</label>
      <input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
      {{#if errors.template}}
      <p class="text-danger">{{errors.template}}</p>
      {{/if}}
    </div>

    <button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
    <a class="btn btn-warning" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
  </form>
{{/partial}}

{{> layouts/base title="New greeting"}}

{'fraction_non_alphanumeric': 0.2175379426644182, 'fraction_numerical': 0.003372681281618887, 'mean_word_length': 4.266272189349112, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, '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': '6882890', 'n_tokens_mistral': 609, 'n_tokens_neox': 591, 'n_words': 136}