<commit_before><?xml version="1.0"?>
<!-- ================================================================= -->
<!-- caGrid Master build file                                          -->
<!-- ================================================================= -->

<project name="catrid-1.0-extensions" default="all" basedir=".">
	<!-- Give user the chance to override properties -->
	<property environment="env" />
	<property file="build.properties" />

	<!-- Layout info -->
	<property name="cagrid.dir" location="../caGrid" />
	<property name="projects.dir" location="${cagrid.dir}/projects" />
	<property name="extensions.projects.dir" location="${basedir}/projects" />
	<property name="test.dir" location="${basedir}/test" />
	<property name="share.dir" location="${cagrid.dir}/share" />
	<property name="share.lib.dir" location="${share.dir}/lib" />
	<property name="test.lib.dir" location="${cagrid.dir}/test/lib" />
	<property name="antfiles.dir" location="${cagrid.dir}/antfiles" />
	<property name="cagrid.test.dir" location="${cagrid.dir}/test" />

	<!-- IMPORT THE UTILITIES TARGETS -->
	<import file="${cagrid.dir}/antfiles/artifacts.xml" />
	<import file="${antfiles.dir}/ant-utilities.xml" />
	<import file="${antfiles.dir}/test-utilities.xml" />
	<import file="${antfiles.dir}/report-utilities.xml" />

	<!-- IMPORT THE TEST TARGET -->
	<import file="${test.dir}/test.xml" />


	<!-- ================================================================================ -->
	<!--                          DEFINE THE SUB PROJECTS                                 -->
	<!-- ================================================================================ -->
	<!-- The name should be the path relative from projects.dir.  Its strongly encouraged you use a flat layout -->
	<property name="projects.list" value="ntsec" />
	<!-- ================================================================================ -->
	<!--                  DEFINE THE SUB PROJECTS THAT SUPPORT TESTING                    -->
	<!-- ================================================================================ -->
	<!-- This should be a subset of the projects above -->
	<property name="testable.projects.list" value="ntsec" />

	<!-- =============================================================== -->
	<!-- NTSEC                                                           -->
	<!-- =============================================================== -->
	<target name="build-ntsec" depends="prepare" description="Builds ntsec">
		<resolveDependencies extdir="${extensions.projects.dir}/ntsec/ext">
			<artifact refid="test.coverage.jars" />
		</resolveDependencies>
		<ant dir="${extensions.projects.dir}/ntsec" inheritAll="false" antfile="build.xml" target="all" />
	</target>


	<!-- ============================================================== -->
	<!-- Cleans up generated stuff                                      -->
	<!-- ============================================================== -->
	<target name="clean" depends="prepare" description="Cleans all projects.">
		<for list="${projects.list}" parallel="true" param="project.name" trim="true">
			<sequential>
				<echo message="Cleaning project @{project.name}." />
				<delete dir="${extensions.projects.dir}/@{project.name}/ext" />
				<ant dir="${extensions.projects.dir}/@{project.name}" inheritAll="false" antfile="build.xml" target="clean" />
			</sequential>
		</for>

		<delete failonerror="false">
			<fileset dir="${junit.results.dir}">
				<include name="*" />
			</fileset><commit_msg>added prepare, modified some properties<commit_after><?xml version="1.0"?>
<!-- ================================================================= -->
<!-- caGrid Master build file                                          -->
<!-- ================================================================= -->

<project name="catrid-1.0-extensions" default="all" basedir=".">
	<!-- Give user the chance to override properties -->
	<property environment="env" />
	<property file="build.properties" />

	<!-- Layout info -->
	<property name="cagrid.dir" location="../caGrid" />
	<property name="projects.dir" location="${cagrid.dir}/projects" />
	<property name="extensions.projects.dir" location="${basedir}/projects" />
	<property name="test.dir" location="${basedir}/test" />
	<property name="share.dir" location="${cagrid.dir}/share" />
	<property name="share.lib.dir" location="${share.dir}/lib" />
	<property name="test.lib.dir" location="${cagrid.dir}/test/lib" />
	<property name="cagrid.antfiles.dir" location="${cagrid.dir}/antfiles" />
	<property name="antfiles.dir" location="${basedir}/antfiles" />
	<property name="cagrid.test.dir" location="${cagrid.dir}/test" />

	<!-- IMPORT THE UTILITIES TARGETS -->
	<import file="${cagrid.antfiles.dir}/artifacts.xml" />
	<import file="${cagrid.antfiles.dir}/ant-utilities.xml" />
	<import file="${cagrid.antfiles.dir}/test-utilities.xml" />
	<import file="${cagrid.antfiles.dir}/report-utilities.xml" />

	<!-- IMPORT THE TEST TARGET -->
	<import file="${test.dir}/test.xml" />


	<!-- ================================================================================ -->
	<!--                          DEFINE THE SUB PROJECTS                                 -->
	<!-- ================================================================================ -->
	<!-- The name should be the path relative from projects.dir.  Its strongly encouraged you use a flat layout -->
	<property name="projects.list" value="ntsec" />
	<!-- ================================================================================ -->
	<!--                  DEFINE THE SUB PROJECTS THAT SUPPORT TESTING                    -->
	<!-- ================================================================================ -->
	<!-- This should be a subset of the projects above -->
	<property name="testable.projects.list" value="ntsec" />

	<!-- =============================================================== -->
	<!-- Bootstrap the build by setting up the structure and building    -->
	<!-- our custom ant tasks.                                           -->
	<!-- =============================================================== -->
	<target name="prepare">
		<tstamp />

		<typedef name="artifact" classname="gov.nih.nci.cagrid.ant.Artifact" loaderref="artifact">
			<classpath>
				<pathelement location="${cagrid.antfiles.dir}/build" />
			</classpath>
		</typedef>
		<taskdef name="resolveDependencies" classname="gov.nih.nci.cagrid.ant.ResolveDependencies" loaderref="artifact">
			<classpath>
				<pathelement location="${cagrid.antfiles.dir}/build" />
			</classpath>
		</taskdef>

		<taskdef resource="net/sf/antcontrib/antlib.xml">
			<classpath>
				<pathelement location="${share.lib.dir}/ant-contrib.jar" />
			</classpath>
		</taskdef>
	</target>

	<!-- =============================================================== -->
	<!-- NTSEC                                                           -->
	<!-- =============================================================== -->
	<target name="build-ntsec" depends="prepare" description="Builds ntsec">
		<resolveDependencies extdir="${extensions.projects.dir}/ntsec/ext">
			<artifact refid="common.test.jars" />
			<artifact refid="test.coverage.jars" />
		</resolveDependencies>
		<ant dir="${extensions.projects.dir}/ntsec" inheritAll="false" antfile="build.xml" target="all" />
	</target>


	<!-- ============================================================== -->
	<!-- Cleans up generated stuff                                      -->
	<!-- ============================================================== -->
	<target name="clean" depends="prepare" description="Cleans all projects.">
		<for list="${projects.list}" parallel="true" param="project.name" trim="true">
			<sequential>
				<echo message="Cleaning project @{project.name}." />
				<delete dir="${extensions.projects.dir}/@{project.name}/ext" />
				<ant dir="${extensions.projects.dir}/@{project.name}" inheritAll="false" antfile="build.xml" target="clean" />
			</sequential>
		</for>

		<delete failonerror="false">
			<fileset dir="${junit.results.dir}">
				<include name="*" />
			</fileset>
{'fraction_non_alphanumeric': 0.35128518971848227, 'fraction_numerical': 0.0009791921664626683, 'mean_word_length': 3.6426136363636363, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 2, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 17}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3079545', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2013, 'n_words': 379}