<commit_before><div class="row remove-bottom">
  <div class="sixteen columns">

    <h1><?= $title ?></h1>

    <p>[
      <a href="/admin/">Home</a>
    ]</p>

    <hr/>

  </div>
</div>

<form method="post" action="<?= $action ?>">
<div class="row remove-bottom">
  <div class="sixteen columns">
    <label for="article-title">Title</label>
    <input id="article-title" name="article[title]" type="text" value="<?= ($type=='create' ? '' : $article['title']) ?>">
  </div>
</div>
<div class="row">
  <div class="four columns">
    <label for="article-author">Author</label>
    <input id="article-author" name="article[author]" type="text" value="<?= ($type=='create' ? '' : $article['author']) ?>">

    <label for="article-excerpt">Excerpt</label>
    <textarea id="article-excerpt" name="article[excerpt]" rows="5"><?= ($type=='create' ? '' : $article['excerpt']) ?></textarea>

    <div class="row">
      <div class="two columns alpha">
        <fieldset>
          <legend>Type</legend>
          <label for="article-type-post">
            <input id="article-type-post" name="article[type]" type="radio" value="post" <?= ($type=='create' || $article['type']=='post' ? 'checked' : '') ?>>
            <span>Post</span>
          </label>
          <label for="article-type-page">
            <input id="article-type-page" name="article[type]" type="radio" value="page" <?= ($type=='update' && $article['type']=='page' ? 'checked' : '') ?>>
            <span>Page</span>
          </label>
        </fieldset>
      </div>
      <div class="two columns omega">
        <fieldset>
          <legend>Status</legend>
          <label for="article-status-draft">
            <input id="article-status-draft" name="article[status]" type="radio" value="draft"  <?= ($type=='create' || $article['status']=='draft' ? 'checked' : '') ?>>
            <span>Draft</span>
          </label>
          <label for="article-status-publish">
            <input id="article-status-publish" name="article[status]" type="radio" value="publish" <?= ($type=='update' || $article['status']=='publish' ? 'checked' : '') ?>>
            <span>Publish</span>
          </label>
        </fieldset>
      </div>

      <button class="button" type="submit"><?= ucfirst($type) ?> Article</button>
    </div>
  </div>
  <div class="twelve columns">
    <label for="article-content">Content</label>
    <textarea id="article-content" name="article[content]" rows="25"><?= ($type=='create' ? '' : $article['content']) ?></textarea>
  </div>
</div>
</form><commit_msg>Removed the $article checks on the radio button values.<commit_after><div class="row remove-bottom">
  <div class="sixteen columns">

    <h1><?= $title ?></h1>

    <p>[
      <a href="/admin/">Home</a>
    ]</p>

    <hr/>

  </div>
</div>

<form method="post" action="<?= $action ?>">
<div class="row remove-bottom">
  <div class="sixteen columns">
    <label for="article-title">Title</label>
    <input id="article-title" name="article[title]" type="text" value="<?= ($type=='create' ? '' : $article['title']) ?>">
  </div>
</div>
<div class="row">
  <div class="four columns">
    <label for="article-author">Author</label>
    <input id="article-author" name="article[author]" type="text" value="<?= ($type=='create' ? '' : $article['author']) ?>">

    <label for="article-excerpt">Excerpt</label>
    <textarea id="article-excerpt" name="article[excerpt]" rows="5"><?= ($type=='create' ? '' : $article['excerpt']) ?></textarea>

    <div class="row">
      <div class="two columns alpha">
        <fieldset>
          <legend>Type</legend>
          <label for="article-type-post">
            <input id="article-type-post" name="article[type]" type="radio" value="post" <?= ($type=='update' ? 'checked' : '') ?>>
            <span>Post</span>
          </label>
          <label for="article-type-page">
            <input id="article-type-page" name="article[type]" type="radio" value="page" <?= ($type=='update' ? 'checked' : '') ?>>
            <span>Page</span>
          </label>
        </fieldset>
      </div>
      <div class="two columns omega">
        <fieldset>
          <legend>Status</legend>
          <label for="article-status-draft">
            <input id="article-status-draft" name="article[status]" type="radio" value="draft"  <?= ($type=='create' ? 'checked' : '') ?>>
            <span>Draft</span>
          </label>
          <label for="article-status-publish">
            <input id="article-status-publish" name="article[status]" type="radio" value="publish" <?= ($type=='update' ? 'checked' : '') ?>>
            <span>Publish</span>
          </label>
        </fieldset>
      </div>

      <button class="button" type="submit"><?= ucfirst($type) ?> Article</button>
    </div>
  </div>
  <div class="twelve columns">
    <label for="article-content">Content</label>
    <textarea id="article-content" name="article[content]" rows="25"><?= ($type=='create' ? '' : $article['content']) ?></textarea>
  </div>
</div>
</form>
{'fraction_non_alphanumeric': 0.23442492012779553, 'fraction_numerical': 0.001996805111821086, 'mean_word_length': 3.2092436974789917, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '6936042', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1573, 'n_words': 299}