<commit_before><!--

  Ant script to produce distribution zip with webservice client libraries and samples.
  To build, run 'ant -f <path-to-this-file>'.
    Generated distribution zip file is saved in directory that is set in this build file
    under dist.dir property.

-->
<project name="intermine-webservice-client" basedir="." default="dist">

  <property name="dist.dir" value="client-dist" />
  <property name="src.dir" value="src" />
  <property name="build.dir" value="client-build" />
  <property name="javadoc.author" value="InterMine team" />
  <property name="version" value="2.0" />

  <target name="clean">
    <delete dir="${dist.dir}" failonerror="false"/>
    <delete dir="${build.dir}" failonerror="false"/>
  </target>

  <target name="compile">
    <!-- Calling standard InterMine build scripts -->
    <ant antfile="build.xml" target="library.jar" inheritall="false"></ant>
    <ant antfile="../../pathquery/main/build.xml" target="library.jar" dir="../../../pathquery/main" inheritall="false"/>
    <ant antfile="../../objectstore/main/build.xml" target="library.jar" dir="../../../objectstore/main" inheritall="false"></ant>
  </target>

  <target name="javadoc">
    <ant antfile="../../pathquery/main/build.xml" target="javadoc" dir="../../../pathquery/main" inheritall="false"/>
    <copy todir="${build.dir}/doc/javadoc-pathquery">
      <fileset dir="../../../pathquery/main/build/javadoc"/>
    </copy>
    <javadoc destdir="${build.dir}/doc/javadoc-client" source="${src.dir}" notree="true" use="false" nonavbar="false" noindex="false"
       splitindex="false" author="${javadoc.author}" version="false" failonerror="false">
      <sourcepath>
  <pathelement location="${src.dir}" />
      </sourcepath>
    </javadoc>
  </target>

  <target name="build" depends="clean, compile">
    <mkdir dir="${build.dir}"/>
    <copy todir="${build.dir}/src">
      <fileset dir="src"/>
    </copy>
    <copy todir="${build.dir}/lib">
      <fileset dir="lib"/>
    </copy>
    <!--intermine-webservice-client.jar was created before by calling InterMine build script  -->
    <jar destfile="${build.dir}/lib/intermine-client.jar">
      <zipfileset src="dist/intermine-webservice-client.jar" />
      <fileset file="${src.dir}/log4j.properties" />
    </jar>
    <copy file="../../../pathquery/main/dist/intermine-pathquery.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/dist/intermine-objectstore.jar" todir="${build.dir}/lib/"/>
    <!-- stax-api-1.0.jar and stax-ri-1.0.jar is needed when java 1.5 is used for pathquery XML serialization and deserialization -->
    <copy file="../../../pathquery/main/lib/stax-api-1.0.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../pathquery/main/lib/stax-ri-1.0.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/lib/commons-lang-2.3.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/lib/antlr-2.7.6-caching.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../web/main/lib/json20110106.jar" todir="${build.dir}/lib/"/>
    <copy file="compile-run.sh" todir="${build.dir}"/>

    <antcall target="copy-samples"/>

  </target>

  <target name="copy-samples" unless="exclude.samples">
    <copy todir="${build.dir}/samples">
      <fileset dir="../samples">
        <exclude name=".*, bin/**"/>
      </fileset>
    </copy>
    <copy file="README.txt" todir="${build.dir}"/>
  </target>

  <target name="dist" depends="build, javadoc">
    <mkdir dir="${dist.dir}"/>
    <zip destfile="${dist.dir}/java-intermine-webservice-client-${version}.zip" >
      <zipfileset dir="${build.dir}" excludes="samples/compile-run.sh" prefix="intermine-client-${version}" />
      <zipfileset dir="${build.dir}" includes="samples/compile-run.sh" filemode="755" prefix="intermine-client-${version}"/>
    </zip>
    <symlink link="${dist.dir}/java-intermine-webservice-client.zip"
      resource="${dist.dir}/java-intermine-webservice-client-${version}.zip" />
  </target>
</project><commit_msg>Using copy instead of symlinks to get around relative path issue.<commit_after><!--

  Ant script to produce distribution zip with webservice client libraries and samples.
  To build, run 'ant -f <path-to-this-file>'.
    Generated distribution zip file is saved in directory that is set in this build file
    under dist.dir property.

