<commit_before><beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:mvc="http://www.springframework.org/schema/mvc"
   xsi:schemaLocation="
        http://www.springframework.org/schema/beans     
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context 
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd">

    <bean id="exceptionInterceptor" class="interceptors.ExceptionInterceptor"></bean>

    <!-- Play controllers. -->

    <bean id="proxiedController" class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="proxyTargetClass" value="true"/>
        <property name="interceptorNames">
            <list><value>exceptionInterceptor</value></list>
        </property>
    </bean>

    <bean id="controllers.Application" parent="proxiedController">
        <property name="target">
            <bean class="controllers.Application">
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <bean id="controllers.Authentication" parent="proxiedController">
        <property name="target">
            <bean class="controllers.Authentication">
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <bean id="controllers.HealthData" parent="proxiedController">
        <property name="target">
            <bean class="controllers.HealthData">
                <property name="healthDataService" ref="healthDataService"/>
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <!-- Services -->

    <bean id="authenticationService" class="org.sagebionetworks.bridge.services.AuthenticationServiceImpl"/>
    
    <bean id="healthDataService" class="org.sagebionetworks.bridge.services.HealthDataServiceImpl">
        <property name="updateMapper">
            <bean class="com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper">
                <constructor-arg index="0" ref="dynamoDbClient"/>
                <constructor-arg index="1">
                    <bean class="org.sagebionetworks.bridge.dynamodb.DynamoDBMapperConfigFactory" factory-method="getUpdateMapper"/>
                </constructor-arg>
            </bean>
        </property>
        <property name="createMapper">
            <bean class="com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper">
                <constructor-arg index="0" ref="dynamoDbClient"/>
                <constructor-arg index="1">
                    <bean class="org.sagebionetworks.bridge.dynamodb.DynamoDBMapperConfigFactory" factory-method="getCreateMapper"/>
                </constructor-arg>
            </bean>
        </property>
    </bean>
    
    <bean id="dynamoDbClient" class="com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient" scope="prototype">
        <constructor-arg>
            <bean class="com.amazonaws.auth.BasicAWSCredentials">
                <constructor-arg value="<KEY>"/>
                <constructor-arg value="m696Dq+RaZn7MumqsfXNS/z4LZfAwiN7i0t14qQt"/>
            </bean>
        </constructor-arg>
    </bean>    
    
</beans><commit_msg>And again, will have to change<commit_after><beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:mvc="http://www.springframework.org/schema/mvc"
   xsi:schemaLocation="
        http://www.springframework.org/schema/beans     
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context 
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd">

    <bean id="exceptionInterceptor" class="interceptors.ExceptionInterceptor"></bean>

    <!-- Play controllers. -->

    <bean id="proxiedController" class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="proxyTargetClass" value="true"/>
        <property name="interceptorNames">
            <list><value>exceptionInterceptor</value></list>
        </property>
    </bean>

    <bean id="controllers.Application" parent="proxiedController">
        <property name="target">
            <bean class="controllers.Application">
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <bean id="controllers.Authentication" parent="proxiedController">
        <property name="target">
            <bean class="controllers.Authentication">
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <bean id="controllers.HealthData" parent="proxiedController">
        <property name="target">
            <bean class="controllers.HealthData">
                <property name="healthDataService" ref="healthDataService"/>
                <property name="authenticationService" ref="authenticationService"/>
            </bean>
        </property>
    </bean>
    
    <!-- Services -->

    <bean id="authenticationService" class="org.sagebionetworks.bridge.services.AuthenticationServiceImpl"/>
    
    <bean id="healthDataService" class="org.sagebionetworks.bridge.services.HealthDataServiceImpl">
        <property name="updateMapper">
            <bean class="com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper">
                <constructor-arg index="0" ref="dynamoDbClient"/>
                <constructor-arg index="1">
                    <bean class="org.sagebionetworks.bridge.dynamodb.DynamoDBMapperConfigFactory" factory-method="getUpdateMapper"/>
                </constructor-arg>
            </bean>
        </property>
        <property name="createMapper">
            <bean class="com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper">
                <constructor-arg index="0" ref="dynamoDbClient"/>
                <constructor-arg index="1">
                    <bean class="org.sagebionetworks.bridge.dynamodb.DynamoDBMapperConfigFactory" factory-method="getCreateMapper"/>
                </constructor-arg>
            </bean>
        </property>
    </bean>
    
    <bean id="dynamoDbClient" class="com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient" scope="prototype">
        <constructor-arg>
            <bean class="com.amazonaws.auth.BasicAWSCredentials">
            </bean>
        </constructor-arg>
    </bean>    
    
</beans>
{'fraction_non_alphanumeric': 0.1375848416289593, 'fraction_numerical': 0.005797511312217195, 'mean_word_length': 2.6742857142857144, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 8}, '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': '4199739', 'n_tokens_mistral': 1998, 'n_tokens_neox': 1940, 'n_words': 246}