<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>

<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<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">

  <!-- Environment variables for the Vitro web application -->
  <!-- Example: -->
  <!-- <env-entry><env-entry-name>somename/required</env-entry-name> -->
  <!--            <description>optional desc </description> -->
  <!--            <env-entry-value>some kind of value, required</env-entry-value> -->
  <!--            <env-entry-type>(required)java.lang.String || java.lang.Integer ||  -->
  <!--            java.lang.Double || java.lang.Boolean || java.lang.Float</env-entry-type> -->
  <!-- </env-entry> -->

  <env-entry>
    <env-entry-name>jdbc/vitro/connectionType</env-entry-name>
    <!--
           				How to get a DataSource, Valid valies:
                        SERVER_XML_POOL gets a named DataSource connection from the
                        JNDI context, most likely that was set up tomcat/conf/server.xml
                        PROPERTIES_FILE_POOL makes a DataSource using properties from
                        a file in the classpath at /beans/connection.properties
           -->
    <!--            <env-entry-value>SERVER_XML_POOL</env-entry-value> -->
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>PROPERTIES_FILE_POOL</env-entry-value>
  </env-entry>


  <env-entry>
    <env-entry-name>jdbc/vitro/namedDS</env-entry-name>
    <!--This is the name of the JNDI named DataSource for use with SERVER_XML_POOL-->
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>mySharedDBPool</env-entry-value>
  </env-entry>
  <!-- end environment vars -->

  <!-- Listeners ****************************************************** -->

  <!-- Reads deploy.properties. Needs to run before almost all other listeners. -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.config.ConfigurationPropertiesSetup</listener-class>
  </listener>

  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.config.RevisionInfoSetup</listener-class>
  </listener>

  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.email.FreemarkerEmailFactory$Setup</listener-class>
  </listener>

  <!-- DefaultThemeSetup needs to run before the JenaDataSourceSetup
       to allow creation of default portal and tab -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.DefaultThemeSetup</listener-class>
  </listener>

  <!-- experimental ModelMaker for ingest workflows - BJL 2008-06-01 -->
 

  <!-- Comment out this listener to run Vitro without a database -->
  <!-- If used, this listener must be run before JenaDataSourceSetup -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaPersistentDataSourceSetup</listener-class>
  </listener>

  <!-- experimental JenaMulgaraBridge, replaces JenaPersistentDataSourceSetup. -->
  <!--     <listener>
 -->
  <!--     	<listener-class>
 -->
  <!--     		edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaMulgaraBridgeSetup
 -->
  <!--     	</listener-class>
 -->
  <!--     </listener> -->

  <!-- This listener is required in order to use a Jena triple store (currently the only option) -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaDataSourceSetup</listener-class>
  </listener>

  <!-- Invokes process to perform updates to align with ontology changes if needed -->
  <!-- Needs to run before submodels are attached and Pellet is set up -->
   
  <!--  disabling knowledge base update during development of 1.3 migration. sjm 5/20/2011 
  <listener>
     <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase</listener-class>
  </listener>
  -->
  
  <listener>
    <listener-class>
        edu.cornell.mannlib.vitro.webapp.filestorage.backend.FileStorageSetup
    </listener-class>
  </listener> 
  
  <!-- Invokes a process to move any uploaded files into the new file storage system. -->
  <!-- Needs to run after FileStorageSetup and JenaDataSourceSetup. -->
  <!-- Should run before Pellet is set up. -->  
  <listener>
    <listener-class>
        edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateUploadedFiles
    </listener-class>
  </listener> 
 

<!-- The following two listeners remain temporarily until SDB becomes the default triple store --> 
  <listener>
     <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.AttachSubmodels</listener-class>
  </listener>
<commit_msg>NIHVIVO-2279 Add the migration code (disabled for now)<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>

