<commit_before><project name="headless-build" default="build">

	<!--sets the path of the properties file-->
	<property file="build_release.properties" />

	<fileset id="features" dir="../">
		<include name="org.mwc.cmap.combined.feature/**" />
		<include name="org.mwc.debrief.combined.feature/**" />
	</fileset>
	<fileset id="plugins" dir="../">
		<exclude name="org.mwc.cmap.combined.feature" />
		<exclude name="org.mwc.debrief.combined.feature" />
		<include name="org.mwc.cmap*/**" />
		<include name="org.mwc.debrief*/**" />
	</fileset>

	<target name="clean">
		<delete dir="${buildDirectory}" />
		<delete dir="${buildDirectory}/../DebriefNG" />
		<delete dir="${buildDirectory}/../Repository" />
			<delete file="${buildDirectory}/../DebriefNG.Zip" />
			<delete file="${buildDirectory}/../Repository.Zip" />
	</target>

	<target name="init">
		<mkdir dir="${buildDirectory}" />
		<mkdir dir="${buildDirectory}/plugins" />
		<mkdir dir="${buildDirectory}/repository" />
		<mkdir dir="${buildDirectory}/features" />
		<copy todir="${buildDirectory}/plugins">
			<fileset refid="plugins" />
		</copy>
		<copy todir="${buildDirectory}/features">
			<fileset refid="features" />
		</copy>
	</target>


	<!--
		This target actually executes the PDE Build process by launching the 
		Eclipse antRunner application.
	-->
	<target name="pde-build"> 
		<echo>here we are before:${path2jre}</echo>
		<echo>looking in: ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" </echo>
		<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
			<arg value="-application" />
			<arg value="org.eclipse.ant.core.antRunner" />
			<arg value="-buildfile" />
			<arg value="${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildPluginVersion}/scripts/productBuild/productBuild.xml" />
			<arg value="-Dtimestamp=${timestamp}" />
			<classpath>
				<pathelement location="${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" />
			</classpath>
		</java>
	</target> 

	<target name="copy-jre">
		<copy todir="${buildDirectory}/tmp/${archivePrefix}/jre">
			<fileset dir="${path2jre}" includes="**" />
		</copy>
	</target>

	<target name="move_dist">
		<move todir="${buildDirectory}/../">
			<fileset dir="${buildDirectory}/tmp/" includes="**" />
		</move>
		<move todir="${buildDirectory}/../Repository">
			<fileset dir="${buildDirectory}/repository/" includes="**" />
		</move>
	</target>

	<target name="zip_dist">

		<zip destFile="${buildDirectory}/../DebriefNG.zip" whenempty="fail" duplicate="fail">
			<fileset dir="${buildDirectory}/../DebriefNG" />
		</zip>
		<zip destFile="${buildDirectory}/../Repository.zip" whenempty="fail" duplicate="fail">
			<fileset dir="${buildDirectory}/../Repository" />
		</zip>
	</target>


	<!--This target defines the run-order of the targets-->
	<target name="build" depends="clean, init, pde-build, copy-jre, move_dist, zip_dist" />

	<property name="tgtDest" value="z://downloads"  />

	<target name="can_do_mac_copy">
		<available property="target.exists" file="${tgtDest}"/>
	</target>
	
	<target name="copy_to_mac" depends="can_do_mac_copy" if="target.exists">
		
		<echo message="ditching existing versions"/>
		<delete file="${tgtDest}/Repository.zip"/>
		<delete dir="${tgtDest}/DebriefNG"/>

		<echo message="copying new versions"/>
		
		<copy todir="${tgtDest}/">
			<fileset  file="${buildDirectory}/../Repository.zip" />
		</copy>

		<copy todir="${tgtDest}/DebriefNG">
			<fileset dir="${buildDirectory}/../DebriefNG/" />
		</copy>

	</target>
	
