<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="wombat" default="recur">
  <description>
    Build file for Wombat in general.
  </description>

  <property name="dist-dir" location="dist" />
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="version" description="calculate current version">
    <tstamp><format property="ide-version" pattern="3.D.k" /></tstamp>
    
    <property name="jar-name" value="wombat-ide-${ide-version}.jar" />
    <property name="petite-version" value="8.4" />
    <property name="petite-bindings" value="${petite-version}.28" />
    <property name="c211-lib-version" value="1.0.21" />
    <property name="keyword-version" value="8.4.8" />
    
    <echo>Versions:
         IDE: ${ide-version}
      Petite: ${petite-version}
    Bindings: ${petite-bindings}
    C211 lib: ${c211-lib-version}
    Keywords: ${keyword-version}</echo>
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="osx" depends="version,recur" description="build an OSX application">
    <path id="tasks">
      <fileset dir=".">
	<include name="*.jar" />
      </fileset>
    </path>

    <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler"  classpathref="tasks" />

    <jarbundler dir="${dist-dir}"
		name="Wombat IDE"
		mainclass="wombat.Wombat"
		jar="${dist-dir}/wombat.jar"
		jvmversion="1.6+"
		icon="Wombat.icns"
		version="${ide-version}" />
  </target>

  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="recur" depends="version" description="recursively build the parts of the project">
    <echo> ----- Building Petite bindings ----- </echo>
    <ant dir="./petite/" target="jar" />
    
    <echo> ----- Building Wombat IDE ----- </echo>
    <ant dir="./ide/" target="jar" />
    
    <echo> ----- Building Wombat launcher ----- </echo>
    <ant dir="./launcher/" target="jar" />
    
    <echo> ----- Creating distribution directory ----- </echo>
    <mkdir dir="${dist-dir}/lib" />
    
    <copy todir="${dist-dir}/lib">
      <fileset dir="./ide/dist" />
      <fileset dir="./petite/dist" />
      <fileset dir="./launcher/dist" />
    </copy>
    
    <move todir="${dist-dir}" file="${dist-dir}/lib/wombat.jar" />
    
    <echo> ----- Creating version file ----- </echo>
    <echo file="${dist-dir}/version.txt">
Launcher,3
Wombat,${ide-version},lib/wombat-ide-${ide-version}.jar
Infonode Docking Windows,1.6.1,lib/idw-gpl.jar
Petite Bindings,${petite-bindings},lib/petite-${petite-bindings}.jar
Petite (Linux),${petite-version},linux,lib/petite-${petite-version}-linux.zip
Petite (OS X),${petite-version},osx,lib/petite-${petite-version}-osx.zip
Petite (Windows),${petite-version},win,lib/petite-${petite-version}-win.zip
C211 Libraries,${c211-lib-version},lib/c211-lib-${c211-lib-version}.zip
Keyword List,${keyword-version},lib/syntax.csv
    </echo>
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="clean" description="remove all of the extra files / directories">
    <ant dir="./ide/" target="clean" />
    <ant dir="./petite/" target="clean" />
    <ant dir="./launcher/" target="clean" />
    
    <delete dir="${dist-dir}" />
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="run" depends="version,recur" description="run Wombat">
    <unzip src="${dist-dir}/lib/c211-lib-${c211-lib-version}.zip" dest="${dist-dir}/lib" />
    
    <java 
	dir="${dist-dir}" 
	jar="${dist-dir}/wombat.jar" 
	fork="true" 
	/>
  </target>

  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="deploy" depends="clean,version,recur" description="run Wombat">
    <exec executable="chmod"><arg line="-R 0777 dist" /></exec>
    <exec executable="mv"><arg line="dist dev" /></exec>
    <exec executable="scp"><arg line="-rp dev <EMAIL>:~/cgi/wombat" /></exec>
    <exec executable="rm"><arg line="-rf dev" /></exec>
    <exec executable="git"><arg line="tag ${ide-version}" /></exec>
  </target>
