<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!-- All specific security configuration should be defined here -->

<beans>

   <!-- ======================== FILTER CHAIN ======================= -->

   <!-- this is referenced by a filter configuration in the webapp web.xml file
        filter chain is:
        Acegi Session Context Integration Filter - required, storing authentication info in session
        Acegi Authentication Processing Filter - UI to obtain principal (username) and credentials (password)
        Acegi Request Wrapper - so standard Servlet API still works, e.g. getRemoteUser
        Acegi HTTP Request Security Filter - perform authentication and authorization
   
        note: if you wish to use channel security, add "channelProcessingFilter," in front
              of "httpSessionContextIntegrationFilter" in the list below 
   -->
   <bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">
      <property name="filterInvocationDefinitionSource">
         <value>
            CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
            PATTERN_TYPE_APACHE_ANT
            /**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,requestWrapper,exceptionTranslationFilter,filterInvocationInterceptor
         </value>
      </property>
   </bean>

  <bean id="httpSessionContextIntegrationFilter" class="org.acegisecurity.context.HttpSessionContextIntegrationFilter"/>



  <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
    <property name="providers">
      <list>
        <ref bean="localXmlConfigAuthenticationProvider"/>
        <ref bean="localLavaAuthUserAuthenticationProvider"/>
             
      </list>
    </property>
  </bean>
  
    <!-- Password Delegates must be configured for each authentication provider enabled above -->
  	<bean id="localPasswordDelegate" class="edu.ucsf.lava.core.auth.DefaultPasswordDelegate">
		<property name="passwordDelegates"><ref bean="passwordDelegates"/></property>
  	</bean>

	<bean id="xmlConfigPasswordDelegate" class="edu.ucsf.lava.core.auth.XmlConfigPasswordDelegate">
		<property name="passwordDelegates"><ref bean="passwordDelegates"/></property>
	</bean>

  
  
  	
  <bean id="localXmlConfigAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
  	<property name="userDetailsService"><ref bean="localXmlConfigDaoImpl"/></property>
  </bean>
	
   <bean id="localXmlConfigDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
     <property name="userMap">
       <value>
          charlie=charlie,ROLE_USER
          joe=joe,ROLE_USER
          demo=demo,ROLE_USER
          admin=admin,ROLE_USER
          dan=dan,ROLE_USER
          robin=robin,ROLE_USER
    </value>
  </property>
</bean>    
<bean id="localLavaAuthUserAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
  	<property name="userDetailsService"><ref bean="authManager"/></property>
	<property name="saltSource"><ref bean="localPasswordSaltSource"/></property>
	<property name="passwordEncoder"><ref bean="localPasswordEncoder"/></property>
	
  </bean>
  <bean id="localPasswordEncoder" class="edu.ucsf.lava.core.auth.DefaultPasswordEncoder"/><commit_msg>*** empty log message ***<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!-- All specific security configuration should be defined here -->

<beans>

   <!-- ======================== FILTER CHAIN ======================= -->

   <!-- this is referenced by a filter configuration in the webapp web.xml file
        filter chain is:
        Acegi Session Context Integration Filter - required, storing authentication info in session
        Acegi Authentication Processing Filter - UI to obtain principal (username) and credentials (password)
        Acegi Request Wrapper - so standard Servlet API still works, e.g. getRemoteUser
        Acegi HTTP Request Security Filter - perform authentication and authorization
   
        note: if you wish to use channel security, add "channelProcessingFilter," in front
              of "httpSessionContextIntegrationFilter" in the list below 
   -->
   <bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">
      <property name="filterInvocationDefinitionSource">
         <value>
            CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
            PATTERN_TYPE_APACHE_ANT
            /**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,requestWrapper,exceptionTranslationFilter,filterInvocationInterceptor
         </value>
      </property>
   </bean>

  <bean id="httpSessionContextIntegrationFilter" class="org.acegisecurity.context.HttpSessionContextIntegrationFilter"/>



  <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
    <property name="providers">
      <list>
        <ref bean="localXmlConfigAuthenticationProvider"/>
        <ref bean="localLavaAuthUserAuthenticationProvider"/>
             
      </list>
    </property>
  </bean>
  
    <!-- Password Delegates must be configured for each authentication provider enabled above -->
  	<bean id="localPasswordDelegate" class="edu.ucsf.lava.core.auth.DefaultPasswordDelegate">
		<property name="passwordDelegates"><ref bean="passwordDelegates"/></property>
  	</bean>

	<bean id="xmlConfigPasswordDelegate" class="edu.ucsf.lava.core.auth.XmlConfigPasswordDelegate">
		<property name="passwordDelegates"><ref bean="passwordDelegates"/></property>
	</bean>

  
  
  	
  <bean id="localXmlConfigAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
  	<property name="userDetailsService"><ref bean="localXmlConfigDaoImpl"/></property>
  </bean>
	
   <bean id="localXmlConfigDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
     <property name="userMap">
       <value>
          demo=demo,ROLE_USER
          admin=admin,ROLE_USER
      </value>
  </property>
</bean>    
<bean id="localLavaAuthUserAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
  	<property name="userDetailsService"><ref bean="authManager"/></property>
	<property name="saltSource"><ref bean="localPasswordSaltSource"/></property>
	<property name="passwordEncoder"><ref bean="localPasswordEncoder"/></property>
	
  </bean>
  <bean id="localPasswordEncoder" class="edu.ucsf.lava.core.auth.DefaultPasswordEncoder"/>
{'fraction_non_alphanumeric': 0.1263126312631263, 'fraction_numerical': 0.0009000900090009, 'mean_word_length': 4.245476003147128, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 2, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '2139906', 'n_tokens_mistral': 1850, 'n_tokens_neox': 1788, 'n_words': 373}