<commit_before><!--  
   Copyright 2008 University of Rochester

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->   

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:s="http://www.springframework.org/schema/security"
    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/security http://www.springframework.org/schema/security/spring-security-2.0.1.xsd">

<!-- ****************************************** --> 
<!-- Acegi Security                             -->
<!-- ****************************************** -->  

  <s:http auto-config="false" entry-point-ref="authenticationProcessingFilterEntryPoint" access-denied-page="/accessDenied.jsp">
  
    <!--  don't filter on the login page -->
    <s:intercept-url pattern="/acegilogin.jsp*" filters="none"/> 
    
    <!-- Secure admin and user paths -->
    <s:intercept-url pattern="/admin/**" access="ROLE_ADMIN, ROLE_COLLECTION_ADMIN" />
    <s:intercept-url pattern="/user/**" access="ROLE_USER" />
    
    <!--  uses default value of j_spring_security_logout for logging out directes to index.jsp -->
    <s:logout/>
    
  </s:http>
  
  <bean id="authenticationProcessingFilter"
      class="edu.ur.ir.web.spring.security.UrAuthenticationProcessingFilter">
	    <s:custom-filter position="AUTHENTICATION_PROCESSING_FILTER"/>
	    <property name="userService" ref="userService"/>
		<property name="authenticationManager" ref="authenticationManager"/>
		<property name="authenticationFailureUrl" value="/acegilogin.jsp?login_error=1"/>
		<property name="defaultTargetUrl" value="/user/workspace.action"/>
		<property name="filterProcessesUrl" value="/j_spring_security_check"/>
		<property name="ldapEnabled" value="true"/>
  </bean>
  <commit_msg>updated with ldap enabled flag<commit_after><!--  
   Copyright 2008 University of Rochester

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->   

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:s="http://www.springframework.org/schema/security"
    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/security http://www.springframework.org/schema/security/spring-security-2.0.1.xsd">

<!-- ****************************************** --> 
<!-- Acegi Security                             -->
<!-- ****************************************** -->  

  <s:http auto-config="false" entry-point-ref="authenticationProcessingFilterEntryPoint" access-denied-page="/accessDenied.jsp">
  
    <!--  don't filter on the login page -->
    <s:intercept-url pattern="/acegilogin.jsp*" filters="none"/> 
    
    <!-- Secure admin and user paths -->
    <s:intercept-url pattern="/admin/**" access="ROLE_ADMIN, ROLE_COLLECTION_ADMIN" />
    <s:intercept-url pattern="/user/**" access="ROLE_USER" />
    
    <!--  uses default value of j_spring_security_logout for logging out directes to index.jsp -->
    <s:logout/>
    
  </s:http>
  
  <bean id="authenticationProcessingFilter"
      class="edu.ur.ir.web.spring.security.UrAuthenticationProcessingFilter">
	    <s:custom-filter position="AUTHENTICATION_PROCESSING_FILTER"/>
	    <property name="userService" ref="userService"/>
		<property name="authenticationManager" ref="authenticationManager"/>
		<property name="authenticationFailureUrl" value="/acegilogin.jsp?login_error=1"/>
		<property name="defaultTargetUrl" value="/user/workspace.action"/>
		<property name="filterProcessesUrl" value="/j_spring_security_check"/>
		<property name="ldapEnabled" value="${ldap.enabled}"/>
  </bean>
  
{'fraction_non_alphanumeric': 0.16536082474226804, 'fraction_numerical': 0.007835051546391752, 'mean_word_length': 3.9198782961460448, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, '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': '6098065', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1341, 'n_words': 316}