<commit_before><%= simple_form_for 'page',
    :url    => (@page.new_record? ? contentr_admin_pages_path(:root => @root_page) : contentr_admin_page_path(:root => @root_page)),
    :method => (@page.new_record? ? :post : :put),
    :html   => {:class => 'form-horizontal'} do |f| %>

    <%= f.input :hidden, :as => :boolean %>
    <%= f.input :published, :as => :boolean %>

    <%= f.input :name %>
    <%= f.input :slug, :required => false %>
    <%= f.input :linked_to, :required => true if @page.is_a?(Contentr::LinkedPage) %>

    <%= f.input :description, :required => false, :as => :text, :input_html => { :rows => 3 } %>

    <%= f.input :template %>
    <%= f.input :layout %>

    <%#= f.input :linked_to, :required => false %>

    <%= f.submit %>
    <%= link_to 'Cancel', contentr_admin_pages_path %>
<% end %><commit_msg>fixes for linked pages<commit_after><%= simple_form_for 'page',
    :url    => (@page.new_record? ? contentr_admin_pages_path(:root => @root_page) : contentr_admin_page_path(:root => @root_page)),
    :method => (@page.new_record? ? :post : :put),
    :html   => {:class => 'form-horizontal'} do |f| %>

    <%= f.input :hidden, :as => :boolean %>
    <%= f.input :published, :as => :boolean %>

    <%= f.input :name %>
    <%= f.input :slug, :required => false %>
    <%= f.input :description, :required => false, :as => :text, :input_html => { :rows => 3 } %>

    <%= f.input :linked_to, :required => true if @page.is_a?(Contentr::LinkedPage) %>
    <%= f.input :template if @page.is_a?(Contentr::ContentPage) %>
    <%= f.input :layout if @page.is_a?(Contentr::ContentPage) %>

    <%#= f.input :linked_to, :required => false %>

    <%= f.submit %>
    <%= link_to 'Cancel', contentr_admin_pages_path %>
<% end %>
{'fraction_non_alphanumeric': 0.2234891676168757, 'fraction_numerical': 0.0011402508551881414, 'mean_word_length': 3.606299212598425, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 59, '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': '6951059', 'n_tokens_mistral': 683, 'n_tokens_neox': 622, 'n_words': 127}