</project><commit_msg>add copy to USB functionality<commit_after><project name="headless-build" default="build">

	<!--sets the path of the properties file-->
	<property file="build_release.properties" />

	<fileset id="features" dir="../">
		<include name="org.mwc.cmap.combined.feature/**" />
		<include name="org.mwc.debrief.combined.feature/**" />
	</fileset>
	<fileset id="plugins" dir="../">
		<exclude name="org.mwc.cmap.combined.feature" />
		<exclude name="org.mwc.debrief.combined.feature" />
		<include name="org.mwc.cmap*/**" />
		<include name="org.mwc.debrief*/**" />
	</fileset>

	<target name="clean">
		<delete dir="${buildDirectory}" />
		<delete dir="${buildDirectory}/../DebriefNG" />
		<delete dir="${buildDirectory}/../Repository" />
			<delete file="${buildDirectory}/../DebriefNG.Zip" />
			<delete file="${buildDirectory}/../Repository.Zip" />
	</target>

	<target name="init">
		<mkdir dir="${buildDirectory}" />
		<mkdir dir="${buildDirectory}/plugins" />
		<mkdir dir="${buildDirectory}/repository" />
		<mkdir dir="${buildDirectory}/features" />
		<copy todir="${buildDirectory}/plugins">
			<fileset refid="plugins" />
		</copy>
		<copy todir="${buildDirectory}/features">
			<fileset refid="features" />
		</copy>
	</target>


	<!--
		This target actually executes the PDE Build process by launching the 
		Eclipse antRunner application.
	-->
	<target name="pde-build"> 
		<echo>here we are before:${path2jre}</echo>
		<echo>looking in: ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" </echo>
		<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
			<arg value="-application" />
			<arg value="org.eclipse.ant.core.antRunner" />
			<arg value="-buildfile" />
			<arg value="${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildPluginVersion}/scripts/productBuild/productBuild.xml" />
			<arg value="-Dtimestamp=${timestamp}" />
			<classpath>
				<pathelement location="${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" />
			</classpath>
		</java>
	</target> 

	<target name="copy-jre">
		<copy todir="${buildDirectory}/tmp/${archivePrefix}/jre">
			<fileset dir="${path2jre}" includes="**" />
		</copy>
	</target>

	<target name="move_dist">
		<move todir="${buildDirectory}/../">
			<fileset dir="${buildDirectory}/tmp/" includes="**" />
		</move>
		<move todir="${buildDirectory}/../Repository">
			<fileset dir="${buildDirectory}/repository/" includes="**" />
		</move>
	</target>

	<target name="zip_dist">

		<zip destFile="${buildDirectory}/../DebriefNG.zip" whenempty="fail" duplicate="fail">
			<fileset dir="${buildDirectory}/../DebriefNG" />
		</zip>
		<zip destFile="${buildDirectory}/../Repository.zip" whenempty="fail" duplicate="fail">
			<fileset dir="${buildDirectory}/../Repository" />
		</zip>
	</target>


	<!--This target defines the run-order of the targets-->
	<target name="build" depends="clean, init, pde-build, copy-jre, move_dist, zip_dist" />

	<property name="tgtDest" value="z://downloads"  />
	<property name="usbDest" value="e://"  />

	<target name="can_do_mac_copy">
		<available property="target.exists" file="${tgtDest}"/>
	</target>
	
	<target name="copy_to_mac" depends="can_do_mac_copy" if="target.exists">
		
		<echo message="ditching existing versions"/>
		<delete file="${tgtDest}/Repository.zip"/>
		<delete dir="${tgtDest}/DebriefNG"/>

		<echo message="copying new versions"/>
		
		<copy todir="${tgtDest}/">
			<fileset  file="${buildDirectory}/../Repository.zip" />
		</copy>

		<copy todir="${tgtDest}/DebriefNG">
			<fileset dir="${buildDirectory}/../DebriefNG/" />
		</copy>

	</target>

	<target name="can_do_usb_copy">
		<available property="target.exists" file="${usbDest}"/>
	</target>
	
	<target name="copy_to_usb" depends="can_do_mac_copy">
		
		<echo message="ditching existing versions"/>
		<delete file="${usbDest}/Repository.zip"/>
		<delete dir="${usbDest}/DebriefNG"/>

		<echo message="copying new versions"/>
		
		<copy todir="${usbDest}/">
			<fileset  file="${buildDirectory}/../Repository.zip" />
		</copy>
	</target>

</project>
{'fraction_non_alphanumeric': 0.21121134020618557, 'fraction_numerical': 0.0005154639175257732, 'mean_word_length': 4.512073863636363, 'pattern_counts': {'":': 0, '<': 194, '<?xml version=': 0, '>': 194, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2485555', 'n_tokens_mistral': 2785, 'n_tokens_neox': 2502, 'n_words': 441}