<commit_before><?xml version="1.0" encoding="GB2312"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

	<!-- exception resolver -->
	<bean class="com.hundsun.jresplus.web.servlet.HandlerExceptionResolver" />

	<bean id="ResourceConfigurer"
		class="com.hundsun.jresplus.beans.config.PropertyPlaceholderConfigurer">
		<property name="systemPropertiesMode" value="2" />
		<property name="ignoreUnresolvablePlaceholders" value="true" />
		<property name='properties'>
			<props>
				<prop key="response.out.charset">UTF-8</prop>
				<prop key="session.max.inacterval">-1</prop>
				<prop key="session.meta.cookie.name">_h_</prop>
				<prop key="session.meta.cookie.domain"></prop>
				<prop key="cookies.max.length">4095</prop>
				<prop key="cookies.max.count">1</prop>
				<prop key="bigpipe.onoff">true</prop>
				<prop key="nosession.onoff">true</prop>
				<prop key="template.load.charset">UTF-8</prop>
				<prop key="app.server.host"></prop>
				<prop key="app.server.port">80</prop>
				<prop key="app.server.protocol">http</prop>
				<prop key="image.server.host">${app.server.host}</prop>
				<prop key="image.server.port">${app.server.port}</prop>
				<prop key="image.server.path"></prop>
				<prop key="image.server.followContextPath">true</prop>
				<prop key="image.server.protocol">${app.server.protocol}</prop>
				<prop key="upload.server.host">${app.server.host}</prop>
				<prop key="upload.server.port">${app.server.port}</prop>
				<prop key="upload.server.protocol">${app.server.protocol}</prop>
				<prop key="upload.server.path"></prop>
			</props>
		</property>
	</bean>

	<context:component-scan base-package="com.hundsun.jresplus">
		<context:exclude-filter type="annotation"
			expression="org.springframework.stereotype.Controller" />
	</context:component-scan>

	<context:annotation-config />

	<bean id="mediaTypesHandler" class="com.hundsun.jresplus.web.servlet.MediaTypesHandler">
		<property name="ignoreAcceptHeader" value="true" />
		<property name="mediaTypes">
			<map>
				<entry key="json" value="application/json" />
				<entry key="xml" value="application/xml" />
			</map>
		</property>
		<property name="defaultContentType" value="text/html" />
	</bean>

	<bean id="uuidGenerator" class="com.hundsun.jresplus.web.nosession.UUIDPoolGenerator" />

	<!-- URLBrokers -->
	<bean id="appServerBroker" class="com.hundsun.jresplus.web.url.URLBroker">
		<property name="name" value="appServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="host" value="${app.server.host}"></property>
				<property name="port" value="${app.server.port}"></property>
				<property name="protocol" value="${app.server.protocol}"></property>
				<property name="followContextPath" value="true"></property>
			</bean>
		</property>
	</bean>
	<!-- httpsappserver -->
	<bean id="sslAppServerBroker" class="com.hundsun.jresplus.web.url.URLBroker">
		<property name="name" value="sslAppServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="protocol" value="https"></property>
				<property name="host" value="${app.server.host}"></property>
				<property name="port" value="${app.server.port}"></property>
				<property name="followContextPath" value="true"></property>
			</bean>
		</property>
	</bean>
	<bean id="imageServerBroker" class="com.hundsun.jresplus.web.url.StampURLBroker">
		<property name="name" value="imageServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="host" value="${image.server.host}"></property>
				<property name="port" value="${image.server.port}"></property>
				<property name="path" value="${image.server.path}" />
				<property name="protocol" value="${image.server.protocol}"></property>
				<property name="followContextPath" value="${image.server.followContextPath}"></property>
			</bean>
		</property>
	</bean>
	<!-- url  -->
	<bean id="uploadServerBroker" class="com.hundsun.jresplus.web.url.MultiHostURLBroker">
		<property name="name" value="uploadServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.MultiHostURLConfig">
				<property name="hostsValues" value="${upload.server.host}" />
				<property name="port" value="${upload.server.port}" />
				<property name="path" value="${upload.server.path}" />
				<property name="protocol" value="${upload.server.protocol}"></property>
				<property name="followContextPath" value="false" />
			</bean>
		</property>
	</bean>
	<bean class="com.hundsun.jresplus.web.url.ServletContextInitHelper"></bean>

	<bean id="encodingFilterBean" class="org.springframework.web.filter.CharacterEncodingFilter"><commit_msg>update code<commit_after><?xml version="1.0" encoding="GB2312"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

	<!-- exception resolver -->
	<bean class="com.hundsun.jresplus.web.servlet.HandlerExceptionResolver" />

	<bean id="ResourceConfigurer"
		class="com.hundsun.jresplus.beans.config.PropertyPlaceholderConfigurer">
		<property name="systemPropertiesMode" value="2" />
		<property name="ignoreUnresolvablePlaceholders" value="true" />
		<property name='properties'>
			<props>
				<prop key="response.out.charset">UTF-8</prop>
				<prop key="session.max.inacterval">-1</prop>
				<prop key="session.meta.cookie.name">_co_</prop>
				<prop key="session.meta.cookie.domain"></prop>
				<prop key="cookies.max.length">4095</prop>
				<prop key="cookies.max.count">1</prop>
				<prop key="bigpipe.onoff">true</prop>
				<prop key="nosession.onoff">true</prop>
				<prop key="template.load.charset">UTF-8</prop>
				<prop key="app.server.host"></prop>
				<prop key="app.server.port">80</prop>
				<prop key="app.server.protocol">http</prop>
				<prop key="image.server.host">${app.server.host}</prop>
				<prop key="image.server.port">${app.server.port}</prop>
				<prop key="image.server.path"></prop>
				<prop key="image.server.followContextPath">true</prop>
				<prop key="image.server.protocol">${app.server.protocol}</prop>
				<prop key="upload.server.host">${app.server.host}</prop>
				<prop key="upload.server.port">${app.server.port}</prop>
				<prop key="upload.server.protocol">${app.server.protocol}</prop>
				<prop key="upload.server.path"></prop>
			</props>
		</property>
	</bean>

	<context:component-scan base-package="com.hundsun.jresplus">
		<context:exclude-filter type="annotation"
			expression="org.springframework.stereotype.Controller" />
	</context:component-scan>

	<context:annotation-config />

	<bean id="mediaTypesHandler" class="com.hundsun.jresplus.web.servlet.MediaTypesHandler">
		<property name="ignoreAcceptHeader" value="true" />
		<property name="mediaTypes">
			<map>
				<entry key="json" value="application/json" />
				<entry key="xml" value="application/xml" />
			</map>
		</property>
		<property name="defaultContentType" value="text/html" />
	</bean>

	<bean id="uuidGenerator" class="com.hundsun.jresplus.web.nosession.UUIDPoolGenerator" />

	<!-- URLBrokers -->
	<bean id="appServerBroker" class="com.hundsun.jresplus.web.url.URLBroker">
		<property name="name" value="appServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="host" value="${app.server.host}"></property>
				<property name="port" value="${app.server.port}"></property>
				<property name="protocol" value="${app.server.protocol}"></property>
				<property name="followContextPath" value="true"></property>
			</bean>
		</property>
	</bean>
	<!-- httpsµÄappserver -->
	<bean id="sslAppServerBroker" class="com.hundsun.jresplus.web.url.URLBroker">
		<property name="name" value="sslAppServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="protocol" value="https"></property>
				<property name="host" value="${app.server.host}"></property>
				<property name="port" value="${app.server.port}"></property>
				<property name="followContextPath" value="true"></property>
			</bean>
		</property>
	</bean>
	<bean id="imageServerBroker" class="com.hundsun.jresplus.web.url.StampURLBroker">
		<property name="name" value="imageServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.URLConfig">
				<property name="host" value="${image.server.host}"></property>
				<property name="port" value="${image.server.port}"></property>
				<property name="path" value="${image.server.path}" />
				<property name="protocol" value="${image.server.protocol}"></property>
				<property name="followContextPath" value="${image.server.followContextPath}"></property>
			</bean>
		</property>
	</bean>
	<!-- ¶àÖ÷»úurl ÅäÖÃ -->
	<bean id="uploadServerBroker" class="com.hundsun.jresplus.web.url.MultiHostURLBroker">
		<property name="name" value="uploadServer"/>
		<property name="encoding" value="${response.out.charset}"></property>
		<property name="config">
			<bean class="com.hundsun.jresplus.web.url.MultiHostURLConfig">
				<property name="hostsValues" value="${upload.server.host}" />
				<property name="port" value="${upload.server.port}" />
				<property name="path" value="${upload.server.path}" />
				<property name="protocol" value="${upload.server.protocol}"></property>
				<property name="followContextPath" value="false" />
			</bean>
		</property>
	</bean>
	<bean class="com.hundsun.jresplus.web.url.ServletContextInitHelper"></bean>

	<bean id="encodingFilterBean" class="org.springframework.web.filter.CharacterEncodingFilter">
{'fraction_non_alphanumeric': 0.1964237818506929, 'fraction_numerical': 0.005006705409029951, 'mean_word_length': 4.956336528221512, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 2, '>': 287, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 14}, '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': '1888823', 'n_tokens_mistral': 3959, 'n_tokens_neox': 3580, 'n_words': 469}