<commit_before><?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>oAuth tools</display-name>

    <!-- oAuth servlets -->
    <servlet>
        <servlet-name>RequestTokenServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.RequestTokenServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AuthorizationServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.AuthorisationServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AccessTokenServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.AccessTokenServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>RequestTokenServlet</servlet-name>
        <url-pattern>/request_token</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AuthorizationServlet</servlet-name>
        <url-pattern>/authorize/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AccessTokenServlet</servlet-name>
        <url-pattern>/access_token</url-pattern>
    </servlet-mapping>

    <!-- oAuth tool -->
    <servlet>
        <servlet-name>sakai.oauth</servlet-name>
        <servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>uk.ac.ox.oucs.oauth.tool.user.OAuthApplication</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>sakai.oauth</servlet-name>
        <url-pattern>/tool/*</url-pattern>
    </servlet-mapping>

    <!-- Admin tool -->
    <servlet>
        <servlet-name>sakai.oauth.admin</servlet-name>
        <servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>uk.ac.ox.oucs.oauth.tool.admin.OauthAdminApplication</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>sakai.oauth.admin</servlet-name>
        <url-pattern>/admin/*</url-pattern>
    </servlet-mapping>


    <!-- Wicket deployment mode -->
    <context-param>
        <param-name>configuration</param-name>
        <param-value>development</param-value>
    </context-param>

    <!-- Sakai Tool Listener -->
    <listener>
        <listener-class>org.sakaiproject.util.ToolListener</listener-class>
    </listener>

    <!-- Sakai Spring Listener -->
    <listener>
        <listener-class>org.sakaiproject.util.ContextLoaderListener</listener-class>
    </listener>

    <context-param>
        <param-name>org.sakaiproject.util.ToolListener.PATH</param-name>
        <param-value>/WEB-INF/tools</param-value>
    </context-param>

    <!-- Sakai Request Filter -->
    <filter>
        <filter-name>request-filter</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>request-filter</filter-name>
        <servlet-name>AuthorizationServlet</servlet-name>
    </filter-mapping>

    <!-- Administration filter --><commit_msg>Disable development mode in wicket<commit_after><?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>oAuth tools</display-name>

    <!-- oAuth servlets -->
    <servlet>
        <servlet-name>RequestTokenServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.RequestTokenServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AuthorizationServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.AuthorisationServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AccessTokenServlet</servlet-name>
        <servlet-class>uk.ac.ox.oucs.oauth.servlet.AccessTokenServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>RequestTokenServlet</servlet-name>
        <url-pattern>/request_token</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AuthorizationServlet</servlet-name>
        <url-pattern>/authorize/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AccessTokenServlet</servlet-name>
        <url-pattern>/access_token</url-pattern>
    </servlet-mapping>

    <!-- oAuth tool -->
    <servlet>
        <servlet-name>sakai.oauth</servlet-name>
        <servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>uk.ac.ox.oucs.oauth.tool.user.OAuthApplication</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>sakai.oauth</servlet-name>
        <url-pattern>/tool/*</url-pattern>
    </servlet-mapping>

    <!-- Admin tool -->
    <servlet>
        <servlet-name>sakai.oauth.admin</servlet-name>
        <servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>uk.ac.ox.oucs.oauth.tool.admin.OauthAdminApplication</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>sakai.oauth.admin</servlet-name>
        <url-pattern>/admin/*</url-pattern>
    </servlet-mapping>


    <!-- Wicket deployment mode -->
    <context-param>
        <param-name>configuration</param-name>
        <param-value>deployment</param-value>
    </context-param>

    <!-- Sakai Tool Listener -->
    <listener>
        <listener-class>org.sakaiproject.util.ToolListener</listener-class>
    </listener>

    <!-- Sakai Spring Listener -->
    <listener>
        <listener-class>org.sakaiproject.util.ContextLoaderListener</listener-class>
    </listener>

    <context-param>
        <param-name>org.sakaiproject.util.ToolListener.PATH</param-name>
        <param-value>/WEB-INF/tools</param-value>
    </context-param>

    <!-- Sakai Request Filter -->
    <filter>
        <filter-name>request-filter</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>request-filter</filter-name>
        <servlet-name>AuthorizationServlet</servlet-name>
    </filter-mapping>

    <!-- Administration filter -->
{'fraction_non_alphanumeric': 0.16418764302059496, 'fraction_numerical': 0.004862700228832952, 'mean_word_length': 2.7019587083112757, 'pattern_counts': {'":': 0, '<': 243, '<?xml version=': 2, '>': 243, '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': '1993196', 'n_tokens_mistral': 2270, 'n_tokens_neox': 2232, 'n_words': 210}