<commit_before><!--
	FindBugs Test Cases Ant build script.
	Based on original FindBugs Ant Script by <NAME>.
	Rewritten 1/5/2005 by <NAME>, 2/6/2006 by <NAME>.
-->

<project name="findbugsTestCases" default="build">

	<property file="build.properties" />
	<!-- 
	        The local.properties properties file contains the location of findbugs.home 

	        This value is likely to be different for each checkout of the plugin,
	        so the local.properties file is not managed by cvs
	        
	-->
	<property file="local.properties" />
        <property name="fb-ant.jar" value="${findbugs.home}/lib/findbugs-ant.jar" />
        <property name="fb-baseline-ant.jar" value="${findbugs-baseline.home}/lib/findbugs-ant.jar" />
	<property name="history.dir" value="history"/>


	<target name="build" depends="classes,runfindbugs" />

         <target name="init">
                <!-- true to recompile FB core (if findbugs.jar is not there) -->
                <condition property="fb.recompile" >
                  <not><available file="${fb-ant.jar}" /></not>
		</condition>
        </target>

        <target name="fbcompile" if="fb.recompile" >
                <echo message="Building Findbugs core libraries"/>
                <ant dir="${findbugs.home}" inheritall="false" target="build" />
        </target>



	<target name="classes">
		<mkdir dir="build/classes"/>
		<javac  destdir="build/classes" source="1.6" debug="on">
			<src path="src/java"/>
			<src path="src/fakeAnnotations"/>
			<src path="src/fakeLibraries"/>
			<classpath>
				<pathelement location="build/classes"/>
				<pathelement location="${findbugs.home}/lib/annotations.jar" />
				<pathelement location="${findbugs.home}/lib/jsr305.jar"/>
				<pathelement location="${junit.home}/junit.jar"/>
				<pathelement location="lib/j2ee.jar"/>
				<pathelement location="lib/joda-time-1.6.jar"/>
			</classpath>
		</javac>
	</target>

   <target name="jarFile" depends ="classes">
		<delete quiet="true">
			<fileset dir="build/all.jar"/>
		</delete>
		<jar destfile="build/all.jar">
			<fileset dir="build/classes"/>

		</jar>
	</target>
		

        <target name="clean">
                <delete dir="build/classes"/>
                <delete file="build/all.jar"/>
        </target>



	<target name="runfindbugs" depends="init,fbcompile,classes">	
	<echo>Home is ${fb-ant.jar}</echo>
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-ant.jar}"/>
		<parallel threadsPerProcessor="1">
			<antcall target="historyNormal"/> <!--   run findbugs effort=default, then merge or copy results -->       <!-- run findbugs effort=max, then merge or copy results -->
		</parallel>
	</target>

	<target name="runBaseline" depends="classes">
	<echo>Home is ${findbugs-baseline.home}</echo>
	<echo>fb-ant jar is ${fb-baseline-ant.jar}</echo>
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-baseline-ant.jar}"/>
	<findbugs home="${findbugs-baseline.home}"  jvmargs="-ea -Xmx600m"
                         output="xml" timestampNow="true" reportLevel="low" chooseVisitors="+CheckExpectedWarnings" outputFile="build/baseline.xml">
			<sourcePath path="${basedir}/src/java" />
			<auxclasspath location="${junit.home}/junit.jar:lib/j2ee.jar:lib/joda-time-1.6.jar"/>
			<class location="${basedir}/build/classes" />
		</findbugs>
	</target>

	
	<target name="runNormal" depends="classes">
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-ant.jar}"/>
		<findbugs home="${findbugs.home}"  jvmargs="-ea -Xmx600m"
                         output="xml:withMessages" timestampNow="true" reportLevel="low" chooseVisitors="+CheckExpectedWarnings" outputFile="build/normal.xml">
			<sourcePath path="${basedir}/src/java" />
			<auxclasspath location="${junit.home}/junit.jar:lib/j2ee.jar:lib/joda-time-1.6.jar"/>
			<class location="${basedir}/build/classes" />
		</findbugs>
	</target>

	
	<target name="historyNormal" depends="mergeNormal,copyNormal"/>

	<target name="mergeNormal" depends="runNormal,existance" if="exists.normal">
		<exec dir="." executable="${findbugs.home}/bin/computeBugHistory">
					<arg value="-output" />
					<arg file="${history.dir}/normal.xml" />
					<arg file="${history.dir}/normal.xml" />
					<arg file="build/normal.xml" />
		</exec>
	</target>

	
	<target name="existance">
		<available property="exists.normal" file="${history.dir}/normal.xml"/>
	</target>

	<target name="copyNormal" depends="runNormal,existance" unless="exists.normal">
		<copy file="build/normal.xml" todir="${history.dir}"/>
	</target>


</project>

<!-- vim:set ts=4: -->
<commit_msg>use path refid for classpath<commit_after><!--
	FindBugs Test Cases Ant build script.
	Based on original FindBugs Ant Script by <NAME>.
	Rewritten 1/5/2005 by <NAME>, 2/6/2006 by <NAME>.
-->

