<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-2.0.xsd">

    <bean id="propertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

    <bean id="gigaSpaceContextProcessor" class="org.openspaces.core.context.GigaSpaceContextBeanPostProcessor"/>

    <bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean">
        <property name="url" value="/./space"/>
        <property name="lookupGroups" value="${user.name}"/>
    </bean>

    <bean id="gigaSpace" class="org.openspaces.core.GigaSpaceFactoryBean">
        <property name="space" ref="space"/>
    </bean>

    <bean id="transactionManager" class="org.openspaces.core.transaction.manager.LocalJiniTransactionManager">
        <property name="gigaSpace" ref="gigaSpace"/>
    </bean>

    <bean id="dataProcessor" class="org.openspaces.example.data.processor.DataProcessor"/>

    <bean id="dataProcessorPollingEventContainer"
          class="org.openspaces.events.polling.SimplePollingEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>

        <!-- make the reception transactional -->
        <property name="transactionManager" ref="transactionManager"/>

        <property name="template">
            <bean class="org.openspaces.example.data.common.Data">
                <property name="processed" value="false"/>
            </bean>
        </property>

        <!-- Can be enabled to allow for take multiple receive operations
        <property name="receiveOperationHandler">
            <bean class="org.openspaces.events.polling.receive.DefaultTakeReceiveOperationHandler">
                <property name="maxEntries" value="100" />
            </bean>
        </property>
        -->

        <property name="eventListener">
            <bean class="org.openspaces.events.adapter.AnnotationEventListenerAdapter">
                <property name="delegate" ref="dataProcessor"/>
            </bean>
        </property>
    </bean>

    <!-- Print out all the processed data event using notifications with processed true -->
    <bean id="dataProcessedCounterNotifyContainer"
          class="org.openspaces.events.notify.SimpleNotifyEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>

        <property name="notifyWrite" value="true"/>
        <property name="notifyUpdate" value="true"/>

        <property name="comTypeName" value="unicast"/>

        <property name="template">
            <bean class="org.openspaces.example.data.common.Data">
                <property name="processed" value="true"/>
            </bean>
        </property>

        <property name="eventListener">
            <bean class="org.openspaces.events.adapter.AnnotationEventListenerAdapter">
                <property name="delegate">
                    <bean class="org.openspaces.example.data.processor.DataProcessedCounter"/>
                </property>
            </bean>
        </property>
    </bean>

    <!-- Print out processed data using local view of all the processed data element -->

    <bean id="processedViewSpace" class="org.openspaces.core.space.cache.LocalViewSpaceFactoryBean">
        <property name="space" ref="space"/>
        <property name="localViews">
            <list>
                <bean class="com.j_spaces.core.client.view.View">
                    <constructor-arg index="0" value="org.openspaces.example.data.common.Data"/>
                    <constructor-arg index="1" value="processed = true"/>
                </bean>
            </list>
        </property>
    </bean>

    <bean id="processedViewGigaSpace" class="org.openspaces.core.GigaSpaceFactoryBean">
        <property name="space" ref="processedViewSpace" />
    </bean>

    <bean id="viewDataCounter" class="org.openspaces.example.data.processor.ViewDataCounter"/>

    <bean id="spaceModeContextLoader" class="org.openspaces.core.space.mode.SpaceModeContextLoader">
        <property name="location" value="classpath:/META-INF/spring/mode/mode.xml"/>
    </bean>

    <!-- Remoting Support -->
    <bean id="remotingContainer" class="org.openspaces.events.polling.SimplePollingEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>
        <property name="concurrentConsumers" value="2"/>
        <property name="eventListener">
            <bean class="org.openspaces.remoting.SpaceRemotingServiceExporter">
                <property name="services">
                    <list>
                        <ref bean="dataProcessor"/>
                    </list>
                </property>
            </bean>
        </property>
    </bean>
