<commit_before><h1>Create a new question</h1>

<form id="new_question" action="/questions" method="post">
  <label for="question[title]">Title</label>
  <input type="text" name="question[title]" placeholder="e.g. How do you Ruby?">
  <label for="question[body]">Description</label>
  <textarea name="question[body]" placeholder="e.g. Really though, how do you Ruby."></textarea>

  <input type="submit" value="Ask question">
</form><commit_msg>render errors when question fields are blank<commit_after><div class="container">
  <h1>Create a new question</h1>
  <% if @errors %>
    <% @errors.each do |error| %>
      <p id="errors"><%= error %></p>
    <% end %>
  <% end %>
  <form id="new_question" action="/questions" method="post">
    <label for="question[title]">Title</label>
    <input type="text" name="question[title]" placeholder="e.g. How do you Ruby?">
    <label for="question[body]">Description</label>
    <textarea name="question[body]" placeholder="e.g. Really though, how do you Ruby."></textarea>

    <input type="submit" value="Ask question">
  </form>
</div>
{'fraction_non_alphanumeric': 0.19408502772643252, 'fraction_numerical': 0.0036968576709796672, 'mean_word_length': 5.11864406779661, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '5366122', 'n_tokens_mistral': 359, 'n_tokens_neox': 335, 'n_words': 87}