<commit_before><?xml version='1.0' encoding='UTF-8'?>
<!--

    Copyright 2009 <NAME>

      This library is free software; you can redistribute it and/or modify
      it under the terms of version 2.1 of the GNU Lesser General Public
      License as published by the Free Software Foundation.

      This library is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Lesser General Public License for more details.

      You should have received a copy of the GNU Lesser General Public
      License along with this library; if not, write to the
      Free Software Foundation, Inc., 59 Temple Place, Suite 330,
      Boston, MA 02111-1307  USA

-->
<web-app 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"
  version="2.4">

  <description>Tyck till</description>
  
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
      classpath*:/services-config.xml
    </param-value>
  </context-param>
    <!-- Bootstraps the root Spring Web Application Context, responsible for deploying managed beans
    defined in the configuration files above.  These beans represent the services used by the application. -->
  <listener>
    <listener-class>
      org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>
  
  <!-- Orbeon config start -->
  <filter>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<filter-class>org.orbeon.oxf.servlet.OPSXFormsFilter</filter-class>
  	<init-param>
  		<param-name>oxf.xforms.renderer.context</param-name>
  		<param-value>/orbeon-3.7.0</param-value>
  	</init-param>
  </filter>
  <!-- Any web resource under /xforms-jsp is processed by the XForms engine -->
  <filter-mapping>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<url-pattern>/xforms-jsp/*</url-pattern>
  	<dispatcher>REQUEST</dispatcher>
  	<dispatcher>FORWARD</dispatcher>
  </filter-mapping>
  <!-- This is necessary so that XForms engine resources can be served appropriately -->
  <filter-mapping>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<url-pattern>/orbeon-3.7.0/*</url-pattern>
  	<dispatcher>REQUEST</dispatcher>
  	<dispatcher>FORWARD</dispatcher>
  </filter-mapping>
  <!-- Orbeon config end -->
  
  <!-- UTF-8 encoding filter -->
  <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>
    <display-name>P3PFilter</display-name>
    <filter-name>P3PFilter</filter-name>
    <filter-class>se.vgr.incidentreport.web.P3PFilter</filter-class>
  </filter>

  <filter-mapping>
  	<filter-name>P3PFilter</filter-name>
  	<url-pattern>/*</url-pattern>
  </filter-mapping>
  
  
  <!-- REST/JSX-RS/Jersey config -->
	<!-- <servlet>
		<servlet-name>Jersey Web Application</servlet-name>
		<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
		<init-param>
			<param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
			<param-value>com.sun.jersey.api.core.PackagesResourceConfig</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.property.packages</param-name>
			<param-value>se.vgr.incidentreport</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Jersey Web Application</servlet-name>
		<url-pattern>/resource/*</url-pattern>
	</servlet-mapping>-->
	<!-- end REST/JAX-RS/Jersey config -->
	
	<servlet>
    <servlet-name>Jersey Spring</servlet-name>
    <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
    <init-param>
        <param-name>com.sun.ws.rest.config.property.resourceConfigClass</param-name>
        <param-value>com.sun.ws.rest.api.core.PackagesResourceConfig</param-value>
    </init-param> 
    <init-param>
        <param-name>com.sun.ws.rest.config.property.packages</param-name>
        <param-value>se.vgr.incidentreport</param-value>
    </init-param>
	</servlet>
	<servlet-mapping>
	    <servlet-name>Jersey Spring</servlet-name>
	    <url-pattern>/resource/*</url-pattern>
	</servlet-mapping>
	
	
  <welcome-file-list>
    <welcome-file>xforms-jsp/index.jsp</welcome-file>
  </welcome-file-list>
</web-app><commit_msg>added spring support<commit_after><?xml version='1.0' encoding='UTF-8'?>
<!--

    Copyright 2009 <NAME>en

      This library is free software; you can redistribute it and/or modify
      it under the terms of version 2.1 of the GNU Lesser General Public
      License as published by the Free Software Foundation.

      This library is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Lesser General Public License for more details.

      You should have received a copy of the GNU Lesser General Public
      License along with this library; if not, write to the
      Free Software Foundation, Inc., 59 Temple Place, Suite 330,
      Boston, MA 02111-1307  USA

-->
<web-app 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"
  version="2.4">

  <description>Tyck till</description>
  
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
      classpath*:/services-config.xml
    </param-value>
  </context-param>
    <!-- Bootstraps the root Spring Web Application Context, responsible for deploying managed beans
    defined in the configuration files above.  These beans represent the services used by the application. -->
  <listener>
    <listener-class>
      org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>
  
  <!-- Orbeon config start -->
  <filter>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<filter-class>org.orbeon.oxf.servlet.OPSXFormsFilter</filter-class>
  	<init-param>
  		<param-name>oxf.xforms.renderer.context</param-name>
  		<param-value>/orbeon-3.7.0</param-value>
  	</init-param>
  </filter>
  <!-- Any web resource under /xforms-jsp is processed by the XForms engine -->
  <filter-mapping>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<url-pattern>/xforms-jsp/*</url-pattern>
  	<dispatcher>REQUEST</dispatcher>
  	<dispatcher>FORWARD</dispatcher>
  </filter-mapping>
  <!-- This is necessary so that XForms engine resources can be served appropriately -->
  <filter-mapping>
  	<filter-name>orbeon-xforms-filter</filter-name>
  	<url-pattern>/orbeon-3.7.0/*</url-pattern>
  	<dispatcher>REQUEST</dispatcher>
  	<dispatcher>FORWARD</dispatcher>
  </filter-mapping>
  <!-- Orbeon config end -->
  
  <!-- UTF-8 encoding filter -->
  <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>
    <display-name>P3PFilter</display-name>
    <filter-name>P3PFilter</filter-name>
    <filter-class>se.vgr.incidentreport.web.P3PFilter</filter-class>
  </filter>

  <filter-mapping>
  	<filter-name>P3PFilter</filter-name>
  	<url-pattern>/*</url-pattern>
  </filter-mapping>
  
  
  
	
	<!-- REST/JSX-RS/Jersey config -->
	<servlet>
    	<servlet-name>Jersey Spring</servlet-name>
    	<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
	    <init-param>
	        <param-name>com.sun.ws.rest.config.property.resourceConfigClass</param-name>
	        <param-value>com.sun.ws.rest.api.core.PackagesResourceConfig</param-value>
	    </init-param> 
	    <init-param>
	        <param-name>com.sun.ws.rest.config.property.packages</param-name>
	        <param-value>se.vgr.incidentreport</param-value>
	    </init-param>
		</servlet>
	<servlet-mapping>
	    <servlet-name>Jersey Spring</servlet-name>
	    <url-pattern>/resource/*</url-pattern>
	</servlet-mapping>
	<!-- end REST/JAX-RS/Jersey config -->
	
  <welcome-file-list>
    <welcome-file>xforms-jsp/index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
{'fraction_non_alphanumeric': 0.1469167696282152, 'fraction_numerical': 0.010670560485229698, 'mean_word_length': 3.2562141491395793, 'pattern_counts': {'":': 0, '<': 264, '<?xml version=': 2, '>': 264, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, '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': '7481637', 'n_tokens_mistral': 3048, 'n_tokens_neox': 2932, 'n_words': 542}