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

<!--
    _________        _____ __________________        _____
    __  ____/___________(_)______  /__  ____/______ ____(_)_______
    _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
    / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
    \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/

    @xml.file.header
    Version: @xml.file.version
-->

<!--
    GridGain Spring configuration file to startup grid cache.

    When starting a standalone GridGain node, you need to execute the following command:
    {GRIDGAIN_HOME}/bin/ggstart.{bat|sh} examples/config/example-cache.xml

    When starting GridGain from Java IDE, pass path to this file to GridGain:
    GridGain.start("examples/config/example-cache.xml");
-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd">
    <bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration">
        <!-- Set to local host address just for examples. -->
        <property name="localHost" value="127.0.0.1"/>

        <!-- Set to true to enable grid-aware class loading for examples, default is false. -->
        <property name="peerClassLoadingEnabled" value="true"/>

        <property name="marshaller">
            <bean class="org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller">
                <!-- Set to false to allow non-serializable objects in examples, default is true. -->
                <property name="requireSerializable" value="false"/>
            </bean>
        </property>

        <!-- Enable cache events for examples. -->
        <property name="includeEventTypes">
            <util:constant static-field="org.gridgain.grid.events.GridEventType.EVTS_CACHE"/>
        </property>

        <!-- Cache configurations (all properties are optional). -->
        <property name="cacheConfiguration">
            <list>
                <!-- Partitioned cache example configuration (Atomic mode). -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="distributionMode" value="PARTITIONED_ONLY"/>
                    <property name="backups" value="1"/>
                </bean>

                <!-- Partitioned cache example configuration (Transactional mode). -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_tx"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>
                    <property name="backups" value="1"/>
                </bean>

                <!--
                    Partitioned cache example configuration with portable objects enabled (Atomic mode).
                    Used in .NET, C++ and Java client examples that are available only in
                    enterprise edition.
                -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_portable"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="distributionMode" value="PARTITIONED_ONLY"/>
                    <property name="backups" value="1"/>
                    <property name="portableEnabled" value="true"/>
                    <property name="queryConfiguration">
                        <bean class="org.gridgain.grid.cache.query.GridCacheQueryConfiguration">
                            <property name="typeMetadata">
                                <list>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="Organization"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                            </map>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="EmployeeKey"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="organizationId" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="Employee"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="address.zip" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                        <property name="queryFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                                <entry key="salary" value="java.lang.Long"/>
                                            </map>
                                        </property>
                                        <property name="textFields">
                                            <list>
                                                <value>address.street</value>
                                            </list>
                                        </property>
                                    </bean>
                                </list>
                            </property>
                        </bean>
                    </property>
                </bean>

                <!--
                    Partitioned cache example configuration with portable objects enabled (Transactional mode).
                    Used in .NET, C++ and Java client examples that are available only in
                    enterprise edition.
                -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_portable_tx"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>
                    <property name="backups" value="1"/>
                    <property name="portableEnabled" value="true"/>
                </bean>

                <!-- Replicated cache example configuration (Atomic mode). -->
                <bean parent="cache-template">
                    <property name="name" value="replicated"/>
                    <property name="cacheMode" value="REPLICATED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                </bean>

                <!-- Replicated cache example configuration (Transactional mode). -->
                <bean parent="cache-template">
                    <property name="name" value="replicated_tx"/>
                    <property name="cacheMode" value="REPLICATED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/><commit_msg>GG-9427 - .NET cache store example<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!--
    _________        _____ __________________        _____
    __  ____/___________(_)______  /__  ____/______ ____(_)_______
    _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
    / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
    \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/

    @xml.file.header
    Version: @xml.file.version
-->

<!--
    GridGain Spring configuration file to startup grid cache.

    When starting a standalone GridGain node, you need to execute the following command:
    {GRIDGAIN_HOME}/bin/ggstart.{bat|sh} examples/config/example-cache.xml

    When starting GridGain from Java IDE, pass path to this file to GridGain:
    GridGain.start("examples/config/example-cache.xml");
