<commit_before><?xml version="1.0"?>
<project default="package">
    <property name="name" value="commcare-libraries"/>
    <property name="jar" value="${name}.jar"/>
    <property name="dir.root" value="${basedir}/../"/>
    <property name="dir.lib" value="${dir.root}/../javarosa/lib/"/>
    <property name="dir.jrlib" value="${dir.root}/../javarosa/build/libs/"/>
    <property name="dir.root.case" value="${dir.root}/cases/"/>

    <target name="init" description="set classpath and make needed directories">
        <mkdir dir="lib/"/>
        <path id="classpath">
            <fileset dir="${dir.lib}" includes="*.jar"/>
            <fileset dir="${dir.jrlib}" includes="*.jar"/>
        </path>
        <mkdir dir="bin/"/>
        <mkdir dir="dist/"/>
    </target>

    <target name="clean" description="delete dist and bin directories">
        <delete dir="dist/"/>
        <delete dir="bin/"/>
    </target>

    <target name="compile" depends="clean,extract-libs,init" description="compile the source">
        <javac srcdir="${dir.root.case}/src/" destdir="bin/" classpathref="classpath" debug="true"
               debuglevel="lines,source" source="1.5" target="1.5"/>
        <javac srcdir="src/" destdir="bin/" classpathref="classpath" debug="true"
               debuglevel="lines,source" source="1.5" target="1.5"/>
    </target>

    <target name="package" depends="compile" description="package binary into jar">
        <jar destfile="dist/${jar}">
            <fileset dir="bin/" includes="**/*.class"/>
        </jar>
    </target>

    <!-- for use primarily by the build server to extract the required 3rd-party libraries into the
         javarosa source tree. to use this in your own build, set the 'extract-libs-fresh' property,
         then also set the 'javarosa-deps' property to the path of the library archive (make sure you
         are using the version of the archive compatible with the version you wish to build) -->
    <target name="extract-libs" if="extract-libs-fresh">
        <unzip src="${javarosa-deps}" dest="${dir.root}" overwrite="true"/>
    </target>

</project><commit_msg>Add necessary classpath resources for case xml<commit_after><?xml version="1.0"?>
<project default="package">
    <property name="name" value="commcare-libraries"/>
    <property name="jar" value="${name}.jar"/>
    <property name="dir.root" value="${basedir}/../"/>
    <property name="dir.lib" value="${dir.root}/../javarosa/lib/"/>
    <property name="dir.jrlib" value="${dir.root}/../javarosa/build/libs/"/>
    <property name="dir.root.case" value="${dir.root}/cases/"/>

    <target name="init" description="set classpath and make needed directories">
        <mkdir dir="lib/"/>
        <path id="classpath">
            <fileset dir="${dir.lib}" includes="*.jar"/>
            <fileset dir="${dir.jrlib}" includes="*.jar"/>
        </path>
        <mkdir dir="bin/"/>
        <mkdir dir="dist/"/>
    </target>

    <target name="clean" description="delete dist and bin directories">
        <delete dir="dist/"/>
        <delete dir="bin/"/>
    </target>

    <target name="compile" depends="clean,extract-libs,init" description="compile the source">
        <javac srcdir="${dir.root.case}/src/" destdir="bin/" classpathref="classpath" debug="true"
               debuglevel="lines,source" source="1.5" target="1.5"/>
        <javac srcdir="src/" destdir="bin/" classpathref="classpath" debug="true"
               debuglevel="lines,source" source="1.5" target="1.5"/>
    </target>

    <target name="package" depends="compile" description="package binary into jar">
        <jar destfile="dist/${jar}">
            <fileset dir="bin/" includes="**/*.class"/>
            <fileset dir="${dir.root}/cases/resources" includes="*"/> 
        </jar>
    </target>

    <!-- for use primarily by the build server to extract the required 3rd-party libraries into the
         javarosa source tree. to use this in your own build, set the 'extract-libs-fresh' property,
         then also set the 'javarosa-deps' property to the path of the library archive (make sure you
         are using the version of the archive compatible with the version you wish to build) -->
    <target name="extract-libs" if="extract-libs-fresh">
        <unzip src="${javarosa-deps}" dest="${dir.root}" overwrite="true"/>
    </target>

</project>
{'fraction_non_alphanumeric': 0.18173474070674622, 'fraction_numerical': 0.005048187241854061, 'mean_word_length': 3.070028011204482, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 2, '>': 74, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '6297079', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1253, 'n_words': 336}