<commit_before>

<project name="DimensionalDoors" default="install" basedir=".">

	<property environment="env" />

	<property name="build.dir" value="build" />
	<property name="classes.dir" value="${build.dir}/packaging" />
	<property name="src.dir" value="src" />
	<property name="forge.version" value="1.4.7-6.6.0.497" />
	<property name="forge.url" value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forge.version}.zip" />
	<property name="mcp.version" value="723" />
	<property name="forge.dir" value="${build.dir}/forge" />
	<property name="mcp.dir" value="${forge.dir}/mcp" />
	<property name="mcpsrc.dir" value="${mcp.dir}/src/minecraft" />
	<property name="resources.dir" value="resources" />

	<property name="package.meta-inf" value="META-INF" />
	<property name="build.ver" value="1.4.7" />
	<property name="dist.dir" value="${build.dir}/dist" />

	<property name="download.dir" value="downloads" />

	<property name="lib.dir" value="${mcp.dir}/lib" />

	<property file="${forge.dir}/forgeversion.properties" />
	<condition property="forge.already.installed">
		<equals arg1="${forge.build.number}" arg2="497" />
	</condition>

	<property name="verclass.dir" value="${mcpsrc.dir}/StevenDimDoors/mod_pocketDim/" />
	<property name="verclass.name" value="mod_pocketDim.java"/>


	<mkdir dir="${download.dir}"/>
	<mkdir dir="${build.dir}" />

	<target name="get-version" depends="setup-forge">
		<mkdir dir="${mcpsrc.dir}/StevenDimDoors" />
		<copy todir="${mcpsrc.dir}/StevenDimDoors" overwrite="true">
			<fileset dir="StevenDimDoors" />
		</copy>	
		<mkdir dir="${mcpsrc.dir}/Steven" />
		<copy todir="${mcpsrc.dir}/Steven" overwrite="true">
			<fileset dir="Steven" />
		</copy>	
		<!-- <copy todir="${mcpsrc.dir}" file="mcmod.info" overwrite="true"/> -->
		
		<exec dir="${verclass.dir}" executable="sh" osfamily="unix" outputproperty="grep.out">
			<arg value="-c"/>
			<arg value="grep -o -P '[0-9.]+R[0-9.]+(RC[0-9]+)?(B[0-9]+)?' ${verclass.name}"/>
		</exec>
		<exec executable="python" osfamily="unix">
			<arg value="versionscript.py" />
			<arg value="${grep.out}" />
		</exec>
		<echo message="Grepped version: ${grep.out}"/>
	</target>

	<available property="forge-exists" file="${download.dir}/minecraftforge-src-${forge.version}.zip" />
	<available property="already-compiled" file="${classes.dir}/deathrat" />
	<condition property="should-download-ant-contrib">
		<or>
			<available file="${download.dir}/ant-contrib/ant-contrib-1.0b3.jar"/>
			<available file="${download.dir}/minecraftforge-src-${forge.version}.zip"/>
		</or>
	</condition>

	<target name="install" depends="build">
		<copy todir="${classes.dir}" overwrite="true">
			<fileset dir="schematics" />
		</copy>
		<zip destfile="${dist.dir}/DimensionalDoors-${grep.out}-${build.number}.zip" basedir="${classes.dir}"/>
		<delete dir="${classes.dir}" />
		<delete dir="${mcp.dir}/reobf"/>
		<delete dir="${mcpsrc}/StevenDimDoors" />
		<delete dir="${mcpsrc}/Steven" />
	</target>

	<target name="build" depends="get-version" unless="already-compiled">
		<!-- Recompile -->
		<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
			<arg line="/c recompile.bat"/>
		</exec>

		<exec dir="${mcp.dir}" executable="sh" osfamily="unix" failonerror="true">
			<arg value="recompile.sh" />
		</exec><commit_msg>Signed-off-by: StevenRS11 <<EMAIL>><commit_after>