</project>
<commit_msg>Remove duplicate tags on multiple deployments<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="wombat" default="recur">
  <description>
    Build file for Wombat in general.
  </description>

  <property name="dist-dir" location="dist" />
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="version" description="calculate current version">
    <tstamp><format property="ide-version" pattern="3.D.k" /></tstamp>
    
    <property name="jar-name" value="wombat-ide-${ide-version}.jar" />
    <property name="petite-version" value="8.4" />
    <property name="petite-bindings" value="${petite-version}.28" />
    <property name="c211-lib-version" value="1.0.21" />
    <property name="keyword-version" value="8.4.8" />
    
    <echo>Versions:
         IDE: ${ide-version}
      Petite: ${petite-version}
    Bindings: ${petite-bindings}
    C211 lib: ${c211-lib-version}
    Keywords: ${keyword-version}</echo>
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="osx" depends="version,recur" description="build an OSX application">
    <path id="tasks">
      <fileset dir=".">
	<include name="*.jar" />
      </fileset>
    </path>

    <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler"  classpathref="tasks" />

    <jarbundler dir="${dist-dir}"
		name="Wombat IDE"
		mainclass="wombat.Wombat"
		jar="${dist-dir}/wombat.jar"
		jvmversion="1.6+"
		icon="Wombat.icns"
		version="${ide-version}" />
  </target>

  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="recur" depends="version" description="recursively build the parts of the project">
    <echo> ----- Building Petite bindings ----- </echo>
    <ant dir="./petite/" target="jar" />
    
    <echo> ----- Building Wombat IDE ----- </echo>
    <ant dir="./ide/" target="jar" />
    
    <echo> ----- Building Wombat launcher ----- </echo>
    <ant dir="./launcher/" target="jar" />
    
    <echo> ----- Creating distribution directory ----- </echo>
    <mkdir dir="${dist-dir}/lib" />
    
    <copy todir="${dist-dir}/lib">
      <fileset dir="./ide/dist" />
      <fileset dir="./petite/dist" />
      <fileset dir="./launcher/dist" />
    </copy>
    
    <move todir="${dist-dir}" file="${dist-dir}/lib/wombat.jar" />
    
    <echo> ----- Creating version file ----- </echo>
    <echo file="${dist-dir}/version.txt">
Launcher,3
Wombat,${ide-version},lib/wombat-ide-${ide-version}.jar
Infonode Docking Windows,1.6.1,lib/idw-gpl.jar
Petite Bindings,${petite-bindings},lib/petite-${petite-bindings}.jar
Petite (Linux),${petite-version},linux,lib/petite-${petite-version}-linux.zip
Petite (OS X),${petite-version},osx,lib/petite-${petite-version}-osx.zip
Petite (Windows),${petite-version},win,lib/petite-${petite-version}-win.zip
C211 Libraries,${c211-lib-version},lib/c211-lib-${c211-lib-version}.zip
Keyword List,${keyword-version},lib/syntax.csv
    </echo>
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="clean" description="remove all of the extra files / directories">
    <ant dir="./ide/" target="clean" />
    <ant dir="./petite/" target="clean" />
    <ant dir="./launcher/" target="clean" />
    
    <delete dir="${dist-dir}" />
  </target>
  
  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="run" depends="version,recur" description="run Wombat">
    <unzip src="${dist-dir}/lib/c211-lib-${c211-lib-version}.zip" dest="${dist-dir}/lib" />
    
    <java 
	dir="${dist-dir}" 
	jar="${dist-dir}/wombat.jar" 
	fork="true" 
	/>
  </target>

  <!-- ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ -->
  <target name="deploy" depends="clean,version,recur" description="run Wombat">
    <exec executable="chmod"><arg line="-R 0777 dist" /></exec>
    <exec executable="mv"><arg line="dist dev" /></exec>
    <exec executable="scp"><arg line="-rp dev <EMAIL>:~/cgi/wombat" /></exec>
    <exec executable="rm"><arg line="-rf dev" /></exec>
    <exec executable="git"><arg line="tag -d ${ide-version}" /></exec>
    <exec executable="git"><arg line="tag ${ide-version}" /></exec>
  </target>
</project>

{'fraction_non_alphanumeric': 0.25208931021579145, 'fraction_numerical': 0.012972433578645378, 'mean_word_length': 3.3153928955866525, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 2, '>': 176, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, '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': '37976', 'n_tokens_mistral': 2973, 'n_tokens_neox': 2832, 'n_words': 473}