<commit_before><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
         
  <!--  Filters: executed in the order in which they are defined in this file, but specific to the filter-mappings -->
  
  <!--  Pushes the session id into the Log4J NDC for each request thread. The NDC is a Stack that is dumped to the log 
        for all Log4J messages.
  -->
  <filter>
    <filter-name>Log4jNdcFilter</filter-name>
    <filter-class>org.ohmage.jee.filter.Log4jNdcFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Log4jNdcFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping> 
  
  <!--  Enforces UTF-8 character encoding on all requests. --> 
  <filter>
    <filter-name>Utf8RequestEncodingFilter</filter-name>
    <filter-class>org.ohmage.jee.filter.Utf8RequestEncodingFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Utf8RequestEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  
  <!-- Servlets.  Note that url-patterns are matched against initial (or re-dispatched) requests, not a request possibly modified
       by filters.  -->

  <!--  The default Tomcat Servlet used to locate and serve static content -->
  <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  
  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>
  
  <!-- Server Configuration Information Read -->
  <servlet>
    <description>
      Give information about the server. 
    </description>
    <servlet-name>ConfigReadServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>configReadAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>configReadController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>configReadHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>configReadResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>ConfigReadServlet</servlet-name>
    <url-pattern>/config/read</url-pattern>
  </servlet-mapping>
  
  <!--  Mobility Data Upload -->
  <servlet>
    <description>
      processes mobility data uploads from a client 
    </description>
    <servlet-name>MobilityUploadServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <!--  The following init-params are used to map the servlet to Spring-configured beans that ultimately service the request. 
          The param-value elements are Spring bean ids. All other AwDataServlets defined in this file use the same configuration style -->
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>mobilityUploadAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>mobilityUploadController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>mobilityUploadHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>successOrFailResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>MobilityUploadServlet</servlet-name><commit_msg>Added the admin APIs to the SSL build.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
         
  <!--  Filters: executed in the order in which they are defined in this file, but specific to the filter-mappings -->
  
  <!--  Pushes the session id into the Log4J NDC for each request thread. The NDC is a Stack that is dumped to the log 
        for all Log4J messages.
  -->
  <filter>
    <filter-name>Log4jNdcFilter</filter-name>
    <filter-class>org.ohmage.jee.filter.Log4jNdcFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Log4jNdcFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping> 
  
  <!--  Enforces UTF-8 character encoding on all requests. --> 
  <filter>
    <filter-name>Utf8RequestEncodingFilter</filter-name>
    <filter-class>org.ohmage.jee.filter.Utf8RequestEncodingFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Utf8RequestEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  
  <!-- Servlets.  Note that url-patterns are matched against initial (or re-dispatched) requests, not a request possibly modified
       by filters.  -->

  <!--  The default Tomcat Servlet used to locate and serve static content -->
  <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  
  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>
  
  <!-- Server Configuration Information Read -->
  <servlet>
    <description>
      Give information about the server. 
    </description>
    <servlet-name>ConfigReadServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>configReadAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>configReadController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>configReadHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>configReadResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>ConfigReadServlet</servlet-name>
    <url-pattern>/config/read</url-pattern>
  </servlet-mapping>
  
  <!-- Create Users -->
  <servlet>
    <description>
      Create a user. 
    </description>
    <servlet-name>UserCreationServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>userCreationAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>userCreationController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>userCreationHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>userCreationResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>UserCreationServlet</servlet-name>
    <url-pattern>/user/create</url-pattern>
  </servlet-mapping>
  
  <!-- Read Personal Information About Users -->
  <servlet>
    <description>
      Give personal information about other users. 
    </description>
    <servlet-name>UserReadServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>userReadAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>userReadController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>userReadHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>userReadResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>UserReadServlet</servlet-name>
    <url-pattern>/user/read</url-pattern>
  </servlet-mapping>
  
  <!-- Update Users -->
  <servlet>
    <description>
      Update a user. 
    </description>
    <servlet-name>UserUpdateServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>userUpdateAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>userUpdateController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>userUpdateHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>userUpdateResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>UserUpdateServlet</servlet-name>
    <url-pattern>/user/update</url-pattern>
  </servlet-mapping>
  
  <!-- Delete Users -->
  <servlet>
    <description>
      Delete a user. 
    </description>
    <servlet-name>UserDeletionServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>userDeletionAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>userDeletionController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>userDeletionHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>userDeletionResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>UserDeletionServlet</servlet-name>
    <url-pattern>/user/delete</url-pattern>
  </servlet-mapping>
  
  <!--  Mobility Data Upload -->
  <servlet>
    <description>
      processes mobility data uploads from a client 
    </description>
    <servlet-name>MobilityUploadServlet</servlet-name>
    <servlet-class>org.ohmage.jee.servlet.AwDataServlet</servlet-class>
    <!--  The following init-params are used to map the servlet to Spring-configured beans that ultimately service the request. 
          The param-value elements are Spring bean ids. All other AwDataServlets defined in this file use the same configuration style -->
    <init-param>
      <param-name>awRequestCreatorName</param-name>
      <param-value>mobilityUploadAwRequestCreator</param-value>
    </init-param>
    <init-param>
      <param-name>controllerName</param-name>
      <param-value>mobilityUploadController</param-value>
    </init-param>
    <init-param>
      <param-name>httpServletRequestValidatorName</param-name>
      <param-value>mobilityUploadHttpServletRequestValidator</param-value>
    </init-param>
    <init-param>
      <param-name>responseWriterName</param-name>
      <param-value>successOrFailResponseWriter</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>MobilityUploadServlet</servlet-name>
{'fraction_non_alphanumeric': 0.14351997483485374, 'fraction_numerical': 0.0042466184334696445, 'mean_word_length': 3.344721557909122, 'pattern_counts': {'":': 0, '<': 441, '<?xml version=': 2, '>': 441, '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': '737106', 'n_tokens_mistral': 4112, 'n_tokens_neox': 4036, 'n_words': 600}