<commit_before><?xml version="1.0"?>

<!-- Smack Build Script ========================================== -->
<!-- Jive Software      ============================================== -->

<!--
    $RCSfile$
    $Revision$
    $Date$
-->

<project name="Smack" default="all" basedir="..">

    <!-- TASKDEFS -->
    <!-- ======================================================================================= -->
    <!-- ======================================================================================= -->

    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="${basedir}/build/ant-contrib.jar"/>
        </classpath>
    </taskdef>

    <!-- PROPERTIES -->
    <!-- ======================================================================================= -->

    <!-- Smack Version -->
    <property name="version.major" value="3" />
    <property name="version.minor" value="3" />
    <property name="version.revision" value="0" />
    <property name="version.extra" value="SNAPSHOT" />

    <if>
        <equals arg1="${version.extra}" arg2=""/>
        <then>
            <property name="version"
                      value="${version.major}.${version.minor}.${version.revision}"/>
            <property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}"/>
        </then>
        <else>
            <property name="version"
                      value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
            <property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}_${version.extra}"/>
        </else>
    </if>
    <tstamp>
        <format property="builddate" pattern="MM/dd/yyyy"/>
    </tstamp>

    <property file="${basedir}/build/build.properties" />
    <property name="compile.dir" value="${basedir}/target/classes" />
    <property name="compile.test.dir" value="${basedir}/target/classes-test" />
    <property name="jar.dest.dir" value="${basedir}/target" />
    <property name="javadoc.dest.dir" value="${basedir}/target/javadoc" />
    <property name="merge.lib.dir" value="${basedir}/build/merge" />
    <property name="test.dir" value="${basedir}/test" />
    <property name="test-unit.dir" value="${basedir}/test-unit" />
    <property name="resources.dir" value="${basedir}/build/resources" />
    <property name="jingle.extension.merge.lib.dir" value="${basedir}/jingle/extension/build/merge" />
    <property name="jingle.extension.lib.dir" value="${basedir}/jingle/extension/build/lib" />

    <!-- Test props - override these defaults in the properties file or in command line -->
    <property name="test.host" value="localhost" />
    <property name="test.port" value="5222" />
    <property name="test.admin.username" value="admin" />
    <property name="test.admin.password" value="<PASSWORD>" />
    <property name="test.admin.resource" value="Test" />
    <property name="test.smack.debug" value="false" />

    <!-- PATHS, DEPENDIENCIES, PATTERNS -->
    <!-- ======================================================================================= -->
    <!-- ======================================================================================= -->

    <patternset id="test.cases">
        <include name="org/jivesoftware/smack/**/*Test.java" />
        <include name="org/jivesoftware/smackx/**/*Test.java" />
        <exclude name="org/jivesoftware/smack/**/Messenger*Test.java" />
    </patternset>

    <patternset id="messenger.test.cases">
        <include name="org/jivesoftware/smack/**/Messenger*Test.java" />
    </patternset>

    <!-- TARGETS -->
    <!-- ======================================================================================= -->

    <!-- all -->
    <!-- ======================================================================================= -->
    <target name="all" depends="jar" description="Calls 'jar' target by default">
    </target>

    <!-- compile -->
    <!-- ======================================================================================= -->
    <target name="compile" description="Compiles all source to ${compile.dir}.">
        <!-- make target dir -->
        <mkdir dir="${compile.dir}" />
        <javac
            destdir="${compile.dir}"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/source" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
            </classpath>
        </javac>
        <mkdir dir="${compile.dir}/jingle/extension" />
        <javac
            destdir="${compile.dir}/jingle/extension"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/jingle/extension/source" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                <fileset dir="${jingle.extension.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                                <fileset dir="${jingle.extension.merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                                <pathelement path="${compile.dir}"/>
            </classpath>
        </javac>
    </target>

    <!-- compile-test -->
    <!-- ======================================================================================= -->
    <target name="compile-test" description="Compiles all source to ${compile.dir}.">
        <!-- make target dir -->
        <mkdir dir="${compile.test.dir}" />
        <javac
            destdir="${compile.test.dir}"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/source" />
            <src path="${test.dir}" />
            <src path="${test-unit.dir}" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                <fileset dir="${basedir}/build">
                    <include name="4.10.jar"/>
                    <include name="mockito-all-1.8.2.jar"/>
                    <include name="powermock-mockito-1.3.5-full.jar"/>
                </fileset>
                <fileset dir ="${basedir}/build/build">
                    <include name="xmlunit.jar"/>
                    <include name="java-xmlbuilder-0.3.jar" />
                </fileset><commit_msg>build.xml: Fixed accidentially deleted 'junit-' at target test-unit<commit_after><?xml version="1.0"?>

<!-- Smack Build Script ========================================== -->
<!-- Jive Software      ============================================== -->

<!--
    $RCSfile$
    $Revision$
    $Date$
-->

<project name="Smack" default="all" basedir="..">

    <!-- TASKDEFS -->
    <!-- ======================================================================================= -->
    <!-- ======================================================================================= -->

    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="${basedir}/build/ant-contrib.jar"/>
        </classpath>
    </taskdef>

    <!-- PROPERTIES -->
    <!-- ======================================================================================= -->

    <!-- Smack Version -->
    <property name="version.major" value="3" />
    <property name="version.minor" value="3" />
    <property name="version.revision" value="0" />
    <property name="version.extra" value="SNAPSHOT" />

    <if>
        <equals arg1="${version.extra}" arg2=""/>
        <then>
            <property name="version"
                      value="${version.major}.${version.minor}.${version.revision}"/>
            <property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}"/>
        </then>
        <else>
            <property name="version"
                      value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
            <property name="version.filename"
                      value="${version.major}_${version.minor}_${version.revision}_${version.extra}"/>
        </else>
    </if>
    <tstamp>
        <format property="builddate" pattern="MM/dd/yyyy"/>
    </tstamp>

    <property file="${basedir}/build/build.properties" />
    <property name="compile.dir" value="${basedir}/target/classes" />
    <property name="compile.test.dir" value="${basedir}/target/classes-test" />
    <property name="jar.dest.dir" value="${basedir}/target" />
    <property name="javadoc.dest.dir" value="${basedir}/target/javadoc" />
    <property name="merge.lib.dir" value="${basedir}/build/merge" />
    <property name="test.dir" value="${basedir}/test" />
    <property name="test-unit.dir" value="${basedir}/test-unit" />
    <property name="resources.dir" value="${basedir}/build/resources" />
    <property name="jingle.extension.merge.lib.dir" value="${basedir}/jingle/extension/build/merge" />
    <property name="jingle.extension.lib.dir" value="${basedir}/jingle/extension/build/lib" />

    <!-- Test props - override these defaults in the properties file or in command line -->
    <property name="test.host" value="localhost" />
    <property name="test.port" value="5222" />
    <property name="test.admin.username" value="admin" />
    <property name="test.admin.password" value="<PASSWORD>" />
    <property name="test.admin.resource" value="Test" />
    <property name="test.smack.debug" value="false" />

    <!-- PATHS, DEPENDIENCIES, PATTERNS -->
    <!-- ======================================================================================= -->
    <!-- ======================================================================================= -->

    <patternset id="test.cases">
        <include name="org/jivesoftware/smack/**/*Test.java" />
        <include name="org/jivesoftware/smackx/**/*Test.java" />
        <exclude name="org/jivesoftware/smack/**/Messenger*Test.java" />
    </patternset>

    <patternset id="messenger.test.cases">
        <include name="org/jivesoftware/smack/**/Messenger*Test.java" />
    </patternset>

    <!-- TARGETS -->
    <!-- ======================================================================================= -->

    <!-- all -->
    <!-- ======================================================================================= -->
    <target name="all" depends="jar" description="Calls 'jar' target by default">
    </target>

    <!-- compile -->
    <!-- ======================================================================================= -->
    <target name="compile" description="Compiles all source to ${compile.dir}.">
        <!-- make target dir -->
        <mkdir dir="${compile.dir}" />
        <javac
            destdir="${compile.dir}"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/source" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
            </classpath>
        </javac>
        <mkdir dir="${compile.dir}/jingle/extension" />
        <javac
            destdir="${compile.dir}/jingle/extension"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/jingle/extension/source" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                <fileset dir="${jingle.extension.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                                <fileset dir="${jingle.extension.merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                                <pathelement path="${compile.dir}"/>
            </classpath>
        </javac>
    </target>

    <!-- compile-test -->
    <!-- ======================================================================================= -->
    <target name="compile-test" description="Compiles all source to ${compile.dir}.">
        <!-- make target dir -->
        <mkdir dir="${compile.test.dir}" />
        <javac
            destdir="${compile.test.dir}"
            includeAntRuntime="no"
            debug="on"
            source="1.6"
            target="1.6"
        >
            <src path="${basedir}/source" />
            <src path="${test.dir}" />
            <src path="${test-unit.dir}" />
            <classpath>
                <fileset dir="${merge.lib.dir}">
                    <include name="*.jar"/>
                </fileset>
                <fileset dir="${basedir}/build">
                    <include name="junit-4.10.jar"/>
                    <include name="mockito-all-1.8.2.jar"/>
                    <include name="powermock-mockito-1.3.5-full.jar"/>
                </fileset>
                <fileset dir ="${basedir}/build/build">
                    <include name="xmlunit.jar"/>
                    <include name="java-xmlbuilder-0.3.jar" />
                </fileset>
{'fraction_non_alphanumeric': 0.29598293113596236, 'fraction_numerical': 0.005002942907592701, 'mean_word_length': 2.2565884044082414, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 2, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '6837318', 'n_tokens_mistral': 3655, 'n_tokens_neox': 3408, 'n_words': 530}