<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="jar" name="jrubyfx">
  <property file="build.properties"/>
  <property name="src.java" value="src"/>
  <property name="target" value="target"/>
  <property name="target.classes" value="${target}/classes"/>
  <property name="jruby.jar" value="${jruby.home}/lib/jruby.jar"/>
  <property name="version.source" value="1.7"/>
  <property name="version.target" value="1.7"/>

  <path id="build.classpath">
    <pathelement location="${jruby.jar}"/>
    <pathelement location="build_lib/jfxrt.jar"/>
  </path>

  <target name="init">
    <mkdir dir="${target}"/>
    <mkdir dir="${target.classes}"/>
  </target>

  <target name="clean">
    <delete dir="${target}"/>
  </target>

  <target depends="init" name="build" description="Compiles Java source files">
    <javac debug="true" includeAntRuntime="false" destdir="${target.classes}" source="${version.source}" target="${version.target}">
      <classpath refid="build.classpath"/>
      <src path="${src.java}"/>
    </javac>
  </target>

  <target depends="build" name="jar" description="Build a JAR file with the generated Java class files">
    <jar destfile="lib/jrubyfx.jar" basedir="${target.classes}">
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
      </manifest>
    </jar>
  </target>
</project>
<commit_msg>Setup build support to build against various Javas and JavaFX distributions<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="jar" name="jrubyfx">
  <property file="build.properties"/>
  <property name="src.java" value="src"/>
  <property name="target" value="target"/>
  <property name="target.classes" value="${target}/classes"/>
  <property name="jruby.jar" value="${jruby.home}/lib/jruby.jar"/>

  <!-- Figure out whether javafx is installed in Java or is a separate
       download.  There are three JavaFX install mechanisms: bundled (not
       loaded on JVM startup), integrated (loaded automatically by Java),
       and external (not part of Java install). -->
  <target name="detect.javafx">
    <condition property="javafx.install.bundled">
      <matches pattern="1.7.[0123456789]+.(0[456789]|[1])" 
               string="${java.version}" />
    </condition>

    <condition property="javafx.install.integrated">
      <matches pattern="[123456789].[89]" string="${java.version}"/>
    </condition>

    <condition property="javafx.install.external">
      <and>
        <not><isset property="javafx.install.bundled"/></not>
        <not><isset property="javafx.install.integrated"/></not>
      </and>
    </condition>
  </target>

  <target name="setup.bundled.path" if="javafx.install.bundled">
    <echo>Running Java 7 with JavaFx bundled...adding jar</echo>
    <path id="build.classpath">
      <pathelement location="${jruby.jar}"/>
      <pathelement location="${java.home}/lib/jfxrt.jar"/>
    </path>
  </target>

  <target name="setup.integrated.path" if="javafx.install.integrated">
    <echo>Running Java 8 or later...integrated into Java</echo>
    <path id="build.classpath">
      <pathelement location="${jruby.jar}"/>
    </path>
  </target>

  <target name="setup.external.path" if="javafx.install.external">
    <echo>Pre-FX Java assuming javafx rt in ../javafx</echo>
    <path id="build.classpath">
      <pathelement location="${jruby.jar}"/>
      <pathelement location="../javafx/rt/lib/jfxrt.jar"/>
    </path>
  </target>

  <target name="setup.path" depends="setup.bundled.path,setup.integrated.path,setup.external.path"/>

  <target name="init" depends="detect.javafx,setup.path">
    <mkdir dir="${target}"/>
    <mkdir dir="${target.classes}"/>
  </target>

  <target name="clean">
    <delete dir="${target}"/>
  </target>

  <target depends="init" name="build" description="Compiles Java source files">
    <javac debug="true" includeAntRuntime="false" destdir="${target.classes}">
      <classpath refid="build.classpath"/>
      <src path="${src.java}"/>
    </javac>
  </target>

  <target depends="build" name="jar" description="Build a JAR file with the generated Java class files">
    <jar destfile="lib/jrubyfx.jar" basedir="${target.classes}">
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
      </manifest>
    </jar>
  </target>
</project>

{'fraction_non_alphanumeric': 0.19174925097948836, 'fraction_numerical': 0.009910117538603365, 'mean_word_length': 3.9430523917995446, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 2, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1000427', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1323, 'n_words': 290}