<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:lang="http://www.springframework.org/schema/lang"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
       http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
       http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">


    <bean id="dateFormatRegexMapBean" class="org.motechproject.mobile.imp.util.DateFormatRegexMap" >
        <property name="dateFormatRegexMap">
            <map>
                <entry key="(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19|20)?\d\d" value="dd/MM/yy"/>
                <entry key="\d+" value="ddMMyy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[012])-(19|20)?\d\d" value="dd-MM-yy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01]).(0[1-9]|1[012]).(19|20)?\d\d" value="dd.MM.yy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01]) (0[1-9]|1[012]) (19|20)?\d\d" value="dd MM yy"/>
                <entry key="(0[0-9]|1[0-2]|2[0-4]):([0-5][0-9]):([0-5][0-9]) [A|P]M$" value="hh:mm:ss a"/>
                <entry key="${imp.validator.defaultDateExpression}" value="${imp.validator.defaultDateFormat}"/>
            </map>
        </property>
    </bean>

    <bean id="imFormValidator" scope="prototype" class="org.motechproject.mobile.imp.util.IncomingMessageFormValidatorImpl">
        <property name="coreManager" ref="coreManager" />
        <property name="subFields">
            <map>
                <entry key="GENERALOPD-JF">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
                <entry key="CHILDOPD-JF">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
                <entry key="MOTHEROPD-JF">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
            </map>
        </property>
        <property name="paramValidators">
            <map key-type="java.lang.String">
                <entry key="ALPHA">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.alphaExpression}" />
                                    </bean>
                                </entry>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="ALPHANUM">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.alphaNumExpression}" />
                                    </bean>
                                </entry>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="DATE">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                                <entry key="EXPRESSION" value-ref="dateExpressionBean" />
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="EXPIRYDATE">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="parent" value="DATE" />
                        <property name="validators">
                            <map></map>
                        </property>
                    </bean>
                </entry>
                <entry key="NUMERIC">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.numericExpression}" />
                                    </bean>
                                </entry>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                                <entry key="VALUE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamValueValidator">
                                        <property name="values" value="" />
                                        <property name="caseSensitive" value="false" />
                                        <property name="conversions">
                                            <map>
                                                <entry key="NA" value="" />
                                            </map>
                                        </property>
                                    </bean>
                                </entry>
                            </map>
                        </property>
                    </bean><commit_msg>Removed length validation on numeric fields<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:lang="http://www.springframework.org/schema/lang"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
       http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
       http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">


    <bean id="dateFormatRegexMapBean" class="org.motechproject.mobile.imp.util.DateFormatRegexMap" >
        <property name="dateFormatRegexMap">
            <map>
                <entry key="(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19|20)?\d\d" value="dd/MM/yy"/>
                <entry key="\d+" value="ddMMyy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[012])-(19|20)?\d\d" value="dd-MM-yy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01]).(0[1-9]|1[012]).(19|20)?\d\d" value="dd.MM.yy"/>
                <entry key="(0[1-9]|[12][0-9]|3[01]) (0[1-9]|1[012]) (19|20)?\d\d" value="dd MM yy"/>
                <entry key="(0[0-9]|1[0-2]|2[0-4]):([0-5][0-9]):([0-5][0-9]) [A|P]M$" value="hh:mm:ss a"/>
                <entry key="${imp.validator.defaultDateExpression}" value="${imp.validator.defaultDateFormat}"/>
            </map>
        </property>
    </bean>

    <bean id="imFormValidator" scope="prototype" class="org.motechproject.mobile.imp.util.IncomingMessageFormValidatorImpl">
        <property name="coreManager" ref="coreManager" />
        <property name="subFields">
            <map>
                <entry key="GENERALOPD-JF">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
                <entry key="CH<KEY>">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
                <entry key="MOTHEROPD-JF">
                    <list>
                        <ref bean="diagSub" />
                        <ref bean="diag2Sub" />
                    </list>
                </entry>
            </map>
        </property>
        <property name="paramValidators">
            <map key-type="java.lang.String">
                <entry key="ALPHA">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.alphaExpression}" />
                                    </bean>
                                </entry>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="ALPHANUM">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.alphaNumExpression}" />
                                    </bean>
                                </entry>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="DATE">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="SIZE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamSizeValidator" />
                                </entry>
                                <entry key="EXPRESSION" value-ref="dateExpressionBean" />
                            </map>
                        </property>
                    </bean>
                </entry>
                <entry key="EXPIRYDATE">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="parent" value="DATE" />
                        <property name="validators">
                            <map></map>
                        </property>
                    </bean>
                </entry>
                <entry key="NUMERIC">
                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ValidatorGroup">
                        <property name="validators">
                            <map>
                                <entry key="EXPRESSION">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamExpressionValidator">
                                        <property name="expression" value="${imp.validator.numericExpression}" />
                                    </bean>
                                </entry>
                                <entry key="VALUE">
                                    <bean scope="prototype" class="org.motechproject.mobile.imp.util.ParamValueValidator">
                                        <property name="values" value="" />
                                        <property name="caseSensitive" value="false" />
                                        <property name="conversions">
                                            <map>
                                                <entry key="NA" value="" />
                                            </map>
                                        </property>
                                    </bean>
                                </entry>
                            </map>
                        </property>
                    </bean>
{'fraction_non_alphanumeric': 0.1390406395736176, 'fraction_numerical': 0.01625582944703531, 'mean_word_length': 1.1695331695331694, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 2, '>': 241, 'https://': 0, 'lorem ipsum': 0, 'www.': 34, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 49, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2276536', 'n_tokens_mistral': 3897, 'n_tokens_neox': 3619, 'n_words': 476}