<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} path-to-this-file/example-cache.xml

    When starting GridGain from Java IDE, pass path to this file into GridGain:
    GridGain.start("path-to-this-file/example-benchmark.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">

    <!--
        Optional description.
    -->
    <description>
        Spring file for grid configuration with client available endpoints.
    </description>

    <!--
        Initialize property configurer so we can reference environment variables.
    -->
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_FALLBACK"/>
        <property name="searchSystemEnvironment" value="true"/>
    </bean>

    <!--
        Configuration below demonstrates how to setup a collision and failover SPI's
        to enable work stealing from overloaded nodes to underloaded nodes.

        Note that for job stealing to work, you must always use both,
        GridJobStealingCollisionSpi and GridJobStealingFailoverSPI.
    -->
    <bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration">
        <property name="gridName" value="sslnode"/>

        <!-- Set to local host address. -->
        <property name="localHost" value="127.0.0.1"/>

        <!-- Enable rest protocol. -->
        <property name="restEnabled" value="true"/>

        <!-- Client configuration. -->
        <property name="clientConnectionConfiguration">
            <bean class="org.gridgain.grid.GridClientConnectionConfiguration">
                <!-- Configure marshaller. -->
                <property name="marshaller">
                    <bean class="org.gridgain.client.marshaller.portable.GridClientPortableMarshaller" />
                </property>

                <!-- Configure TCP+SSL rest protocol. -->
                <property name="restTcpSslEnabled" value="true"/>

                <!-- Sets flag indicating whether or not SSL client authentication is required. -->
                <property name="restTcpSslClientAuth" value="true"/>

                <property name="restTcpSslContextFactory">
                    <bean class="org.gridgain.client.ssl.GridSslBasicContextFactory">
                        <property name="keyStoreFilePath" value="${CLIENTS_MODULE_PATH}/src/test/keystore/server.jks"/>
                        <property name="keyStorePassword" value="123456"/>
                        <property name="trustStoreFilePath" value="${CLIENTS_MODULE_PATH}/src/test/keystore/trust.jks"/>
                        <property name="trustStorePassword" value="<PASSWORD>"/>
                    </bean>
                </property>

                <property name="restTcpPort" value="10443"/>
            </bean>
        </property>

        <property name="cacheConfiguration">
            <!--
                Specify list of cache configurations here. Any property from
                GridCacheConfiguration interface can be configured here.
            -->
            <list>
                <!--
                    Local cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is null. -->
                    <!--<property name="name"><null/></property>-->

                    <!-- LOCAL cache mode. -->
                    <property name="cacheMode" value="LOCAL"/>

                    <property name="queryIndexEnabled" value="false"/>
                </bean>

                <!--
                    Partitioned cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is 'partitioned'. -->
                    <property name="name" value="partitioned"/>

                    <!-- PARTITIONED cache mode. -->
                    <property name="cacheMode" value="PARTITIONED"/>

                    <!-- Transactional updates supported. -->
                    <property name="atomicityMode" value="TRANSACTIONAL"/>

                    <!-- Enable near cache to cache recently accessed data. -->
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>

                    <property name="writeSynchronizationMode" value="FULL_SYNC"/>

                    <property name="affinity">
                        <bean class="org.gridgain.grid.cache.affinity.consistenthash.GridCacheConsistentHashAffinityFunction">
                            <constructor-arg value="1"/>
                        </bean>
                    </property>

                    <property name="queryIndexEnabled" value="false"/>
                </bean>

                <!--
                    Replicated cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is 'replicated'. -->
                    <property name="name" value="replicated"/>

                    <property name="writeSynchronizationMode" value="FULL_SYNC"/>

                    <property name="atomicityMode" value="TRANSACTIONAL"/><commit_msg>GG-8491 - Fixing .NET tests on TC<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} path-to-this-file/example-cache.xml

    When starting GridGain from Java IDE, pass path to this file into GridGain:
    GridGain.start("path-to-this-file/example-benchmark.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">

    <!--
        Optional description.
    -->
    <description>
        Spring file for grid configuration with client available endpoints.
    </description>

    <!--
        Initialize property configurer so we can reference environment variables.
    -->
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_FALLBACK"/>
        <property name="searchSystemEnvironment" value="true"/>
    </bean>

    <!--
        Configuration below demonstrates how to setup a collision and failover SPI's
        to enable work stealing from overloaded nodes to underloaded nodes.

        Note that for job stealing to work, you must always use both,
        GridJobStealingCollisionSpi and GridJobStealingFailoverSPI.
    -->
    <bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration">
        <property name="gridName" value="sslnode"/>

        <!-- Set to local host address. -->
        <property name="localHost" value="127.0.0.1"/>

        <!-- Enable rest protocol. -->
        <property name="restEnabled" value="true"/>

        <!-- Client configuration. -->
        <property name="clientConnectionConfiguration">
            <bean class="org.gridgain.grid.GridClientConnectionConfiguration">
                <!-- Configure marshaller. -->
                <property name="marshaller">
                    <bean class="org.gridgain.client.marshaller.portable.GridClientPortableMarshaller" />
                </property>

                <!-- Configure TCP+SSL rest protocol. -->
                <property name="restTcpSslEnabled" value="true"/>

                <!-- Sets flag indicating whether or not SSL client authentication is required. -->
                <property name="restTcpSslClientAuth" value="true"/>

                <property name="restTcpSslContextFactory">
                    <bean class="org.gridgain.client.ssl.GridSslBasicContextFactory">
                        <property name="keyStoreFilePath" value="${CLIENTS_MODULE_PATH}/src/test/keystore/server.jks"/>
                        <property name="keyStorePassword" value="123456"/>
                        <property name="trustStoreFilePath" value="${CLIENTS_MODULE_PATH}/src/test/keystore/trust.jks"/>
                        <property name="trustStorePassword" value="<PASSWORD>"/>
                    </bean>
                </property>

                <property name="restTcpPort" value="10443"/>
            </bean>
        </property>

        <property name="cacheConfiguration">
            <!--
                Specify list of cache configurations here. Any property from
                GridCacheConfiguration interface can be configured here.
            -->
            <list>
                <!--
                    Local cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is null. -->
                    <!--<property name="name"><null/></property>-->

                    <!-- LOCAL cache mode. -->
                    <property name="cacheMode" value="LOCAL"/>

                    <property name="queryIndexEnabled" value="false"/>
                </bean>

                <!--
                    Partitioned cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is 'partitioned'. -->
                    <property name="name" value="partitioned"/>

                    <!-- PARTITIONED cache mode. -->
                    <property name="cacheMode" value="PARTITIONED"/>

                    <!-- Transactional updates supported. -->
                    <property name="atomicityMode" value="TRANSACTIONAL"/>

                    <!-- Enable near cache to cache recently accessed data. -->
                    <property name="distributionMode" value="NEAR_PARTITIONED"/>

                    <property name="writeSynchronizationMode" value="FULL_SYNC"/>

                    <property name="affinity">
                        <bean class="org.gridgain.grid.cache.affinity.consistenthash.GridCacheConsistentHashAffinityFunction">
                            <constructor-arg value="1"/>
                        </bean>
                    </property>

                    <!-- Enable queries for partitioned cache -->
                    <property name="queryIndexEnabled" 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="GridPortablePerson"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="age" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                        <property name="queryFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                            </map>
                                        </property>
                                        <property name="textFields">
                                            <list>
                                                <value>address</value>
                                            </list>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="GridImplicitPortablePerson"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="age" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                        <property name="queryFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                            </map>
                                        </property>
                                    </bean>
                                    <bean class="org.gridgain.grid.cache.query.GridCacheQueryTypeMetadata">
                                        <property name="type" value="GridNoDefPortablePerson"/>
                                        <property name="ascendingFields">
                                            <map>
                                                <entry key="age" value="java.lang.Integer"/>
                                            </map>
                                        </property>
                                        <property name="queryFields">
                                            <map>
                                                <entry key="name" value="java.lang.String"/>
                                            </map>
                                        </property>
                                    </bean>
                                </list>
                            </property>
                        </bean>
                    </property>
                </bean>

                <!--
                    Replicated cache example configuration.
                -->
                <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
                    <!-- Cache name is 'replicated'. -->
                    <property name="name" value="replicated"/>

                    <property name="writeSynchronizationMode" value="FULL_SYNC"/>

                    <property name="atomicityMode" value="TRANSACTIONAL"/>
{'fraction_non_alphanumeric': 0.11418186375885192, 'fraction_numerical': 0.003509431597418061, 'mean_word_length': 1.3676557863501484, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 2, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 16}, 'pii_count': 2, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 65, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6539601', 'n_tokens_mistral': 3729, 'n_tokens_neox': 3487, 'n_words': 706}