<commit_before><?xml version="1.0"?>
<!--
	Builds API documentation and PEAR compliant packages.
	
	Phing 2.2.0 (http://phing.info) or newer recommended.
	
	@version $Id$
	@author <NAME> <<EMAIL>> 
-->	
<project name="Doctrine" basedir="." default="main">
	
	<property name="base.name" value="Doctrine"/>
	<property name="project.base.dir" value="../.."/>
	<property name="build.base.dir" value="${project.base.dir}/build"/>	
	<property name="build.dest.dir" value="${build.base.dir}/tobuild"/>
	
	<fileset dir="${project.base.dir}/lib" id="classes">			
		<include name="**/**"/>
		<exclude name="**/.svn**"/>
	</fileset>

	<fileset dir="${project.base.dir}/manual" id="docs">
		<include name="**/**"/>
        <exclude name="**/.svn**"/>
	</fileset>

	<fileset dir="${project.base.dir}/tests" id="test">
		<include name="**/**"/>
		<exclude name="**/.svn**"/>
		<exclude name="**/.svn*/*.txt"/>
		<exclude name=".svn/**"/>
		<exclude name=".svn**"/>
	</fileset>

	<target name="main">
		<phingcall target="build"/>
		<phingcall target="generate-docs"/> 
<!--		<phingcall target="pear-package"/> -->
<!--		<phingcall target="compress"/> -->
	</target>
		
	<target name="build">
		<echo>-----------------------------</echo>
		<echo>| Creating directory layout |</echo>
		<echo>-----------------------------</echo>
		
		<delete dir="${build.base.dir}"/>
		
		<copy todir="${build.dest.dir}/lib">			
			<fileset refid="classes"/>						
		</copy>

		<copy todir="${build.dest.dir}/docs">			
			<fileset refid="docs"/>						
		</copy>

		<copy todir="${build.dest.dir}/test">			
			<fileset refid="test"/>						
		</copy>
		
		
		<svnlastrevision svnpath="svn" workingcopy="${project.base.dir}" propertyname="svn.lastrevision"/>
		<property name="version" value="0.0.${svn.lastrevision}"/>

		<fileset dir="${build.dest.dir}" id="php-files">			
			<include name="**/**.php"/>
			<exclude name="**/.svn**"/>
		</fileset>

		<reflexive>
	  		<fileset refid="php-files" />
			<filterchain>
				<replaceregexp>
			      <regexp pattern="@version \$(.*)\$" replace="@version \$$1\$ Package ver: ${version}"/>
			    </replaceregexp>
			</filterchain>
			<filterchain>
  				<tabtospaces tablength="4" />
			</filterchain>
		</reflexive>
		
	</target>

	<target name="generate-docs">
		<!-- 
			Generates the API documentation using Doxygen and PHPDoc 
			Doxygen is required in the path.
		-->
		
		<exec command="doxygen" dir="."/>
		<!-- <exec command="make pdf" dir="${build.src.dir}/docs/latex"/> -->		
		<phpdoc title="Doctrine Documentation" destdir="${build.dest.dir}/docs/API/phpdoc/html" 
                        sourcepath="${project.base.dir}/lib" output="HTML:Smarty:PHP"/>
	</target>
	<commit_msg>Fixed the Phing build script to build the API documentation (Thanks meus for supplying the patch)<commit_after><?xml version="1.0"?>
<!--
	Builds API documentation and PEAR compliant packages.
	
	Phing 2.2.0 (http://phing.info) or newer recommended.
	
	@version $Id$
	@author <NAME> <<EMAIL>> 
-->	
<project name="Doctrine" basedir="." default="main">
	
	<property name="base.name" value="Doctrine"/>
	<property name="project.base.dir" value="../.."/>
	<property name="build.base.dir" value="${project.base.dir}/build"/>	
	<property name="build.dest.dir" value="${build.base.dir}/tobuild"/>
	
	<fileset dir="${project.base.dir}/lib" id="classes">			
		<include name="**/**"/>
		<exclude name="**/.svn**"/>
	</fileset>

	<fileset dir="${project.base.dir}/manual" id="docs">
		<include name="**/**"/>
        <exclude name="**/.svn**"/>
	</fileset>

	<fileset dir="${project.base.dir}/tests" id="test">
		<include name="**/**"/>
		<exclude name="**/.svn**"/>
		<exclude name="**/.svn*/*.txt"/>
		<exclude name=".svn/**"/>
		<exclude name=".svn**"/>
	</fileset>

	<target name="main">
		<phingcall target="build"/>
		<phingcall target="generate-docs"/> 
<!--		<phingcall target="pear-package"/> -->
<!--		<phingcall target="compress"/> -->
	</target>
		
	<target name="build">
		<echo>-----------------------------</echo>
		<echo>| Creating directory layout |</echo>
		<echo>-----------------------------</echo>
		
		<delete dir="${build.base.dir}"/>
		
		<copy todir="${build.dest.dir}/lib">			
			<fileset refid="classes"/>						
		</copy>

		<copy todir="${build.dest.dir}/docs">			
			<fileset refid="docs"/>						
		</copy>

		<copy todir="${build.dest.dir}/test">			
			<fileset refid="test"/>						
		</copy>
		
		
		<svnlastrevision svnpath="svn" workingcopy="${project.base.dir}" propertyname="svn.lastrevision"/>
		<property name="version" value="0.0.${svn.lastrevision}"/>

		<fileset dir="${build.dest.dir}" id="php-files">			
			<include name="**/**.php"/>
			<exclude name="**/.svn**"/>
		</fileset>

		<reflexive>
	  		<fileset refid="php-files" />
			<filterchain>
				<replaceregexp>
			      <regexp pattern="@version \$(.*)\$" replace="@version \$$1\$ Package ver: ${version}"/>
			    </replaceregexp>
			</filterchain>
			<filterchain>
  				<tabtospaces tablength="4" />
			</filterchain>
		</reflexive>
		
	</target>

	<target name="generate-docs">
		<!-- 
			Generates the API documentation using Doxygen and PHPDoc 
			Doxygen is required in the path.
		-->
		<mkdir dir="${build.dest.dir}/docs/API/doxygen" />		
		<exec command="doxygen" dir="."/>
		<!-- <exec command="make pdf" dir="${build.src.dir}/docs/latex"/> -->		
		
		<mkdir dir="${build.dest.dir}/docs/API/phpdoc" />
		<phpdoc title="Doctrine Documentation" destdir="${build.dest.dir}/docs/API/phpdoc/html" 
                        sourcepath="${project.base.dir}/lib" output="HTML:Smarty:PHP"/>
	</target>
	
{'fraction_non_alphanumeric': 0.24932927919871223, 'fraction_numerical': 0.003219459846181363, 'mean_word_length': 3.069868995633188, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 2, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5178761', 'n_tokens_mistral': 2202, 'n_tokens_neox': 1888, 'n_words': 355}