<commit_before><project name="som" basedir="." default="compile">

    <property name="src.dir"     value="src"/>
    <property name="src_gen.dir" value="src_gen"/>
    <property name="lib.dir"     value="libs" />

    <property name="build.dir"   value="build"/>
    <property name="classes.dir" value="${build.dir}/classes"/>
    
    <property name="truffle.libs" value="http://soft.vub.ac.be/~smarr/downloads/truffle/latest"/>

    <path id="project.classpath">
        <pathelement location="${classes.dir}" />
        <pathelement location="tests/" />
        <pathelement location="${lib.dir}/com.oracle.truffle.api.jar" />
        <pathelement location="${lib.dir}/com.oracle.truffle.api.dsl.jar" />
        <pathelement location="${lib.dir}/com.oracle.truffle.dsl.processor.jar" />
        <pathelement location="${lib.dir}/junit-4.8.1.jar" />        
    </path>

    <target name="clean">
        <delete dir="${build.dir}"/>
    </target>
    
    <target name="libs">
      <mkdir dir="${lib.dir}" />
      <get src="${truffle.libs}/com.oracle.truffle.api.jar"  usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.api.jar"/>
      <get src="${truffle.libs}/com.oracle.truffle.api.dsl.jar" usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.api.dsl.jar"/>
      <get src="${truffle.libs}/com.oracle.truffle.dsl.processor.jar" usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.dsl.processor.jar"/>
      <get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.8.1/junit-4.8.1.jar" usetimestamp="true"
           dest="${lib.dir}/junit-4.8.1.jar" />
    </target>

    <target name="compile" depends="libs">
        <mkdir dir="${classes.dir}" />
        <javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
        </javac>
        <javac includeantruntime="false" srcdir="tests/" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
          <compilerarg line="-s ${src_gen.dir}" />
        </javac>
        <javac includeantruntime="false" srcdir="${src_gen.dir}" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
          <compilerarg line="-s ${src_gen.dir}" />
        </javac>
    </target>

    <target name="jar" depends="compile">
        <mkdir dir="${build.dir}"/>
        <jar destfile="${build.dir}/som.jar" basedir="${classes.dir}"></jar>
    </target>

    <target name="test" depends="compile">
        <junit haltonerror="false" haltonfailure="false">
            <classpath refid="project.classpath" />
            <batchtest fork="yes"><!--  todir="${reports.tests}" -->
              <fileset dir="tests">
                  <include name="**/*Test*.java"/>
              </fileset>
            </batchtest>
        </junit>
      
        <java classname="som.vm.Universe" fork="true" failonerror="true">
            <classpath refid="project.classpath" /><commit_msg>Fixing folder creation and cleanup in ant file.<commit_after><project name="som" basedir="." default="compile">

    <property name="src.dir"     value="src"/>
    <property name="src_gen.dir" value="src_gen"/>
    <property name="lib.dir"     value="libs" />

    <property name="build.dir"   value="build"/>
    <property name="classes.dir" value="${build.dir}/classes"/>
    
    <property name="truffle.libs" value="http://soft.vub.ac.be/~smarr/downloads/truffle/latest"/>

    <path id="project.classpath">
        <pathelement location="${classes.dir}" />
        <pathelement location="tests/" />
        <pathelement location="${lib.dir}/com.oracle.truffle.api.jar" />
        <pathelement location="${lib.dir}/com.oracle.truffle.api.dsl.jar" />
        <pathelement location="${lib.dir}/com.oracle.truffle.dsl.processor.jar" />
        <pathelement location="${lib.dir}/junit-4.8.1.jar" />        
    </path>

    <target name="clean">
        <delete dir="${build.dir}"/>
        <delete dir="${src_gen.dir}"/>
    </target>
    
    <target name="libs">
      <mkdir dir="${lib.dir}" />
      <get src="${truffle.libs}/com.oracle.truffle.api.jar"  usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.api.jar"/>
      <get src="${truffle.libs}/com.oracle.truffle.api.dsl.jar" usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.api.dsl.jar"/>
      <get src="${truffle.libs}/com.oracle.truffle.dsl.processor.jar" usetimestamp="true"
           dest="${lib.dir}/com.oracle.truffle.dsl.processor.jar"/>
      <get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.8.1/junit-4.8.1.jar" usetimestamp="true"
           dest="${lib.dir}/junit-4.8.1.jar" />
    </target>

    <target name="compile" depends="libs">
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${classes.dir}" />
        <mkdir dir="${src_gen.dir}" />
        <javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
          <compilerarg line="-s ${src_gen.dir}" />
        </javac>
        <javac includeantruntime="false" srcdir="${src_gen.dir}" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
          <compilerarg line="-s ${src_gen.dir}" />
        </javac>
        <javac includeantruntime="false" srcdir="tests/" destdir="${classes.dir}" debug="true">
          <classpath refid="project.classpath" />
        </javac>
    </target>

    <target name="jar" depends="compile">
        <jar destfile="${build.dir}/som.jar" basedir="${classes.dir}"></jar>
    </target>

    <target name="test" depends="compile">
        <junit haltonerror="false" haltonfailure="false">
            <classpath refid="project.classpath" />
            <batchtest fork="yes"><!--  todir="${reports.tests}" -->
              <fileset dir="tests">
                  <include name="**/*Test*.java"/>
              </fileset>
            </batchtest>
        </junit>
      
        <java classname="som.vm.Universe" fork="true" failonerror="true">
            <classpath refid="project.classpath" />
{'fraction_non_alphanumeric': 0.20217250324254216, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 2.729746070133011, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7091308', 'n_tokens_mistral': 2016, 'n_tokens_neox': 1977, 'n_words': 275}