<commit_before><project name="KBase common Java libs" default="test" basedir=".">

  <description>
      Build file for the comman KBase Java libs
  </description>

  <!-- set global properties for this build -->
  <property name="package" value="KBase common"/>
  <property name="src" location="src"/>
  <property name="classes" location="classes"/>
  <property name="docs" location="docs"/>

  <property environment="env"/>
  <condition property="jardir" value="../jars/lib/jars/">
    <or>
      <equals arg1="${env.JENKINS_JARS_MODULE_PATH}" arg2=""/>
      <not>
        <isset property="env.JENKINS_JARS_MODULE_PATH"/>
      </not>
    </or>
  </condition>
  <!-- Properties in ant are immutable, so the following assignment will only take place if jardir was not set above. -->
  <property name="jardir" location="${env.JENKINS_JARS_MODULE_PATH}/lib/jars/"/>

  <condition property="jarfile" value="${env.JENKINS_JAVA_COMMON_JARFILE}">
    <and>
      <isset property="env.JENKINS_JAVA_COMMON_JARFILE"/>
      <not>
        <equals arg1="${env.JENKINS_JAVA_COMMON_JARFILE}" arg2=""/>
      </not>
    </and>
  </condition>

  <fileset dir="${jardir}" id="lib">
    <include name="apache_commons/commons-lang3-3.1.jar"/>
    <include name="junit/junit-4.9.jar"/>
    <include name="mongo/mongo-java-driver-2.13.3.jar"/>
    <include name="jackson/jackson-core-2.2.3.jar"/>
    <include name="jackson/jackson-databind-2.2.3.jar"/>
    <include name="jackson/jackson-annotations-2.2.3.jar"/>
    <include name="derby/derby-10.10.1.1.jar"/>
    <include name="easymock/easymock-3.2.jar"/>
    <include name="ini4j/ini4j-0.5.2.jar"/>
    <include name="jetty/jetty-all-7.0.0.jar"/>
    <include name="jna/jna-3.4.0.jar"/>
    <include name="servlet/servlet-api-2.5.jar"/>
    <include name="syslog4j/syslog4j-0.9.46.jar"/>
    <include name="kbase/auth/kbase-auth-0.4.0.jar"/>
    <include name="texttable/text-table-formatter-1.1.1.jar"/>
    <include name="apache_commons/http/httpclient-4.3.1.jar"/>
    <include name="apache_commons/http/httpcore-4.3.jar"/>
    <include name="apache_commons/http/httpmime-4.3.1.jar"/>
    <include name="apache_commons/commons-logging-1.1.1.jar"/>
    <include name="slf4j/slf4j-api-1.7.7.jar"/>
    <include name="logback/logback-core-1.1.2.jar"/>
    <include name="logback/logback-classic-1.1.2.jar"/>
    <include name="apache_commons/velocity-1.7.jar"/>
    <include name="apache_commons/commons-io-2.4.jar"/>
    <include name="javassist/javassist-3.18.2.jar"/>
    <include name="joda/joda-time-2.2.jar"/>
  </fileset>

  <path id="compile.classpath">
    <fileset refid="lib"/>
  </path>

  <target name="init" description="make directories">
    <!-- Create the output directory structure-->
    <delete dir="${classes}"/>
    <mkdir dir="${classes}"/>
    <mkdir dir="${docs}"/>
  </target>

  <target name="definejarfile" unless="jarfile">
    <fail unless="compile.jarfile" message="property compile.jarfile not set."/>
    <property name="jarfile" value="${compile.jarfile}"/>
  </target>

  <target name="compile" depends="init, definejarfile" description="compile the source">
    <!-- Compile class files-->
    <javac destdir="${classes}" includeantruntime="false"
      debug="true" classpathref="compile.classpath">
      <src path="${src}"/>
      <exclude name="us/kbase/common/performance/**"/>
    </javac>
    <copy todir="${classes}"><commit_msg>Set the java compatibility to 1.7<commit_after><project name="KBase common Java libs" default="test" basedir=".">

  <description>
      Build file for the comman KBase Java libs
  </description>

  <!-- set global properties for this build -->
  <property name="package" value="KBase common"/>
  <property name="src" location="src"/>
  <property name="classes" location="classes"/>
  <property name="docs" location="docs"/>

  <property environment="env"/>
  <condition property="jardir" value="../jars/lib/jars/">
    <or>
      <equals arg1="${env.JENKINS_JARS_MODULE_PATH}" arg2=""/>
      <not>
        <isset property="env.JENKINS_JARS_MODULE_PATH"/>
      </not>
    </or>
  </condition>
  <!-- Properties in ant are immutable, so the following assignment will only take place if jardir was not set above. -->
  <property name="jardir" location="${env.JENKINS_JARS_MODULE_PATH}/lib/jars/"/>

  <condition property="jarfile" value="${env.JENKINS_JAVA_COMMON_JARFILE}">
    <and>
      <isset property="env.JENKINS_JAVA_COMMON_JARFILE"/>
      <not>
        <equals arg1="${env.JENKINS_JAVA_COMMON_JARFILE}" arg2=""/>
      </not>
    </and>
  </condition>

  <fileset dir="${jardir}" id="lib">
    <include name="apache_commons/commons-lang3-3.1.jar"/>
    <include name="junit/junit-4.9.jar"/>
    <include name="mongo/mongo-java-driver-2.13.3.jar"/>
    <include name="jackson/jackson-core-2.2.3.jar"/>
    <include name="jackson/jackson-databind-2.2.3.jar"/>
    <include name="jackson/jackson-annotations-2.2.3.jar"/>
    <include name="derby/derby-10.10.1.1.jar"/>
    <include name="easymock/easymock-3.2.jar"/>
    <include name="ini4j/ini4j-0.5.2.jar"/>
    <include name="jetty/jetty-all-7.0.0.jar"/>
    <include name="jna/jna-3.4.0.jar"/>
    <include name="servlet/servlet-api-2.5.jar"/>
    <include name="syslog4j/syslog4j-0.9.46.jar"/>
    <include name="kbase/auth/kbase-auth-0.4.0.jar"/>
    <include name="texttable/text-table-formatter-1.1.1.jar"/>
    <include name="apache_commons/http/httpclient-4.3.1.jar"/>
    <include name="apache_commons/http/httpcore-4.3.jar"/>
    <include name="apache_commons/http/httpmime-4.3.1.jar"/>
    <include name="apache_commons/commons-logging-1.1.1.jar"/>
    <include name="slf4j/slf4j-api-1.7.7.jar"/>
    <include name="logback/logback-core-1.1.2.jar"/>
    <include name="logback/logback-classic-1.1.2.jar"/>
    <include name="apache_commons/velocity-1.7.jar"/>
    <include name="apache_commons/commons-io-2.4.jar"/>
    <include name="javassist/javassist-3.18.2.jar"/>
    <include name="joda/joda-time-2.2.jar"/>
  </fileset>

  <path id="compile.classpath">
    <fileset refid="lib"/>
  </path>

  <target name="init" description="make directories">
    <!-- Create the output directory structure-->
    <delete dir="${classes}"/>
    <mkdir dir="${classes}"/>
    <mkdir dir="${docs}"/>
  </target>

  <target name="definejarfile" unless="jarfile">
    <fail unless="compile.jarfile" message="property compile.jarfile not set."/>
    <property name="jarfile" value="${compile.jarfile}"/>
  </target>

  <target name="compile" depends="init, definejarfile" description="compile the source">
    <!-- Compile class files-->
    <javac destdir="${classes}" includeantruntime="false"
      debug="true" classpathref="compile.classpath" target="1.7" source="1.7">
      <src path="${src}"/>
      <exclude name="us/kbase/common/performance/**"/>
    </javac>
    <copy todir="${classes}">
{'fraction_non_alphanumeric': 0.19496214327315084, 'fraction_numerical': 0.026208503203261502, 'mean_word_length': 3.6008037508372404, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5843200', 'n_tokens_mistral': 2484, 'n_tokens_neox': 2400, 'n_words': 402}