<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<!--(c) Copyright 2008, VersionOne, Inc. All rights reserved. (c)-->
<project name="V1CC">

    <!-- Compiler settings -->
    <property name="compiler.debug" value="on"/>
    <property name="compiler.generate.no.warnings" value="off"/>
    <property name="compiler.max.memory" value="128m"/>
    <property name="compiler.args" value=""/>

    <!--Settings-->
    <property name="ver.major" value="8"/>
    <property name="ver.minor" value="1"/>
    <property name="ver.build" value="0"/>
    <property name="publish.dir" value="./_publish"/>
    <property name="build.version" value="${ver.major}.${ver.minor}.${ver.build}"/>
    <property name="jar.filename" value="V1Publisher.jar"/>
    <property name="zip.filename" value="CruiseControlPublisher.${build.version}.zip"/>
    <property name="coverage.file" value="cobertura.ser"/>

    <!-- Directories -->
    <property name="base.dir" value="."/>
    <property name="build.dir" value="${basedir}/Common"/>
    <property name="bin.product.dir" value="${build.dir}/bin_production"/>
    <property name="lib.dir" value="${basedir}/lib"/>
    <property name="distr.dir" value="${basedir}/distr"/>
    <property name="junit.output.dir" value="junit"/>
    <property name="src.dir" value="${basedir}/src"/>
    <property name="coverage.dir" value="coverage"/>
    <property name="coverage.classes" value="${coverage.dir}/classes"/>
    <property name="coverage.junit" value="${coverage.dir}/junit"/>


    <path id="classpath">
        <pathelement location="${lib.dir}/VersionOne.APIClient.jar"/>
        <pathelement location="${lib.dir}/cruisecontrol.jar"/>
        <pathelement location="${lib.dir}/jdom.jar"/>
        <pathelement location="${lib.dir}/log4j.jar"/>
        <pathelement location="${lib.dir}/jaxen-1.1-beta-8.jar"/>
        <pathelement location="${lib.dir}/VersionOne.ObjectModel.jar"/>
	<pathelement location="${lib.dir}/junit-4.4.jar"/>
	<pathelement location="${lib.dir}/cobertura.jar"/>
    </path>


    <taskdef classpath="${lib.dir}/cobertura.jar" resource="tasks.properties">
        <classpath>
            <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
        </classpath>
    </taskdef>


    <target name="compile.clean">
        <delete dir="${bin.product.dir}"/>
    </target>

    <target name="compile" depends="compile.clean"
            description="Compile V1CruiseControl Publisher; production classes">
        <mkdir dir="${bin.product.dir}"/>

        <javac destdir="${bin.product.dir}" debug="${compiler.debug}"
               nowarn="${compiler.generate.no.warnings}"
               memorymaximumsize="${compiler.max.memory}"
               fork="true">
            <src path="${base.dir}/src"/>
            <src path="${base.dir}/tests"/>
            <compilerarg line="${compiler.args}"/>
            <classpath refid="classpath"/>
        </javac>
    </target>

    <target name="package.clean">
        <delete file="${build.dir}/${jar.filename}"/>
    </target>

    <target name="package" depends="package.clean, compile"
            description="creating jar parckage">
        <jar jarfile="${build.dir}/${jar.filename}">

	    <fileset dir="${bin.product.dir}"
                excludes="**/PublisherTester.class, **/DOMtoJDOM.class"/>
            <manifest>
                <attribute name="BuiltBy" value="VersionOne"/>
                <attribute name="Main-Class"
                           value="com.versionone.cruisecontrol.publisher.VersionOnePublisher"/>
            </manifest>
        </jar>
    </target>

    <target name="plugin.test" depends="compile">
        <mkdir dir="${junit.output.dir}"/>
        <junit fork="yes" printsummary="withOutAndErr">
            <classpath>
	       <pathelement location="${bin.product.dir}"/>
	       <path refid="classpath"/>
            </classpath>
            <formatter type="xml"/>


            <batchtest fork="yes" todir="${junit.output.dir}">
                <fileset dir="${bin.product.dir}">
	            <include name="**/PublisherTester.class"/>
                </fileset>
            </batchtest>
        </junit>
    </target>

    <target name="zip.clean">
        <delete dir="${distr.dir}"/>
        <delete file="${zip.filename}"/>
	<!--<delete dir="${publish.dir}"/>-->
	<delete dir="${junit.output.dir}"/>
	<delete dir="." includes="cobertura.ser"/>
    </target>

    <target name="zip.plugin" depends="zip.clean, package">
        <mkdir dir="${distr.dir}"/>
	<mkdir dir="${publish.dir}"/>

        <copy file="${build.dir}/${jar.filename}" todir="${distr.dir}"/>
        <copy file="${lib.dir}/VersionOne.APIClient.jar" todir="${distr.dir}"/>
        <copy file="${lib.dir}/VersionOne.ObjectModel.jar"
              todir="${distr.dir}"/>
        <copy file="readme.txt" todir="${distr.dir}"/>

        <zip destfile="${publish.dir}/${zip.filename}" basedir="${distr.dir}"/>
    </target>


    <target name="coverage.init">
        <mkdir dir="${coverage.classes}"/>
        <mkdir dir="${coverage.junit}"/>
    </target>

    <target name="coverage.clean">
        <delete dir="${coverage.dir}"/>
        <delete file="${coverage.file}"/>
    </target>

    <target name="coverage" depends="compile, coverage.clean, coverage.init">
        <cobertura-instrument todir="${coverage.classes}" datafile="${coverage.file}">
            	    <fileset dir="${bin.product.dir}">
			<include name="**/*.class"/>
                	<exclude name="**/PublisherTester.class"/>
			<exclude name="**/DOMtoJDOM.class"/>
		    </fileset>
        </cobertura-instrument>

        <junit fork="yes" printsummary="withOutAndErr">
            <sysproperty key="net.sourceforge.cobertura.datafile" file="${coverage.file}"/>
            <!--<sysproperty key="test.websiteurl" value="${test.websiteurl}"/>-->

            <classpath>
	       <pathelement location="${coverage.classes}"/>
	       <pathelement location="${bin.product.dir}"/>
	       <path refid="classpath"/>
            </classpath>
            <formatter type="xml"/>


            <batchtest fork="yes" todir="${junit.output.dir}">
                <fileset dir="${bin.product.dir}">
	            <include name="**/PublisherTester.class"/>
                </fileset>
            </batchtest>
        </junit>

        <cobertura-report datafile="${coverage.file}" destdir="${coverage.dir}/html">
            <fileset dir="${src.dir}" includes="**/*"/>
        </cobertura-report>
        <cobertura-report datafile="${coverage.file}" format="xml" destdir="${coverage.dir}">
            <fileset dir="${src.dir}" includes="**/*"/>
        </cobertura-report>
        <move file="${coverage.dir}/coverage.xml" tofile="${coverage.dir}/coverage.raw"/>
        <xslt destdir="${coverage.dir}" style="${base.dir}/stripDTD.xsl" in="${coverage.dir}/coverage.raw"
            out="${coverage.dir}/coverage.xml"/>
    </target>


    <target name="clean" depends="compile.clean,package.clean,zip.clean"/>

    <target name="ccnet.build" depends="clean, compile, coverage, zip.plugin"/>
