<commit_before><h2>Edit <%=@questionnaire.title%></h2>
Pages: Click-and-drag on "drag me" to change the order, or click on a page title to change it.
<%= image_tag "spinner.gif", :id => 'spinner', :style => 'display:none' %>
<ul id="questionnaire">
	<% @questionnaire.pages.each do |@page| -%>
		<%= render :partial => 'pages/page'%>
	<% end -%>
</ul>
<%= sortable_element 'questionnaire',
	:url => reorder_questionnaire_url(@questionnaire),
	:loading => "Element.show('spinner')",
	:loaded => "Element.hide('spinner')",
	:complete => visual_effect(:highlight, 'questionnaire'),
	:handle => 'drag_me'
%>
<%= link_to_remote("Add another page", :url => pages_url(@questionnaire)) %>&nbsp;&nbsp;
<%= link_to "Back to managing forms", :controller => :forms %>&nbsp;&nbsp;
<A HREF="javascript:$('import').show();">Import page</A>
<DIV id="import" style="display:none">
  <form method="post" enctype="multipart/form-data" 
    action="<%=import_pages_url(@questionnaire)%>">
  <p>
    <b>File:</b> 
    <input type="file" size="50" name="xml" id="xml"/>    
    <%= submit_tag "Import" %>
  </p>
  
  </form>
</DIV><commit_msg>fixed bug with import pages span not showing up<commit_after><h2>Edit <%=@questionnaire.title%></h2>
Pages: Click-and-drag on "drag me" to change the order, or click on a page title to change it.
<%= image_tag "spinner.gif", :id => 'spinner', :style => 'display:none' %>
<ul id="questionnaire">
	<% @questionnaire.pages.each do |@page| -%>
		<%= render :partial => 'pages/page'%>
	<% end -%>
</ul>
<%= sortable_element 'questionnaire',
	:url => reorder_questionnaire_url(@questionnaire),
	:loading => "Element.show('spinner')",
	:loaded => "Element.hide('spinner')",
	:complete => visual_effect(:highlight, 'questionnaire'),
	:handle => 'drag_me'
%>
<%= link_to_remote("Add another page", :url => pages_url(@questionnaire)) %>&nbsp;&nbsp;
<%= link_to "Back to managing forms", :controller => :forms %>&nbsp;&nbsp;
<SPAN onClick="javascript:$('import').show();" style="button">Import questionnaire.</SPAN>
<DIV id="import" style="display:none">
  <form method="post" enctype="multipart/form-data" 
    action="<%=import_pages_url(@questionnaire)%>">
  <p>
    <b>File:</b> 
    <input type="file" size="50" name="xml" id="xml"/>    
    <%= submit_tag "Import" %>
  </p>
  
  </form>
</DIV>
{'fraction_non_alphanumeric': 0.22077922077922077, 'fraction_numerical': 0.003463203463203463, 'mean_word_length': 5.509859154929577, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1865691', 'n_tokens_mistral': 850, 'n_tokens_neox': 803, 'n_words': 178}