<commit_before><?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC
         "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
         "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">

<form-validation>

	<global>
		<!-- Custom Validator -->
		<validator name="twofields" 
                   classname="com.philihp.weblabora.util.FieldMatchingValidator" 
                   method="validateTwoFields" 
                   methodParams="java.lang.Object,
                       org.apache.commons.validator.ValidatorAction,
                       org.apache.commons.validator.Field,
                       org.apache.struts.action.ActionMessages,
                       javax.servlet.http.HttpServletRequest" 
                   msg="errors.twofields" />
	</global>

	<formset>
	
		<form name="loginForm">
			<field property="username" depends="required,minlength">
				<arg key="prompt.username" />
				<arg name="minlength" key="${var:minlength}" resource="false"  position="1"/>
				<var><commit_msg>got rid of struts warning from validator looking for a form not in the validation.xml<commit_after><?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC
         "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
         "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">

<form-validation>

	<global>
		<!-- Custom Validator -->
		<validator name="twofields" 
                   classname="com.philihp.weblabora.util.FieldMatchingValidator" 
                   method="validateTwoFields" 
                   methodParams="java.lang.Object,
                       org.apache.commons.validator.ValidatorAction,
                       org.apache.commons.validator.Field,
                       org.apache.struts.action.ActionMessages,
                       javax.servlet.http.HttpServletRequest" 
                   msg="errors.twofields" />
	</global>

	<formset>
	
		<form name="gameForm" />
	
		<form name="loginForm">
			<field property="username" depends="required,minlength">
				<arg key="prompt.username" />
				<arg name="minlength" key="${var:minlength}" resource="false"  position="1"/>
				<var>
{'fraction_non_alphanumeric': 0.13194135939582408, 'fraction_numerical': 0.012438916037316748, 'mean_word_length': 2.3813813813813813, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 2, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '4109677', 'n_tokens_mistral': 693, 'n_tokens_neox': 620, 'n_words': 103}