<commit_before><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
		  "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
	<bean id="hibernateProperties"
		class="org.springframework.beans.factory.config.PropertiesFactoryBean">
		<property name="properties">
			<props>
				<prop key="hibernate.dialect">
					${hibernate.dialect}
				</prop>
				<prop key="hibernate.show_sql">
					${hibernate.show_sql}
				</prop>
				<prop key="hibernate.hbm2ddl.auto">
					${hibernate.hbm2ddl.auto}
				</prop>
				<prop key="jdbc.fetch_size">50</prop>
				<prop key="jdbc.batch_size">25</prop>
				<prop key="hibernate.cache.use_query_cache">true</prop>
				<prop key="hibernate.cache.provider_class">
					org.hibernate.cache.EhCacheProvider
				</prop>
				<prop key="hibernate.query.substitutions">
					true 1,false 0
				</prop>
			</props>
		</property>
	</bean>
	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
		<property name="dataSource" ref="dataSource" />
		<property name="hibernateProperties" ref="hibernateProperties" />
		<property name="mappingLocations">
			<list>
				<value>
					classpath*:/cn/net/openid/jos/dao/hibernate/*.xml
				</value>
			</list>
		</property>
	</bean>


	<!-- ================ DAO DEFINITIONS ================ -->

	<bean id="baseDao"
		class="cn.net.openid.jos.dao.hibernate.BaseHibernateEntityDao"
		abstract="true">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>

	<bean id="domainDao"
		class="cn.net.openid.jos.dao.hibernate.HibernateDomainDao"
		parent="baseDao" />
	<bean id="userDao"
		class="cn.net.openid.jos.dao.hibernate.HibernateUserDao"
		parent="baseDao" />
	<bean id="passwordDao"
		class="cn.net.openid.jos.dao.hibernate.HibernatePasswordDao"<commit_msg>Avoid to use wildcard as it will cause org.hibernate.DuplicateMappingException when duplicate jos-hibernate-*.jar found in the classpath.<commit_after><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
		  "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
	<bean id="hibernateProperties"
		class="org.springframework.beans.factory.config.PropertiesFactoryBean">
		<property name="properties">
			<props>
				<prop key="hibernate.dialect">
					${hibernate.dialect}
				</prop>
				<prop key="hibernate.show_sql">
					${hibernate.show_sql}
				</prop>
				<prop key="hibernate.hbm2ddl.auto">
					${hibernate.hbm2ddl.auto}
				</prop>
				<prop key="jdbc.fetch_size">50</prop>
				<prop key="jdbc.batch_size">25</prop>
				<prop key="hibernate.cache.use_query_cache">true</prop>
				<prop key="hibernate.cache.provider_class">
					org.hibernate.cache.EhCacheProvider
				</prop>
				<prop key="hibernate.query.substitutions">
					true 1,false 0
				</prop>
			</props>
		</property>
	</bean>
	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
		<property name="dataSource" ref="dataSource" />
		<property name="hibernateProperties" ref="hibernateProperties" />
		<property name="mappingLocations">
			<list>
				<!--
					Avoid to use wildcard as it will cause
					org.hibernate.DuplicateMappingException
					when duplicate jos-hibernate-*.jar found in the classpath
				<value>
					classpath*:/cn/net/openid/jos/dao/hibernate/*.xml
				</value>
				-->
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Attribute.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/AttributeValue.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Domain.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Email.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/EmailConfirmationInfo.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Password.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Persona.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Realm.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/Site.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/User.hbm.xml</value>
				<value>classpath:/cn/net/openid/jos/dao/hibernate/UsernameConfiguration.hbm.xml</value>
			</list>
		</property>
	</bean>


	<!-- ================ DAO DEFINITIONS ================ -->

	<bean id="baseDao"
		class="cn.net.openid.jos.dao.hibernate.BaseHibernateEntityDao"
		abstract="true">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>

	<bean id="domainDao"
		class="cn.net.openid.jos.dao.hibernate.HibernateDomainDao"
		parent="baseDao" />
	<bean id="userDao"
		class="cn.net.openid.jos.dao.hibernate.HibernateUserDao"
		parent="baseDao" />
	<bean id="passwordDao"
		class="cn.net.openid.jos.dao.hibernate.HibernatePasswordDao"
{'fraction_non_alphanumeric': 0.17828643427131458, 'fraction_numerical': 0.005459890802183957, 'mean_word_length': 4.116004296455424, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 13}, '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': '258041', 'n_tokens_mistral': 2027, 'n_tokens_neox': 1653, 'n_words': 209}