<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:aop="http://www.springframework.org/schema/aop"
     xmlns:tx="http://www.springframework.org/schema/tx"
     xmlns:jdbc="http://www.springframework.org/schema/jdbc"
     xmlns:context="http://www.springframework.org/schema/context"
     xsi:schemaLocation="
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
	
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
 
    <bean id="oneopsCMSDS" class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName" value="org.postgresql.Driver" />
        <property name="url" value="jdbc:postgresql://${CMS_DB_HOST}/kloopzdb?autoReconnect=true" />
        <property name="username" value="${CMS_DB_USER}" />
        <property name="password" value="${CMS_DB_PASS}" />
        <property name="maxActive" value="10" />
        <property name="maxIdle" value="5" />
        <property name="testOnBorrow" value="true" />
        <property name="validationQuery" value="select 1" />
        <property name="initialSize" value="5" />
        <property name="defaultAutoCommit" value="false" />
    </bean>

	<!-- transaction manager, use JtaTransactionManager for global tx -->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="oneopsCMSDS" />
    </bean>

    <tx:annotation-driven />
	
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="dataSource" ref="oneopsCMSDS" />
		<property name="configLocation" value="/WEB-INF/mybatis-config.xml" /> 
	</bean>
	
	<bean id="clazzMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.md.dal.ClazzMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="nsMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.ns.dal.NSMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="relationMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.md.dal.RelationMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="ciMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.cm.dal.CIMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="djMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.dj.dal.DJMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	
    
  	<bean id="dpmtMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.dj.dal.DJDpmtMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	
    
    <bean id="utilMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.util.dal.UtilMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>
    
   	<bean id="rfcUtil" class="com.oneops.cms.dj.service.CmsRfcUtil"/>
    
	<bean id="cmsMdProcessor" class="com.oneops.cms.md.service.CmsMdProcessor">
        <property name="clazzMapper" ref="clazzMapper" />
        <property name="relationMapper" ref="relationMapper" />
        <property name="cacheEnabled" value="true" />
    </bean>
	
	<bean id="cmsMdManager" class="com.oneops.cms.md.service.CmsMdManagerImpl">
        <property name="mdProcessor" ref="cmsMdProcessor" />
    </bean>

	<bean id="cmsNsManager" class="com.oneops.cms.ns.service.CmsNsManagerImpl">
        <property name="nsMapper" ref="nsMapper" /><commit_msg>ci delete perf improvements - review comments fix.<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:aop="http://www.springframework.org/schema/aop"
     xmlns:tx="http://www.springframework.org/schema/tx"
     xmlns:jdbc="http://www.springframework.org/schema/jdbc"
     xmlns:context="http://www.springframework.org/schema/context"
     xsi:schemaLocation="
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
	
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
 
    <bean id="oneopsCMSDS" class="org.apache.commons.dbcp.BasicDataSource">
        <property name="driverClassName" value="org.postgresql.Driver" />
        <property name="url" value="jdbc:postgresql://${CMS_DB_HOST}/kloopzdb?autoReconnect=true" />
        <property name="username" value="${CMS_DB_USER}" />
        <property name="password" value="${<PASSWORD>}" />
        <property name="maxActive" value="10" />
        <property name="maxIdle" value="5" />
        <property name="testOnBorrow" value="true" />
        <property name="validationQuery" value="select 1" />
        <property name="initialSize" value="5" />
        <property name="defaultAutoCommit" value="false" />
    </bean>

	<!-- transaction manager, use JtaTransactionManager for global tx -->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="oneopsCMSDS" />
    </bean>

    <tx:annotation-driven />
	
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="dataSource" ref="oneopsCMSDS" />
		<property name="configLocation" value="/WEB-INF/mybatis-config.xml" /> 
	</bean>
	
	<bean id="clazzMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.md.dal.ClazzMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="nsMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.ns.dal.NSMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="relationMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.md.dal.RelationMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="ciMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.cm.dal.CIMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	

	<bean id="djMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.dj.dal.DJMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	
    
  	<bean id="dpmtMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.dj.dal.DJDpmtMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>	
    
    <bean id="utilMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
        <property name="mapperInterface" value="com.oneops.cms.util.dal.UtilMapper" />
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />        
    </bean>
    
   	<bean id="rfcUtil" class="com.oneops.cms.dj.service.CmsRfcUtil"/>

    <bean id="cmsMdProcessor" class="com.oneops.cms.md.service.CmsMdProcessor">
        <property name="clazzMapper" ref="clazzMapper"/>
        <property name="relationMapper" ref="relationMapper"/>
        <property name="cacheEnabled" value="true"/>
    </bean>
	
	<bean id="cmsMdManager" class="com.oneops.cms.md.service.CmsMdManagerImpl">
        <property name="mdProcessor" ref="cmsMdProcessor" />
    </bean>

	<bean id="cmsNsManager" class="com.oneops.cms.ns.service.CmsNsManagerImpl">
        <property name="nsMapper" ref="nsMapper" />
{'fraction_non_alphanumeric': 0.1610312764158918, 'fraction_numerical': 0.0048605240912933225, 'mean_word_length': 3.819246435845214, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 2, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 32, 'xml': 16}, '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': '6333228', 'n_tokens_mistral': 3050, 'n_tokens_neox': 2920, 'n_words': 370}