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

  <bean id="localHostAddress" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.daemon.DaemonUtils.getLocalHostAddress</value></property>
  </bean>
  
  <bean id="eventdConfigManager-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventdConfigFactory.init</value></property>
  </bean>

  <bean id="eventdConfigManager" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="eventdConfigManager-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventdConfigFactory.getInstance</value></property>
  </bean>
  
  <bean id="eventConfDao" class="org.opennms.netmgt.config.DefaultEventConfDao">
    <property name="configResource"><value>${opennms.home}/etc/eventconf.xml</value></property>
    <property name="reloadCheckInterval" value="-1" />
  </bean>

  <bean id="eventconfFactory-setInstance" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventconfFactory.setInstance</value></property>
    <property name="arguments">
      <list>
        <ref local="eventConfDao"/>
      </list>
    </property>
  </bean>
  
  <bean id="eventExpander" class="org.opennms.netmgt.eventd.processor.EventExpander">
    <property name="eventConfDao" ref="eventConfDao"/>
  </bean>

  <bean id="eventIpcManager" class="org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl">
    <property name="handlerPoolSize" ref="eventIpcManagerHandlerPoolSize"/>
    <property name="eventHandler" ref="eventdEventHandler"/>
  </bean>

  <bean id="eventIpcManagerHandlerPoolSize" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="targetObject" ref="eventdConfigManager"/>
    <property name="targetMethod" value="getReceivers"/>
  </bean>

  <bean id="eventIpcManagerFactory-setInstance" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.eventd.EventIpcManagerFactory.setIpcManager</value></property>
    <property name="arguments">
      <list><commit_msg>the file access to be resource based so the leading / path in the appcontext was getting chopped apparently because spring thought it was a classpath resource.<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:tx="http://www.springframework.org/schema/tx" 
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

  <bean id="localHostAddress" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.daemon.DaemonUtils.getLocalHostAddress</value></property>
  </bean>
  
  <bean id="eventdConfigManager-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventdConfigFactory.init</value></property>
  </bean>

  <bean id="eventdConfigManager" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="eventdConfigManager-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventdConfigFactory.getInstance</value></property>
  </bean>
  
  <bean id="eventConfDao" class="org.opennms.netmgt.config.DefaultEventConfDao">
    <property name="configResource"><value>file:${opennms.home}/etc/eventconf.xml</value></property>
    <property name="reloadCheckInterval" value="-1" />
  </bean>

  <bean id="eventconfFactory-setInstance" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.EventconfFactory.setInstance</value></property>
    <property name="arguments">
      <list>
        <ref local="eventConfDao"/>
      </list>
    </property>
  </bean>
  
  <bean id="eventExpander" class="org.opennms.netmgt.eventd.processor.EventExpander">
    <property name="eventConfDao" ref="eventConfDao"/>
  </bean>

  <bean id="eventIpcManager" class="org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl">
    <property name="handlerPoolSize" ref="eventIpcManagerHandlerPoolSize"/>
    <property name="eventHandler" ref="eventdEventHandler"/>
  </bean>

  <bean id="eventIpcManagerHandlerPoolSize" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="targetObject" ref="eventdConfigManager"/>
    <property name="targetMethod" value="getReceivers"/>
  </bean>

  <bean id="eventIpcManagerFactory-setInstance" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.eventd.EventIpcManagerFactory.setIpcManager</value></property>
    <property name="arguments">
      <list>
{'fraction_non_alphanumeric': 0.1513238646326495, 'fraction_numerical': 0.004559004032965106, 'mean_word_length': 5.655775962660443, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 2, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 10}, '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': '3406639', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1725, 'n_words': 198}