<commit_before><project name="kohana" default="help" basedir=".">
	<property environment="env"/>
	<property name="repo" value="<EMAIL>:kohana/kohana.git"/>
	<property name="branch" value="3.0.x"/>
	<property name="tag" value="${env.TAG}"/>
	<property name="submodules" value="system,modules/auth,modules/cache,modules/codebench,modules/database,modules/image,modules/oauth,modules/orm,modules/pagination,modules/unittest,modules/userguide"/>
	<property name="release-excludes" value="**/.git,**/.git*,build.xml,phpunit.xml,DEVELOPERS.md,phpunitcc,code_coverage.xml,release-tag,TESTING.md,**/tests"/>

	<!-- Clean up -->
	<target name="help">
		<echo message="USAGE"/>
		<echo message="====="/>
		<echo message="ant test       Run unit tests."/>
		<echo message="ant test-log   Run unit tests with logging enabled."/>
		<echo message="ant phpcs      Run phpcs."/>
		<echo message="ant phpcs-log  Run phpcs with logging enabled."/>

	</target>

	<!-- Clean up -->
	<target name="clean">
		<delete dir="${basedir}/build"/>
		<!-- Create build directories -->
		<mkdir dir="${basedir}/build/coverage"/>
		<mkdir dir="${basedir}/build/logs"/>
		<mkdir dir="${basedir}/build/release"/>
		<mkdir dir="${basedir}/build/code-browser"/>
	</target>

	<!-- Check if a tag has been supplied -->
	<target name="tag-supplied">
		<echo message="TODO: Check if tag has been supplied."/>
	</target>

	<!-- Check if a specific tag exists -->
	<target name="tag-exists" depends="tag-supplied">
		<echo message="TODO: Check if tag (${tag}) exists."/>
	</target>
	
	<!-- Run unit tests -->
	<target name="test">
		<exec executable="phpunit" failonerror="true"/>
	</target>

	<!-- Run unit tests and generate junit.xml and clover.xml -->
	<target name="test-log">
		<exec executable="phpunit" failonerror="true">
			<arg line="--coverage-html=${basedir}/build/coverage"/>
			<arg line="--log-junit=${basedir}/build/logs/junit.xml"/>
			<arg line="--coverage-clover=${basedir}/build/logs/clover.xml"/>
		</exec>
	</target>

	<!-- Run PHP Code Sniffer -->
	<target name="phpcs">
		<exec executable="phpcs" failonerror="false">
			<arg line="--standard=Kohana"/>
			<arg line="${basedir}/system/classes/kohana"/>
		</exec>
	</target>

	<!-- Run PHP Code Sniffer and generate checkstyle.xml -->
	<target name="phpcs-log">
		<exec executable="phpcs" failonerror="false" output="/dev/null">
			<arg line="--standard=Kohana"/>
			<arg line="--report=checkstyle"/>
			<arg line="--report-file=${basedir}/build/logs/checkstyle.xml"/>
			<arg line="${basedir}/system/classes/kohana"/>
		</exec>
	</target>

	<!-- Run PHP Mess Detector and generate pmd.xml -->
	<target name="phpmd-log">
		<exec executable="phpmd">
			<arg line="${basedir}/system/classes/kohana xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml" />
		</exec>
	</target>

	<!-- Run PHP Copy/Paste Detector and generate pmd.xml -->
	<target name="phpcpd-log">
		<exec executable="phpcpd">
			<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml ${basedir}/system/classes/kohana" />
		</exec>
	</target>

	<!-- Run PHP Depend and generate jdepend.xml -->
	<target name="pdepend-log">
		<exec executable="pdepend">
			<arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml ${basedir}/system/classes/kohana" />
		</exec>
	</target>

	<!-- Run PHP CodeBrowser and generate output -->
	<target name="phpcb-log">
		<exec executable="phpcb">
			<arg line="--log ${basedir}/build/logs --source ${basedir}/system/classes/kohana --output ${basedir}/build/code-browser" />
		</exec>
	</target>

	<!-- Hudson CI target --><commit_msg>Updating build.xml to run tools over all modules aswell as system..<commit_after><project name="kohana" default="help" basedir=".">
	<property environment="env"/>
	<property name="repo" value="<EMAIL>:kohana/kohana.git"/>
	<property name="branch" value="3.0.x"/>
	<property name="tag" value="${env.TAG}"/>
	<property name="submodules" value="system,modules/auth,modules/cache,modules/codebench,modules/database,modules/image,modules/oauth,modules/orm,modules/pagination,modules/unittest,modules/userguide"/>
	<property name="release-excludes" value="**/.git,**/.git*,build.xml,phpunit.xml,DEVELOPERS.md,phpunitcc,code_coverage.xml,release-tag,TESTING.md,**/tests"/>

	<!-- Clean up -->
	<target name="help">
		<echo message="USAGE"/>
		<echo message="====="/>
		<echo message="ant test       Run unit tests."/>
		<echo message="ant test-log   Run unit tests with logging enabled."/>
		<echo message="ant phpcs      Run phpcs."/>
		<echo message="ant phpcs-log  Run phpcs with logging enabled."/>

	</target>

	<!-- Clean up -->
	<target name="clean">
		<delete dir="${basedir}/build"/>
		<!-- Create build directories -->
		<mkdir dir="${basedir}/build/coverage"/>
		<mkdir dir="${basedir}/build/logs"/>
		<mkdir dir="${basedir}/build/release"/>
		<mkdir dir="${basedir}/build/code-browser"/>
	</target>

	<!-- Check if a tag has been supplied -->
	<target name="tag-supplied">
		<echo message="TODO: Check if tag has been supplied."/>
	</target>

	<!-- Check if a specific tag exists -->
	<target name="tag-exists" depends="tag-supplied">
		<echo message="TODO: Check if tag (${tag}) exists."/>
	</target>
	
	<!-- Run unit tests -->
	<target name="test">
		<exec executable="phpunit" failonerror="true"/>
	</target>

	<!-- Run unit tests and generate junit.xml and clover.xml -->
	<target name="test-log">
		<exec executable="phpunit" failonerror="true">
			<arg line="--coverage-html=${basedir}/build/coverage"/>
			<arg line="--log-junit=${basedir}/build/logs/junit.xml"/>
			<arg line="--coverage-clover=${basedir}/build/logs/clover.xml"/>
		</exec>
	</target>

	<!-- Run PHP Code Sniffer -->
	<target name="phpcs">
		<exec executable="phpcs" failonerror="false">
			<arg line="--standard=Kohana"/>
			<arg line="--ignore=*.js,*.css,**/vendor/**"/>
			<arg line="${basedir}"/>
		</exec>
	</target>

	<!-- Run PHP Code Sniffer and generate checkstyle.xml -->
	<target name="phpcs-log">
		<exec executable="phpcs" failonerror="false" output="/dev/null">
			<arg line="--standard=Kohana"/>
			<arg line="--ignore=*.js,*.css,**/vendor/**"/>
			<arg line="--report=checkstyle"/>
			<arg line="--report-file=${basedir}/build/logs/checkstyle.xml"/>
			<arg line="${basedir}"/>
		</exec>
	</target>

	<!-- Run PHP Mess Detector and generate pmd.xml -->
	<target name="phpmd-log">
		<exec executable="phpmd">
			<arg line="${basedir}" />
			<arg line="xml" />
			<arg line="codesize,unusedcode" />
			<arg line="--exclude=**/vendor/**" />
			<arg line="--reportfile ${basedir}/build/logs/pmd.xml" />
		</exec>
	</target>

	<!-- Run PHP Copy/Paste Detector and generate pmd.xml -->
	<target name="phpcpd-log">
		<exec executable="phpcpd">
			<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml ${basedir}" />
		</exec>
	</target>

	<!-- Run PHP Depend and generate jdepend.xml -->
	<target name="pdepend-log">
		<exec executable="pdepend">
			<arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml ${basedir}" />
		</exec>
	</target>

	<!-- Run PHP CodeBrowser and generate output -->
	<target name="phpcb-log">
		<exec executable="phpcb">
			<arg line="--log ${basedir}/build/logs --source ${basedir} --output ${basedir}/build/code-browser" />
		</exec>
	</target>

	<!-- Hudson CI target -->
{'fraction_non_alphanumeric': 0.21565121716407648, 'fraction_numerical': 0.0005501306560308073, 'mean_word_length': 3.97741273100616, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 35}, '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': '848378', 'n_tokens_mistral': 2620, 'n_tokens_neox': 2439, 'n_words': 523}