<commit_before><h1>New page</h1>

<% form_for(@page) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>

  <% fields_for @revision do |r| %>
    <p>
      <%= r.label :content %> <br />
      <%= r.text_area :content %>
    </p>
  <% end %>
  
  <%= f.hidden_field :user_id %>
  
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Markdown syntax', 'http://daringfireball.net/projects/markdown/syntax', :target => '_blank' %> |
<%= link_to 'Back', pages_path %><commit_msg>Actually include revision#user_id in pages/new<commit_after><h1>New page</h1>

<% form_for(@page) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>

  <% fields_for @revision do |r| %>
    <p>
      <%= r.label :content %> <br />
      <%= r.text_area :content %>
    </p>
    <%= r.hidden_field :user_id %>
  <% end %>
  
  <%= f.hidden_field :user_id %>
  
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Markdown syntax', 'http://daringfireball.net/projects/markdown/syntax', :target => '_blank' %> |
<%= link_to 'Back', pages_path %>
{'fraction_non_alphanumeric': 0.23797250859106528, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 2.794788273615635, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 52, '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': '5689941', 'n_tokens_mistral': 529, 'n_tokens_neox': 468, 'n_words': 88}