<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:c="http://www.springframework.org/schema/c"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/beans 
		http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/tx 
		http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 
		http://www.springframework.org/schema/aop 
		http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
		http://www.springframework.org/schema/mvc 
		http://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/context 
		http://www.springframework.org/schema/context/spring-context.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing 
		infrastructure -->

	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven>
		<message-converters>
			<beans:bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
				 <beans:property name="objectMapper">  
                    <beans:bean class="com.fasterxml.jackson.databind.ObjectMapper">  
                        <beans:property name="dateFormat">  
                            <beans:bean class="java.text.SimpleDateFormat">  
                                <beans:constructor-arg type="java.lang.String" value="yyyy-MM-dd" />  
                            </beans:bean>  
                        </beans:property>  
                    </beans:bean>  
                </beans:property> 
			</beans:bean>
		</message-converters>
	</annotation-driven>

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving 
		up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**" location="/resources/" />

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources 
		in the /WEB-INF/views directory -->
	<beans:bean
		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix" value="/WEB-INF/views/" />
		<beans:property name="suffix" value=".jsp" />
	</beans:bean>

	<context:component-scan base-package="com.cidic.equipment" />

	<!-- MySql数据库连接池配置 -->
	<beans:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		destroy-method="close">
		<beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
		<beans:property name="url"
			value="jdbc:mysql://192.168.3.110:3306/equipment?useUnicode=true&amp;characterEncoding=utf8" />
		<beans:property name="username" value="root" />
		<beans:property name="password" value="<PASSWORD>" />
		<beans:property name="timeBetweenEvictionRunsMillis"
			value="3600000" />
		<beans:property name="minEvictableIdleTimeMillis"
			value="3600000" />
		<beans:property name="maxActive" value="200"></beans:property>
		<beans:property name="minIdle" value="50"></beans:property>
	</beans:bean>

	<beans:bean id="sessionFactory"
		class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<beans:property name="dataSource" ref="dataSource"></beans:property>
		<beans:property name="packagesToScan">
			<beans:list>
				<beans:value>com.cidic.equipment</beans:value>
			</beans:list>
		</beans:property>
		<beans:property name="hibernateProperties">
			<beans:props>
				<beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect
				</beans:prop>
				<beans:prop key="hibernate.show_sql">true</beans:prop>
				<beans:prop key="hibernate.format_sql">true</beans:prop>
				<beans:prop key="hibernate.use_sql_comments">true</beans:prop>
				<beans:prop key="hibernate.query.substitutions">true 1, false 0</beans:prop>
				<beans:prop key="hibernate.default_batch_fetch_size">16</beans:prop>
				<beans:prop key="hibernate.max_fetch_depth">2</beans:prop>
				<beans:prop key="hibernate.generate_statistics">true</beans:prop>
				<beans:prop key="hibernate.bytecode.use_reflection_optimizer">true</beans:prop>
				<beans:prop key="hibernate.autoReconnect">true</beans:prop>
				<beans:prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory
				</beans:prop>
				<beans:prop key="hibernate.cache.use_second_level_cache">true</beans:prop>
				<beans:prop key="hibernate.cache.use_query_cache">true</beans:prop>
				<beans:prop key="hibernate.enable_lazy_load_no_trans">true</beans:prop>
				<beans:prop
					key="hibernate.cache.provider_configuration_file_resource_path">classpath:/ehcache.xml</beans:prop>
			</beans:props>
		</beans:property>

	</beans:bean>
	
	<!-- 设定transactionManager -->
	<beans:bean id="txManager"
		class="org.springframework.orm.hibernate4.HibernateTransactionManager">
		<beans:property name="sessionFactory" ref="sessionFactory" />
		<beans:property name="dataSource" ref="dataSource"></beans:property>
	</beans:bean>

	<!--启动spring事务注解功能 -->
	<tx:annotation-driven transaction-manager="txManager" />

