<commit_before><div class="ajax-container">
ajax comment sign in
{if logged_out}

	{if segment_4 == 'blog'}
		{exp:ala_auth:login id="login_form" name="login_form" class="sign-in-form" return="ajax/comment-form/{segment_3}/{segment_4}/{segment_5}/{segment_6}" post_process="AlaAuth.alertMsg"}
	{if:else}
		{exp:ala_auth:login id="login_form" name="login_form" class="sign-in-form" return="ajax/comment-form/{segment_3}/{segment_4}/{segment_5}" post_process="AlaAuth.alertMsg"}
	{/if}
		<fieldset>

	    	<legend class="center">Sign in to add your voice to the discussion.</legend>

			<p>
				<label for="login-name-here">Email (<a id="register" class="history-nav" data-tabto="forgot-password" href="/tools/register" target="_blank">Need an account?</a>)</label>
				<input
					type="text"
					id="login-name-here"
					name="username"
					data-validate="onblur"
					data-type="any"
					data-isvalid=""
					data-error="What’s your email address?"
					data-tabmaster="true"
					data-tabto="login_password"
					required>
			</p>
			<p class="password-field">
				<label for="login_password">Password (<a id="forgot-password" class="history-nav" data-tabto="comment-submit" href="/tools/forgot-password" target="_blank">Forgot it?</a>)</label>
				<input
					type="password"
					id="login_password"
					name="password"
					required="required"
					data-validate="onblur"
					data-type="any"
					data-isvalid=""
					data-error="What’s your password?"
					data-tabmaster="true"
					data-tabto="register"
					required>
			</p>
			<p class="screen-reader">
				<label for="honeepot">Don't put anything here</label>
				<input 
					type="text" 
					id="honeepot" 
					name="honeepot"
					data-tabmaster="false">
			</p>
			<p id="comment-submit-holder">
				<input 
					type="submit" 
					id="comment-submit"
					data-tabmaster="true"
					class="button primary float-left" 
					value="Submit">
			</p>
			
		</fieldset>

	{/exp:ala_auth:login}

{/if}

	<script type="text/javascript">

	$.when(
	    $.getScript("{site_url}/components/assets/js/form-stuff.js"),
	    $.getScript("{site_url}/components/assets/js/ajax-functions.js"),
	    $.Deferred(function(deferred){
		        $(deferred.resolve);
	    })
	);
	
	var states = {
		//globals
		commentsignin: 'comment-sign-in',
		register: 'register',
		password: '<PASSWORD>',
		commentform: 'comment-form',
		//segments
		{if segment_4 == 'blog'}
		segments: '/{segment_4}/{segment_5}/{segment_6}',
		{/if}
		{if segment_4 != 'blog'}
		segments: '/{segment_4}/{segment_5}',
		{/if}
		site_url: '{site_url}',
		tmpl_path: /ajax/,
		entry_id: '{segment_3}'
	}

	</script>

{if logged_in}<!-- account for hitting the back button after the comment-form -->

	<script type="text/javascript">

	AlaAuth.loadTemplate (
		states.commentform
	);
	
	</script>

{/if}

</div><commit_msg>add check to comment sign in ajax template<commit_after><div class="ajax-container">
ajax comment sign in
{!--if logged_out--}

	{if segment_4 == 'blog'}
		{exp:ala_auth:login id="login_form" name="login_form" class="sign-in-form" return="ajax/comment-form/{segment_3}/{segment_4}/{segment_5}/{segment_6}" post_process="AlaAuth.alertMsg"}
	{if:else}
		{exp:ala_auth:login id="login_form" name="login_form" class="sign-in-form" return="ajax/comment-form/{segment_3}/{segment_4}/{segment_5}" post_process="AlaAuth.alertMsg"}
	{/if}
		<fieldset>

	    	<legend class="center">Sign in to add your voice to the discussion.</legend>

			<p>
				<label for="login-name-here">Email (<a id="register" class="history-nav" data-tabto="forgot-password" href="/tools/register" target="_blank">Need an account?</a>)</label>
				<input
					type="text"
					id="login-name-here"
					name="username"
					data-validate="onblur"
					data-type="any"
					data-isvalid=""
					data-error="What’s your email address?"
					data-tabmaster="true"
					data-tabto="login_password"
					required>
			</p>
			<p class="password-field">
				<label for="login_password">Password (<a id="forgot-password" class="history-nav" data-tabto="comment-submit" href="/tools/forgot-password" target="_blank">Forgot it?</a>)</label>
				<input
					type="password"
					id="login_password"
					name="password"
					required="<PASSWORD>"
					data-validate="onblur"
					data-type="any"
					data-isvalid=""
					data-error="What’s your password?"
					data-tabmaster="true"
					data-tabto="register"
					required>
			</p>
			<p class="screen-reader">
				<label for="honeepot">Don't put anything here</label>
				<input 
					type="text" 
					id="honeepot" 
					name="honeepot"
					data-tabmaster="false">
			</p>
			<p id="comment-submit-holder">
				<input 
					type="submit" 
					id="comment-submit"
					data-tabmaster="true"
					class="button primary float-left" 
					value="Submit">
			</p>
			
		</fieldset>

	{/exp:ala_auth:login}

{!--/if--}

	<script type="text/javascript">

	$.when(
	    $.getScript("{site_url}/components/assets/js/form-stuff.js"),
	    $.getScript("{site_url}/components/assets/js/ajax-functions.js"),
	    $.Deferred(function(deferred){
		        $(deferred.resolve);
	    })
	);
	
	var states = {
		//globals
		commentsignin: 'comment-sign-in',
		register: 'register',
		password: '<PASSWORD>',
		commentform: 'comment-form',
		//segments
		{if segment_4 == 'blog'}
		segments: '/{segment_4}/{segment_5}/{segment_6}',
		{/if}
		{if segment_4 != 'blog'}
		segments: '/{segment_4}/{segment_5}',
		{/if}
		site_url: '{site_url}',
		tmpl_path: /ajax/,
		entry_id: '{segment_3}'
	}

	</script>

{!--if logged_in}<!-- account for hitting the back button after the comment-form -->

	<script type="text/javascript">

	AlaAuth.loadTemplate (
		states.commentform
	);
	
	</script>

{/if--}

</div>
{'fraction_non_alphanumeric': 0.18297353760445684, 'fraction_numerical': 0.005571030640668524, 'mean_word_length': 3.596, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '2009968', 'n_tokens_mistral': 2434, 'n_tokens_neox': 2016, 'n_words': 348}