<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:jdbc="http://www.springframework.org/schema/jdbc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
                           http://www.springframework.org/schema/tx
                           http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
                           http://www.springframework.org/schema/jdbc
                           http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd">

    <!-- DATA SOURCE CONFIGURATION -->
    <bean name="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName" value="org.h2.Driver"/>
        <property name="url" value="jdbc:h2:file:./singulardb;AUTO_SERVER=TRUE;mode=ORACLE;CACHE_SIZE=2048;MULTI_THREADED=1"/>
        <property name="username" value="sa"/>
        <property name="password" value="sa"/>
        <property name="removeAbandoned" value="true"/>
        <property name="initialSize" value="5" />
        <property name="maxActive" value="10" />
        <property name="minIdle" value="1" />
    </bean>


    <!-- HIBERNATE CONFIGURATION -->
    <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <!-- Incluir o pacote quando tiver um -->
        <property name="packagesToScan" value="br.net.mirante.singular.showcase.dao.form,br.net.mirante.singular.form.persistence"/>

        <property name="hibernateProperties">
            <props>
                <!-- Esse dialect do sql server foi colocado para testar se o script é compatível com sql server  -->
                <prop key="hibernate.dialect">org.hibernate.dialect.H2Dialect</prop>
                <prop key="hibernate.show_sql">true</prop>
                <prop key="hibernate.format_sql">true</prop>
                <prop key="hibernate.hbm2ddl.auto">create</prop>
            </props>
        </property>
    </bean>

    <!-- HIBERNATE TRANSACTION CONFIGURATION -->
    <tx:annotation-driven proxy-target-class="true" transaction-manager="transactionManager"/>
    <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/><commit_msg>[FORM-SHOWCASE] - Ajustando configuração de teste.<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:jdbc="http://www.springframework.org/schema/jdbc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
                           http://www.springframework.org/schema/tx
                           http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
                           http://www.springframework.org/schema/jdbc
                           http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd">

    <!-- DATA SOURCE CONFIGURATION -->
    <bean name="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName" value="org.h2.Driver"/>
        <property name="url" value="jdbc:h2:file:./singulardb;AUTO_SERVER=TRUE;mode=ORACLE;CACHE_SIZE=2048;MULTI_THREADED=1;INIT=CREATE SCHEMA IF NOT EXISTS DBSINGULAR"/>
        <property name="username" value="sa"/>
        <property name="password" value="sa"/>
        <property name="removeAbandoned" value="true"/>
        <property name="initialSize" value="5" />
        <property name="maxActive" value="10" />
        <property name="minIdle" value="1" />
    </bean>


    <!-- HIBERNATE CONFIGURATION -->
    <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <!-- Incluir o pacote quando tiver um -->
        <property name="packagesToScan" value="br.net.mirante.singular.showcase.dao.form,br.net.mirante.singular.form.persistence"/>

        <property name="hibernateProperties">
            <props>
                <!-- Esse dialect do sql server foi colocado para testar se o script é compatível com sql server  -->
                <prop key="hibernate.dialect">org.hibernate.dialect.H2Dialect</prop>
                <prop key="hibernate.show_sql">true</prop>
                <prop key="hibernate.format_sql">true</prop>
                <prop key="hibernate.hbm2ddl.auto">create</prop>
            </props>
        </property>
    </bean>

    <!-- HIBERNATE TRANSACTION CONFIGURATION -->
    <tx:annotation-driven proxy-target-class="true" transaction-manager="transactionManager"/>
    <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>
{'fraction_non_alphanumeric': 0.1498389846561849, 'fraction_numerical': 0.010986929342678538, 'mean_word_length': 2.7606837606837606, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 10}, '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': '7054687', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1484, 'n_words': 218}