<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"
    version="3.1" metadata-complete="true" >

    <context-param>
        <param-name>contextClass</param-name>
        <param-value>
            org.springframework.web.context.support.AnnotationConfigWebApplicationContext
        </param-value>
    </context-param>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>io.cattle.platform.app.AppConfig</param-value>
    </context-param>

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

    <listener>
        <listener-class>com.ryantenney.metrics.spring.servlets.MetricsServletsContextListener</listener-class>
    </listener>

   <listener>
        <listener-class>io.cattle.platform.spring.web.StartupListener</listener-class>
    </listener>

    <filter>
        <filter-name>PreProxy</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyPreFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>PreProxy</filter-name>
        <url-pattern>/v1/proxy/*</url-pattern>
        <url-pattern>/v2-beta/proxy/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>

    <filter>
        <filter-name>Catalog</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8088</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>Catalog</filter-name>
        <url-pattern>/v1-catalog/*</url-pattern>
    </filter-mapping>

	<filter>
        <filter-name>WebhookService</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8085</param-value>
        </init-param>
        <init-param>
            <param-name>redirects</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>parseform</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>
    <filter-mapping>
    	<filter-name>WebhookService</filter-name>
        <url-pattern>/v1-webhooks/receivers/*</url-pattern>
        <filter-name>WebhookService</filter-name>
        <url-pattern>/v1-webhooks/endpoint</url-pattern>
    </filter-mapping>

    <filter>
        <filter-name>Telemetry</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8114</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>Telemetry</filter-name>
        <url-pattern>/v1-telemetry/*</url-pattern>
    </filter-mapping>

    <filter>
        <filter-name>AuthService</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8090</param-value>
        </init-param>
        <init-param>
            <param-name>redirects</param-name>
            <param-value>false</param-value>
        </init-param><commit_msg>Make webhook url-pattern more general<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"
    version="3.1" metadata-complete="true" >

    <context-param>
        <param-name>contextClass</param-name>
        <param-value>
            org.springframework.web.context.support.AnnotationConfigWebApplicationContext
        </param-value>
    </context-param>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>io.cattle.platform.app.AppConfig</param-value>
    </context-param>

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

    <listener>
        <listener-class>com.ryantenney.metrics.spring.servlets.MetricsServletsContextListener</listener-class>
    </listener>

   <listener>
        <listener-class>io.cattle.platform.spring.web.StartupListener</listener-class>
    </listener>

    <filter>
        <filter-name>PreProxy</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyPreFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>PreProxy</filter-name>
        <url-pattern>/v1/proxy/*</url-pattern>
        <url-pattern>/v2-beta/proxy/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>

    <filter>
        <filter-name>Catalog</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8088</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>Catalog</filter-name>
        <url-pattern>/v1-catalog/*</url-pattern>
    </filter-mapping>

	<filter>
        <filter-name>WebhookService</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8085</param-value>
        </init-param>
        <init-param>
            <param-name>redirects</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>parseform</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>
    <filter-mapping>
    	<filter-name>WebhookService</filter-name>
        <url-pattern>/v1-webhooks/*</url-pattern>
        <filter-name>WebhookService</filter-name>
    </filter-mapping>

    <filter>
        <filter-name>Telemetry</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8114</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>Telemetry</filter-name>
        <url-pattern>/v1-telemetry/*</url-pattern>
    </filter-mapping>

    <filter>
        <filter-name>AuthService</filter-name>
        <filter-class>io.cattle.platform.iaas.api.servlet.filter.ProxyFilter</filter-class>
        <init-param>
            <param-name>proxy</param-name>
            <param-value>http://localhost:8090</param-value>
        </init-param>
        <init-param>
            <param-name>redirects</param-name>
            <param-value>false</param-value>
        </init-param>
{'fraction_non_alphanumeric': 0.16239663819981023, 'fraction_numerical': 0.010166734444896299, 'mean_word_length': 2.5234001910219677, 'pattern_counts': {'":': 0, '<': 263, '<?xml version=': 2, '>': 263, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '3132445', 'n_tokens_mistral': 2402, 'n_tokens_neox': 2354, 'n_words': 196}