<project name="findbugsTestCases" default="build">

	<property file="build.properties" />
	<!-- 
	        The local.properties properties file contains the location of findbugs.home 

	        This value is likely to be different for each checkout of the plugin,
	        so the local.properties file is not managed by cvs
	        
	-->
	<property file="local.properties" />
        <property name="fb-ant.jar" value="${findbugs.home}/lib/findbugs-ant.jar" />
        <property name="fb-baseline-ant.jar" value="${findbugs-baseline.home}/lib/findbugs-ant.jar" />
	<property name="history.dir" value="history"/>

        <path id="build.classpath">
		<pathelement location="${findbugs.home}/lib/annotations.jar" />
		<pathelement location="${findbugs.home}/lib/jsr305.jar"/>
		<pathelement location="${junit.home}/junit.jar"/>
		<pathelement location="lib/j2ee.jar"/>
	</path>

	<target name="build" depends="classes,runfindbugs" />

         <target name="init">
                <!-- true to recompile FB core (if findbugs.jar is not there) -->
                <condition property="fb.recompile" >
                  <not><available file="${fb-ant.jar}" /></not>
		</condition>
        </target>

        <target name="fbcompile" if="fb.recompile" >
                <echo message="Building Findbugs core libraries"/>
                <ant dir="${findbugs.home}" inheritall="false" target="build" />
        </target>



	<target name="classes">
		<mkdir dir="build/classes"/>
		<javac  destdir="build/classes" source="1.6" debug="on">
			<src path="src/java"/>
			<src path="src/fakeAnnotations"/>
			<src path="src/fakeLibraries"/>
			<classpath>
				<path refid="build.classpath"/>
			</classpath>
		</javac>
	</target>

   <target name="jarFile" depends ="classes">
		<delete quiet="true">
			<fileset dir="build/all.jar"/>
		</delete>
		<jar destfile="build/all.jar">
			<fileset dir="build/classes"/>

		</jar>
	</target>
		

        <target name="clean">
                <delete dir="build/classes"/>
                <delete file="build/all.jar"/>
        </target>



	<target name="runfindbugs" depends="init,fbcompile,classes">	
	<echo>Home is ${fb-ant.jar}</echo>
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-ant.jar}"/>
		<parallel threadsPerProcessor="1">
			<antcall target="historyNormal"/> <!--   run findbugs effort=default, then merge or copy results -->       <!-- run findbugs effort=max, then merge or copy results -->
		</parallel>
	</target>

	<target name="runBaseline" depends="classes">
	<echo>Home is ${findbugs-baseline.home}</echo>
	<echo>fb-ant jar is ${fb-baseline-ant.jar}</echo>
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-baseline-ant.jar}"/>
	<findbugs home="${findbugs-baseline.home}"  jvmargs="-ea -Xmx600m"
                         output="xml" timestampNow="true" reportLevel="low" chooseVisitors="+CheckExpectedWarnings" outputFile="build/baseline.xml">
			<sourcePath path="${basedir}/src/java" />
			<auxclasspath location="${junit.home}/junit.jar:lib/j2ee.jar:lib/joda-time-1.6.jar"/>
			<class location="${basedir}/build/classes" />
		</findbugs>
	</target>

	
	<target name="runNormal" depends="classes">
	 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" 
           classpath="${fb-ant.jar}"/>
		<findbugs home="${findbugs.home}"  jvmargs="-ea -Xmx600m"
                         output="xml:withMessages" timestampNow="true" reportLevel="low" chooseVisitors="+CheckExpectedWarnings" outputFile="build/normal.xml">
			<sourcePath path="${basedir}/src/java" />
			<auxclasspath location="${junit.home}/junit.jar:lib/j2ee.jar:lib/joda-time-1.6.jar"/>
			<class location="${basedir}/build/classes" />
		</findbugs>
		<findbugs home="${findbugs.home}"  jvmargs="-ea -Xmx600m"
                         output="html" timestampNow="true" reportLevel="low" chooseVisitors="+CheckExpectedWarnings" outputFile="build/normal.html">
			<sourcePath path="${basedir}/src/java" />
			<auxclasspath location="${junit.home}/junit.jar:lib/j2ee.jar"/>
			<class location="${basedir}/build/classes" />
		</findbugs>
	</target>

	
	<target name="historyNormal" depends="mergeNormal,copyNormal"/>

	<target name="mergeNormal" depends="runNormal,existance" if="exists.normal">
		<exec dir="." executable="${findbugs.home}/bin/computeBugHistory">
					<arg value="-output" />
					<arg file="${history.dir}/normal.xml" />
					<arg file="${history.dir}/normal.xml" />
					<arg file="build/normal.xml" />
		</exec>
	</target>

	
	<target name="existance">
		<available property="exists.normal" file="${history.dir}/normal.xml"/>
	</target>

	<target name="copyNormal" depends="runNormal,existance" unless="exists.normal">
		<copy file="build/normal.xml" todir="${history.dir}"/>
	</target>


</project>

<!-- vim:set ts=4: -->

{'fraction_non_alphanumeric': 0.18178112899938864, 'fraction_numerical': 0.007132667617689016, 'mean_word_length': 3.457311534968211, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 207, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '1524287', 'n_tokens_mistral': 3427, 'n_tokens_neox': 3059, 'n_words': 581}