<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">
    <filter-mapping>
        <filter-name>IPAuthenticationFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>SetCharacterEncodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>GeoToolsFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>StripesFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>StripesFilter</filter-name>
        <servlet-name>StripesDispatcher</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
        <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <listener>
        <listener-class>nl.b3p.viewer.components.ComponentRegistryInitializer</listener-class>
    </listener>
    <listener>
        <listener-class>nl.b3p.web.stripes.StripersistCleanupListener</listener-class>
    </listener>
    <listener>
        <listener-class>nl.b3p.web.SharedSessionData</listener-class>
    </listener>
    <listener>
        <description>The class which initializes (and if configured sets up) the solr instance.</description>
        <listener-class>nl.b3p.viewer.solr.SolrInitializer</listener-class>
    </listener>
    <!-- Localization context voor o.a. de <fmt:message> JSTL tag -->
    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>ViewerResources</param-value>
    </context-param>
    <!-- NL locale voor formatten van getallen: 1.234.567,89 -->
    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
        <param-value>nl</param-value>
    </context-param>
    <context-param>
        <description>
            Configure the directory at which the flamingo data directory is located. This application must have permissions to write/read to that directory. In this directory
            the solr configuration and index will be located.
        </description>
        <param-name>flamingo.data.dir</param-name>
        <param-value>PATH/TO/DATA/DIRECTORY</param-value>
    </context-param>
    <context-param>
        <description>
            Configure whether or not this web application had to create the directory structure for solr. Default is false. Set to true for the viewer-admin, because the 
            viewer-admin has the resources for a new server/core istance to be created.
        </description>
        <param-name>flamingo.solr.setup</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <description>
            The url on where the solr server is to be found.
        </description>
        <param-name>flamingo.solr.url</param-name>
        <param-value>http://SERVER/solr/</param-value>
    </context-param>
    <filter>
        <description>Filter from Tomcat 6 distribution, see http://wiki.apache.org/tomcat/FAQ/CharacterEncoding</description>
        <filter-name>SetCharacterEncodingFilter</filter-name>
        <filter-class>nl.b3p.web.filter.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
    </filter>
    <filter>
        <description>Filter to clean up GeoTools thread locals</description>
        <filter-name>GeoToolsFilter</filter-name>
        <filter-class>nl.b3p.web.geotools.GeoToolsFilter</filter-class>
    </filter>
    <filter>
        <display-name>Stripes Filter</display-name>
        <filter-name>StripesFilter</filter-name>
        <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
        <init-param>
            <param-name>ActionResolver.Packages</param-name>
            <param-value>nl.b3p.viewer.stripes</param-value>
        </init-param>
        <init-param>
            <param-name>Extension.Packages</param-name>
            <param-value>org.stripesstuff.stripersist</param-value>
        </init-param>
        <init-param>
            <param-name>MultipartWrapper.Class</param-name>
            <param-value>net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper</param-value>
        </init-param>
        <init-param>
            <param-name>Stripersist.InitializeSettingsClass</param-name>
            <param-value>nl.b3p.viewer.config.stripersist.DynamicStripersistInitializer</param-value>
        </init-param>
        <init-param>
            <param-name>LocalePicker.Locales</param-name>
            <param-value>nl_NL</param-value>
        </init-param>
        <init-param>
            <param-name>LocalizationBundleFactory.ErrorMessageBundle</param-name>
            <param-value>ViewerResources</param-value>
        </init-param>
        <init-param>
            <param-name>LocalizationBundleFactory.FieldNameBundle</param-name>
            <param-value>ViewerResources</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>IPAuthenticationFilter</filter-name>
        <filter-class>nl.b3p.viewer.util.IPAuthenticationFilter</filter-class>
    </filter>
    <servlet>
        <servlet-name>StripesDispatcher</servlet-name>
        <servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>DatabaseSynchronizer</servlet-name>
        <servlet-class>nl.b3p.viewer.util.databaseupdate.DatabaseSynchronizer</servlet-class><commit_msg>added web.xml configuration for (default disabled) HeaderAuthenticationFilter<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">
    <filter-mapping>
        <filter-name>HeaderAuthenticationFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>IPAuthenticationFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>SetCharacterEncodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>GeoToolsFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>StripesFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>StripesFilter</filter-name>
        <servlet-name>StripesDispatcher</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
        <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <listener>
        <listener-class>nl.b3p.viewer.components.ComponentRegistryInitializer</listener-class>
    </listener>
    <listener>
        <listener-class>nl.b3p.web.stripes.StripersistCleanupListener</listener-class>
    </listener>
    <listener>
        <listener-class>nl.b3p.web.SharedSessionData</listener-class>
    </listener>
    <listener>
        <description>The class which initializes (and if configured sets up) the solr instance.</description>
        <listener-class>nl.b3p.viewer.solr.SolrInitializer</listener-class>
    </listener>
    <!-- Localization context voor o.a. de <fmt:message> JSTL tag -->
    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>ViewerResources</param-value>
    </context-param>
    <!-- NL locale voor formatten van getallen: 1.234.567,89 -->
    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
        <param-value>nl</param-value>
    </context-param>
    <context-param>
        <description>
            Configure the directory at which the flamingo data directory is located. This application must have permissions to write/read to that directory. In this directory
            the solr configuration and index will be located.
        </description>
        <param-name>flamingo.data.dir</param-name>
        <param-value>PATH/TO/DATA/DIRECTORY</param-value>
    </context-param>
    <context-param>
        <description>
            Configure whether or not this web application had to create the directory structure for solr. Default is false. Set to true for the viewer-admin, because the 
            viewer-admin has the resources for a new server/core istance to be created.
        </description>
        <param-name>flamingo.solr.setup</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <description>
            The url on where the solr server is to be found.
        </description>
        <param-name>flamingo.solr.url</param-name>
        <param-value>http://SERVER/solr/</param-value>
    </context-param>
    <filter>
        <description>Filter from Tomcat 6 distribution, see http://wiki.apache.org/tomcat/FAQ/CharacterEncoding</description>
        <filter-name>SetCharacterEncodingFilter</filter-name>
        <filter-class>nl.b3p.web.filter.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
    </filter>
    <filter>
        <description>Filter to clean up GeoTools thread locals</description>
        <filter-name>GeoToolsFilter</filter-name>
        <filter-class>nl.b3p.web.geotools.GeoToolsFilter</filter-class>
    </filter>
    <filter>
        <display-name>Stripes Filter</display-name>
        <filter-name>StripesFilter</filter-name>
        <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
        <init-param>
            <param-name>ActionResolver.Packages</param-name>
            <param-value>nl.b3p.viewer.stripes</param-value>
        </init-param>
        <init-param>
            <param-name>Extension.Packages</param-name>
            <param-value>org.stripesstuff.stripersist</param-value>
        </init-param>
        <init-param>
            <param-name>MultipartWrapper.Class</param-name>
            <param-value>net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper</param-value>
        </init-param>
        <init-param>
            <param-name>Stripersist.InitializeSettingsClass</param-name>
            <param-value>nl.b3p.viewer.config.stripersist.DynamicStripersistInitializer</param-value>
        </init-param>
        <init-param>
            <param-name>LocalePicker.Locales</param-name>
            <param-value>nl_NL</param-value>
        </init-param>
        <init-param>
            <param-name>LocalizationBundleFactory.ErrorMessageBundle</param-name>
            <param-value>ViewerResources</param-value>
        </init-param>
        <init-param>
            <param-name>LocalizationBundleFactory.FieldNameBundle</param-name>
            <param-value>ViewerResources</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>IPAuthenticationFilter</filter-name>
        <filter-class>nl.b3p.viewer.util.IPAuthenticationFilter</filter-class>
    </filter>
    <filter>
        <!-- See JavaDoc for documentation -->
        <filter-name>HeaderAuthenticationFilter</filter-name>
        <filter-class>nl.b3p.web.filter.HeaderAuthenticationFilter</filter-class>
        <init-param>
            <!-- Only enable when the webapp is ONLY reachable proxied by the
             webserver correctly configured to clear the userHeader on the
             authPath. Must not be directly reachable by the Tomcat HTTP
             connector, disable it or bind it to localhost! -->
            <param-name>iHaveSecuredMyServerAndDisabledTheTomcatHttpConnector</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>commonRole</param-name>
            <param-value>ExtendedUser</param-value>
        </init-param>
        <init-param>
            <param-name>saveExtraHeaders</param-name>
            <param-value>MELLON_SESSION</param-value>
        </init-param>
    </filter>
    <servlet>
        <servlet-name>StripesDispatcher</servlet-name>
        <servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>DatabaseSynchronizer</servlet-name>
        <servlet-class>nl.b3p.viewer.util.databaseupdate.DatabaseSynchronizer</servlet-class>
{'fraction_non_alphanumeric': 0.1336837294332724, 'fraction_numerical': 0.005255941499085923, 'mean_word_length': 2.689994378864531, 'pattern_counts': {'":': 0, '<': 411, '<?xml version=': 2, '>': 411, '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': '6873554', 'n_tokens_mistral': 3997, 'n_tokens_neox': 3946, 'n_words': 569}