<commit_before><?xml version="1.0" encoding="utf-8"?>
<web-app version="2.5" 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_2_5.xsd">

    <servlet>
        <servlet-name>EndpointServlet</servlet-name>
        <servlet-class>io.yawp.servlet.EndpointServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>EndpointServlet</servlet-name>
        <url-pattern>/api/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>EndpointServlet</servlet-name>
        <url-pattern>/api/_tasks/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>EndpointFixturesServlet</servlet-name>
        <servlet-class>io.yawp.servlet.FixturesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>EndpointFixturesServlet</servlet-name>
        <url-pattern>/fixtures/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>ToolsServlet</servlet-name>
        <servlet-class>io.yawp.tools.ToolsServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ToolsServlet</servlet-name>
        <url-pattern>/_ah/yawp/*</url-pattern>
    </servlet-mapping>

    <!-- servlet>
        <servlet-name>PipelineServlet</servlet-name>
        <servlet-class>com.google.appengine.tools.pipeline.impl.servlets.PipelineServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>PipelineServlet</servlet-name>
        <url-pattern>/_ah/pipeline/*</url-pattern>
    </servlet-mapping -->

    <!-- security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-all</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>*</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-tasks</web-resource-name>
            <url-pattern>/api/_tasks/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-fixtures</web-resource-name>
            <url-pattern>/fixtures/*</url-pattern>
        </web-resource-collection>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-tests</web-resource-name>
            <url-pattern>/test/*</url-pattern>
        </web-resource-collection>
    </security-constraint>

    <security-role>
        <role-name>admin</role-name>
    </security-role -->

</web-app><commit_msg>web.xml archetype security<commit_after><?xml version="1.0" encoding="utf-8"?>
<web-app version="2.5" 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_2_5.xsd">

    <servlet>
        <servlet-name>EndpointServlet</servlet-name>
        <servlet-class>io.yawp.servlet.EndpointServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>EndpointServlet</servlet-name>
        <url-pattern>/api/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>EndpointServlet</servlet-name>
        <url-pattern>/api/_tasks/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>EndpointFixturesServlet</servlet-name>
        <servlet-class>io.yawp.servlet.FixturesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>EndpointFixturesServlet</servlet-name>
        <url-pattern>/fixtures/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>ToolsServlet</servlet-name>
        <servlet-class>io.yawp.tools.ToolsServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ToolsServlet</servlet-name>
        <url-pattern>/_ah/yawp/*</url-pattern>
    </servlet-mapping>

    <!-- servlet>
        <servlet-name>PipelineServlet</servlet-name>
        <servlet-class>com.google.appengine.tools.pipeline.impl.servlets.PipelineServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>PipelineServlet</servlet-name>
        <url-pattern>/_ah/pipeline/*</url-pattern>
    </servlet-mapping -->

    <!-- security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-all</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>*</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-fixtures</web-resource-name>
            <url-pattern>/fixtures/*</url-pattern>
        </web-resource-collection>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-tests</web-resource-name>
            <url-pattern>/test/*</url-pattern>
        </web-resource-collection>
    </security-constraint -->

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-tasks</web-resource-name>
            <url-pattern>/api/_tasks/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>${artifactId}-admin</web-resource-name>
            <url-pattern>/_ah/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
    </security-constraint>

    <security-role>
        <role-name>admin</role-name>
    </security-role>

</web-app>
{'fraction_non_alphanumeric': 0.16754765337177638, 'fraction_numerical': 0.0038443056222969728, 'mean_word_length': 2.513787281935847, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 2, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 13}, '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': '6991538', 'n_tokens_mistral': 1937, 'n_tokens_neox': 1892, 'n_words': 168}