<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
	Copyright (c) 2005-2008 Intalio inc.

	All rights reserved. This program and the accompanying materials
	are made available under the terms of the Eclipse Public License v1.0
	which accompanies this distribution, and is available at
	http://www.eclipse.org/legal/epl-v10.html

	Contributors:
	Intalio inc. - initial API and implementation
-->


<beans>

	<bean id="realms" class="org.intalio.tempo.security.impl.Realms">
		<property name="defaultRealm" value="intalio"/>
		<property name="securityProviders">
			<list>
				<ref bean="securityProvider"/>
			</list>
		</property>
	</bean>

	<!-- Uncomment this section to enable Simple support -->
	<!-- <bean id="securityProvider" class="org.intalio.tempo.security.simple.SimpleSecurityProvider" init-method="init">
		<property name="configFile">
			<value>${org.intalio.tempo.configDirectory}/security.xml</value>
		</property>
	</bean> -->

	<bean id="securityProvider" class="org.intalio.tempo.security.ldap.LDAPSecurityProvider">
		<property name="propertiesFile">
			<value>${org.intalio.tempo.configDirectory}/ldap.properties</value>
		</property>
	</bean> 

	<bean id="tokenHandler" class="org.intalio.tempo.security.impl.TokenHandler">
		<property name="secret"><value>mySecret</value></property>
	</bean>

	<!-- 
		<bean id="tokenService" class="org.intalio.tempo.security.impl.TokenServiceImpl">
			<property name="realms"><ref bean="realms"/></property>
			<property name="tokenHandler"><ref bean="tokenHandler"/></property>
		</bean>
	-->
	<bean id="tokenService"
		class="org.intalio.tempo.security.impl.TokenServiceImpl">
		<constructor-arg index="0" ref="realms" />
		<constructor-arg index="1" value="https://localhost:8443/cas/proxyValidate" />
		<property name="tokenHandler"><ref bean="tokenHandler" /></property>
		<property name="cacheRoles"><ref bean="false" /></property>
	</bean>

</beans><commit_msg>wrong ref for configuration of cache roles<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
	Copyright (c) 2005-2008 Intalio inc.

	All rights reserved. This program and the accompanying materials
	are made available under the terms of the Eclipse Public License v1.0
	which accompanies this distribution, and is available at
	http://www.eclipse.org/legal/epl-v10.html

	Contributors:
	Intalio inc. - initial API and implementation
-->


<beans>

	<bean id="realms" class="org.intalio.tempo.security.impl.Realms">
		<property name="defaultRealm" value="intalio"/>
		<property name="securityProviders">
			<list>
				<ref bean="securityProvider"/>
			</list>
		</property>
	</bean>

	<!-- Uncomment this section to enable Simple support -->
	<!-- <bean id="securityProvider" class="org.intalio.tempo.security.simple.SimpleSecurityProvider" init-method="init">
		<property name="configFile">
			<value>${org.intalio.tempo.configDirectory}/security.xml</value>
		</property>
	</bean> -->

	<bean id="securityProvider" class="org.intalio.tempo.security.ldap.LDAPSecurityProvider">
		<property name="propertiesFile">
			<value>${org.intalio.tempo.configDirectory}/ldap.properties</value>
		</property>
	</bean> 

	<bean id="tokenHandler" class="org.intalio.tempo.security.impl.TokenHandler">
		<property name="secret"><value>mySecret</value></property>
	</bean>

	<!-- 
		<bean id="tokenService" class="org.intalio.tempo.security.impl.TokenServiceImpl">
			<property name="realms"><ref bean="realms"/></property>
			<property name="tokenHandler"><ref bean="tokenHandler"/></property>
		</bean>
	-->
	<bean id="tokenService"
		class="org.intalio.tempo.security.impl.TokenServiceImpl">
		<constructor-arg index="0" ref="realms" />
		<constructor-arg index="1" value="https://localhost:8443/cas/proxyValidate" />
		<property name="tokenHandler"><ref bean="tokenHandler" /></property>
        <property name="cacheRoles" value="false"/>
	</bean>

</beans>
{'fraction_non_alphanumeric': 0.17207712960702953, 'fraction_numerical': 0.010251403465950696, 'mean_word_length': 4.930535455861071, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 2, '>': 105, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '740277', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1289, 'n_words': 254}