<commit_before><beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
				http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

	<!-- The controllers are autodetected POJOs labeled with the @Controller annotation. -->
	<context:component-scan base-package="TO_BE_CHANGED_BY_LISTENER" use-default-filters="false">
		<context:include-filter type="annotation"
			expression="org.springframework.stereotype.Controller" />
	</context:component-scan>
	
	<!-- map a few default URLs to tiles definitions, this is needed to enable localization of messages -->
	<bean name="/index" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	<bean name="/dataAccessFailure" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	<bean name="/resourceNotFound" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	<bean name="/uncaughtException" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
	
	<!-- register locale change interceptor which allows language change by appending ?lang=de to a URL -->
	<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
		<property name="interceptors">
			<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="lang" />
		</property>
	</bean>	

	<!-- Resolves logical view names returned by Controllers to Tiles; a view
		 name to resolve is treated as the name of a tiles definition -->
	<bean id="tilesViewResolver" class="org.springframework.js.ajax.AjaxUrlBasedViewResolver">
		<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
	</bean>

	<!-- Configures the Tiles layout system -->
	<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
		<property name="definitions">
			<list>
				<value>/WEB-INF/layouts/layouts.xml</value>
				<value>/WEB-INF/jsp/views.xml</value>
			</list>
		</property>
	</bean>

	<!-- resolves localized messages.properties files in the application to	allow for internationalization --><commit_msg>ROO-8: Review templating approach to be more flexible and allow better custom branding of generated applications <commit_after><beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
				http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

	<!-- The controllers are autodetected POJOs labeled with the @Controller annotation. -->
	<context:component-scan base-package="TO_BE_CHANGED_BY_LISTENER" use-default-filters="false">
		<context:include-filter type="annotation"
			expression="org.springframework.stereotype.Controller" />
	</context:component-scan>
	
	<!-- register locale change interceptor which allows language change by appending ?lang=de to a URL -->
	<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
		<property name="interceptors">
			<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="lang" />
		</property>
		<property name="order" value="2"></property>
	</bean>	
	
	<!-- in addition to mapping of Pojo's annotated with @Controller we also want to map a few static 
		 resources such as index -->
	<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
		<property name="interceptors">
			<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="lang" />
		</property>
		<property name="mappings">
			<value>
				/index=noOpController
				/dataAccessFailure=noOpController
				/resourceNotFound=noOpController
				/uncaughtException=noOpController
			</value>
		</property>
		<property name="order" value="1"></property>
	</bean>
	
	<!-- map a few default URLs to tiles definitions, this is needed to enable localization of messages -->
	<bean id="noOpController" class="org.springframework.web.servlet.mvc.UrlFilenameViewController" />

	<!-- Resolves logical view names returned by Controllers to Tiles; a view
		 name to resolve is treated as the name of a tiles definition -->
	<bean id="tilesViewResolver" class="org.springframework.js.ajax.AjaxUrlBasedViewResolver">
		<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
	</bean>

	<!-- Configures the Tiles layout system -->
	<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
		<property name="definitions">
			<list>
				<value>/WEB-INF/layouts/layouts.xml</value>
				<value>/WEB-INF/jsp/views.xml</value>
			</list>
		</property>
	</bean>

	<!-- resolves localized messages.properties files in the application to	allow for internationalization -->
{'fraction_non_alphanumeric': 0.13830382106244174, 'fraction_numerical': 0.005778191985088537, 'mean_word_length': 5.097727272727273, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, 'xml': 12}, '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': '6653748', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1528, 'n_words': 320}