<commit_before><div class="reports" id="FormSubmissions">

	<% if Submissions %>
	
		<ul class="formSubmissionActions">
			<!-- @todo work out why url_handlers dont like /export/2 -->
			<li><a href="{$Top.Link}/export/?id={$RecordID}"><% _t('EXPORTSUBMISSIONS', 'Export submissions to CSV') %></a></li>
			<li><a href="{$Top.Link}/deletesubmissions/?id={$RecordID}" class="deleteSubmission"><% _t('DELETEALLSUBMISSIONS', 'Delete All Submissions') %></a></li>
		</ul>
		
		<% control Submissions %>
			<div class="report">
				<h4 class="submitted"><% _t('SUBMITTED', 'Submitted at') %> $Created.Nice. <a href="{$Top.Link}/deletesubmission/?id={$ID}" class="deleteSubmission"><% _t('DELETESUBMISSION', 'Delete Submission') %></a></h4>
				<table>
					<% control FieldValues %>
						<tr>
							<td class="field">$Title</td>
							<td class="value">$Value.RAW</td>
						</tr>
					<% end_control %>	
				</table>
			</div>
		<% end_control %>
		<% if Submissions.MoreThanOnePage %>
			<div class="pagination"> 
				<% if Submissions.NotFirstPage %>
					<a class="prev" href="javascript:void(0)" onclick="jQuery('.middleColumn').parent().load($('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.PrevStart}');" title="View the previous page">Previous page</a> 
				<% end_if %>
				
				<span>Viewing rows $Submissions.Start - $Submissions.StartPlusOffset of $Submissions.TotalCount rows</span>
				
				<% if Submissions.NotLastPage %>
					<a class="next" href="javascript:void(0)" onclick="jQuery('#FormSubmissions').parent().load($('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.NextStart}');" title="View the next page">Next page</a> 
				<% end_if %>
			</div>
		<% end_if %>
	<% else %>
		<p><% _t('NOSUBMISSIONS', 'No Submissions') %></p>
	<% end_if %>
</div><commit_msg>MINOR make the ajax requests relative to base<commit_after><div class="reports" id="FormSubmissions">

	<% if Submissions %>
	
		<ul class="formSubmissionActions">
			<!-- @todo work out why url_handlers dont like /export/2 -->
			<li><a href="{$Top.Link}/export/?id={$RecordID}"><% _t('EXPORTSUBMISSIONS', 'Export submissions to CSV') %></a></li>
			<li><a href="{$Top.Link}/deletesubmissions/?id={$RecordID}" class="deleteSubmission"><% _t('DELETEALLSUBMISSIONS', 'Delete All Submissions') %></a></li>
		</ul>
		
		<% control Submissions %>
			<div class="report">
				<h4 class="submitted"><% _t('SUBMITTED', 'Submitted at') %> $Created.Nice. <a href="{$Top.Link}/deletesubmission/?id={$ID}" class="deleteSubmission"><% _t('DELETESUBMISSION', 'Delete Submission') %></a></h4>
				<table>
					<% control FieldValues %>
						<tr>
							<td class="field">$Title</td>
							<td class="value">$Value.RAW</td>
						</tr>
					<% end_control %>	
				</table>
			</div>
		<% end_control %>
		<% if Submissions.MoreThanOnePage %>
			<div class="pagination"> 
				<% if Submissions.NotFirstPage %>
					<a class="prev" href="javascript:void(0)" onclick="jQuery('.middleColumn').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.PrevStart}');" title="View the previous page">Previous page</a> 
				<% end_if %>
				
				<span>Viewing rows $Submissions.Start - $Submissions.StartPlusOffset of $Submissions.TotalCount rows</span>
				
				<% if Submissions.NotLastPage %>
					<a class="next" href="javascript:void(0)" onclick="jQuery('#FormSubmissions').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.NextStart}');" title="View the next page">Next page</a> 
				<% end_if %>
			</div>
		<% end_if %>
	<% else %>
		<p><% _t('NOSUBMISSIONS', 'No Submissions') %></p>
	<% end_if %>
</div>
{'fraction_non_alphanumeric': 0.21734417344173443, 'fraction_numerical': 0.003794037940379404, 'mean_word_length': 4.460059171597633, 'pattern_counts': {'":': 0, '<': 113, '<?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': '4723848', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1239, 'n_words': 220}