</project><commit_msg>fixed <commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<!--(c) Copyright 2008, VersionOne, Inc. All rights reserved. (c)-->
<project name="V1CC">

    <!-- Compiler settings -->
    <property name="compiler.debug" value="on"/>
    <property name="compiler.generate.no.warnings" value="off"/>
    <property name="compiler.max.memory" value="128m"/>
    <property name="compiler.args" value=""/>

    <!--Settings-->
    <property name="ver.major" value="8"/>
    <property name="ver.minor" value="1"/>
    <property name="ver.build" value="0"/>
    <property name="publish.dir" value="./_publish"/>
    <property name="build.version" value="${ver.major}.${ver.minor}.${ver.build}"/>
    <property name="jar.filename" value="V1Publisher.jar"/>
    <property name="zip.filename" value="CruiseControlPublisher.${build.version}.zip"/>
    <property name="coverage.file" value="cobertura.ser"/>

    <!-- Directories -->
    <property name="base.dir" value="."/>
    <property name="build.dir" value="${basedir}/Common"/>
    <property name="bin.product.dir" value="${build.dir}/bin_production"/>
    <property name="lib.dir" value="${basedir}/lib"/>
    <property name="distr.dir" value="${basedir}/distr"/>
    <property name="junit.output.dir" value="junit"/>
    <property name="src.dir" value="${basedir}/src"/>
    <property name="coverage.dir" value="coverage"/>
    <property name="coverage.classes" value="${coverage.dir}/classes"/>
    <property name="coverage.junit" value="${coverage.dir}/junit"/>


    <path id="classpath">
        <pathelement location="${lib.dir}/VersionOne.APIClient.jar"/>
        <pathelement location="${lib.dir}/cruisecontrol.jar"/>
        <pathelement location="${lib.dir}/jdom.jar"/>
        <pathelement location="${lib.dir}/log4j.jar"/>
        <pathelement location="${lib.dir}/jaxen-1.1-beta-8.jar"/>
        <pathelement location="${lib.dir}/VersionOne.ObjectModel.jar"/>
	<pathelement location="${lib.dir}/junit-4.4.jar"/>
	<pathelement location="${lib.dir}/cobertura.jar"/>
    </path>


    <taskdef classpath="${lib.dir}/cobertura.jar" resource="tasks.properties">
        <classpath>
            <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
        </classpath>
    </taskdef>


    <target name="compile.clean">
        <delete dir="${bin.product.dir}"/>
    </target>

    <target name="compile" depends="compile.clean"
            description="Compile V1CruiseControl Publisher; production classes">
        <mkdir dir="${bin.product.dir}"/>

        <javac destdir="${bin.product.dir}" debug="${compiler.debug}"
               nowarn="${compiler.generate.no.warnings}"
               memorymaximumsize="${compiler.max.memory}"
               fork="true">
            <src path="${base.dir}/src"/>
            <src path="${base.dir}/tests"/>
            <compilerarg line="${compiler.args}"/>
            <classpath refid="classpath"/>
        </javac>
    </target>

    <target name="package.clean">
        <delete file="${build.dir}/${jar.filename}"/>
    </target>

    <target name="package" depends="package.clean, compile"
            description="creating jar parckage">
        <jar jarfile="${build.dir}/${jar.filename}">

	    <fileset dir="${bin.product.dir}"
                excludes="**/PublisherTester.class, **/DOMtoJDOM.class"/>
            <manifest>
                <attribute name="BuiltBy" value="VersionOne"/>
                <attribute name="Main-Class"
                           value="com.versionone.cruisecontrol.publisher.VersionOnePublisher"/>
            </manifest>
        </jar>
    </target>

    <target name="plugin.test" depends="compile">
        <mkdir dir="${junit.output.dir}"/>
        <junit fork="yes" printsummary="withOutAndErr">
            <classpath>
	       <pathelement location="${bin.product.dir}"/>
	       <path refid="classpath"/>
            </classpath>
            <formatter type="xml"/>


            <batchtest fork="yes" todir="${junit.output.dir}">
                <fileset dir="${bin.product.dir}">
	            <include name="**/PublisherTester.class"/>
                </fileset>
            </batchtest>
        </junit>
    </target>

    <target name="zip.clean">
        <delete dir="${distr.dir}"/>
        <delete file="${zip.filename}"/>
	<!--<delete dir="${publish.dir}"/>-->
	<delete dir="${junit.output.dir}"/>
	<delete dir="." includes="cobertura.ser"/>
    </target>

    <target name="zip.plugin" depends="zip.clean, package">
        <mkdir dir="${distr.dir}"/>
	<mkdir dir="${publish.dir}"/>

        <copy file="${build.dir}/${jar.filename}" todir="${distr.dir}"/>
        <copy file="${lib.dir}/VersionOne.APIClient.jar" todir="${distr.dir}"/>
        <copy file="${lib.dir}/VersionOne.ObjectModel.jar"
              todir="${distr.dir}"/>
        <copy file="readme.txt" todir="${distr.dir}"/>

        <zip destfile="${publish.dir}/${zip.filename}" basedir="${distr.dir}"/>
    </target>


    <target name="coverage.init">
        <mkdir dir="${coverage.classes}"/>
        <mkdir dir="${coverage.junit}"/>
    </target>

    <target name="coverage.clean">
        <delete dir="${coverage.dir}"/>
        <delete file="${coverage.file}"/>
    </target>

    <target name="coverage" depends="compile, coverage.clean, coverage.init">
	<mkdir dir="${junit.output.dir}"/>
        <cobertura-instrument todir="${coverage.classes}" datafile="${coverage.file}">
            	    <fileset dir="${bin.product.dir}">
			<include name="**/*.class"/>
                	<exclude name="**/PublisherTester.class"/>
			<exclude name="**/DOMtoJDOM.class"/>
		    </fileset>
        </cobertura-instrument>

        <junit fork="yes" printsummary="withOutAndErr">
            <sysproperty key="net.sourceforge.cobertura.datafile" file="${coverage.file}"/>
            <!--<sysproperty key="test.websiteurl" value="${test.websiteurl}"/>-->

            <classpath>
	       <pathelement location="${coverage.classes}"/>
	       <pathelement location="${bin.product.dir}"/>
	       <path refid="classpath"/>
            </classpath>
            <formatter type="xml"/>


            <batchtest fork="yes" todir="${junit.output.dir}">
                <fileset dir="${bin.product.dir}">
	            <include name="**/PublisherTester.class"/>
                </fileset>
            </batchtest>
        </junit>

        <cobertura-report datafile="${coverage.file}" destdir="${coverage.dir}/html">
            <fileset dir="${src.dir}" includes="**/*"/>
        </cobertura-report>
        <cobertura-report datafile="${coverage.file}" format="xml" destdir="${coverage.dir}">
            <fileset dir="${src.dir}" includes="**/*"/>
        </cobertura-report>
        <move file="${coverage.dir}/coverage.xml" tofile="${coverage.dir}/coverage.raw"/>
        <xslt destdir="${coverage.dir}" style="${base.dir}/stripDTD.xsl" in="${coverage.dir}/coverage.raw"
            out="${coverage.dir}/coverage.xml"/>
    </target>


    <target name="clean" depends="compile.clean,package.clean,zip.clean"/>

    <target name="ccnet.build" depends="clean, compile, coverage, plugin.test, zip.plugin"/>
</project>
{'fraction_non_alphanumeric': 0.2053846153846154, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 2.741758241758242, 'pattern_counts': {'":': 0, '<': 294, '<?xml version=': 2, '>': 294, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '1581985', 'n_tokens_mistral': 4394, 'n_tokens_neox': 4208, 'n_words': 669}