<commit_before><project name="thalemine-webapp" default="default" basedir=".">

  <description>build, test, package thalemine-webapp</description>
  <import file="../../imbuild/application.xml"/>

  <target name="-pre-jar"
          depends="application.-pre-jar, -add-struts-config"/>

  <target name="-add-struts-config"
          description="Append the struts config modifications to the webapp"
  	  depends="-pre-init">
    <unwar src="${dist.war}" dest="${build.dir}/webapp/">
      <patternset>
  	<include name="WEB-INF/struts-config.xml"/>
        <include name="WEB-INF/tiles-defs.xml"/>
        <include name="WEB-INF/classes/InterMineWebApp.properties"/>  
        <include name="WEB-INF/classes/model.properties"/>
        <include name="WEB-INF/web.xml"/>
      </patternset>
    </unwar>

    <loadfile property="model.struts.config" srcFile="./resources/struts-config-model.xml"/>

    <replace file="${build.dir}/webapp/WEB-INF/struts-config.xml" value="${model.struts.config}">
      <!-- can't use normal token as xml must be parseable before this replacement -->
      <replacetoken><![CDATA[<!--@MODEL_INCLUDE@-->]]></replacetoken>
    </replace>


    <loadfile property="model.struts.form.config" 
              srcFile="./resources/struts-config-form-model.xml"/><commit_msg>MINE-806. Build Thalemine Phenotype Module Extension in local Thalemine instance<commit_after><project name="thalemine-webapp" default="default" basedir=".">

  <description>build, test, package thalemine-webapp</description>
  <import file="../../imbuild/application.xml"/>

  <target name="-pre-jar"
          depends="application.-pre-jar, -add-struts-config"/>

  <target name="-add-struts-config"
          description="Append the struts config modifications to the webapp"
  	  depends="-pre-init">
    <unwar src="${dist.war}" dest="${build.dir}/webapp/">
      <patternset>
  	<include name="WEB-INF/struts-config.xml"/>
        <include name="WEB-INF/tiles-defs.xml"/>
        <include name="WEB-INF/classes/InterMineWebApp.properties"/>  
        <include name="WEB-INF/classes/model.properties"/>
    </patternset>
    </unwar>

    <loadfile property="model.struts.config" srcFile="./resources/struts-config-model.xml"/>

    <replace file="${build.dir}/webapp/WEB-INF/struts-config.xml" value="${model.struts.config}">
      <!-- can't use normal token as xml must be parseable before this replacement -->
      <replacetoken><![CDATA[<!--@MODEL_INCLUDE@-->]]></replacetoken>
    </replace>


    <loadfile property="model.struts.form.config" 
              srcFile="./resources/struts-config-form-model.xml"/>
{'fraction_non_alphanumeric': 0.1788028974456729, 'fraction_numerical': 0.001143728555089592, 'mean_word_length': 3.387959866220736, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 15}, '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': '4981324', 'n_tokens_mistral': 854, 'n_tokens_neox': 815, 'n_words': 134}