</beans:beans>
<commit_msg>测试exclude<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:c="http://www.springframework.org/schema/c"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/beans 
		http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/tx 
		http://www.springframework.org/schema/tx/spring-tx-4.0.xsd 
		http://www.springframework.org/schema/aop 
		http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
		http://www.springframework.org/schema/mvc 
		http://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/context 
		http://www.springframework.org/schema/context/spring-context.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing 
		infrastructure -->

	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven>
		<message-converters>
			<beans:bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
				 <beans:property name="objectMapper">  
                    <beans:bean class="com.fasterxml.jackson.databind.ObjectMapper">  
                        <beans:property name="dateFormat">  
                            <beans:bean class="java.text.SimpleDateFormat">  
                                <beans:constructor-arg type="java.lang.String" value="yyyy-MM-dd" />  
                            </beans:bean>  
                        </beans:property>  
                    </beans:bean>  
                </beans:property> 
			</beans:bean>
		</message-converters>
	</annotation-driven>

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving 
		up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**" location="/resources/" />

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources 
		in the /WEB-INF/views directory -->
	<beans:bean
		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix" value="/WEB-INF/views/" />
		<beans:property name="suffix" value=".jsp" />
	</beans:bean>

	<context:component-scan base-package="com.cidic.equipment" />


	<!-- MySql数据库连接池配置 -->
	<beans:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		destroy-method="close">
		<beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
		<beans:property name="url"
			value="jdbc:mysql://192.168.3.110:3306/equipment?useUnicode=true&amp;characterEncoding=utf8" />
		<beans:property name="username" value="root" />
		<beans:property name="password" value="<PASSWORD>" />
		<beans:property name="timeBetweenEvictionRunsMillis"
			value="3600000" />
		<beans:property name="minEvictableIdleTimeMillis"
			value="3600000" />
		<beans:property name="maxActive" value="200"></beans:property>
		<beans:property name="minIdle" value="50"></beans:property>
	</beans:bean>

	<beans:bean id="sessionFactory"
		class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<beans:property name="dataSource" ref="dataSource"></beans:property>
		<beans:property name="packagesToScan">
			<beans:list>
				<beans:value>com.cidic.equipment</beans:value>
			</beans:list>
		</beans:property>
		<beans:property name="hibernateProperties">
			<beans:props>
				<beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect
				</beans:prop>
				<beans:prop key="hibernate.show_sql">true</beans:prop>
				<beans:prop key="hibernate.format_sql">true</beans:prop>
				<beans:prop key="hibernate.use_sql_comments">true</beans:prop>
				<beans:prop key="hibernate.query.substitutions">true 1, false 0</beans:prop>
				<beans:prop key="hibernate.default_batch_fetch_size">16</beans:prop>
				<beans:prop key="hibernate.max_fetch_depth">2</beans:prop>
				<beans:prop key="hibernate.generate_statistics">true</beans:prop>
				<beans:prop key="hibernate.bytecode.use_reflection_optimizer">true</beans:prop>
				<beans:prop key="hibernate.autoReconnect">true</beans:prop>
				<beans:prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory
				</beans:prop>
				<beans:prop key="hibernate.cache.use_second_level_cache">true</beans:prop>
				<beans:prop key="hibernate.cache.use_query_cache">true</beans:prop>
				<beans:prop key="hibernate.enable_lazy_load_no_trans">true</beans:prop>
				<beans:prop
					key="hibernate.cache.provider_configuration_file_resource_path">classpath:/ehcache.xml</beans:prop>
			</beans:props>
		</beans:property>

	</beans:bean>
	
	<!-- 设定transactionManager -->
	<beans:bean id="txManager"
		class="org.springframework.orm.hibernate4.HibernateTransactionManager">
		<beans:property name="sessionFactory" ref="sessionFactory" />
		<beans:property name="dataSource" ref="dataSource"></beans:property>
	</beans:bean>

	<!--启动spring事务注解功能 -->
	<tx:annotation-driven transaction-manager="txManager" />

</beans:beans>

{'fraction_non_alphanumeric': 0.16059618071727993, 'fraction_numerical': 0.010060549604098742, 'mean_word_length': 4.460834181078332, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 2, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 38, 'xml': 20}, 'pii_count': 2, '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': '3018405', 'n_tokens_mistral': 3771, 'n_tokens_neox': 3300, 'n_words': 402}