<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"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">

<!-- 
  <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreResourceNotFound" value="true" />
    <property name="properties" >
      <props>
        <prop key="opennms.etc" >${opennms.home}/etc</prop>
      </props>
    </property>
    <property name="locations">
      <list>
        <value>file:${opennms.home}/etc/opennms.properties</value>
        <value>classpath:opennms-test.properties</value>
      </list>
    </property>
  </bean>
-->      
   <bean id="propertyPlaceholderConfigure" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
     <property name="properties">
       <props>
         <prop key="test.overridden.properties">NOT_FOUND</prop>
       </props>
     </property>
     <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
   </bean>
   <bean id="overridePropertiesForTesting" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
     <property name="ignoreResourceNotFound" value="true" />
     <property name="location" value="${test.overridden.properties}" />
   </bean>
  
	<bean id="init-datasource-factory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
		<property name="staticMethod"><value>org.opennms.netmgt.config.DataSourceFactory.init</value></property>
	</bean>

	<bean id="dataSource" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="init-datasource-factory">
		<property name="staticMethod"><value>org.opennms.netmgt.config.DataSourceFactory.getInstance</value></property>
	</bean>
	
	<bean id="timeKeeper" class="org.opennms.core.utils.DefaultTimeKeeper" />
	
	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>
		<property name="annotatedClasses"><commit_msg>ensure the order of BeanFactoryPostProcessors<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"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">

<!-- 
  <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreResourceNotFound" value="true" />
    <property name="properties" >
      <props>
        <prop key="opennms.etc" >${opennms.home}/etc</prop>
      </props>
    </property>
    <property name="locations">
      <list>
        <value>file:${opennms.home}/etc/opennms.properties</value>
        <value>classpath:opennms-test.properties</value>
      </list>
    </property>
  </bean>
-->      
   <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
     <property name="properties">
       <props>
         <prop key="test.overridden.properties">NOT_FOUND</prop>
       </props>
     </property>
     <property name="order" value="1" />
     <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
   </bean>
   <bean id="overridePropertiesForTesting" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
     <property name="ignoreResourceNotFound" value="true" />
     <property name="location" value="${test.overridden.properties}" />
     <property name="order" value="2" />
   </bean>
  
	<bean id="init-datasource-factory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
		<property name="staticMethod"><value>org.opennms.netmgt.config.DataSourceFactory.init</value></property>
	</bean>

	<bean id="dataSource" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="init-datasource-factory">
		<property name="staticMethod"><value>org.opennms.netmgt.config.DataSourceFactory.getInstance</value></property>
	</bean>
	
	<bean id="timeKeeper" class="org.opennms.core.utils.DefaultTimeKeeper" />
	
	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>
		<property name="annotatedClasses">
{'fraction_non_alphanumeric': 0.15822108189010048, 'fraction_numerical': 0.004276245456489203, 'mean_word_length': 4.869510664993727, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 2, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 6}, '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': '1221315', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1377, 'n_words': 169}