-->
<project name="intermine-webservice-client" basedir="." default="dist">

  <property name="dist.dir" value="client-dist" />
  <property name="src.dir" value="src" />
  <property name="build.dir" value="client-build" />
  <property name="javadoc.author" value="InterMine team" />
  <property name="version" value="2.0" />

  <target name="clean">
    <delete dir="${dist.dir}" failonerror="false"/>
    <delete dir="${build.dir}" failonerror="false"/>
  </target>

  <target name="compile">
    <!-- Calling standard InterMine build scripts -->
    <ant antfile="build.xml" target="library.jar" inheritall="false"></ant>
    <ant antfile="../../pathquery/main/build.xml" target="library.jar" dir="../../../pathquery/main" inheritall="false"/>
    <ant antfile="../../objectstore/main/build.xml" target="library.jar" dir="../../../objectstore/main" inheritall="false"></ant>
  </target>

  <target name="javadoc">
    <ant antfile="../../pathquery/main/build.xml" target="javadoc" dir="../../../pathquery/main" inheritall="false"/>
    <copy todir="${build.dir}/doc/javadoc-pathquery">
      <fileset dir="../../../pathquery/main/build/javadoc"/>
    </copy>
    <javadoc destdir="${build.dir}/doc/javadoc-client" source="${src.dir}" notree="true" use="false" nonavbar="false" noindex="false"
       splitindex="false" author="${javadoc.author}" version="false" failonerror="false">
      <sourcepath>
  <pathelement location="${src.dir}" />
      </sourcepath>
    </javadoc>
  </target>

  <target name="build" depends="clean, compile">
    <mkdir dir="${build.dir}"/>
    <copy todir="${build.dir}/src">
      <fileset dir="src"/>
    </copy>
    <copy todir="${build.dir}/lib">
      <fileset dir="lib"/>
    </copy>
    <!--intermine-webservice-client.jar was created before by calling InterMine build script  -->
    <jar destfile="${build.dir}/lib/intermine-client.jar">
      <zipfileset src="dist/intermine-webservice-client.jar" />
      <fileset file="${src.dir}/log4j.properties" />
    </jar>
    <copy file="../../../pathquery/main/dist/intermine-pathquery.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/dist/intermine-objectstore.jar" todir="${build.dir}/lib/"/>
    <!-- stax-api-1.0.jar and stax-ri-1.0.jar is needed when java 1.5 is used for pathquery XML serialization and deserialization -->
    <copy file="../../../pathquery/main/lib/stax-api-1.0.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../pathquery/main/lib/stax-ri-1.0.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/lib/commons-lang-2.3.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../objectstore/main/lib/antlr-2.7.6-caching.jar" todir="${build.dir}/lib/"/>
    <copy file="../../../web/main/lib/json20110106.jar" todir="${build.dir}/lib/"/>
    <copy file="compile-run.sh" todir="${build.dir}"/>

    <antcall target="copy-samples"/>

  </target>

  <target name="copy-samples" unless="exclude.samples">
    <copy todir="${build.dir}/samples">
      <fileset dir="../samples">
        <exclude name=".*, bin/**"/>
      </fileset>
    </copy>
    <copy file="README.txt" todir="${build.dir}"/>
  </target>

  <target name="dist" depends="build, javadoc">
    <mkdir dir="${dist.dir}"/>
    <zip destfile="${dist.dir}/java-intermine-webservice-client-${version}.zip" >
      <zipfileset dir="${build.dir}" excludes="samples/compile-run.sh" prefix="intermine-client-${version}" />
      <zipfileset dir="${build.dir}" includes="samples/compile-run.sh" filemode="755" prefix="intermine-client-${version}"/>
    </zip>
    <copy tofile="${dist.dir}/java-intermine-webservice-client.zip"
      file="${dist.dir}/java-intermine-webservice-client-${version}.zip" />
  </target>
</project>
{'fraction_non_alphanumeric': 0.22560749969162452, 'fraction_numerical': 0.0071543110891821885, 'mean_word_length': 3.420937840785169, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7548249', 'n_tokens_mistral': 2651, 'n_tokens_neox': 2557, 'n_words': 471}