</beans><commit_msg>removed view from processor since it does not support primary backup when working in non clustered mode<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-2.0.xsd">

    <bean id="propertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

    <bean id="gigaSpaceContextProcessor" class="org.openspaces.core.context.GigaSpaceContextBeanPostProcessor"/>

    <bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean">
        <property name="url" value="/./space"/>
        <property name="lookupGroups" value="${user.name}"/>
    </bean>

    <bean id="gigaSpace" class="org.openspaces.core.GigaSpaceFactoryBean">
        <property name="space" ref="space"/>
    </bean>

    <bean id="transactionManager" class="org.openspaces.core.transaction.manager.LocalJiniTransactionManager">
        <property name="gigaSpace" ref="gigaSpace"/>
    </bean>

    <bean id="dataProcessor" class="org.openspaces.example.data.processor.DataProcessor"/>

    <bean id="dataProcessorPollingEventContainer"
          class="org.openspaces.events.polling.SimplePollingEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>

        <!-- make the reception transactional -->
        <property name="transactionManager" ref="transactionManager"/>

        <property name="template">
            <bean class="org.openspaces.example.data.common.Data">
                <property name="processed" value="false"/>
            </bean>
        </property>

        <!-- Can be enabled to allow for take multiple receive operations
        <property name="receiveOperationHandler">
            <bean class="org.openspaces.events.polling.receive.DefaultTakeReceiveOperationHandler">
                <property name="maxEntries" value="100" />
            </bean>
        </property>
        -->

        <property name="eventListener">
            <bean class="org.openspaces.events.adapter.AnnotationEventListenerAdapter">
                <property name="delegate" ref="dataProcessor"/>
            </bean>
        </property>
    </bean>

    <!-- Print out all the processed data event using notifications with processed true -->
    <bean id="dataProcessedCounterNotifyContainer"
          class="org.openspaces.events.notify.SimpleNotifyEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>

        <property name="notifyWrite" value="true"/>
        <property name="notifyUpdate" value="true"/>

        <property name="comTypeName" value="unicast"/>

        <property name="template">
            <bean class="org.openspaces.example.data.common.Data">
                <property name="processed" value="true"/>
            </bean>
        </property>

        <property name="eventListener">
            <bean class="org.openspaces.events.adapter.AnnotationEventListenerAdapter">
                <property name="delegate">
                    <bean class="org.openspaces.example.data.processor.DataProcessedCounter"/>
                </property>
            </bean>
        </property>
    </bean>

    <!-- Print out processed data using local view of all the processed data element -->

    <!-- DISABLED FOR NOW since it does not work with primary backup
    <bean id="processedViewSpace" class="org.openspaces.core.space.cache.LocalViewSpaceFactoryBean">
        <property name="space" ref="space"/>
        <property name="localViews">
            <list>
                <bean class="com.j_spaces.core.client.view.View">
                    <constructor-arg index="0" value="org.openspaces.example.data.common.Data"/>
                    <constructor-arg index="1" value="processed = true"/>
                </bean>
            </list>
        </property>
    </bean>

    <bean id="processedViewGigaSpace" class="org.openspaces.core.GigaSpaceFactoryBean">
        <property name="space" ref="processedViewSpace" />
    </bean>

    <bean id="viewDataCounter" class="org.openspaces.example.data.processor.ViewDataCounter"/>

    <bean id="spaceModeContextLoader" class="org.openspaces.core.space.mode.SpaceModeContextLoader">
        <property name="location" value="classpath:/META-INF/spring/mode/mode.xml"/>
    </bean>
    -->

    <!-- Remoting Support -->
    <bean id="remotingContainer" class="org.openspaces.events.polling.SimplePollingEventListenerContainer">
        <property name="gigaSpace" ref="gigaSpace"/>
        <property name="concurrentConsumers" value="2"/>
        <property name="eventListener">
            <bean class="org.openspaces.remoting.SpaceRemotingServiceExporter">
                <property name="services">
                    <list>
                        <ref bean="dataProcessor"/>
                    </list>
                </property>
            </bean>
        </property>
    </bean>
</beans>
{'fraction_non_alphanumeric': 0.13853551036762496, 'fraction_numerical': 0.003205449263748372, 'mean_word_length': 2.7505634861006762, 'pattern_counts': {'":': 0, '<': 182, '<?xml version=': 2, '>': 182, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 8}, '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': '3107559', 'n_tokens_mistral': 2664, 'n_tokens_neox': 2541, 'n_words': 462}