<commit_before><?xml version="1.0" ?> 
<project name="ModBuild" default="Build" basedir="">

  <tstamp prefix="now">
    <format property="date" pattern="dd MMMM yyyy" locale="en,GB"/>
    <format property="time" pattern="hh:mm a z" unit="hour"/>
  </tstamp>
  <property file="build.properties" prefix="build"/>
  <property name="mc.version" value="1.6.4"/>
	<property name="forge.version" value="9.11.1.916"/>
	<property name="forge.name" value="minecraftforge-src-${mc.version}-${forge.version}.zip"/>
  <property name="forge.latest" value="minecraftforge/minecraftforge-src-latest.zip"/>
  <property name="v" value="${build.build_type}-${build.build_number}"/>
  <property name="output.file" value="${basedir}\jars\Open-Exchange ${v}.jar"/>
  
  <target name="forge">
    <delete dir="${basedir}/temp/" />
    <mkdir dir="${basedir}/temp/"/>
    <get src="http://files.minecraftforge.net/${forge.name}" dest="${basedir}/temp/forge.zip" usetimestamp="True" />
    <unzip src="${basedir}/temp/forge.zip" dest="${basedir}/temp/" failOnEmptyArchive="true" />
    <exec dir="${basedir}\temp\forge\" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${basedir}\temp\forge\" executable="bash" osfamily="unix">
			<arg line="install.sh" />
		</exec>
	</target>
  
  <target name="forgelatest">
    <delete dir="${basedir}/temp/" />
    <mkdir dir="${basedir}/temp/"/>
    <get src="http://files.minecraftforge.net/${forge.latest}" dest="${basedir}/temp/forge.zip" usetimestamp="True" />
    <unzip src="${basedir}/temp/forge.zip" dest="${basedir}/temp/" failOnEmptyArchive="true" />
    <exec dir="${basedir}\temp\forge\" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${basedir}\temp\forge\" executable="bash" osfamily="unix">
			<arg line="install.sh" />
		</exec>
	</target>
  
	<target name="clean">
		<delete dir="${basedir}\temp\" />
	</target>
  
	<target name="cleanlocal">
    <delete file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" />
		<delete dir="${basedir}\temp\forge\mcp\src\minecraft\oe" />
    <delete dir="${basedir}\temp\forge\mcp\reobf\minecraft" />
	</target>
  
  <target name="copy">
		<copy todir="${basedir}\temp\forge\mcp\src\minecraft">
			<fileset dir="${basedir}\src\"/>
		</copy>
	</target>
  
  <target name="replace_tokens">
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@VERSION@" value="${build.build_type}_${build.build_number}" />
  	<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@VERSIONSPACES@" value="${build.build_type} ${build.build_number}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@BUILD_NUMBER@" value="${build.build_number}" />
    <replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@MC@" value="${mc.version}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@FORGE@" value="${forge.version}" />
    <replace file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" token="@VERSION@" value="${build.build_type}_${build.build_number}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" token="@BUILD_NUMBER@" value="${build.build_number}" />
	</target>
  
  <target name="increment_build_number">
		<propertyfile file="${basedir}\build.properties">
			<entry key="build_number" type="int" operation="+" default="1"/>
		</propertyfile>
	</target>
  
  <target name="recompile">
		<exec dir="${basedir}\temp\forge\mcp" executable="cmd" osfamily="windows">
			<arg line="/c recompile.bat" />
		</exec>
		<exec dir="${basedir}\temp\forge\mcp" executable="bash" osfamily="unix">
			<arg line="recompile.sh" />
		</exec>
	</target>
  
  <target name="reobfuscate">
		<exec dir="${basedir}\temp\forge\mcp" executable="cmd" osfamily="windows">
			<arg line="/c reobfuscate_srg.bat" />
		</exec>
		<exec dir="${basedir}\temp\forge\mcp" executable="bash" osfamily="unix">
			<arg line="reobfuscate_srg.sh" />
		</exec>
	</target>
  
  <target name="file">
    <delete file="${basedir}\temp\build.txt" />
    <property file="${basedir}\temp\forge\forgeversion.properties" prefix="forgefile"/>
    <echo file="${basedir}\temp\build.txt" append="true">
Minecraft
  ${mc.version}

Forge
  Script = ${forge.version}
  Actual = ${forgefile.forge.major.number}.${forgefile.forge.minor.number}.${forgefile.forge.revision.number}.${forgefile.forge.build.number}
  
Built:
  ${now.time}
  ${now.date}

Environment:
  Java
    ${java.version}
    ${java.vendor}
  OS
    ${os.name}
    ${os.arch}
  Ant
    ${ant.version}<commit_msg>Added "Open-Exchange [version]"  to build.txt in the jar<commit_after><?xml version="1.0" ?> 
