<commit_before><project name="umlgraph" default="compile" basedir=".">
<description>
	The specification for the Java-based umlgraph build processes.
	$Id$
</description>

<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="javadoc" location="javadoc"/>
<property name="lib" location="lib"/>
<property name="testsrc" location="test/src"/>
<property name="testout" location="${basedir}/testdata/dot-out"/>
<property name="testref" location="${basedir}/testdata/dot-ref"/>
<!-- import environment variables -->
<property environment="env"/>

<target name="init">
	<!-- Create the time stamp -->
	<tstamp/>
	<!-- Create the build directory structure used by compile -->
	<mkdir dir="${build}"/>
	<mkdir dir="${lib}"/>
	<mkdir dir="testdata/dot-out"/>
	<mkdir dir="${javadoc}"/>
</target>

<target name="version">
	<echo>Version is ${VERSION}</echo>
	<echo file="src/gr/spinellis/umlgraph/doclet/Version.java">/* Automatically generated file */
package gr.spinellis.umlgraph.doclet;
class Version { public static String VERSION = "${VERSION}";}
	</echo>
</target>

<target name="compile" depends="init"
	description="compile the source, build library " >
	<javac srcdir="${src}" destdir="${build}" debug="true" excludes="gr/spinellis/umlgraph/doclet/RCS/*,gr/spinellis/umlgraph/test/RCS/*"/>
	<jar basedir="${build}" destfile="${lib}/UmlGraph.jar" includes="gr/spinellis/umlgraph/doclet/*.class"/>
</target>

<target name="test" depends="compile"
	description="run the regression tests" >
	<java classname="gr.spinellis.umlgraph.test.BasicTest" fork="true">
         <classpath>
           <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
           <pathelement location="${build}"/>
           <pathelement location="${lib}/UmlGraph.jar"/>
         </classpath>
    </java>
	<java classname="gr.spinellis.umlgraph.test.UmlDocTest" fork="true">
	         <classpath>
	           <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
	           <pathelement location="${build}"/>
	           <pathelement location="${lib}/UmlGraph.jar"/>
	         </classpath>
	    </java>
	<apply executable="dot" dest="${testout}" parallel="false">
		<arg value="-Tpng"/>
		<arg value="-o"/>
		<targetfile/>
		<srcfile/>
	  <fileset dir="${testout}" includes="*.dot"/>
	  <mapper type="glob" from="*.dot" to="*.png"/>
	</apply>
	<apply executable="dot" dest="${testref}" parallel="false">
		<arg value="-Tpng"/>
		<arg value="-o"/>
		<targetfile/>
		<srcfile/>
	  <fileset dir="${testref}" includes="*.dot"/>
	  <mapper type="glob" from="*.dot" to="*.png"/>
	</apply>
</target>

<target name="javadocs" depends="compile">
	<javadoc sourcepath="${src}" packagenames="gr.spinellis.umlgraph.doclet.*" destdir="${javadoc}" private="true">
		<doclet name="gr.spinellis.umlgraph.doclet.UmlDoc" path="${lib}/UMLGraph.jar">
			<param name="-inferrel"/>
			<param name="-inferdep"/>
			<param name="-hide" value="java.*"/>
			<param name="-collpackages" value="java.util.*"/>
			<param name="-qualify"/>
			<param name="-postfixpackage"/>
			<param name="-nodefontsize" value="9"/>
			<param name="-nodefontpackagesize" value="7"/>
			<param name="-link" value="http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/doclet/spec"/>
			<param name="-link" value="http://java.sun.com/j2se/1.5/docs/api"/>
		</doclet>
	</javadoc>
</target>
	
</project><commit_msg>Correct the building of javadocs.<commit_after><project name="umlgraph" default="compile" basedir=".">
<description>
	The specification for the Java-based umlgraph build processes.
	$Id$
</description>

<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="javadoc" location="javadoc"/>
<property name="lib" location="lib"/>
<property name="testsrc" location="test/src"/>
<property name="testout" location="${basedir}/testdata/dot-out"/>
<property name="testref" location="${basedir}/testdata/dot-ref"/>
<!-- import environment variables -->
<property environment="env"/>

<target name="init">
	<!-- Create the time stamp -->
	<tstamp/>
	<!-- Create the build directory structure used by compile -->
	<mkdir dir="${build}"/>
	<mkdir dir="${lib}"/>
	<mkdir dir="testdata/dot-out"/>
	<mkdir dir="${javadoc}"/>
</target>

<target name="version">
	<echo>Version is ${VERSION}</echo>
	<echo file="src/gr/spinellis/umlgraph/doclet/Version.java">/* Automatically generated file */
package gr.spinellis.umlgraph.doclet;
class Version { public static String VERSION = "${VERSION}";}
	</echo>
</target>

<target name="compile" depends="init"
	description="compile the source, build library " >
	<javac srcdir="${src}" destdir="${build}" debug="true" excludes="gr/spinellis/umlgraph/doclet/RCS/*,gr/spinellis/umlgraph/test/RCS/*"/>
	<jar basedir="${build}" destfile="${lib}/UmlGraph.jar" includes="gr/spinellis/umlgraph/doclet/*.class"/>
</target>

<target name="test" depends="compile"
	description="run the regression tests" >
	<java classname="gr.spinellis.umlgraph.test.BasicTest" fork="true">
         <classpath>
           <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
           <pathelement location="${build}"/>
           <pathelement location="${lib}/UmlGraph.jar"/>
         </classpath>
    </java>
	<java classname="gr.spinellis.umlgraph.test.UmlDocTest" fork="true">
	         <classpath>
	           <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
	           <pathelement location="${build}"/>
	           <pathelement location="${lib}/UmlGraph.jar"/>
	         </classpath>
	    </java>
	<apply executable="dot" dest="${testout}" parallel="false">
		<arg value="-Tpng"/>
		<arg value="-o"/>
		<targetfile/>
		<srcfile/>
	  <fileset dir="${testout}" includes="*.dot"/>
	  <mapper type="glob" from="*.dot" to="*.png"/>
	</apply>
	<apply executable="dot" dest="${testref}" parallel="false">
		<arg value="-Tpng"/>
		<arg value="-o"/>
		<targetfile/>
		<srcfile/>
	  <fileset dir="${testref}" includes="*.dot"/>
	  <mapper type="glob" from="*.dot" to="*.png"/>
	</apply>
</target>

<target name="javadocs" depends="compile">
	<javadoc sourcepath="${src}" packagenames="gr.spinellis.umlgraph.doclet.*" destdir="${javadoc}" private="true">
		<doclet name="gr.spinellis.umlgraph.doclet.UmlGraphDoc" path="${lib}/UMLGraph.jar">
			<param name="-inferrel"/>
			<param name="-inferdep"/>
			<param name="-hide" value="java.*"/>
			<param name="-collpackages" value="java.util.*"/>
			<param name="-qualify"/>
			<param name="-postfixpackage"/>
			<param name="-nodefontsize" value="9"/>
			<param name="-nodefontpackagesize" value="7"/>
			<param name="-link" value="http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/doclet/spec"/>
			<param name="-link" value="http://java.sun.com/j2se/1.5/docs/api"/>
		</doclet>
	</javadoc>
</target>
	
</project>
{'fraction_non_alphanumeric': 0.21365286855482934, 'fraction_numerical': 0.00261437908496732, 'mean_word_length': 4.413522012578617, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5117869', 'n_tokens_mistral': 2370, 'n_tokens_neox': 2248, 'n_words': 441}