<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: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.1.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

	<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:internal.properties</value>
			</list>
		</property>
	</bean>
	<!-- Configures support for @Controllers -->
	<mvc:annotation-driven>
		<mvc:argument-resolvers>
			<bean class="org.ngrinder.infra.spring.UserHandlerMethodArgumentResolver">
				<property name="userContext" ref="userContext" />
				<property name="userService" ref="userService" />
			</bean>
			<bean class="org.ngrinder.infra.spring.RemainedPathMethodArgumentResolver" />
			<bean class="org.springframework.data.web.PageableArgumentResolver" />
		</mvc:argument-resolvers>

	</mvc:annotation-driven>
	
	<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver">
		<property name="order" value="0" />
	</bean>
	
	<!-- customization to search RequestMapping in the parent context -->
	<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping">
		<property name="detectHandlerMethodsInAncestorContexts" value="true" />
		<property name="interceptors">
			<list>
				<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
					<property name="paramName" value="lang" />
				</bean>
			</list>
		</property>
	</bean>

	<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
		<property name="templateLoaderPath" value="/WEB-INF/ftl/" />
		<property name="freemarkerSettings">
			<props>
				<prop key="defaultEncoding">UTF-8</prop>
			</props>
		</property>
	</bean>

	<bean id="freemarkerResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
		<property name="order" value="1" />
		<property name="viewClass" value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />
		<property name="prefix" value="/" />
		<property name="suffix" value=".ftl" />
		<property name="requestContextAttribute" value="req" />
		<property name="attributes">
			<props>
				<prop key="nGrinderVersion">${ngrinder.version}</prop>
			</props>
		</property>
		<property name="contentType" value="text/html;charset=UTF-8" />
		<property name="exposeSpringMacroHelpers" value="true" />
		<property name="cache" value="yes" />
	</bean>


	<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
		<property name="defaultLocale" value="en" />
	</bean>

	<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<property name="maxUploadSize" value="50000000" />
		<property name="defaultEncoding" value="utf-8" />
	</bean>

	<!-- resources exclusions from servlet mapping -->
	<mvc:resources mapping="/css/**" location="/css/" />
	<mvc:resources mapping="/img/**" location="/img/" />
	<mvc:resources mapping="/js/**" location="/js/" />
	<mvc:resources mapping="/chart/**" location="/chart/" />
	<mvc:resources mapping="/plugins/**" location="/plugins/" />

</beans><commit_msg>[NGRINDER-484] Change cookie name to ngrinder_lang to reduce confliction<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: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.1.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

	<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:internal.properties</value>
			</list>
		</property>
	</bean>
	<!-- Configures support for @Controllers -->
	<mvc:annotation-driven>
		<mvc:argument-resolvers>
			<bean class="org.ngrinder.infra.spring.UserHandlerMethodArgumentResolver">
				<property name="userContext" ref="userContext" />
				<property name="userService" ref="userService" />
			</bean>
			<bean class="org.ngrinder.infra.spring.RemainedPathMethodArgumentResolver" />
			<bean class="org.springframework.data.web.PageableArgumentResolver" />
		</mvc:argument-resolvers>

	</mvc:annotation-driven>
	
	<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver">
		<property name="order" value="0" />
	</bean>
	
	<!-- customization to search RequestMapping in the parent context -->
	<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping">
		<property name="detectHandlerMethodsInAncestorContexts" value="true" />
		<property name="interceptors">
			<list>
				<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
					<property name="paramName" value="lang" />
				</bean>
			</list>
		</property>
	</bean>

	<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
		<property name="templateLoaderPath" value="/WEB-INF/ftl/" />
		<property name="freemarkerSettings">
			<props>
				<prop key="defaultEncoding">UTF-8</prop>
			</props>
		</property>
	</bean>

	<bean id="freemarkerResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
		<property name="order" value="1" />
		<property name="viewClass" value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />
		<property name="prefix" value="/" />
		<property name="suffix" value=".ftl" />
		<property name="requestContextAttribute" value="req" />
		<property name="attributes">
			<props>
				<prop key="nGrinderVersion">${ngrinder.version}</prop>
			</props>
		</property>
		<property name="contentType" value="text/html;charset=UTF-8" />
		<property name="exposeSpringMacroHelpers" value="true" />
		<property name="cache" value="yes" />
	</bean>


	<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
		<property name="defaultLocale" value="en" />
		<property name="cookieName" value="ngrinder_lang"/>
	</bean>

	<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<property name="maxUploadSize" value="50000000" />
		<property name="defaultEncoding" value="utf-8" />
	</bean>

	<!-- resources exclusions from servlet mapping -->
	<mvc:resources mapping="/css/**" location="/css/" />
	<mvc:resources mapping="/img/**" location="/img/" />
	<mvc:resources mapping="/js/**" location="/js/" />
	<mvc:resources mapping="/chart/**" location="/chart/" />
	<mvc:resources mapping="/plugins/**" location="/plugins/" />

</beans>
{'fraction_non_alphanumeric': 0.17347877513470888, 'fraction_numerical': 0.008542515442239454, 'mean_word_length': 5.341666666666667, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 2, '>': 152, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 2, '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': '6644734', 'n_tokens_mistral': 2566, 'n_tokens_neox': 2339, 'n_words': 340}