<commit_before><project name="Application Deployer">
  <description>Deploy applications packaged by Maven to a server on EC2</description>
  <property name="auth" value="/home/ubuntu/kr-key.pem" />
  <property name="mvn" value="/opt/java/apache-maven-3.0.3/bin/mvn" />
  <property name="impex.dba.username" value="master" />
  <property name="impex.dba.password" value="<PASSWORD>" />

  <target name="reset" depends="stop,clean,copy,resetdb,start" />

  <target name="stop" depends="check-properties">
    <echo>Stopping ${tomcat.instance} on ${deploy.server}</echo>
    <exec executable="ssh">
      <arg value="-i" />
      <arg value="${auth}" />
      <arg value="root@${deploy.server}" />
      <arg value="su" />
      <arg value="-" />
      <arg value="${tomcat.instance}" />
      <arg value="/usr/local/tomcat/bin/forced-shutdown.sh" />
    </exec>
  </target>
  <target name="clean" depends="check-properties">
    <property name="old.root.dir" value="/usr/local/${tomcat.instance}/webapps/ROOT" />
    <echo>Removing ${old.root.dir}</echo>
    <exec executable="ssh" failonerror="true">
      <arg value="-i" />
      <arg value="${auth}" />
      <arg value="root@${deploy.server}" />
      <arg value="rm" /><commit_msg>KULRICE-5675 Environment reset scripting<commit_after><project name="Application Deployer">
  <description>Deploy applications packaged by Maven to a server on EC2</description>
  <property name="auth" value="/home/ubuntu/kr-key.pem" />
  <property name="mvn" value="/opt/java/apache-maven-3.0.3/bin/mvn" />
  <property name="impex.dba.username" value="master" />
  <property name="impex.dba.password" value="<PASSWORD>" />

  <target name="reset" depends="stop,clean,copy,resetdb,start" />
  <target name="reset-nightly-envs">
    <exec executable="${mvn}" failonerror="true">
      <arg value="clean" />
      <arg value="install" />
      <arg value="-Preset,env1" />
    </exec>
    <exec executable="${mvn}" failonerror="true">
      <arg value="clean" />
      <arg value="install" />
      <arg value="-Preset,env2" />
    </exec>
  </target>

  <target name="stop" depends="check-properties">
    <echo>Stopping ${tomcat.instance} on ${deploy.server}</echo>
    <exec executable="ssh">
      <arg value="-i" />
      <arg value="${auth}" />
      <arg value="root@${deploy.server}" />
      <arg value="su" />
      <arg value="-" />
      <arg value="${tomcat.instance}" />
      <arg value="/usr/local/tomcat/bin/forced-shutdown.sh" />
    </exec>
  </target>
  <target name="clean" depends="check-properties">
    <property name="old.root.dir" value="/usr/local/${tomcat.instance}/webapps/ROOT" />
    <echo>Removing ${old.root.dir}</echo>
    <exec executable="ssh" failonerror="true">
      <arg value="-i" />
      <arg value="${auth}" />
      <arg value="root@${deploy.server}" />
      <arg value="rm" />
{'fraction_non_alphanumeric': 0.20833333333333334, 'fraction_numerical': 0.004901960784313725, 'mean_word_length': 3.513428120063191, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5412732', 'n_tokens_mistral': 972, 'n_tokens_neox': 938, 'n_words': 170}