<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop" 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/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/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

    <import resource="classpath:perun-datasources.xml"/>
    <import resource="classpath:perun-beans.xml"/>
    <import resource="classpath:perun-transaction-manager.xml"/>

    <!-- Enable @Transactional support -->
	<tx:annotation-driven transaction-manager="perunTransactionManager"/>

    <!-- Enable @AspectJ support -->
    <aop:aspectj-autoproxy/>

    <!-- Scans for @Repository, @Service and @Component -->
    <context:component-scan base-package="cz.metacentrum.perun.registrar"/>

    <!-- for sending emails -->
    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host" value="localhost"/>
    </bean>

    <bean id="registrarManager" class="cz.metacentrum.perun.registrar.impl.RegistrarManagerImpl" init-method="initialize">
        <property name="dataSource" ref="dataSource"/>
        <property name="shibDisplayNameVar" value="Shib-Person-displayName"/>
    </bean>
    
    <bean id="mailManager" class="cz.metacentrum.perun.registrar.impl.MailManagerImpl" init-method="initialize">
        <property name="dataSource" ref="dataSource"/>
        <property name="mailSender" ref="mailSender" />
    </bean>

    <!-- Properties Bean -->
    <util:properties id="registrarProperties" location="file:${perun.conf}/perun-registrar-lib.properties" />

</beans><commit_msg>Switch to spring transaction manager<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop" 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/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/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

    <import resource="classpath:perun-datasources.xml"/>
    <import resource="classpath:perun-beans.xml"/>
    <import resource="classpath:perun-transaction-manager.xml"/>

    <!-- Enable @Transactional support -->
	<tx:annotation-driven transaction-manager="springTransactionManager"/>

    <!-- Enable @AspectJ support -->
    <aop:aspectj-autoproxy/>

    <!-- Scans for @Repository, @Service and @Component -->
    <context:component-scan base-package="cz.metacentrum.perun.registrar"/>

    <!-- for sending emails -->
    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host" value="localhost"/>
    </bean>

    <bean id="registrarManager" class="cz.metacentrum.perun.registrar.impl.RegistrarManagerImpl" init-method="initialize">
        <property name="dataSource" ref="dataSource"/>
        <property name="shibDisplayNameVar" value="Shib-Person-displayName"/>
    </bean>
    
    <bean id="mailManager" class="cz.metacentrum.perun.registrar.impl.MailManagerImpl" init-method="initialize">
        <property name="dataSource" ref="dataSource"/>
        <property name="mailSender" ref="mailSender" />
    </bean>

    <!-- Properties Bean -->
    <util:properties id="registrarProperties" location="file:${perun.conf}/perun-registrar-lib.properties" />

</beans>
{'fraction_non_alphanumeric': 0.16853448275862068, 'fraction_numerical': 0.0034482758620689655, 'mean_word_length': 4.279863481228669, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 2, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 32, 'xml': 20}, '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': '5714540', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1370, 'n_words': 165}