<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ /////////////////////////////////////////////////////////////////////////////
  ~ // This file is part of the "Hyrax Data Server" project.
  ~ //
  ~ //
  ~ // Copyright (c) 2013 OPeNDAP, Inc.
  ~ // Author: <NAME>  <<EMAIL>>
  ~ //
  ~ // This library is free software; you can redistribute it and/or
  ~ // modify it under the terms of the GNU Lesser General Public
  ~ // License as published by the Free Software Foundation; either
  ~ // version 2.1 of the License, or (at your option) any later version.
  ~ //
  ~ // 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
  ~ //
  ~ // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
  ~ /////////////////////////////////////////////////////////////////////////////
  -->

<OLFSConfig>

    <BESManager>
        <BES>
            <!-- The prefix is a URL token between server address/port
            and catalog root used to designate a particular BES instance
            in the case that multiple Back-End-Servers are available to
            a single OLFS.  The default is no additional tag,
            designated by "/". So, for a single BES the prefix MUST be
            set to "/".  -->
            <prefix>/</prefix>

            <!-- The hostname (or IP address) for this BES -->
            <host>localhost</host>

            <!-- The port number for this BES -->
            <port>10022</port>

            <!-- Timeout (in seconds) for this BES, defaults to 300 seconds-->
            <!-- <timeOut>300</timeOut> -->

            <!-- The Administration port number for this BES -->
            <!-- <adminPort>11002</adminPort> -->

            <!--
                The maximum response size, in kilobytes, for non authenticated users
                A value of zero means there is no limit.
            -->
            <maxResponseSize>0</maxResponseSize>


            <!-- The ClientPool maximum number of concurrent
              -  BES client connections allowed.
              -->
            <ClientPool maximum="10" maxCmds="2000" />

        </BES>
    </BESManager>


    <DispatchHandlers>

        <HttpGetHandlers>

            <Handler className="opendap.bes.VersionDispatchHandler" />

            <!-- Bot Blocker
               -
               - This handler can be used to block access from specific IP addresses
               - and by a range of IP addresses using a regular expression.
               -
              -->
            <!-- <Handler className="opendap.coreServlet.BotBlocker"> -->

                <!-- <IpAddress>127.0.0.1</IpAddress> -->

                <!-- This matches all IPv4 addresses, work yours out from here.... -->
                <!-- <IpMatch>[012]?\d?\d\.[012]?\d?\d\.[012]?\d?\d\.[012]?\d?\d</IpMatch> -->

                <!-- Any IP starting with 65.55 (MSN bots the don't respect robots.txt  -->
                <!-- <IpMatch>65\.55\.[012]?\d?\d\.[012]?\d?\d</IpMatch>   -->

            <!-- </Handler>  -->
                     
                     
            <Handler className="opendap.ncml.NcmlDatasetDispatcher" />            
   
            <Handler className="opendap.threddsHandler.StaticCatalogDispatch">
                <prefix>thredds</prefix>
                <useMemoryCache>true</useMemoryCache>
            </Handler>

            <Handler className="opendap.gateway.DispatchHandler">
                <prefix>gateway</prefix>
            </Handler>



            <Handler className="opendap.bes.BesDapDispatcher" >

                <!-- AllowDirectDataSourceAccess
                  - If this element is present then the server will allow users to request
                  - the data source (file) directly. For example a user could just get the
                  - underlying NetCDF files located on the server without using the OPeNDAP
                  - request interface.
                  -->

                <!-- AllowDirectDataSourceAccess / -->

                <!--
                  By default, the server will provide a DAP2-style response
                  to requests for a dataset resource URL. Commenting out the
                  "UseDAP2ResourceUrlResponse" element will cause the server
                  to return the DAP4 DSR response when a dataset resource URL
                  is requested.
                -->
                <UseDAP2ResourceUrlResponse />

            </Handler>

            <Handler className="opendap.bes.DirectoryDispatchHandler">
                <AuthenticationControls>
                    <logout>/?urslogout=HyraxDataServer</logout>
                </AuthenticationControls>
            </Handler>


            <Handler className="opendap.bes.BESThreddsDispatchHandler"/>

            <Handler className="opendap.bes.FileDispatchHandler" />
<commit_msg>olfs: Commented out AuthenticationControls for the default DirectroyDispathHandler config.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ /////////////////////////////////////////////////////////////////////////////
  ~ // This file is part of the "Hyrax Data Server" project.
  ~ //
  ~ //
  ~ // Copyright (c) 2013 OPeNDAP, Inc.
  ~ // Author: <NAME>  <<EMAIL>>
  ~ //
  ~ // This library is free software; you can redistribute it and/or
  ~ // modify it under the terms of the GNU Lesser General Public
  ~ // License as published by the Free Software Foundation; either
  ~ // version 2.1 of the License, or (at your option) any later version.
  ~ //
  ~ // 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
  ~ //
  ~ // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
  ~ /////////////////////////////////////////////////////////////////////////////
  -->

<OLFSConfig>

    <BESManager>
        <BES>
            <!-- The prefix is a URL token between server address/port
            and catalog root used to designate a particular BES instance
            in the case that multiple Back-End-Servers are available to
            a single OLFS.  The default is no additional tag,
            designated by "/". So, for a single BES the prefix MUST be
            set to "/".  -->
            <prefix>/</prefix>

            <!-- The hostname (or IP address) for this BES -->
            <host>localhost</host>

            <!-- The port number for this BES -->
            <port>10022</port>

            <!-- Timeout (in seconds) for this BES, defaults to 300 seconds-->
            <!-- <timeOut>300</timeOut> -->

            <!-- The Administration port number for this BES -->
            <!-- <adminPort>11002</adminPort> -->

            <!--
                The maximum response size, in kilobytes, for non authenticated users
                A value of zero means there is no limit.
            -->
            <maxResponseSize>0</maxResponseSize>


            <!-- The ClientPool maximum number of concurrent
              -  BES client connections allowed.
              -->
            <ClientPool maximum="10" maxCmds="2000" />

        </BES>
    </BESManager>


    <DispatchHandlers>

        <HttpGetHandlers>

            <Handler className="opendap.bes.VersionDispatchHandler" />

            <!-- Bot Blocker
               -
               - This handler can be used to block access from specific IP addresses
               - and by a range of IP addresses using a regular expression.
               -
              -->
            <!-- <Handler className="opendap.coreServlet.BotBlocker"> -->

                <!-- <IpAddress>127.0.0.1</IpAddress> -->

                <!-- This matches all IPv4 addresses, work yours out from here.... -->
                <!-- <IpMatch>[012]?\d?\d\.[012]?\d?\d\.[012]?\d?\d\.[012]?\d?\d</IpMatch> -->

                <!-- Any IP starting with 65.55 (MSN bots the don't respect robots.txt  -->
                <!-- <IpMatch>65\.55\.[012]?\d?\d\.[012]?\d?\d</IpMatch>   -->

            <!-- </Handler>  -->
                     
                     
            <Handler className="opendap.ncml.NcmlDatasetDispatcher" />            
   
            <Handler className="opendap.threddsHandler.StaticCatalogDispatch">
                <prefix>thredds</prefix>
                <useMemoryCache>true</useMemoryCache>
            </Handler>

            <Handler className="opendap.gateway.DispatchHandler">
                <prefix>gateway</prefix>
            </Handler>



            <Handler className="opendap.bes.BesDapDispatcher" >

                <!-- AllowDirectDataSourceAccess
                  - If this element is present then the server will allow users to request
                  - the data source (file) directly. For example a user could just get the
                  - underlying NetCDF files located on the server without using the OPeNDAP
                  - request interface.
                  -->

                <!-- AllowDirectDataSourceAccess / -->

                <!--
                  By default, the server will provide a DAP2-style response
                  to requests for a dataset resource URL. Commenting out the
                  "UseDAP2ResourceUrlResponse" element will cause the server
                  to return the DAP4 DSR response when a dataset resource URL
                  is requested.
                -->
                <UseDAP2ResourceUrlResponse />

            </Handler>

            <Handler className="opendap.bes.DirectoryDispatchHandler">
                <!--
                  If your particular authentication scheme (usually brokered by Apache httpd) utilizes
                  a particular logout or login location you have Hyrax display links to those locations
                  as part of the generated web pages by uncommenting the "AuthenticationControls" element and
                  editing the logout and/or login locations to match your service instance.
                  -->
                <!-- AuthenticationControls>
                    <logout>loginPath?login_param=foo</logout>
                    <logout>logoutPath?logout_param=foo</logout>
                </AuthenticationControls -->
            </Handler>


            <Handler className="opendap.bes.BESThreddsDispatchHandler"/>

            <Handler className="opendap.bes.FileDispatchHandler" />

{'fraction_non_alphanumeric': 0.12957494407158837, 'fraction_numerical': 0.016465324384787473, 'mean_word_length': 1.5216606498194947, 'pattern_counts': {'":': 0, '<': 158, '<?xml version=': 2, '>': 158, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '6526507', 'n_tokens_mistral': 2928, 'n_tokens_neox': 2666, 'n_words': 922}