<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="messaging-replication">

    <description>Build descriptor for the messaging-replication extension of eXist-db</description>

    <property file="local.build.properties"/>
    <property file="build.properties"/>

    <property name="build.dir" value="build"/>
    <property name="build.libs" value="${build.dir}/lib"/>
    <property name="build.config" value="${build.dir}/config"/>
    <property name="build.javadoc" value="${build.dir}/javadoc"/>
    <property name="dist.dir" value="dist"/>

    <property name="java.src" value="java/src"/>
    <property name="java.classes" value="${build.dir}/classes"/>
    <property name="java.libs" value="java/lib"/>

    <property name="web.dir" value="web"/>
    <property name="config.dir" value="config"/>

    <!-- Setup IVY download manager -->
    <path id="ivy.lib.path">
        <fileset dir="build/lib" includes="ivy*.jar" erroronmissingdir="false"/>
    </path>

    <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>

    <!-- Seup build path -->
    <path id="classpath">
        <fileset dir="${exist.dir}">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/lib/core">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/lib/optional">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/tools/jetty/lib">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${java.libs}">
            <include name="*.jar"/>
        </fileset>
    </path>

    <target name="setup" description="Download the Ivy dependency manager">
        <mkdir dir="${build.libs}"/>
		<echo>${ivy_url}</echo>
        <get src="${ivy_url}" dest="${build.libs}"/>
    </target>

	<!-- Be sure the 'setup' task has been executed first -->
    <target name="download" description="Download 3d party JAR files" xmlns:ivy="antlib:org.apache.ivy.ant">
        <ivy:retrieve sync="true" pattern="${java.libs}/[artifact]-[revision](-[classifier]).[ext]"/>
    </target>

    <target name="process" description="Process template files">
        <copy todir="${build.config}">
            <fileset dir="${config.dir}"/>
            <filterset>
                <filter token="VERSION" value="${module.version}"/>
                <filter token="TITLE" value="${module.title}"/>
            </filterset>
        </copy>
    </target>

    <target name="prepare" depends="process" description="Create empty directories">
        <tstamp/>
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${build.libs}"/>
        <mkdir dir="${build.config}"/>
        <mkdir dir="${java.classes}"/>
        <mkdir dir="${java.libs}"/>
    </target>

    <target name="clean" description="Clean up all generated files">
        <delete dir="${build.dir}" includes="*.jar"/>
        <delete dir="${build.dir}/classes"/>
        <delete dir="${dist.dir}"/>
    </target>

    <target name="clean-all" depends="clean" description="Reset to clean state">
        <delete dir="${build.dir}"/>
        <delete dir="${java.libs}"/>
    </target>

    <target name="compile" depends="prepare,download" description="Compile java sources">
        <javac srcdir="${java.src}" destdir="${java.classes}" optimize="true" debug="true" target="${javac.target}"
            source="${javac.source}" includeantruntime="false">
            <classpath>
                <path refid="classpath"/>
            </classpath>
            <!-- <compilerarg value="-Xlint"/> -->
        </javac>
    </target>

    <target name="jar" depends="compile" description="Create JAR file">
        <jar basedir="${java.classes}" jarfile="${build.dir}/exist-${module.name}-${module.version}.jar">
            <manifest>
                <attribute name="Project-Name" value="${module.name}"/>
                <attribute name="Project-Version" value="${module.version}"/>
                <attribute name="Project-Build" value="${DSTAMP}"/>
            </manifest>
        </jar>
    </target>

    <target name="javadoc" depends="prepare" description="Generate Javadocs">
        <mkdir dir="${build.javadoc}"/>
        <javadoc sourcepath="${java.src}" destdir="${build.javadoc}" classpathref="classpath">
            <link href="http://docs.oracle.com/javase/7/docs/api/"/>
            <link href="http://docs.oracle.com/javaee/7/api/"/>
            <link href="http://exist-db.org/exist/api/"/>
			<link href="http://xmldb.exist-db.org/javadoc"/>
        </javadoc>
    </target>

    <target name="xar" depends="jar" description="Create XAR files">

        <!-- create web application --><commit_msg>Added additional compiler arguments, off by default<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="messaging-replication">

    <description>Build descriptor for the messaging-replication extension of eXist-db</description>

    <property file="local.build.properties"/>
    <property file="build.properties"/>

    <property name="build.dir" value="build"/>
    <property name="build.libs" value="${build.dir}/lib"/>
    <property name="build.config" value="${build.dir}/config"/>
    <property name="build.javadoc" value="${build.dir}/javadoc"/>
    <property name="dist.dir" value="dist"/>

    <property name="java.src" value="java/src"/>
    <property name="java.classes" value="${build.dir}/classes"/>
    <property name="java.libs" value="java/lib"/>

    <property name="web.dir" value="web"/>
    <property name="config.dir" value="config"/>

    <!-- Setup IVY download manager -->
    <path id="ivy.lib.path">
        <fileset dir="build/lib" includes="ivy*.jar" erroronmissingdir="false"/>
    </path>

    <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>

    <!-- Seup build path -->
    <path id="classpath">
        <fileset dir="${exist.dir}">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/lib/core">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/lib/optional">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${exist.dir}/tools/jetty/lib">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${java.libs}">
            <include name="*.jar"/>
        </fileset>
    </path>

    <target name="setup" description="Download the Ivy dependency manager">
        <mkdir dir="${build.libs}"/>
		<echo>${ivy_url}</echo>
        <get src="${ivy_url}" dest="${build.libs}"/>
    </target>

	<!-- Be sure the 'setup' task has been executed first -->
    <target name="download" description="Download 3d party JAR files" xmlns:ivy="antlib:org.apache.ivy.ant">
        <ivy:retrieve sync="true" pattern="${java.libs}/[artifact]-[revision](-[classifier]).[ext]"/>
    </target>

    <target name="process" description="Process template files">
        <copy todir="${build.config}">
            <fileset dir="${config.dir}"/>
            <filterset>
                <filter token="VERSION" value="${module.version}"/>
                <filter token="TITLE" value="${module.title}"/>
            </filterset>
        </copy>
    </target>

    <target name="prepare" depends="process" description="Create empty directories">
        <tstamp/>
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${build.libs}"/>
        <mkdir dir="${build.config}"/>
        <mkdir dir="${java.classes}"/>
        <mkdir dir="${java.libs}"/>
    </target>

    <target name="clean" description="Clean up all generated files">
        <delete dir="${build.dir}" includes="*.jar"/>
        <delete dir="${build.dir}/classes"/>
        <delete dir="${dist.dir}"/>
    </target>

    <target name="clean-all" depends="clean" description="Reset to clean state">
        <delete dir="${build.dir}"/>
        <delete dir="${java.libs}"/>
    </target>

    <target name="compile" depends="prepare,download" description="Compile java sources">
        <javac srcdir="${java.src}" destdir="${java.classes}" optimize="true" debug="true" target="${javac.target}"
            source="${javac.source}" includeantruntime="false">
            <classpath>
                <path refid="classpath"/>
            </classpath>
            <!-- 
				<compilerarg value="-Xlint:unchecked"/>
				<compilerarg value="-Xlint:deprecation"/>
				<compilerarg value="-Xlint"/> 
			-->
        </javac>
    </target>

    <target name="jar" depends="compile" description="Create JAR file">
        <jar basedir="${java.classes}" jarfile="${build.dir}/exist-${module.name}-${module.version}.jar">
            <manifest>
                <attribute name="Project-Name" value="${module.name}"/>
                <attribute name="Project-Version" value="${module.version}"/>
                <attribute name="Project-Build" value="${DSTAMP}"/>
            </manifest>
        </jar>
    </target>

    <target name="javadoc" depends="prepare" description="Generate Javadocs">
        <mkdir dir="${build.javadoc}"/>
        <javadoc sourcepath="${java.src}" destdir="${build.javadoc}" classpathref="classpath">
            <link href="http://docs.oracle.com/javase/7/docs/api/"/>
            <link href="http://docs.oracle.com/javaee/7/api/"/>
            <link href="http://exist-db.org/exist/api/"/>
			<link href="http://xmldb.exist-db.org/javadoc"/>
        </javadoc>
    </target>

    <target name="xar" depends="jar" description="Create XAR files">

        <!-- create web application -->
{'fraction_non_alphanumeric': 0.19954389965792474, 'fraction_numerical': 0.0012439100238416088, 'mean_word_length': 2.765807962529274, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 2, '>': 213, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6042622', 'n_tokens_mistral': 2928, 'n_tokens_neox': 2774, 'n_words': 544}