<project name="ModBuild" default="Build" basedir="">

  <tstamp prefix="now">
    <format property="date" pattern="dd MMMM yyyy" locale="en,GB"/>
    <format property="time" pattern="hh:mm a z" unit="hour"/>
  </tstamp>
  <property file="build.properties" prefix="build"/>
  <property name="mc.version" value="1.6.4"/>
	<property name="forge.version" value="9.11.1.916"/>
	<property name="forge.name" value="minecraftforge-src-${mc.version}-${forge.version}.zip"/>
  <property name="forge.latest" value="minecraftforge/minecraftforge-src-latest.zip"/>
  <property name="v" value="${build.build_type}-${build.build_number}"/>
  <property name="output.file" value="${basedir}\jars\Open-Exchange ${v}.jar"/>
  
  <target name="forge">
    <delete dir="${basedir}/temp/" />
    <mkdir dir="${basedir}/temp/"/>
    <get src="http://files.minecraftforge.net/${forge.name}" dest="${basedir}/temp/forge.zip" usetimestamp="True" />
    <unzip src="${basedir}/temp/forge.zip" dest="${basedir}/temp/" failOnEmptyArchive="true" />
    <exec dir="${basedir}\temp\forge\" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${basedir}\temp\forge\" executable="bash" osfamily="unix">
			<arg line="install.sh" />
		</exec>
	</target>
  
  <target name="forgelatest">
    <delete dir="${basedir}/temp/" />
    <mkdir dir="${basedir}/temp/"/>
    <get src="http://files.minecraftforge.net/${forge.latest}" dest="${basedir}/temp/forge.zip" usetimestamp="True" />
    <unzip src="${basedir}/temp/forge.zip" dest="${basedir}/temp/" failOnEmptyArchive="true" />
    <exec dir="${basedir}\temp\forge\" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${basedir}\temp\forge\" executable="bash" osfamily="unix">
			<arg line="install.sh" />
		</exec>
	</target>
  
	<target name="clean">
		<delete dir="${basedir}\temp\" />
	</target>
  
	<target name="cleanlocal">
    <delete file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" />
		<delete dir="${basedir}\temp\forge\mcp\src\minecraft\oe" />
    <delete dir="${basedir}\temp\forge\mcp\reobf\minecraft" />
	</target>
  
  <target name="copy">
		<copy todir="${basedir}\temp\forge\mcp\src\minecraft">
			<fileset dir="${basedir}\src\"/>
		</copy>
	</target>
  
  <target name="replace_tokens">
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@VERSION@" value="${build.build_type}_${build.build_number}" />
  	<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@VERSIONSPACES@" value="${build.build_type} ${build.build_number}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@BUILD_NUMBER@" value="${build.build_number}" />
    <replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@MC@" value="${mc.version}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\oe\lib\Reference.java" token="@FORGE@" value="${forge.version}" />
    <replace file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" token="@VERSION@" value="${build.build_type}_${build.build_number}" />
		<replace file="${basedir}\temp\forge\mcp\src\minecraft\mcmod.info" token="@BUILD_NUMBER@" value="${build.build_number}" />
	</target>
  
  <target name="increment_build_number">
		<propertyfile file="${basedir}\build.properties">
			<entry key="build_number" type="int" operation="+" default="1"/>
		</propertyfile>
	</target>
  
  <target name="recompile">
		<exec dir="${basedir}\temp\forge\mcp" executable="cmd" osfamily="windows">
			<arg line="/c recompile.bat" />
		</exec>
		<exec dir="${basedir}\temp\forge\mcp" executable="bash" osfamily="unix">
			<arg line="recompile.sh" />
		</exec>
	</target>
  
  <target name="reobfuscate">
		<exec dir="${basedir}\temp\forge\mcp" executable="cmd" osfamily="windows">
			<arg line="/c reobfuscate_srg.bat" />
		</exec>
		<exec dir="${basedir}\temp\forge\mcp" executable="bash" osfamily="unix">
			<arg line="reobfuscate_srg.sh" />
		</exec>
	</target>
  
  <target name="file">
    <delete file="${basedir}\temp\build.txt" />
    <property file="${basedir}\temp\forge\forgeversion.properties" prefix="forgefile"/>
    <echo file="${basedir}\temp\build.txt" append="true">
Open-Exchange ${v}

Minecraft
  ${mc.version}

Forge
  Script = ${forge.version}
  Actual = ${forgefile.forge.major.number}.${forgefile.forge.minor.number}.${forgefile.forge.revision.number}.${forgefile.forge.build.number}
  
Built:
  ${now.time}
  ${now.date}

Environment:
  Java
    ${java.version}
    ${java.vendor}
  OS
    ${os.name}
    ${os.arch}
  Ant
    ${ant.version}
{'fraction_non_alphanumeric': 0.22342571944355952, 'fraction_numerical': 0.002760964213656154, 'mean_word_length': 4.642899940083883, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 2, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '1288208', 'n_tokens_mistral': 3487, 'n_tokens_neox': 3280, 'n_words': 474}