<commit_before><?xml version="1.0"?>
<project name="build-common" default="compile" xmlns:artifact="urn:maven-artifact-ant">
  <property name="src.dir"     value="src"/>
  <property name="target.dir"  value="target"/>
  <property name="classes.dir" value="${target.dir}/classes"/>
  <property name="webapp.dir"  value="${target.dir}/webapp"/>

  <!-- Maven Ant task wiring -->
  <property name="maven-ant.vers" value="2.1.3"/>
  <property name="maven-ant.dir" value="${user.home}/.m2/ant-support"/>
  <property name="maven-ant.jar" value="${maven-ant.dir}/maven-ant-tasks-${maven-ant.vers}.jar"/>
  <property name="maven-ant.url"
            value="http://mirrors.ibiblio.org/pub/mirrors/apache/maven/binaries"/>
  <condition property="maven-ant.exists"><available file="${maven-ant.jar}"/></condition>
  <target name="-download-maven-ant" unless="maven-ant.exists">
    <mkdir dir="${maven-ant.dir}"/>
    <get src="${maven-ant.url}/maven-ant-tasks-${maven-ant.vers}.jar"
         dest="${maven-ant.jar}" usetimestamp="true"/>
  </target>

  <target name="-init-maven-ant" depends="-download-maven-ant">
    <taskdef resource="org/apache/maven/artifact/ant/antlib.xml"
             uri="urn:maven-artifact-ant" classpath="${maven-ant.jar}"/>
  </target>

  <target name="-prepare" depends="-init-maven-ant">
    <mkdir dir="${target.dir}"/>
    <artifact:pom id="pom" file="core/pom.xml"/>
    <artifact:dependencies pathId="classpath" pomRefId="pom" useScope="compile"/>
  </target>

  <target name="-prepare-html" depends="-prepare">
    <artifact:dependencies pathId="html.classpath">
      <dependency groupId="com.googlecode.playn" artifactId="playn-html"
                  version="${pom.properties.coreversion}"/>
      <dependency groupId="com.google.gwt" artifactId="gwt-dev"
                  version="${pom.properties.gwtversion}"/>
    </artifact:dependencies>
  </target>

  <target name="-prepare-android" depends="-prepare">
    <artifact:pom id="android.pom" file="android/pom.xml"/>
    <artifact:dependencies pathId="android.classpath" pomRefId="android.pom" useScope="compile"/>
  </target>

  <target name="-prep-webapp" depends="-prepare-html">
    <mkdir dir="${webapp.dir}"/>
    <copy todir="${webapp.dir}">
      <fileset dir="html/war" includes="**"/>
    </copy>
    <!-- we need to resolve this for the GWT classpath to avoid a bunch of warnings -->
    <artifact:dependencies sourcesFileSetId="validation.sources.fileset">
      <dependency groupId="javax.validation" artifactId="validation-api" version="1.0.0.GA"/>
    </artifact:dependencies>
    <pathconvert property="validation.source.jar" refid="validation.sources.fileset"/>
  </target>

  <target name="clean" description="Cleans out all build results.">
    <delete dir="${target.dir}"/>
  </target>

  <target name="compile" depends="-prepare" description="Compiles the core code.">
    <mkdir dir="${classes.dir}"/>
    <javac srcdir="core/${src.dir}" destdir="${classes.dir}" includeAntRuntime="false"
           debug="on" deprecation="on" source="1.6" target="1.6">
      <classpath refid="classpath"/>
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-serial"/>
    </javac>
  </target>

  <target name="-compile-html" depends="-prepare-html,compile">
    <javac srcdir="html/${src.dir}" destdir="${classes.dir}" includeAntRuntime="false"
           debug="on" deprecation="on" source="1.6" target="1.6">
      <classpath refid="html.classpath"/>
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-serial"/>
    </javac>
  </target>

  <target name="compile-html" depends="-prep-webapp,-compile-html" description="Compiles HTML game.">
    <javac srcdir="html/${src.dir}" destdir="${classes.dir}" includeAntRuntime="false"
           debug="on" deprecation="on" source="1.6" target="1.6">
      <classpath refid="html.classpath"/>
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-serial"/>
    </javac>

    <java fork="true" maxmemory="1024M" failonerror="true" classname="com.google.gwt.dev.Compiler">
      <classpath>
        <pathelement location="${javax.validation:validation-api:jar}"/>
        <pathelement location="${validation.source.jar}"/>
        <pathelement path="core/${src.dir}"/>
        <pathelement path="html/${src.dir}"/>
        <pathelement location="${classes.dir}"/>
        <path refid="html.classpath"/>
      </classpath>
      <jvmarg value="-Djava.awt.headless=true"/>
      <!--<arg value="-style"/><arg value="pretty"/>-->
      <!--<arg value="-gen"/><arg value="${deploy.dir}/gwt-gen"/>-->
      <arg value="-war"/>
      <arg value="${target.dir}/webapp"/>
      <arg value="${html.classname}"/>
    </java>
  </target>

  <target name="run-html" depends="compile-html" description="Serves HTML game on localhost.">
    <artifact:dependencies pathId="jetty-ant.classpath">
      <remoteRepository url="http://oss.sonatype.org/content/groups/jetty/"/>
      <Dependency groupId="org.mortbay.jetty" artifactId="jetty-ant"
                  version="7.4.2.v20110526" scope="runtime" />
    </artifact:dependencies>
    <taskdef classpathref="jetty-ant.classpath" resource="tasks.properties"/>
    <echo>=================================================================</echo>
    <echo>Browse to http://localhost:8080/${ant.project.name}/${html.index}</echo>
    <echo>=================================================================</echo>
    <jetty tempDirectory="${target.dir}/jetty-temp">
      <webApp name="html-server" warfile="${target.dir}/webapp" contextpath="/${ant.project.name}"/>
    </jetty>
  </target>