-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd">
    <bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration">
        <!-- Set to local host address just for examples. -->
        <property name="localHost" value="127.0.0.1"/>

        <!-- Set to true to enable grid-aware class loading for examples, default is false. -->
        <property name="peerClassLoadingEnabled" value="true"/>

        <property name="marshaller">
            <bean class="org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller">
                <!-- Set to false to allow non-serializable objects in examples, default is true. -->
                <property name="requireSerializable" value="false"/>
            </bean>
        </property>

        <!-- Enable cache events for examples. -->
        <property name="includeEventTypes">
            <util:constant static-field="org.gridgain.grid.events.GridEventType.EVTS_CACHE"/>
        </property>

        <!-- Cache configurations (all properties are optional). -->
        <property name="cacheConfiguration">
            <list>
                <!-- Partitioned cache example configuration (Atomic mode). -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="distributionMode" value="PARTITIONED_ONLY"/>
                    <property name="backups" value="1"/>
                </bean>

                <!-- Partitioned cache example configuration (Transactional mode). -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_tx"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>
                    <property name="backups" value="1"/>
                </bean>

                <!--
                    Partitioned cache example configuration with portable objects enabled (Atomic mode).
                    Used in .NET, C++ and Java client examples that are available only in
                    enterprise edition.
                -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_portable"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="distributionMode" value="PARTITIONED_ONLY"/>
                    <property name="backups" value="1"/>
                    <property name="portableEnabled" value="true"/>
                    <property name="queryConfiguration">
                        <bean class="org.gridgain.grid.cache.query.GridCacheQueryConfiguration">
                            <property name="typeMetadata">
                                <list>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="Organization"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                            </map>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="EmployeeKey"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="organizationId" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="Employee"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="address.zip" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                        <property name="queryFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                                <entry key="salary" value="java.lang.Long"/>
                                            </map>
                                        </property>
                                        <property name="textFields">
                                            <list>
                                                <value>address.street</value>
                                            </list>
                                        </property>
                                    </bean>
                                </list>
                            </property>
                        </bean>
                    </property>
                </bean>

                <!--
                    Partitioned cache example configuration with portable objects enabled (Transactional mode).
                    Used in .NET, C++ and Java client examples that are available only in
                    enterprise edition.
                -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_portable_tx"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>
                    <property name="backups" value="1"/>
                    <property name="portableEnabled" value="true"/>
                </bean>

                <!--
                    Partitioned cache example configuration with portable objects enabled
                    and cache store (Atomic mode).
                    Used in .NET cache store example that is available only in enterprise edition.
                -->
                <bean parent="cache-template">
                    <property name="name" value="partitioned_portable_dotnet_store"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="distributionMode" value="PARTITIONED_ONLY"/>
                    <property name="backups" value="1"/>
                    <property name="portableEnabled" value="true"/>
                    <property name="store">
                        <bean class="org.gridgain.grid.cache.store.interop.GridCacheDotNetStore">
                            <property name="assemblyName" value="GridGainExamplesDll"/>
                            <property name="className" value="GridGain.Examples.Datagrid.EmployeeStore"/>
                        </bean>
                    </property>
                </bean>

                <!-- Replicated cache example configuration (Atomic mode). -->
                <bean parent="cache-template">
                    <property name="name" value="replicated"/>
                    <property name="cacheMode" value="REPLICATED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                </bean>

                <!-- Replicated cache example configuration (Transactional mode). -->
                <bean parent="cache-template">
                    <property name="name" value="replicated_tx"/>
                    <property name="cacheMode" value="REPLICATED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>
{'fraction_non_alphanumeric': 0.11088743499412851, 'fraction_numerical': 0.002292680199071744, 'mean_word_length': 1.234103685196752, 'pattern_counts': {'":': 0, '<': 240, '<?xml version=': 2, '>': 240, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 16}, 'pii_count': 2, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 102, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1764376', 'n_tokens_mistral': 3947, 'n_tokens_neox': 3719, 'n_words': 796}