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

    <context:component-scan base-package="org.itevents.security"/>
    <http realm="itevents" use-expressions="true"
          entry-point-ref="restAuthenticationEntryPoint">
        <csrf disabled="true"/>
        <intercept-url pattern="/admin**" access='hasRole("admin")'/>
        <intercept-url pattern="/users/register" access='isAnonymous()'/>
        <intercept-url pattern="/events/*/assign" access='isAuthenticated()'/>
        <intercept-url pattern="/events/*/unassign" access='isAuthenticated()'/>
        <intercept-url pattern="/**" access="permitAll()"/>
        <form-login login-processing-url="/login"
                    authentication-success-handler-ref="authenticationSuccessHandler"
                    authentication-failure-handler-ref="authenticationFailureHandler"
                    username-parameter="username"
                    password-parameter="password"/>
        <logout logout-url="/logout"
                success-handler-ref="logoutSuccessHandler"/><commit_msg>security rules added<commit_after><beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:context="http://www.springframework.org/schema/context"
             xmlns="http://www.springframework.org/schema/security"
             xsi:schemaLocation="http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/security
		http://www.springframework.org/schema/security/spring-security.xsd
		http://www.springframework.org/schema/context
		http://www.springframework.org/schema/context/spring-context.xsd">

    <context:component-scan base-package="org.itevents.security"/>
    <http realm="itevents" use-expressions="true"
          entry-point-ref="restAuthenticationEntryPoint">
        <csrf disabled="true"/>
        <intercept-url pattern="/admin**" access='hasRole("admin")'/>
        <intercept-url pattern="/users/register" access='isAnonymous()'/>
        <intercept-url pattern="/events/*/assign" access='isAuthenticated()'/>
        <intercept-url pattern="/events/*/unassign" access='isAuthenticated()'/>
        <intercept-url pattern="/events/*/visitors" access='isAnonymous()'/>
        <intercept-url pattern="/users/*/events" access='isAuthenticated()'/>
        <intercept-url pattern="/**" access="permitAll()"/>
        <form-login login-processing-url="/login"
                    authentication-success-handler-ref="authenticationSuccessHandler"
                    authentication-failure-handler-ref="authenticationFailureHandler"
                    username-parameter="username"
                    password-parameter="password"/>
        <logout logout-url="/logout"
                success-handler-ref="logoutSuccessHandler"/>
{'fraction_non_alphanumeric': 0.1553784860557769, 'fraction_numerical': 0.0028457598178713715, 'mean_word_length': 3.2095808383233533, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2268681', 'n_tokens_mistral': 969, 'n_tokens_neox': 929, 'n_words': 93}