<commit_before><?xml version="1.0" ?> 
<project name="DeveloperCapes" default="addPatches">
	
	<!-- this gets the version -->	
	<script language="javascript">
	 
		importClass(java.io.File);
		importClass(java.io.FileReader);
	    importClass(java.io.BufferedReader);
		importClass(java.io.FileWriter);
		importClass(java.io.BufferedWriter);
	 
	    var file = new File("version.json");
	    fr = new FileReader(file);
	    br = new BufferedReader(fr);
	 
	    // Read the file. 
	    // This assumes the file has no line breaks and is one line.	
		var json = "";
		var string = ""
		while((string = br.readLine()) != null) {
			json += string;
		}
	 
		// Evaluate the JSON.
		var struct = eval("(" + json + ")");
	 
		// Set each property in the project environment.
		for (i in struct) {
			project.setUserProperty(i, struct[i]);
		}
	</script>
	
	<property name="minecraftVersion" value="1.6.2"/>
	<property name="forgeMajorVersion" value="9.10.0"/>
	<property name="forgeBuild" value="800"/>
	<property name="forgeVersion" value="${minecraftVersion}-${forgeMajorVersion}.${forgeBuild}" />
	<property name="forgeUrl" value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forgeVersion}.zip"/>
		
	<property environment="env" />
	<property name="buildNumber" value="${env.BUILD_NUMBER}"/>
	
	<condition property="isJenkins">
		<equals arg1="${buildNumber}" arg2="" />
	</condition>
		
	<property name="dir.currentBuild" value="${basedir}/currentBuild/"/>
	<property name="dir.forge" value="${dir.currentBuild}/forge/" />
	<property name="dir.mcp" value="${dir.forge}/mcp/"/>
	<property name="dir.mcp.output" value="${dir.mcp}/reobf/minecraft"/>
	<property name="dir.src" value="src/"/>
	<property name="dir.builds" value="${dir.currentBuild}/builds"/>
	<property name="dir.downloads" value="${dir.currentBuild}/downloads"/>
	<property name="dir.temp" value="${dir.currentBuild}/temp/" />
	
	<available file="${dir.forge}" property="forge-available" />
	<available file="${dir.mcp}" property="mcp-available" />
	<available file="${dir.mcp}/runtime/recompile.py" property="mcp-available2" />

	<target name="getForge" unless="forge-available">
		<echo message="Downloading Forge..." />
		<mkdir dir="${dir.downloads}"/>
		<get src="${forgeUrl}" dest="${dir.downloads}" />
		<unzip src="${dir.downloads}/minecraftforge-src-${forgeVersion}.zip" dest="${dir.currentBuild}" />
	</target>
	
	<target name="addPatches">
		<!-- <copy todir="${dir.forge}/patches/minecraft/net/minecraft/client/entity/" file="AbstractClientPlayer.java.patch" /> -->
		<echo message="Fixing Patches" />
		<mkdir dir="${dir.temp}" />
		<exec dir="${dir.forge}" executable="cmd" osfamily="windows">
			<arg line="/c .\fml\python\python_fml ${basedir}\fixpatch.py -i ${basedir}\AbstractClientPlayer.java.patch -o ${dir.temp}\AbstractClientPlayer.java.patch" />
		</exec>
		<exec dir="${dir.forge}" executable="bash" osfamily="unix">
			<arg line="python ${basedir}\fixpatch.py -i ${basedir}\AbstractClientPlayer.java.patch -o ${dir.temp}\AbstractClientPlayer.java.patch" />
		</exec>
		
		<echo message="Patching AbstractClientPlayer.java" />
			<exec executable="cmd" osfamily="windows">
				<arg line="/c .\${dir.mcp}\rumtime\bin\applydiff.exe -uf -i ${dir.temp}\AbstractClientPlayer.java.patch ${dir.mcp}\src\minecraft\net\minecraft\client\entity\AbstractClientPlayer.java" />
			</exec>
			<exec executable="bash" osfamily="unix">
				<arg line="patch -uf -i ${dir.temp}/AbstractClientPlayer.java.patch ${dir.mcp}/src/minecraft/net/minecraft/client/entity/AbstractClientPlayer.java" />
			</exec>
	</target>
	
	<target name="decompile" unless="mcp-available">
		<echo message="Installing Forge and decompiling Minecraft..." />
		<exec dir="${dir.forge}" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${dir.forge}" executable="bash" osfamily="unix">
			<arg line="./install.sh" />
		</exec>
	</target>
	
	<target name="prep"><commit_msg>patch now fully working. 100% working but messy build file.<commit_after><?xml version="1.0" ?> 
