<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"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:aop="http://www.springframework.org/schema/aop"
	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
	http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
	http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
	">

    <aop:aspectj-autoproxy proxy-target-class="true"/>
        
    <bean name="pollContext" class="org.opennms.netmgt.snmpinterfacepoller.DefaultPollContext">
      <property name="eventManager" ref="eventIpcManager" />
      <property name="localHostName" ref="localHostName" />
      <property name="name" value="OpenNMS.SnmpPoller.DefaultPollContext" />
      <property name="snmpInterfaceDao" ref="snmpInterfaceDao" />
      <property name="dataSource" ref="dataSource" />
    </bean> 
    
    <bean name="pollableNetwork" class="org.opennms.netmgt.snmpinterfacepoller.pollable.PollableNetwork">
        <constructor-arg ref="pollContext" />
    </bean>
    
        
    <bean name="daemon" class="org.opennms.netmgt.snmpinterfacepoller.SnmpPoller">
      <property name="pollerConfig" ref="snmpinterfacepollerConfig" />
      <property name="network" ref="pollableNetwork" />
      <property name="dataSource" ref="dataSource" />
    </bean>
    
    <bean id="init-snmpinterfacepollerConfig-factory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
      <property name="staticMethod"><value>org.opennms.netmgt.config.SnmpInterfacePollerConfigFactory.init</value></property>
    </bean>

    <bean id="snmpinterfacepollerConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="init-snmpinterfacepollerConfig-factory">
      <property name="staticMethod"><value>org.opennms.netmgt.config.SnmpInterfacePollerConfigFactory.getInstance</value></property>
    </bean>
	
    <bean id="snmpPollerEventListenerAdapter" class="org.opennms.netmgt.model.events.AnnotationBasedEventListenerAdapter">
  	  <property name="annotatedListener" ref="daemon" />
  	  <property name="eventSubscriptionService" ref="eventSubscriptionService" />
    </bean>
   
</beans><commit_msg>Fixed bug # 2629 SnmpPoller does not update poll status to N when stopped<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"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:aop="http://www.springframework.org/schema/aop"
	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
	http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
	http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
	">

    <aop:aspectj-autoproxy proxy-target-class="true"/>
        
    <bean name="pollContext" class="org.opennms.netmgt.snmpinterfacepoller.DefaultPollContext">
      <property name="eventManager" ref="eventIpcManager" />
      <property name="localHostName" ref="localHostName" />
      <property name="name" value="OpenNMS.SnmpPoller.DefaultPollContext" />
      <property name="snmpInterfaceDao" ref="snmpInterfaceDao" />
      <property name="dataSource" ref="dataSource" />
    </bean> 
    
    <bean name="pollableNetwork" class="org.opennms.netmgt.snmpinterfacepoller.pollable.PollableNetwork">
        <constructor-arg ref="pollContext" />
    </bean>
    
        
    <bean name="daemon" class="org.opennms.netmgt.snmpinterfacepoller.SnmpPoller" destroy-method="stop">
      <property name="pollerConfig" ref="snmpinterfacepollerConfig" />
      <property name="network" ref="pollableNetwork" />
      <property name="dataSource" ref="dataSource" />
    </bean>
    
    <bean id="init-snmpinterfacepollerConfig-factory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
      <property name="staticMethod"><value>org.opennms.netmgt.config.SnmpInterfacePollerConfigFactory.init</value></property>
    </bean>

    <bean id="snmpinterfacepollerConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="init-snmpinterfacepollerConfig-factory">
      <property name="staticMethod"><value>org.opennms.netmgt.config.SnmpInterfacePollerConfigFactory.getInstance</value></property>
    </bean>
	
    <bean id="snmpPollerEventListenerAdapter" class="org.opennms.netmgt.model.events.AnnotationBasedEventListenerAdapter">
  	  <property name="annotatedListener" ref="daemon" />
  	  <property name="eventSubscriptionService" ref="eventSubscriptionService" />
    </bean>
   
</beans>
{'fraction_non_alphanumeric': 0.15212485896953742, 'fraction_numerical': 0.006769462203836028, 'mean_word_length': 4.832236842105263, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 2, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 26, 'xml': 12}, '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': '5017306', 'n_tokens_mistral': 1705, 'n_tokens_neox': 1698, 'n_words': 176}