<project name="DimensionalDoors" default="install" basedir=".">

	<property environment="env" />

	<property name="build.dir" value="build" />
	<property name="classes.dir" value="${build.dir}/packaging" />
	<property name="src.dir" value="src" />
	<property name="forge.version" value="1.4.7-6.6.0.497" />
	<property name="forge.url" value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forge.version}.zip" />
	<property name="mcp.version" value="723" />
	<property name="forge.dir" value="${build.dir}/forge" />
	<property name="mcp.dir" value="${forge.dir}/mcp" />
	<property name="mcpsrc.dir" value="${mcp.dir}/src/minecraft" />
	<property name="resources.dir" value="resources" />

	<property name="package.meta-inf" value="META-INF" />
	<property name="build.ver" value="1.4.7" />
	<property name="dist.dir" value="${build.dir}/dist" />

	<property name="download.dir" value="downloads" />

	<property name="lib.dir" value="${mcp.dir}/lib" />

	<property file="${forge.dir}/forgeversion.properties" />
	<condition property="forge.already.installed">
		<equals arg1="${forge.build.number}" arg2="497" />
	</condition>

	<property name="verclass.dir" value="${mcpsrc.dir}/StevenDimDoors/mod_pocketDim/" />
	<property name="verclass.name" value="mod_pocketDim.java"/>


	<mkdir dir="${download.dir}"/>
	<mkdir dir="${build.dir}" />

	<target name="get-version" depends="setup-forge">
		<mkdir dir="${mcpsrc.dir}/StevenDimDoors" />
		<copy todir="${mcpsrc.dir}/StevenDimDoors" overwrite="true">
			<fileset dir="StevenDimDoors" />
		</copy>	
		<mkdir dir="${mcpsrc.dir}/Steven" />
		<copy todir="${mcpsrc.dir}/Steven" overwrite="true">
			<fileset dir="Steven" />
		</copy>	
		<!-- <copy todir="${mcpsrc.dir}" file="mcmod.info" overwrite="true"/> -->
		
		<exec dir="${verclass.dir}" executable="sh" osfamily="unix" outputproperty="grep.out">
			<arg value="-c"/>
			<arg value="grep -o -P '[0-9.]+R[0-9.]+(RC[0-9]+)?(B[0-9]+)?' ${verclass.name}"/>
		</exec>
		<exec executable="python" osfamily="unix">
			<arg value="versionscript.py" />
			<arg value="${grep.out}" />
		</exec>
		<echo message="Grepped version: ${grep.out}"/>
	</target>

	<available property="forge-exists" file="${download.dir}/minecraftforge-src-${forge.version}.zip" />
	<available property="already-compiled" file="${classes.dir}/deathrat" />
	<condition property="should-download-ant-contrib">
		<or>
			<available file="${download.dir}/ant-contrib/ant-contrib-1.0b3.jar"/>
			<available file="${download.dir}/minecraftforge-src-${forge.version}.zip"/>
		</or>
	</condition>

	<target name="install" depends="build">
		 <copy todir="${classes.dir}/schematics" overwrite="true">
			<fileset dir="schematics" />
		</copy>
		<zip destfile="${dist.dir}/DimensionalDoors-${grep.out}-${build.number}.zip" basedir="${classes.dir}"/>
		<delete dir="${classes.dir}" />
		<delete dir="${mcp.dir}/reobf"/>
		<delete dir="${mcpsrc}/StevenDimDoors" />
		<delete dir="${mcpsrc}/Steven" />
	</target>

	<target name="build" depends="get-version" unless="already-compiled">
		<!-- Recompile -->
		<exec dir="${mcp.dir}" executable="cmd" osfamily="windows" failonerror="true">
			<arg line="/c recompile.bat"/>
		</exec>

		<exec dir="${mcp.dir}" executable="sh" osfamily="unix" failonerror="true">
			<arg value="recompile.sh" />
		</exec>
{'fraction_non_alphanumeric': 0.23532916294310396, 'fraction_numerical': 0.009532320524277629, 'mean_word_length': 4.990187332738627, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3124473', 'n_tokens_mistral': 2564, 'n_tokens_neox': 2334, 'n_words': 357}