<commit_msg>Fixed compile/run-html/devmode targets.<commit_after><?xml version="1.0"?>
<project name="build-common" default="compile" xmlns:artifact="urn:maven-artifact-ant">
  <property name="src.dir"     value="src"/>
  <property name="target.dir"  value="target"/>
  <property name="classes.dir" value="${target.dir}/classes"/>
  <property name="webapp.dir"  value="${target.dir}/webapp"/>

  <!-- Maven Ant task wiring -->
  <property name="maven-ant.vers" value="2.1.3"/>
  <property name="maven-ant.dir" value="${user.home}/.m2/ant-support"/>
  <property name="maven-ant.jar" value="${maven-ant.dir}/maven-ant-tasks-${maven-ant.vers}.jar"/>
  <property name="maven-ant.url"
            value="http://mirrors.ibiblio.org/pub/mirrors/apache/maven/binaries"/>
  <condition property="maven-ant.exists"><available file="${maven-ant.jar}"/></condition>
  <target name="-download-maven-ant" unless="maven-ant.exists">
    <mkdir dir="${maven-ant.dir}"/>
    <get src="${maven-ant.url}/maven-ant-tasks-${maven-ant.vers}.jar"
         dest="${maven-ant.jar}" usetimestamp="true"/>
  </target>

  <target name="-init-maven-ant" depends="-download-maven-ant">
    <taskdef resource="org/apache/maven/artifact/ant/antlib.xml"
             uri="urn:maven-artifact-ant" classpath="${maven-ant.jar}"/>
  </target>

  <target name="-prepare" depends="-init-maven-ant">
    <mkdir dir="${target.dir}"/>
    <artifact:pom id="pom" file="core/pom.xml"/>
    <artifact:dependencies pathId="classpath" pomRefId="pom" useScope="compile"/>
  </target>

  <target name="-prepare-html" depends="-prepare">
    <artifact:dependencies pathId="html-extras.classpath">
      <dependency groupId="com.googlecode.playn" artifactId="playn-html"
                  version="${pom.properties.coreversion}"/>
      <dependency groupId="com.google.gwt" artifactId="gwt-dev"
                  version="${pom.properties.gwtversion}"/>
    </artifact:dependencies>
    <path id="html.classpath">
      <path refid="classpath"/>
      <path refid="html-extras.classpath"/>
    </path>
  </target>

  <target name="-prepare-android" depends="-prepare">
    <artifact:pom id="android.pom" file="android/pom.xml"/>
    <artifact:dependencies pathId="android.classpath" pomRefId="android.pom" useScope="compile"/>
  </target>

  <target name="-prep-webapp" depends="-prepare-html">
    <mkdir dir="${webapp.dir}"/>
    <copy todir="${webapp.dir}">
      <fileset dir="html/war" includes="**"/>
    </copy>
    <!-- we need to resolve this for the GWT classpath to avoid a bunch of warnings -->
    <artifact:dependencies sourcesFileSetId="validation.sources.fileset">
      <dependency groupId="javax.validation" artifactId="validation-api" version="1.0.0.GA"/>
    </artifact:dependencies>
    <pathconvert property="validation.source.jar" refid="validation.sources.fileset"/>
  </target>

  <target name="clean" description="Cleans out all build results.">
    <delete dir="${target.dir}"/>
  </target>

  <target name="compile" depends="-prepare" description="Compiles the core code.">
    <mkdir dir="${classes.dir}"/>
    <javac srcdir="core/${src.dir}" destdir="${classes.dir}" includeAntRuntime="false"
           debug="on" deprecation="on" source="1.6" target="1.6">
      <classpath refid="classpath"/>
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-serial"/>
    </javac>
  </target>

  <target name="-compile-html" depends="-prepare-html,compile">
    <javac srcdir="html/${src.dir}" destdir="${classes.dir}" includeAntRuntime="false"
           debug="on" deprecation="on" source="1.6" target="1.6">
      <classpath refid="html.classpath"/>
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-serial"/>
    </javac>
  </target>

  <target name="compile-html" depends="-prep-webapp,-compile-html" description="Compiles HTML game.">
    <java fork="true" maxmemory="1024M" failonerror="true" classname="com.google.gwt.dev.Compiler">
      <classpath>
        <pathelement location="${javax.validation:validation-api:jar}"/>
        <pathelement location="${validation.source.jar}"/>
        <pathelement path="core/${src.dir}"/>
        <pathelement path="html/${src.dir}"/>
        <pathelement location="${classes.dir}"/>
        <path refid="html.classpath"/>
      </classpath>
      <jvmarg value="-Djava.awt.headless=true"/>
      <!--<arg value="-style"/><arg value="pretty"/>-->
      <!--<arg value="-gen"/><arg value="${deploy.dir}/gwt-gen"/>-->
      <arg value="-war"/>
      <arg value="${target.dir}/webapp"/>
      <arg value="${html.classname}"/>
    </java>
  </target>

  <target name="run-html" depends="compile-html" description="Serves HTML game on localhost.">
    <artifact:dependencies pathId="jetty-ant.classpath">
      <remoteRepository id="jetty-repo" url="http://oss.sonatype.org/content/groups/jetty/"/>
      <Dependency groupId="org.mortbay.jetty" artifactId="jetty-ant"
                  version="7.4.2.v20110526" scope="runtime" />
    </artifact:dependencies>
    <taskdef classpathref="jetty-ant.classpath" resource="tasks.properties"/>
    <echo>=================================================================</echo>
    <echo>Browse to http://localhost:8080/${ant.project.name}/${html.index}</echo>
    <echo>=================================================================</echo>
    <jetty tempDirectory="${target.dir}/jetty-temp">
      <webApp name="html-server" warfile="${target.dir}/webapp" contextpath="/${ant.project.name}"/>
    </jetty>
  </target>

{'fraction_non_alphanumeric': 0.22270153680237262, 'fraction_numerical': 0.006830232767142986, 'mean_word_length': 3.917366327883341, 'pattern_counts': {'":': 0, '<': 218, '<?xml version=': 2, '>': 218, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2847824', 'n_tokens_mistral': 3602, 'n_tokens_neox': 3421, 'n_words': 545}