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

	<!-- Tell Spring 1. Use annotations 2. Scan a package for beans and controllers -->

	<mvc:annotation-driven />
	
	<context:component-scan base-package="com.KOIFish.FishStock" />
	<context:annotation-config />
	
	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/pages/" />
		<property name="suffix" value=".html" />
	</bean>

	<mvc:resources mapping="/pages/**" location="/" />
	<mvc:resources location="/Ang/" mapping="/Ang/**"/>
	
	<!-- aop for spring + hibernate -->
	<tx:annotation-driven/>
	
	<!-- Datasource bean -->
	<bean name="ds" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName" value="com.mysql.cj.jdbc.Driver" />
		<property name="username" value="FishStockUser" />
		<property name="password" value="<PASSWORD>" />
		<property name="url" value="jdbc:mysql://mysqldbinstance.cfqsiykloeqw.us-east-1.rds.amazonaws.com:3306/FishStock"></property>
	</bean>
	
	<!-- Session factory -->
	<bean name="sf" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
		<property name="dataSource" ref="ds" /><commit_msg>Added pool to datasource<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:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xmlns:jee="http://www.springframework.org/schema/jee"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
		http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">

	<!-- Tell Spring 1. Use annotations 2. Scan a package for beans and controllers -->

	<mvc:annotation-driven />
	
	<context:component-scan base-package="com.KOIFish.FishStock" />
	<context:annotation-config />
	
	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/pages/" />
		<property name="suffix" value=".html" />
	</bean>

	<mvc:resources mapping="/pages/**" location="/" />
	<mvc:resources location="/Ang/" mapping="/Ang/**"/>
	
	<!-- aop for spring + hibernate -->
	<tx:annotation-driven/>
	
	<!-- Datasource bean -->
	<bean name="ds" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName" value="com.mysql.cj.jdbc.Driver" />
		<property name="username" value="FishStockUser" />
		<property name="password" value="<PASSWORD>" />
		<property name="url" value="jdbc:mysql://mysqldbinstance.cfqsiykloeqw.us-east-1.rds.amazonaws.com:3306/FishStock"></property>
		<property name="poolPreparedStatements"><value>true</value></property>
        <property name="maxActive"><value>10</value></property>
        <property name="maxIdle"><value>10</value></property>
	</bean>
	
	<!-- Session factory -->
	<bean name="sf" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
		<property name="dataSource" ref="ds" />
{'fraction_non_alphanumeric': 0.18826461259628455, 'fraction_numerical': 0.011780697779791573, 'mean_word_length': 4.886666666666667, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 2, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 32, 'xml': 14}, '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': '4918309', 'n_tokens_mistral': 1512, 'n_tokens_neox': 1386, 'n_words': 175}