<commit_before><section class="overlay submitform" ng-if="loading || (!myform.submitted && !myform.startPage.showStart)"></section>

<!-- Start Page View -->
<div ng-show="!myform.submitted && myform.startPage.showStart" 
class="form-submitted" 
style="padding-top: 35vh;">
<div class="row">
<div class="col-xs-12 text-center" style="overflow-wrap: break-word;">
<h1 style="font-weight: 400; nont-size: 25px;">
{{myform.startPage.introTitle}}
</h1>
</div>
<div class="col-xs-10 col-xs-offset-1 text-center" style="overflow-wrap: break-word;">
<p style="color: grey; font-weight: 100; font-size: 16px;">
{{myform.startPage.introParagraph}}
</p>
</div>
</div>

<div class="row form-actions text-center" style="padding: 5px 25px 5px 25px;">
<button ng-click="exitStartPage()" class="btn" type="button"
ng-style="{'background-color':myform.design.colors.buttonColor, 'color':myform.design.colors.buttonTextColor}">
<span style="font-size: 1.6em;">
{{myform.startPage.introButtonText}}
</span>
</button>
</div>
<div class="row form-actions" style="padding-bottom:3em; padding-left: 1em; padding-right: 1em;">
<p ng-repeat="button in myform.startPage.buttons" class="text-center" style="display:inline;">
<button class="btn" style="background-color:rgb(156, 226, 235)" type="button" ng-style="{'background-color':button.bgColor, 'color':button.color}">
<a href="{{button.url}}" 
style="font-size: 1.6em; text-decoration: none;" 
ng-style="{'color':button.color}">
{{button.text}}
</a>
</button>
</p>
</div>
</div>

<!-- Form Fields View -->
<div class="form-fields" ng-show="!myform.submitted && !myform.startPage.showStart"
    ng-style="{ 'border-color': myform.design.colors.buttonTextColor }">

	<div class="row">
		<form name="forms.myForm"
		novalidate
		class="submission-form col-sm-12 col-md-offset-1 col-md-10">

		<div ng-repeat="field in myform.form_fields"
		ng-if="!field.deletePreserved"
		data-index="{{$index}}"
		data-id="{{field._id}}"
		ng-class="{activeField: selected._id == field._id }"
		class="row field-directive">
			<field-directive field="field" design="myform.design" index="$index" forms="forms">
			</field-directive>
		</div>

		</form>
</div>


<div class="row form-actions" id="submit_field"
	ng-class="{activeField: selected._id == 'submit_field' }"
	ng-style="{ 'background-color':myform.design.colors.buttonColor}"
	style="border-top: 1px solid #ddd; margin-right: -13%; margin-left: -13%; padding-bottom: 100vh;">

	<div class="col-xs-12 text-left"
		 style="background-color:#990000; color:white;"
		 ng-if="forms.myForm.$invalid">
		{{form_fields_count - (myform | formValidity)}} answer(s) need completing
	</div>

	<button ng-if="!forms.myForm.$invalid"
		class="Button btn col-sm-2 col-xs-8 focusOn"
		v-busy="loading" v-busy-label="Please wait" v-pressable
		ng-disabled="loading"
		ng-click="submitForm()"
		ng-style="{'background-color':myform.design.colors.buttonColor, 'color':myform.design.colors.buttonTextColor}"
		style="font-size: 1.6em; margin-left: 1em; margin-top: 1em;">

		Submit
	</button>

	<button ng-if="forms.myForm.$invalid"
			class="Button btn col-sm-2 col-xs-8"
			ng-click="goToInvalid()"
			style="font-size: 1.6em; margin-left: 1em; margin-top: 1em; background-color:#990000; color:white">
		Review
	</button><commit_msg>updated margins to fix submit button margin error<commit_after><section class="overlay submitform" ng-if="loading || (!myform.submitted && !myform.startPage.showStart)"></section>

