<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:oxm="http://www.springframework.org/schema/oxm"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd
        http://www.springframework.org/schema/tx 
        http://www.springframework.org/schema/tx/spring-tx.xsd
        http://www.springframework.org/schema/oxm
        http://www.springframework.org/schema/oxm/spring-oxm.xsd">
	
	<!--
    <mvc:annotation-driven conversion-service="conversionService">
      <mvc:message-converters register-defaults="true">
        <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
          <property name="objectMapper" ref="jacksonObjectMapper" />
        </bean>
      </mvc:message-converters>
    </mvc:annotation-driven>
    -->
    
    <mvc:annotation-driven />
        
	<context:component-scan base-package="edu.psu.sweng500.emrms" />
	    
    <bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"/>
          
    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
        <property name="prefix" value="/WEB-INF/pages/" />
        <property name="suffix" value=".jsp" />
    </bean>
                      
  <!-- Messages -->
  <bean id="messageSource" class="edu.psu.sweng500.emrms.messagesource.EMRMSMessageSource">
    <property name="basename" value="classpath:/messages"/>
  </bean>
    
  <!--
  <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host" value="${email.host}"/>
  </bean>
  -->
  
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
	  <property name="driverClassName" value="com.mysql.jdbc.Driver" />
	  <!-- <property name="url" value="jdbc:mysql//localhost:3306/emrms?autoReconnect=true&amp;createDatabaseIfNotExist=true&amp;" /> -->
	  <property name="url" value="jdbc:mysql://localhost:3306/emrms" />
	  <property name="username" value="root" />
	  <property name="password" value="<PASSWORD>" />
	</bean>
  
  	<!-- MyBatis-Spring -->
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
      <property name="dataSource" ref="dataSource" />
      <property name="typeAliasesPackage" value="edu.psu.sweng500.emrms.model"/>
      <property name="mapperLocations" value="classpath*:edu/psu/sweng500/emrms/mappers/*.xml" />
    </bean>
    
    <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
	  <constructor-arg index="0" ref="sqlSessionFactory" />
	</bean>
	
	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
	  <property name="basePackage" value="edu.psu.sweng500.emrms.mappers" />
	</bean>
	
    
    <tx:annotation-driven transaction-manager="transactionManager" />
	
    <!--  Enable Transaction Processing  -->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  	  <property name="dataSource" ref="dataSource" />
    </bean>
    
    <!-- 
    <bean id="applicationMetdataMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
      <property name="mapperInterface" value="edu.psu.sweng500.emrms.mappers.ApplicationMapper" />
      <property name="sqlSessionFactory" ref="sqlSessionFactory" />
    </bean>
    -->
       
  
</beans>
<commit_msg>Change made to add connection property to mysql database driver<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:oxm="http://www.springframework.org/schema/oxm"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd
        http://www.springframework.org/schema/tx 
        http://www.springframework.org/schema/tx/spring-tx.xsd
        http://www.springframework.org/schema/oxm
        http://www.springframework.org/schema/oxm/spring-oxm.xsd">
	
	<!--
    <mvc:annotation-driven conversion-service="conversionService">
      <mvc:message-converters register-defaults="true">
        <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
          <property name="objectMapper" ref="jacksonObjectMapper" />
        </bean>
      </mvc:message-converters>
    </mvc:annotation-driven>
    -->
    
    <mvc:annotation-driven />
        
	<context:component-scan base-package="edu.psu.sweng500.emrms" />
	    
    <bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"/>
          
    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
        <property name="prefix" value="/WEB-INF/pages/" />
        <property name="suffix" value=".jsp" />
    </bean>
                      
  <!-- Messages -->
  <bean id="messageSource" class="edu.psu.sweng500.emrms.messagesource.EMRMSMessageSource">
    <property name="basename" value="classpath:/messages"/>
  </bean>
    
  <!--
  <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host" value="${email.host}"/>
  </bean>
  -->
  
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
	  <property name="driverClassName" value="com.mysql.jdbc.Driver" />
	  <property name="url" value="jdbc:mysql://localhost:3306/emrms?autoReconnect=true&amp;createDatabaseIfNotExist=true&amp;useSSL=false" />
	  <property name="username" value="root" />
	  <property name="password" value="<PASSWORD>" />
	</bean>
  
  	<!-- MyBatis-Spring -->
	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
      <property name="dataSource" ref="dataSource" />
      <property name="typeAliasesPackage" value="edu.psu.sweng500.emrms.model"/>
      <property name="mapperLocations" value="classpath*:edu/psu/sweng500/emrms/mappers/*.xml" />
    </bean>
    
    <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
	  <constructor-arg index="0" ref="sqlSessionFactory" />
	</bean>
	
	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
	  <property name="basePackage" value="edu.psu.sweng500.emrms.mappers" />
	</bean>
	
    
    <tx:annotation-driven transaction-manager="transactionManager" />
	
    <!--  Enable Transaction Processing  -->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  	  <property name="dataSource" ref="dataSource" />
    </bean>
    
    <!-- 
    <bean id="applicationMetdataMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
      <property name="mapperInterface" value="edu.psu.sweng500.emrms.mappers.ApplicationMapper" />
      <property name="sqlSessionFactory" ref="sqlSessionFactory" />
    </bean>
    -->
       
  
</beans>

{'fraction_non_alphanumeric': 0.1612864514580583, 'fraction_numerical': 0.007920316812672508, 'mean_word_length': 3.6274292059966684, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 2, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 38, 'xml': 18}, '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': '5890096', 'n_tokens_mistral': 2643, 'n_tokens_neox': 2524, 'n_words': 278}