<commit_before><div class="form_title clearfix">
  <h1>Editing template</h1>
 <div class="template">
  <%= f.label :role, "Template type" %><br />
  <%= f.select :role, { "Front page" => "front_pages/show", "Article" => "articles/show", "Section" => 'sections/show', "Layout" => "layout", "Partial" => "partial"} %>
 </div>
  <% if f.object.is_a?(PageTemplate) || f.object.is_a?(FrontPageTemplate) -%>
 <div class="layout">
  		<%= f.label :layout_id, "Layout" %><br />
  		<%= f.collection_select :layout_id, @design.layouts, :id, :name, :include_blank => "Design default" %>
 </div>
  <% end -%>
</div>
<div class="details">
	<div class="name_desc">
	  <%= f.label :name %><br />
	  <%= f.text_field :name %><br />
	  <%= f.label :description %><br />
	  <%= f.text_area :description, :rows => 2 %>
	</div>
	<div class="template_data_info">
		<h3>Template data</h3>
	</div>
</div>
<% if f.object.role=='front_pages/show' -%>
	<div class="entity_definitions clearfix">
		 <% if @tplate.schema.is_a? Array %>
		  <% @tplate.schema.each_index do |entity| -%>
		  <fieldset class="entity">
			  <%= link_to_function "x", "if(confirm('Remove this variable from the schema?')) $(this).up().remove();", :style => "float:right;color:red;text-decoration:none;margin-bottom: 5px;" %>
			  <%= label_tag 'front_page_template[schema][][name]', 'Name:' %> <%= text_field_tag "front_page_template[schema][][name]", @tplate.schema[entity]["name"]  %><br />
			  <%= label_tag 'front_page_template[schema][][model]', 'Data type:' %> <%= select_tag "front_page_template[schema][][model]", options_for_select(["Article"], @tplate.schema[entity]["model"])%><br />
			  <%= label_tag 'front_page_template[schema][][description]', 'Description:' %> <%= text_area_tag "front_page_template[schema][][description]", @tplate.schema[entity]["description"] %><br /><commit_msg>Added options for blog indexes / show<commit_after><div class="form_title clearfix">
  <h1>Editing template</h1>
 <div class="template">
  <%= f.label :role, "Template type" %><br />
  <%= f.select :role, { "Front page" => "front_pages/show", 
	"Article" => "articles/show", 
	"Blog index" => "blogs/index", 	
	"Blog" => "blogs/show", 		
	"Section" => 'sections/show', 
	"Layout" => "layout", 
	"Partial" => "partial"} 
	%>
 </div>
  <% if f.object.is_a?(PageTemplate) || f.object.is_a?(FrontPageTemplate) -%>
 <div class="layout">
  		<%= f.label :layout_id, "Layout" %><br />
  		<%= f.collection_select :layout_id, @design.layouts, :id, :name, :include_blank => "Design default" %>
 </div>
  <% end -%>
</div>
<div class="details">
	<div class="name_desc">
	  <%= f.label :name %><br />
	  <%= f.text_field :name %><br />
	  <%= f.label :description %><br />
	  <%= f.text_area :description, :rows => 2 %>
	</div>
	<div class="template_data_info">
		<h3>Template data</h3>
	</div>
</div>
<% if f.object.role=='front_pages/show' -%>
	<div class="entity_definitions clearfix">
		 <% if @tplate.schema.is_a? Array %>
		  <% @tplate.schema.each_index do |entity| -%>
		  <fieldset class="entity">
			  <%= link_to_function "x", "if(confirm('Remove this variable from the schema?')) $(this).up().remove();", :style => "float:right;color:red;text-decoration:none;margin-bottom: 5px;" %>
			  <%= label_tag 'front_page_template[schema][][name]', 'Name:' %> <%= text_field_tag "front_page_template[schema][][name]", @tplate.schema[entity]["name"]  %><br />
			  <%= label_tag 'front_page_template[schema][][model]', 'Data type:' %> <%= select_tag "front_page_template[schema][][model]", options_for_select(["Article"], @tplate.schema[entity]["model"])%><br />
			  <%= label_tag 'front_page_template[schema][][description]', 'Description:' %> <%= text_area_tag "front_page_template[schema][][description]", @tplate.schema[entity]["description"] %><br />
{'fraction_non_alphanumeric': 0.23236842105263159, 'fraction_numerical': 0.003157894736842105, 'mean_word_length': 5.21078431372549, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 113, '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': '4991699', 'n_tokens_mistral': 1495, 'n_tokens_neox': 1366, 'n_words': 244}