<commit_before><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">

    <display-name>tc-platform</display-name>

    <!-- welcome files -->
    <welcome-file-list>
        <welcome-file>/index.html</welcome-file>
    </welcome-file-list>

    <!-- spring config -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath*:/config/tc-spring-deploy.xml,
            classpath*:/config/tc-spring-cache-codis.xml,
            classpath*:/config/tc-spring-mq-metaq.xml,
            classpath*:/config/tc-spring-common-retry.xml,
            classpath*:/config/tc-spring-data-mongodb.xml,
            classpath*:/config/tc-spring-sch-ej.xml,
            classpath*:/config/tc-spring-module-region.xml,
            classpath*:/config/tc-spring-security-shiro.xml
        </param-value>
    </context-param>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!-- shiro filter -->
    <filter>
        <filter-name>shiroFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        <async-supported>true</async-supported>
        <init-param>
            <param-name>targetFilterLifecycle</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>shiroFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>shiroFilter</filter-name>
        <url-pattern>*.json</url-pattern>
    </filter-mapping>

    <!-- Gzip Filter -->
    <!--<filter>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</filter-class>-->
    <!--<async-supported>true</async-supported>-->
    <!--</filter>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.html</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.json</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.js</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.css</url-pattern>-->
    <!--</filter-mapping>-->

    <!-- etag filter -->
    <filter>
        <filter-name>etagFilter</filter-name>
        <filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class>
        <async-supported>true</async-supported>
    </filter>

    <filter-mapping>
        <filter-name>etagFilter</filter-name>
        <servlet-name>dispatcher</servlet-name>
    </filter-mapping>

    <!-- character encoding filter -->
    <filter>
        <filter-name>characterEncodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <async-supported>true</async-supported>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.json</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.js</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.css</url-pattern>
    </filter-mapping>

    <!-- spring mvc config -->
    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                classpath*:/config/tc-spring-web-deploy.xml
            </param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
        <async-supported>true</async-supported>
    </servlet>

    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name><commit_msg>web.xml (1)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">

    <display-name>tc-platform</display-name>

    <!-- welcome files -->
    <welcome-file-list>
        <welcome-file>/index.html</welcome-file>
    </welcome-file-list>

    <!-- shiro filter -->
    <filter>
        <filter-name>shiroFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        <async-supported>true</async-supported>
        <init-param>
            <param-name>targetFilterLifecycle</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>shiroFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>shiroFilter</filter-name>
        <url-pattern>*.json</url-pattern>
    </filter-mapping>

    <!-- gzip filter -->
    <!--<filter>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</filter-class>-->
    <!--<async-supported>true</async-supported>-->
    <!--</filter>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.html</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.json</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.js</url-pattern>-->
    <!--</filter-mapping>-->

    <!--<filter-mapping>-->
    <!--<filter-name>gzipFilter</filter-name>-->
    <!--<url-pattern>*.css</url-pattern>-->
    <!--</filter-mapping>-->

    <!-- character encoding filter -->
    <filter>
        <filter-name>characterEncodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <async-supported>true</async-supported>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.json</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.js</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>*.css</url-pattern>
    </filter-mapping>

    <!-- etag filter -->
    <filter>
        <filter-name>etagFilter</filter-name>
        <filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class>
        <async-supported>true</async-supported>
    </filter>

    <filter-mapping>
        <filter-name>etagFilter</filter-name>
        <servlet-name>dispatcher</servlet-name>
    </filter-mapping>

    <!-- spring config -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath*:/config/tc-spring-deploy.xml,
            classpath*:/config/tc-spring-cache-codis.xml,
            classpath*:/config/tc-spring-mq-metaq.xml,
            classpath*:/config/tc-spring-common-retry.xml,
            classpath*:/config/tc-spring-data-mongodb.xml,
            classpath*:/config/tc-spring-sch-ej.xml,
            classpath*:/config/tc-spring-module-region.xml,
            classpath*:/config/tc-spring-security-shiro.xml
        </param-value>
    </context-param>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!-- spring mvc config -->
    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                classpath*:/config/tc-spring-web-deploy.xml
            </param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
        <async-supported>true</async-supported>
    </servlet>

    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
{'fraction_non_alphanumeric': 0.18901303538175046, 'fraction_numerical': 0.003000206910821436, 'mean_word_length': 2.346140533056421, 'pattern_counts': {'":': 0, '<': 365, '<?xml version=': 2, '>': 365, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 37}, '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': '5440738', 'n_tokens_mistral': 3081, 'n_tokens_neox': 3019, 'n_words': 270}