<commit_before><commit_msg>adding config for production tomcat<commit_after><?xml version='1.0' encoding='utf-8'?>

<!-- 
   Dryad's server.xml for the production Tomcat system. This
   configuration file tells Tomcat where to find the Dryad webapps.
-->


<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">
  
     <Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

    <Engine name="Catalina" defaultHost="dryad2.lib.ncsu.edu">

      <Realm className="org.apache.catalina.realm.LockOutRealm">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
           resourceName="UserDatabase"/>
      </Realm>

      <Host name="dryad2.lib.ncsu.edu"  appBase="/opt/dryad/webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
        <Context docBase="xmlui" path="" reloadable="true" cachingAllowed="false" allowLinking="true"/>
        <Context docBase="solr" path="/solr" reloadable="true" cachingAllowed="false" allowLinking="true">
            <Environment name="solr/home" type="java.lang.String" value="/opt/dryad/solr/" override="true" />
        </Context>
        <Context docBase="oai" path="/oai" reloadable="true" cachingAllowed="false" allowLinking="true"/>
        <Context docBase="doi" path="/doi" reloadable="true" cachingAllowed="false" allowLinking="true"/>
        <Context docBase="dataone-mn-webapp" path="/mn" reloadable="true" cachingAllowed="false" allowLinking="true"/>
      </Host>

    </Engine>
  </Service>
</Server>

{'fraction_non_alphanumeric': 0.14624505928853754, 'fraction_numerical': 0.01699604743083004, 'mean_word_length': 4.072144288577154, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 1, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '7235034', 'n_tokens_mistral': 806, 'n_tokens_neox': 744, 'n_words': 131}