<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:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

	<mvc:default-servlet-handler />

	<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
		<property name="messageConverters">
			<bean class="org.springframework.http.converter.BufferedImageHttpMessageConverter" />
		</property>
		<property name="order" value="0"/>
	</bean>

	<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
		<property name="order" value="0"/>
	</bean>

	<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location" value="/WEB-INF/sparklr.properties" />
	</bean>

	<!--Basic application beans. -->
	<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/jsp/" />
		<property name="suffix" value=".jsp" />
	</bean>

	<bean id="sparklrController" class="org.springframework.security.oauth.examples.tonr.mvc.SparklrController">
		<property name="sparklrService" ref="sparklrService" />
	</bean>

	<bean id="facebookController" class="org.springframework.security.oauth.examples.tonr.mvc.FacebookController">
		<property name="facebookRestTemplate">
			<bean class="org.springframework.security.oauth2.consumer.OAuth2RestTemplate">
				<constructor-arg ref="facebook" />
				<property name="messageConverters">
					<list>
						<bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
							<property name="supportedMediaTypes">
								<list>
									<bean class="org.springframework.http.MediaType">
										<!--facebook sends its json as text/javascript for some reason -->
										<constructor-arg value="text" />
										<constructor-arg value="javascript" />
									</bean>
									<bean class="org.springframework.http.MediaType">
										<constructor-arg value="application" />
										<constructor-arg value="json" />
									</bean>
								</list>
							</property>
						</bean>
					</list>
				</property>
			</bean>
		</property>
		<property name="tokenServices" ref="oauth2TokenServices" />
	</bean>

	<bean id="sparklrService" class="org.springframework.security.oauth.examples.tonr.impl.SparklrServiceImpl">
		<property name="sparklrPhotoListURL" value="${sparklrPhotoListURL}" />
		<property name="sparklrPhotoURLPattern" value="${sparklrPhotoURLPattern}" />
		<property name="sparklrRestTemplate">
			<bean class="org.springframework.security.oauth2.consumer.OAuth2RestTemplate">
				<constructor-arg ref="sparklr" />
			</bean>
		</property>
		<property name="tokenServices" ref="oauth2TokenServices" />
	</bean>

</beans>
<commit_msg>SECOAUTH-105: fix broken config file<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:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

	<mvc:default-servlet-handler />

	<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
		<property name="messageConverters">
			<bean class="org.springframework.http.converter.BufferedImageHttpMessageConverter" />
		</property>
		<property name="order" value="0"/>
	</bean>

	<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
		<property name="order" value="0"/>
	</bean>

	<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location" value="/WEB-INF/sparklr.properties" />
	</bean>

	<!--Basic application beans. -->
	<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/jsp/" />
		<property name="suffix" value=".jsp" />
	</bean>

	<bean id="sparklrController" class="org.springframework.security.oauth.examples.tonr.mvc.SparklrController">
		<property name="sparklrService" ref="sparklrService" />
	</bean>

	<bean id="facebookController" class="org.springframework.security.oauth.examples.tonr.mvc.FacebookController">
		<property name="facebookRestTemplate">
			<bean class="org.springframework.security.oauth2.consumer.client.OAuth2RestTemplate">
				<constructor-arg ref="facebook" />
				<property name="messageConverters">
					<list>
						<bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
							<property name="supportedMediaTypes">
								<list>
									<bean class="org.springframework.http.MediaType">
										<!--facebook sends its json as text/javascript for some reason -->
										<constructor-arg value="text" />
										<constructor-arg value="javascript" />
									</bean>
									<bean class="org.springframework.http.MediaType">
										<constructor-arg value="application" />
										<constructor-arg value="json" />
									</bean>
								</list>
							</property>
						</bean>
					</list>
				</property>
			</bean>
		</property>
		<property name="tokenServices" ref="oauth2TokenServices" />
	</bean>

	<bean id="sparklrService" class="org.springframework.security.oauth.examples.tonr.impl.SparklrServiceImpl">
		<property name="sparklrPhotoListURL" value="${sparklrPhotoListURL}" />
		<property name="sparklrPhotoURLPattern" value="${sparklrPhotoURLPattern}" />
		<property name="sparklrRestTemplate">
			<bean class="org.springframework.security.oauth2.consumer.client.OAuth2RestTemplate">
				<constructor-arg ref="sparklr" />
			</bean>
		</property>
		<property name="tokenServices" ref="oauth2TokenServices" />
	</bean>

</beans>

{'fraction_non_alphanumeric': 0.15902237740041264, 'fraction_numerical': 0.006824313601015711, 'mean_word_length': 4.528070175438597, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 2, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1881393', 'n_tokens_mistral': 2252, 'n_tokens_neox': 1857, 'n_words': 262}