<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_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>foxbpm-web</display-name>
  
  <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
 </listener>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  
   <listener>
    <listener-class>org.foxbpm.rest.common.listener.FoxBpmRestServletContextListener</listener-class>
  </listener>
  
 
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:conf/applicationContext*.xml</param-value>
  </context-param>
  
		 <filter>
			<filter-name>encodingFilter </filter-name>
			<filter-class>
				org.springframework.web.filter.CharacterEncodingFilter
			</filter-class>
			<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>encodingFilter </filter-name>
		<url-pattern>*</url-pattern>
		</filter-mapping>
  
  <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*:conf/dispatcher-servlet.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>dispatcher</servlet-name>
    <url-pattern>*.action</url-pattern>
  </servlet-mapping>
  
   <!-- Restlet adapter -->  
  <servlet>  
    <servlet-name>RestletServlet</servlet-name>  
    <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
    <init-param>
      <!-- Application class name -->
      <param-name>org.restlet.application</param-name>
      <param-value>org.foxbpm.rest.service.application.FoxbpmRestApplication</param-value>
    </init-param>
  </servlet>
  
  <!-- Catch all requests -->  
  <servlet-mapping>  
    <servlet-name>RestletServlet</servlet-name>  
    <url-pattern>/service/*</url-pattern>  
  </servlet-mapping> 
 
  <welcome-file-list>
    <welcome-file>login.html</welcome-file>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>
<commit_msg>提交修改过滤器配置<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_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>foxbpm-web</display-name>
  
  <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
 </listener>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  
   <listener>
    <listener-class>org.foxbpm.rest.common.listener.FoxBpmRestServletContextListener</listener-class>
  </listener>
  
 
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:conf/applicationContext*.xml</param-value>
  </context-param>
  
	 <filter>
		<filter-name>encodingFilter</filter-name>
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
		<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>encodingFilter</filter-name>    
        <url-pattern>/*</url-pattern>    
  </filter-mapping>   
  
  
  <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*:conf/dispatcher-servlet.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>dispatcher</servlet-name>
    <url-pattern>*.action</url-pattern>
  </servlet-mapping>
  
   <!-- Restlet adapter -->  
  <servlet>  
    <servlet-name>RestletServlet</servlet-name>  
    <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
    <init-param>
      <!-- Application class name -->
      <param-name>org.restlet.application</param-name>
      <param-value>org.foxbpm.rest.service.application.FoxbpmRestApplication</param-value>
    </init-param>
  </servlet>
  
  <!-- Catch all requests -->  
  <servlet-mapping>  
    <servlet-name>RestletServlet</servlet-name>  
    <url-pattern>/service/*</url-pattern>  
  </servlet-mapping> 
 
  <welcome-file-list>
    <welcome-file>login.html</welcome-file>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

{'fraction_non_alphanumeric': 0.16722470238095238, 'fraction_numerical': 0.005208333333333333, 'mean_word_length': 3.177933177933178, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 2, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 16}, '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': '372918', 'n_tokens_mistral': 1904, 'n_tokens_neox': 1799, 'n_words': 168}