<!-- Start Page View -->
<div ng-show="!myform.submitted && myform.startPage.showStart" 
class="form-submitted" 
style="padding-top: 35vh;">
<div class="row">
<div class="col-xs-12 text-center" style="overflow-wrap: break-word;">
<h1 style="font-weight: 400; nont-size: 25px;">
{{myform.startPage.introTitle}}
</h1>
</div>
<div class="col-xs-10 col-xs-offset-1 text-center" style="overflow-wrap: break-word;">
<p style="color: grey; font-weight: 100; font-size: 16px;">
{{myform.startPage.introParagraph}}
</p>
</div>
</div>

<div class="row form-actions text-center" style="padding: 5px 25px 5px 25px;">
<button ng-click="exitStartPage()" class="btn" type="button"
ng-style="{'background-color':myform.design.colors.buttonColor, 'color':myform.design.colors.buttonTextColor}">
<span style="font-size: 1.6em;">
{{myform.startPage.introButtonText}}
</span>
</button>
</div>
<div class="row form-actions" style="padding-bottom:3em; padding-left: 1em; padding-right: 1em;">
<p ng-repeat="button in myform.startPage.buttons" class="text-center" style="display:inline;">
<button class="btn" style="background-color:rgb(156, 226, 235)" type="button" ng-style="{'background-color':button.bgColor, 'color':button.color}">
<a href="{{button.url}}" 
style="font-size: 1.6em; text-decoration: none;" 
ng-style="{'color':button.color}">
{{button.text}}
</a>
</button>
</p>
</div>
</div>

<!-- Form Fields View -->
<div class="form-fields" ng-show="!myform.submitted && !myform.startPage.showStart"
    ng-style="{ 'border-color': myform.design.colors.buttonTextColor }">

	<div class="row">
		<form name="forms.myForm"
		novalidate
		class="submission-form col-sm-12 col-md-offset-1 col-md-10">

		<div ng-repeat="field in myform.form_fields"
		ng-if="!field.deletePreserved"
		data-index="{{$index}}"
		data-id="{{field._id}}"
		ng-class="{activeField: selected._id == field._id }"
		class="row field-directive">
			<field-directive field="field" design="myform.design" index="$index" forms="forms">
			</field-directive>
		</div>

		</form>
</div>


<div class="row form-actions" id="submit_field"
	ng-class="{activeField: selected._id == 'submit_field' }"
	ng-style="{ 'background-color':myform.design.colors.buttonColor}"
	style="border-top: 1px solid #ddd; margin-right: -13%; margin-left: -13%; padding-bottom: 70vh; margin-bottom: 70vh; margin-top: 30vh;">

	<div class="col-xs-12 text-left"
		 style="background-color:#990000; color:white;"
		 ng-if="forms.myForm.$invalid">
		{{form_fields_count - (myform | formValidity)}} answer(s) need completing
	</div>

	<button ng-if="!forms.myForm.$invalid"
		class="Button btn col-sm-2 col-xs-8 focusOn"
		v-busy="loading" v-busy-label="Please wait" v-pressable
		ng-disabled="loading"
		ng-click="submitForm()"
		ng-style="{'background-color':myform.design.colors.buttonColor, 'color':myform.design.colors.buttonTextColor}"
		style="font-size: 1.6em; margin-left: 1em; margin-top: 1em;">

		Submit
	</button>

	<button ng-if="forms.myForm.$invalid"
			class="Button btn col-sm-2 col-xs-8"
			ng-click="goToInvalid()"
			style="font-size: 1.6em; margin-left: 1em; margin-top: 1em; background-color:#990000; color:white">
		Review
	</button>
{'fraction_non_alphanumeric': 0.20373156786036714, 'fraction_numerical': 0.02452603069515498, 'mean_word_length': 5.440891472868217, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '3318480', 'n_tokens_mistral': 2615, 'n_tokens_neox': 2358, 'n_words': 442}