<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<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">

  <!-- Environment variables for the Vitro web application -->
  <!-- Example: -->
  <!-- <env-entry><env-entry-name>somename/required</env-entry-name> -->
  <!--            <description>optional desc </description> -->
  <!--            <env-entry-value>some kind of value, required</env-entry-value> -->
  <!--            <env-entry-type>(required)java.lang.String || java.lang.Integer ||  -->
  <!--            java.lang.Double || java.lang.Boolean || java.lang.Float</env-entry-type> -->
  <!-- </env-entry> -->

  <env-entry>
    <env-entry-name>jdbc/vitro/connectionType</env-entry-name>
    <!--
           				How to get a DataSource, Valid valies:
                        SERVER_XML_POOL gets a named DataSource connection from the
                        JNDI context, most likely that was set up tomcat/conf/server.xml
                        PROPERTIES_FILE_POOL makes a DataSource using properties from
                        a file in the classpath at /beans/connection.properties
           -->
    <!--            <env-entry-value>SERVER_XML_POOL</env-entry-value> -->
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>PROPERTIES_FILE_POOL</env-entry-value>
  </env-entry>


  <env-entry>
    <env-entry-name>jdbc/vitro/namedDS</env-entry-name>
    <!--This is the name of the JNDI named DataSource for use with SERVER_XML_POOL-->
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>mySharedDBPool</env-entry-value>
  </env-entry>
  <!-- end environment vars -->

  <!-- Listeners ****************************************************** -->

  <!-- Reads deploy.properties. Needs to run before almost all other listeners. -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.config.ConfigurationPropertiesSetup</listener-class>
  </listener>

  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.config.RevisionInfoSetup</listener-class>
  </listener>

  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.email.FreemarkerEmailFactory$Setup</listener-class>
  </listener>

  <!-- DefaultThemeSetup needs to run before the JenaDataSourceSetup
       to allow creation of default portal and tab -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.DefaultThemeSetup</listener-class>
  </listener>

  <!-- experimental ModelMaker for ingest workflows - BJL 2008-06-01 -->
 

  <!-- Comment out this listener to run Vitro without a database -->
  <!-- If used, this listener must be run before JenaDataSourceSetup -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaPersistentDataSourceSetup</listener-class>
  </listener>

  <!-- experimental JenaMulgaraBridge, replaces JenaPersistentDataSourceSetup. -->
  <!--     <listener>
 -->
  <!--     	<listener-class>
 -->
  <!--     		edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaMulgaraBridgeSetup
 -->
  <!--     	</listener-class>
 -->
  <!--     </listener> -->

  <!-- This listener is required in order to use a Jena triple store (currently the only option) -->
  <listener>
    <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.JenaDataSourceSetup</listener-class>
  </listener>

  <!-- Invokes process to perform updates to align with ontology changes if needed -->
  <!-- Needs to run before submodels are attached and Pellet is set up -->
   
  <!--  disabling knowledge base update during development of 1.3 migration. sjm 5/20/2011 
  <listener>
     <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase</listener-class>
  </listener>
  -->
  
  <listener>
    <listener-class>
        edu.cornell.mannlib.vitro.webapp.filestorage.backend.FileStorageSetup
    </listener-class>
  </listener> 
  
  <!-- Invokes a process to move any uploaded files into the new file storage system. -->
  <!-- Needs to run after FileStorageSetup and JenaDataSourceSetup. -->
  <!-- Should run before Pellet is set up. -->  
  <listener>
    <listener-class>
        edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateUploadedFiles
    </listener-class>
  </listener> 
 
  <!--  Update to the new UserAccounts model (1.3). Needs to run after JenaDataSourceSetup. -->
  <!-- <listener>
    <listener-class>
        edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateUserAccounts
    </listener-class>
  </listener> -->


<!-- The following two listeners remain temporarily until SDB becomes the default triple store --> 
  <listener>
     <listener-class>edu.cornell.mannlib.vitro.webapp.servlet.setup.AttachSubmodels</listener-class>
  </listener>

{'fraction_non_alphanumeric': 0.1554420030659172, 'fraction_numerical': 0.00797138477261114, 'mean_word_length': 2.892601431980907, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 2, '>': 223, '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': '489416', 'n_tokens_mistral': 3119, 'n_tokens_neox': 2942, 'n_words': 616}