<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
This applicationContext contains the definition of the DAOs
-->

<beans
        xmlns="http://www.springframework.org/schema/beans"
        xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
			http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
			http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
			http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
        default-lazy-init="true">

    <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" autowire="byName"/>

    <bean id="medDRADao" class="gov.nih.nci.cabig.caaers.dao.MedDRADao">
        <property name="jdbcTemplate">
            <ref bean="jdbcTemplate"/>
        </property>
        <property name="properties" ref="caaersDatasourceFactoryBean"/>
    </bean>

    <!-- HIBERNATE CONFIGURATION -->

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
          autowire="byName">
        <property name="mappingLocations">
            <list>
                <value>classpath:gov/nih/nci/cabig/caaers/domain/hibernate/typedefs.hbm.xml</value>
              <value>classpath*:/org/jbpm/**/*.hbm.xml</value>
            </list>
        </property>
        
        <property name="namingStrategy">
            <bean class="gov.nih.nci.cabig.caaers.tools.hibernate.WonderfulNamingStrategy"/>
        </property>
        <property name="annotatedClasses">
            <list>
                <value>gov.nih.nci.cabig.caaers.domain.AdverseEvent</value>
                <value>gov.nih.nci.cabig.caaers.domain.Participant</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPreExistingCondition</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantConcomitantMedication</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantMetastaticDiseaseSite</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantDiseaseHistory</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPriorTherapy</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPriorTherapyAgent</value>
                <value>gov.nih.nci.cabig.caaers.domain.Study</value>
                <value>gov.nih.nci.cabig.caaers.domain.Organization</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudySite</value><commit_msg>commented as testing is still pending<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
This applicationContext contains the definition of the DAOs
-->

<beans
        xmlns="http://www.springframework.org/schema/beans"
        xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
			http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
			http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
			http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
        default-lazy-init="true">

    <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" autowire="byName"/>

    <bean id="medDRADao" class="gov.nih.nci.cabig.caaers.dao.MedDRADao">
        <property name="jdbcTemplate">
            <ref bean="jdbcTemplate"/>
        </property>
        <property name="properties" ref="caaersDatasourceFactoryBean"/>
    </bean>

    <!-- HIBERNATE CONFIGURATION -->

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
          autowire="byName">
        <property name="mappingLocations">
            <list>
                <value>classpath:gov/nih/nci/cabig/caaers/domain/hibernate/typedefs.hbm.xml</value>
         <!--      <value>classpath*:/org/jbpm/**/*.hbm.xml</value> -->
            </list>
        </property>
        
        <property name="namingStrategy">
            <bean class="gov.nih.nci.cabig.caaers.tools.hibernate.WonderfulNamingStrategy"/>
        </property>
        <property name="annotatedClasses">
            <list>
                <value>gov.nih.nci.cabig.caaers.domain.AdverseEvent</value>
                <value>gov.nih.nci.cabig.caaers.domain.Participant</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPreExistingCondition</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantConcomitantMedication</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantMetastaticDiseaseSite</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantDiseaseHistory</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPriorTherapy</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudyParticipantPriorTherapyAgent</value>
                <value>gov.nih.nci.cabig.caaers.domain.Study</value>
                <value>gov.nih.nci.cabig.caaers.domain.Organization</value>
                <value>gov.nih.nci.cabig.caaers.domain.StudySite</value>
{'fraction_non_alphanumeric': 0.14643304130162704, 'fraction_numerical': 0.005363847666726265, 'mean_word_length': 2.810626702997275, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 2, '>': 102, 'https://': 0, 'lorem ipsum': 0, 'www.': 18, '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': '5400464', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1794, 'n_words': 148}