<project name="DeveloperCapes" default="build">
	
	<!-- this gets the version -->	
	<script language="javascript">
	 
		importClass(java.io.File);
		importClass(java.io.FileReader);
	    importClass(java.io.BufferedReader);
		importClass(java.io.FileWriter);
		importClass(java.io.BufferedWriter);
	 
	    var file = new File("version.json");
	    fr = new FileReader(file);
	    br = new BufferedReader(fr);
	 
	    // Read the file. 
	    // This assumes the file has no line breaks and is one line.	
		var json = "";
		var string = ""
		while((string = br.readLine()) != null) {
			json += string;
		}
	 
		// Evaluate the JSON.
		var struct = eval("(" + json + ")");
	 
		// Set each property in the project environment.
		for (i in struct) {
			project.setUserProperty(i, struct[i]);
		}
	</script>
	
	<property name="minecraftVersion" value="1.6.2"/>
	<property name="forgeMajorVersion" value="9.10.0"/>
	<property name="forgeBuild" value="800"/>
	<property name="forgeVersion" value="${minecraftVersion}-${forgeMajorVersion}.${forgeBuild}" />
	<property name="forgeUrl" value="http://files.minecraftforge.net/minecraftforge/minecraftforge-src-${forgeVersion}.zip"/>
		
	<property environment="env" />
	<property name="buildNumber" value="${env.BUILD_NUMBER}"/>
	
	<condition property="isJenkins">
		<equals arg1="${buildNumber}" arg2="" />
	</condition>
		
	<property name="dir.currentBuild" value="${basedir}/currentBuild"/>
	<property name="dir.forge" value="${dir.currentBuild}/forge" />
	<property name="dir.mcp" value="${dir.forge}/mcp"/>
	<property name="dir.mcp.output" value="${dir.mcp}/reobf/minecraft"/>
	<property name="dir.src" value="src/"/>
	<property name="dir.builds" value="${dir.currentBuild}/builds"/>
	<property name="dir.downloads" value="${dir.currentBuild}/downloads"/>
	<property name="dir.temp" value="${dir.currentBuild}/temp" />
	
	<available file="${dir.forge}" property="forge-available" />
	<available file="${dir.mcp}" property="mcp-available" />
	<available file="${dir.mcp}/runtime/recompile.py" property="mcp-available2" />

	<target name="getForge" unless="forge-available">
		<echo message="Downloading Forge..." />
		<mkdir dir="${dir.downloads}"/>
		<get src="${forgeUrl}" dest="${dir.downloads}" />
		<unzip src="${dir.downloads}/minecraftforge-src-${forgeVersion}.zip" dest="${dir.currentBuild}" />
	</target>
	
	<target name="addPatches">
		<!-- <copy todir="${dir.forge}/patches/minecraft/net/minecraft/client/entity/" file="AbstractClientPlayer.java.patch" /> -->
		<echo message="Fixing Patches" />
		<mkdir dir="${dir.temp}" />
		<exec dir="${dir.forge}" executable="cmd" osfamily="windows">
			<arg line="/c .\fml\python\python_fml ${basedir}\fixpatch.py -i ${basedir}\AbstractClientPlayer.java.patch -o ${dir.temp}\AbstractClientPlayer.java.patch" />
		</exec>
		<exec dir="${dir.forge}" executable="bash" osfamily="unix">
			<arg line="python ${basedir}/fixpatch.py -i ${basedir}/AbstractClientPlayer.java.patch -o ${dir.temp}/AbstractClientPlayer.java.patch" />
		</exec>
		
		<echo message="Patching AbstractClientPlayer.java" />
		<echo message="/c applydiff.exe -uf -i ${dir.temp}/AbstractClientPlayer.java.patch ${dir.mcp}/src/minecraft/net/minecraft/client/entity/AbstractClientPlayer.java" />
		<exec dir="${dir.mcp}/runtime/bin/" executable="cmd" osfamily="windows">
			<arg line="/c applydiff.exe -uf -i ${dir.temp}/AbstractClientPlayer.java.patch ${dir.mcp}/src/minecraft/net/minecraft/client/entity/AbstractClientPlayer.java" />
		</exec>
		<exec executable="bash" osfamily="unix">
			<arg line="patch -uf -i ${dir.temp}/AbstractClientPlayer.java.patch ${dir.mcp}/src/minecraft/net/minecraft/client/entity/AbstractClientPlayer.java" />
		</exec>
	</target>
	
	<target name="decompile" unless="mcp-available">
		<echo message="Installing Forge and decompiling Minecraft..." />
		<exec dir="${dir.forge}" executable="cmd" osfamily="windows">
			<arg line="/c install.cmd" />
		</exec>
		<exec dir="${dir.forge}" executable="bash" osfamily="unix">
			<arg line="./install.sh" />
		</exec>
	</target>
	
	<target name="prep">
{'fraction_non_alphanumeric': 0.199338397451605, 'fraction_numerical': 0.004043126684636119, 'mean_word_length': 4.579630895420369, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 2, '>': 126, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6659713', 'n_tokens_mistral': 2865, 'n_tokens_neox': 2619, 'n_words': 480}