<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:beans="http://www.springframework.org/schema/beans"
  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-4.1.xsd
           http://www.springframework.org/schema/security
           http://www.springframework.org/schema/security/spring-security-3.2.xsd">
                                            
    <http auto-config='true' >
        <intercept-url pattern="/index.htm*" access="ROLE_USER" />
        <form-login login-page='/login.htm' default-target-url='/index.htm' always-use-default-target='true' />
    
        <logout logout-success-url="/loggedout.htm"/>
    </http>
    
    <authentication-manager>
        <authentication-provider>
            <user-service>
                <user name="demouser" password="<PASSWORD>" authorities="ROLE_USER, ROLE_ADMIN" />
                <user name="userdemo" password="<PASSWORD>" authorities="ROLE_USER" />
            </user-service>
        </authentication-provider>
    </authentication-manager><commit_msg>Put api behind spring security.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:beans="http://www.springframework.org/schema/beans"
  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-4.1.xsd
           http://www.springframework.org/schema/security
           http://www.springframework.org/schema/security/spring-security-3.2.xsd">
                                            
    <http auto-config='true' >
        <intercept-url pattern="/index.htm*" access="ROLE_USER" />
        <intercept-url pattern="/api/whisky/*" access="ROLE_USER" />
        <form-login login-page='/login.htm' default-target-url='/index.htm' always-use-default-target='true' />
    
        <logout logout-success-url="/loggedout.htm"/>
    </http>
    
    <authentication-manager>
        <authentication-provider>
            <user-service>
                <user name="demouser" password="<PASSWORD>" authorities="ROLE_USER, ROLE_ADMIN" />
                <user name="userdemo" password="<PASSWORD>" authorities="ROLE_USER" />
            </user-service>
        </authentication-provider>
    </authentication-manager>
{'fraction_non_alphanumeric': 0.1609870740305523, 'fraction_numerical': 0.009400705052878966, 'mean_word_length': 2.6642754662840744, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 2, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '133382', 'n_tokens_mistral': 772, 'n_tokens_neox': 743, 'n_words': 82}