<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!--
    This applicationContext contains configuration for Spring itself
-->

<beans default-lazy-init="true">
	<bean  id="caaersDatasourceFactoryBean" class="gov.nih.nci.cabig.caaers.tools.CaaersDataSourcePropertiesFactoryBean">
                <property name="databaseConfigurationName"><value>@databaseConfigurationName@</value></property>
    </bean>
    <bean id="mainPropertyConfigurer" class="gov.nih.nci.cabig.ctms.tools.spring.PropertyPlaceholderConfigurer" lazy-init="false">
        <property name="properties">
            <bean class="gov.nih.nci.cabig.caaers.tools.CaaersDataSourcePropertiesFactoryBean">
                <property name="databaseConfigurationName"><value>@databaseConfigurationName@</value></property>
            </bean>
        </property>
        <!-- have to use a separate prefix/suffix to avoid maven filtering in everything
             at build time -->
        <property name="placeholderPrefix"><value>s[</value></property>
        <property name="placeholderSuffix"><value>]</value></property>
        <property name="useNullForUnresolvablePlaceholders"><value>true</value></property>
    </bean>
    
    <bean id="authenticationMode" class="java.lang.String">
        <constructor-arg value="s[authenticationMode]"/>
    </bean>

    <bean class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor"/>

    <bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="customEditors">
            <map>
                <entry key="java.util.Date">
                    <bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
                        <constructor-arg index="0">
                            <bean class="java.text.SimpleDateFormat">
                                <constructor-arg index="0"><value>yyyy-MM-dd HH:mm:ss.S</value></constructor-arg>
                            </bean>
                        </constructor-arg>
                        <constructor-arg index="1"><value>false</value></constructor-arg>
                    </bean>
                </entry>
            </map>
        </property>
    </bean>

</beans><commit_msg>moved messageSource from pages-servlet.xml<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!--
    This applicationContext contains configuration for Spring itself
-->

<beans default-lazy-init="true">
	<bean  id="caaersDatasourceFactoryBean" class="gov.nih.nci.cabig.caaers.tools.CaaersDataSourcePropertiesFactoryBean">
                <property name="databaseConfigurationName"><value>@databaseConfigurationName@</value></property>
    </bean>
    <bean id="mainPropertyConfigurer" class="gov.nih.nci.cabig.ctms.tools.spring.PropertyPlaceholderConfigurer" lazy-init="false">
        <property name="properties">
            <bean class="gov.nih.nci.cabig.caaers.tools.CaaersDataSourcePropertiesFactoryBean">
                <property name="databaseConfigurationName"><value>@databaseConfigurationName@</value></property>
            </bean>
        </property>
        <!-- have to use a separate prefix/suffix to avoid maven filtering in everything
             at build time -->
        <property name="placeholderPrefix"><value>s[</value></property>
        <property name="placeholderSuffix"><value>]</value></property>
        <property name="useNullForUnresolvablePlaceholders"><value>true</value></property>
    </bean>
    
    <bean id="authenticationMode" class="java.lang.String">
        <constructor-arg value="s[authenticationMode]"/>
    </bean>

    <bean class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor"/>

    <bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="customEditors">
            <map>
                <entry key="java.util.Date">
                    <bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
                        <constructor-arg index="0">
                            <bean class="java.text.SimpleDateFormat">
                                <constructor-arg index="0"><value>yyyy-MM-dd HH:mm:ss.S</value></constructor-arg>
                            </bean>
                        </constructor-arg>
                        <constructor-arg index="1"><value>false</value></constructor-arg>
                    </bean>
                </entry>
            </map>
        </property>
    </bean>
    
  <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
    <property name="basenames">
    	<list>
    		<value>help</value>
    		<value>label</value>
    		<value>service-messages</value>
    	</list>
    </property>
  </bean>

</beans>
{'fraction_non_alphanumeric': 0.14127423822714683, 'fraction_numerical': 0.002374356944994064, 'mean_word_length': 2.68978102189781, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 2, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3528235', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1327, 'n_words': 200}