<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--

    Most of the code in the Qalingo project is copyrighted Hoteia and licensed
    under the Apache License Version 2.0 (release version 0.8.0)
            http://www.apache.org/licenses/LICENSE-2.0

                      Copyright (c) Hoteia, 2012-2014
    http://www.hoteia.com - http://twitter.com/hoteia - <EMAIL>


-->
<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:aop="http://www.springframework.org/schema/aop"
    xmlns:jms="http://www.springframework.org/schema/jms"   
    xsi:schemaLocation="http://www.springframework.org/schema/batch 
                        http://www.springframework.org/schema/batch/spring-batch.xsd
                        http://www.springframework.org/schema/beans 
                        http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/context 
                        http://www.springframework.org/schema/context/spring-context.xsd
                        http://www.springframework.org/schema/aop 
                        http://www.springframework.org/schema/aop/spring-aop.xsd
                        http://www.springframework.org/schema/jms 
                        http://www.springframework.org/schema/jms/spring-jms-2.5.xsd">

    <!-- Configures core context -->
    <import resource="classpath*:qalingo-batch-common-context.xml" />
	<import resource="classpath:conf/spring/qalingo-core-solr.xml" />
	
    <context:component-scan base-package="org.hoteia.qalingo.core.security.helper" />
    
    <bean id="encoder" class="org.springframework.security.crypto.password.StandardPasswordEncoder"></bean>

	<import resource="classpath:messages-config.xml" />
	
	<bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
		<property name="corePoolSize" value="5"/>
		<property name="maxPoolSize" value="10"/>
		<property name="queueCapacity" value="25"/>
	</bean>
	
	<!-- JMS : CONFIG -->
	<import resource="classpath:conf/spring/qalingo-core-jms.xml" />
	<import resource="classpath:conf/spring/qalingo-core-jms-template.xml" />
	<!-- QUARTZ/JMS : SYNC SERVER STATUS -->
	<import resource="classpath:conf/spring/qalingo-core-jms-quartz-sync-server-status.xml" />

	<!-- SCHEDULING PART -->
	<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
		<property name="triggers">
			<list>
                <ref bean="syncServeurStatusCronTrigger" />
                <ref bean="emailCleanerCronTrigger" />
                <ref bean="serverStatusCleanerCronTrigger" />
                <ref bean="retailerImportCronTrigger" />
			</list>
		</property>
	</bean>
	
	<!-- JMS : LISTEN ALL ACTIONS EMAIL NOTIFICATION -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.notification.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${email.notification.trigger.queue.name}" ref="emailNotificationMessageListener"></jms:listener>
	</jms:listener-container>
	
	<!-- JMS : LISTEN ALL ACTIONS DOCUMENT -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.document.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${document.trigger.queue.name}" ref="documentQueueListener"></jms:listener>
	</jms:listener-container>
	
	<!-- JMS : LISTEN ALL ACTIONS FOR SEARCH INDEX -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.searchindex.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${search.index.trigger.queue.name}" ref="searchIndexTriggerQueueListener"></jms:listener>
	</jms:listener-container>
	
	<!-- JMS : LISTEN ALL ACTIONS FOR ENTITY AUDIT -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.entityaudit.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${entity.audit.trigger.queue.name}" ref="entityAuditQueueListener"></jms:listener>
	</jms:listener-container>

    <!-- JMS : LISTEN ALL ACTIONS FOR GEOLOC ENTITY -->
    <context:component-scan base-package="org.hoteia.qalingo.core.jms.geoloc.listener" />
    <jms:listener-container 
        container-type="default"
        concurrency="1-5" <commit_msg>fix batch index<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--

    Most of the code in the Qalingo project is copyrighted Hoteia and licensed
    under the Apache License Version 2.0 (release version 0.8.0)
            http://www.apache.org/licenses/LICENSE-2.0

                      Copyright (c) Hoteia, 2012-2014
    http://www.hoteia.com - http://twitter.com/hoteia - <EMAIL>


-->
<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:aop="http://www.springframework.org/schema/aop"
    xmlns:jms="http://www.springframework.org/schema/jms"   
    xsi:schemaLocation="http://www.springframework.org/schema/batch 
                        http://www.springframework.org/schema/batch/spring-batch.xsd
                        http://www.springframework.org/schema/beans 
                        http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/context 
                        http://www.springframework.org/schema/context/spring-context.xsd
                        http://www.springframework.org/schema/aop 
                        http://www.springframework.org/schema/aop/spring-aop.xsd
                        http://www.springframework.org/schema/jms 
                        http://www.springframework.org/schema/jms/spring-jms-2.5.xsd">

    <!-- Configures core context -->
    <import resource="classpath*:qalingo-batch-common-context.xml" />
	<import resource="classpath:conf/spring/qalingo-core-solr.xml" />
	
    <context:component-scan base-package="org.hoteia.qalingo.core.security.helper" />
    
    <bean id="encoder" class="org.springframework.security.crypto.password.StandardPasswordEncoder"></bean>

	<import resource="classpath:messages-config.xml" />
	
	<bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
		<property name="corePoolSize" value="5"/>
		<property name="maxPoolSize" value="10"/>
		<property name="queueCapacity" value="25"/>
	</bean>
	
	<!-- JMS : CONFIG -->
	<import resource="classpath:conf/spring/qalingo-core-jms.xml" />
	<import resource="classpath:conf/spring/qalingo-core-jms-template.xml" />
	<!-- QUARTZ/JMS : SYNC SERVER STATUS -->
	<import resource="classpath:conf/spring/qalingo-core-jms-quartz-sync-server-status.xml" />

	<!-- SCHEDULING PART -->
	<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
		<property name="triggers">
			<list>
                <ref bean="syncServeurStatusCronTrigger" />
                <ref bean="emailCleanerCronTrigger" />
                <ref bean="serverStatusCleanerCronTrigger" />
                <ref bean="retailerImportCronTrigger" />
			</list>
		</property>
	</bean>
	
	<!-- JMS : LISTEN ALL ACTIONS EMAIL NOTIFICATION -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.notification.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${email.notification.trigger.queue.name}" ref="emailNotificationMessageListener"></jms:listener>
	</jms:listener-container>
	
	<!-- JMS : LISTEN ALL ACTIONS DOCUMENT -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.document.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${document.trigger.queue.name}" ref="documentQueueListener"></jms:listener>
	</jms:listener-container>
	
	<!-- JMS : LISTEN ALL ACTIONS FOR ENTITY AUDIT -->
	<context:component-scan base-package="org.hoteia.qalingo.core.jms.entityaudit.listener" />
	<jms:listener-container 
		container-type="default"
		concurrency="1-5" 
		connection-factory="connectionFactory" 
		acknowledge="transacted">
		<jms:listener destination="${entity.audit.trigger.queue.name}" ref="entityAuditQueueListener"></jms:listener>
	</jms:listener-container>

    <!-- JMS : LISTEN ALL ACTIONS FOR GEOLOC ENTITY -->
    <context:component-scan base-package="org.hoteia.qalingo.core.jms.geoloc.listener" />
    <jms:listener-container 
        container-type="default"
        concurrency="1-5" 
{'fraction_non_alphanumeric': 0.15149204966238292, 'fraction_numerical': 0.008494881289479415, 'mean_word_length': 3.3438978240302744, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 2, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 34, 'xml': 24}, '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': '5941899', 'n_tokens_mistral': 2986, 'n_tokens_neox': 2765, 'n_words': 358}