<commit_before><!-- build configuration -->
<project name="narya tests" default="test" basedir=".">

  <!-- things you may want to change -->
  <property name="build.compiler" value="jikes"/>
  <property name="java.libraries" value="/usr/share/java"/>
  <property name="junit.fork"     value="true"/>

  <!-- things you probably don't want to change -->
  <property name="test.dir"   value="."/>
  <property name="src.dir"    value="src/java"/>
  <property name="deploy.dir" value="dist"/>

  <property name="cbundle.dir" value="rsrc/bundles/components/pirate"/>
  <property name="tbundle.dir" value="rsrc/bundles/tiles"/>

  <!-- declare our classpath -->
  <path id="classpath">
    <pathelement location="../${deploy.dir}/classes"/>
    <pathelement location="${deploy.dir}/classes"/>
    <fileset dir="../lib" includes="**/*.jar"/>
    <fileset dir="${java.libraries}" includes="**/*.jar"/>
  </path>

  <!-- prepares the application directories -->
  <target name="prepare">
    <mkdir dir="${deploy.dir}"/>
    <mkdir dir="${deploy.dir}/classes"/>
    <copy todir="${deploy.dir}/classes">
      <fileset dir="${src.dir}" includes="**/*.properties"/>
    </copy>
    <copy todir="${deploy.dir}/classes/rsrc">
      <fileset dir="rsrc" includes="**/*"/>
    </copy>
  </target>

  <!-- cleans out the installed application -->
  <target name="clean">
    <delete dir="${deploy.dir}"/>
  </target>

  <!-- build the java class files -->
  <target name="compile" depends="prepare">
    <javac srcdir="${src.dir}" destdir="${deploy.dir}/classes"
      debug="on" optimize="off" deprecation="off">
      <classpath refid="classpath"/>
    </javac>
  </target>

  <!-- run the tests -->
  <target name="test" depends="compile" description="Run tests.">
    <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
      <classpath refid="classpath"/>
      <sysproperty key="test_dir" value="${test.dir}"/>
      <sysproperty key="application.root" value="${test.dir}"/>
      <formatter type="brief" usefile="false"/>
      <batchtest>
        <fileset dir="${src.dir}">
          <include name="**/*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>

  <!-- test the component metadata bundling process -->
  <target name="cbundles" description="Build component bundles.">
    <!-- first build the metadata bundle -->
    <taskdef name="metabundle"
      classname="com.threerings.cast.tools.bundle.MetadataBundlerTask"/>
    <metabundle actiondef="${cbundle.dir}/actions.xml"
      classdef="${cbundle.dir}/classes.xml"
      target="${cbundle.dir}/metadata.jar"/>

    <!-- then a component bundle -->
    <taskdef name="cbundle"
      classname="com.threerings.cast.tools.bundle.ComponentBundlerTask"/>
    <cbundle target="${cbundle.dir}/components.jar"
      mapfile="${cbundle.dir}/components.map">
      <fileset dir="${cbundle.dir}" includes="**/*.png"/>
    </cbundle>
  </target>

  <!-- test the tileset bundling process -->
  <target name="tsbundles" description="Build tileset bundles.">
    <taskdef name="tilebundle"
      classname="com.threerings.media.tools.tile.bundle.TileSetBundlerTask"/>
    <tilebundle config="${tbundle.dir}/bundler-config.xml"
      mapfile="${tbundle.dir}/tilesets.map"
      bundledef="${tbundle.dir}/ground/bundle.xml"
      target="${tbundle.dir}/ground/bundle.jar"/>
  </target>

</project><commit_msg>Build the objects tileset bundle as well.<commit_after><!-- build configuration -->
<project name="narya tests" default="test" basedir=".">

  <!-- things you may want to change -->
  <property name="build.compiler" value="jikes"/>
  <property name="java.libraries" value="/usr/share/java"/>
  <property name="junit.fork"     value="true"/>

  <!-- things you probably don't want to change -->
  <property name="test.dir"   value="."/>
  <property name="src.dir"    value="src/java"/>
  <property name="deploy.dir" value="dist"/>

  <property name="cbundle.dir" value="rsrc/bundles/components/pirate"/>
  <property name="tbundle.dir" value="rsrc/bundles/tiles"/>

  <!-- declare our classpath -->
  <path id="classpath">
    <pathelement location="../${deploy.dir}/classes"/>
    <pathelement location="${deploy.dir}/classes"/>
    <fileset dir="../lib" includes="**/*.jar"/>
    <fileset dir="${java.libraries}" includes="**/*.jar"/>
  </path>

  <!-- prepares the application directories -->
  <target name="prepare">
    <mkdir dir="${deploy.dir}"/>
    <mkdir dir="${deploy.dir}/classes"/>
    <copy todir="${deploy.dir}/classes">
      <fileset dir="${src.dir}" includes="**/*.properties"/>
    </copy>
    <copy todir="${deploy.dir}/classes/rsrc">
      <fileset dir="rsrc" includes="**/*"/>
    </copy>
  </target>

  <!-- cleans out the installed application -->
  <target name="clean">
    <delete dir="${deploy.dir}"/>
  </target>

  <!-- build the java class files -->
  <target name="compile" depends="prepare">
    <javac srcdir="${src.dir}" destdir="${deploy.dir}/classes"
      debug="on" optimize="off" deprecation="off">
      <classpath refid="classpath"/>
    </javac>
  </target>

  <!-- run the tests -->
  <target name="test" depends="compile" description="Run tests.">
    <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
      <classpath refid="classpath"/>
      <sysproperty key="test_dir" value="${test.dir}"/>
      <sysproperty key="application.root" value="${test.dir}"/>
      <formatter type="brief" usefile="false"/>
      <batchtest>
        <fileset dir="${src.dir}">
          <include name="**/*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>

  <!-- test the component metadata bundling process -->
  <target name="cbundles" description="Build component bundles.">
    <!-- first build the metadata bundle -->
    <taskdef name="metabundle"
      classname="com.threerings.cast.tools.bundle.MetadataBundlerTask"/>
    <metabundle actiondef="${cbundle.dir}/actions.xml"
      classdef="${cbundle.dir}/classes.xml"
      target="${cbundle.dir}/metadata.jar"/>

    <!-- then a component bundle -->
    <taskdef name="cbundle"
      classname="com.threerings.cast.tools.bundle.ComponentBundlerTask"/>
    <cbundle target="${cbundle.dir}/components.jar"
      mapfile="${cbundle.dir}/components.map">
      <fileset dir="${cbundle.dir}" includes="**/*.png"/>
    </cbundle>
  </target>

  <!-- test the tileset bundling process -->
  <target name="tsbundles" description="Build tileset bundles.">
    <taskdef name="tilebundle"
      classname="com.threerings.media.tools.tile.bundle.TileSetBundlerTask"/>
    <tilebundle config="${tbundle.dir}/bundler-config.xml"
      mapfile="${tbundle.dir}/tilesets.map"
      bundledef="${tbundle.dir}/ground/bundle.xml"
      target="${tbundle.dir}/ground/bundle.jar"/>
    <tilebundle config="${tbundle.dir}/bundler-config.xml"
      mapfile="${tbundle.dir}/tilesets.map"
      bundledef="${tbundle.dir}/objects/bundle.xml"
      target="${tbundle.dir}/objects/bundle.jar"/>
  </target>

</project>
{'fraction_non_alphanumeric': 0.20459737292975444, 'fraction_numerical': 0.0, 'mean_word_length': 3.516441005802708, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '59062', 'n_tokens_mistral': 2202, 'n_tokens_neox': 2135, 'n_words': 414}