<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="lightstone" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
  <property name="src" location="src" />
  <property name="test" location="test" />
  <property name="bin" location="bin" />
  <property name="lib" location="lib" />
  <property name="doc" location="doc" />

  <path id="binaries">
    <pathelement path="${bin}" />
  </path>

  <path id="libraries">
    <fileset dir="${lib}">
      <include name="*.jar" />
    </fileset>
  </path>

  <path id="master">
    <path refid="binaries" />
    <path refid="libraries" />
  </path>

  <fileset id="sources" dir="${src}">
    <include name="**/*.java" />
  </fileset>

  <fileset id="tests" dir="${bin}">
    <include name="**/*Test.class" />
    <exclude name="**/*$*.class" />
  </fileset>

  <target name="init">
    <mkdir dir="${bin}" />
    <mkdir dir="${lib}" />
  </target>

  <target name="resolve" depends="init">
    <ivy:retrieve pattern="${lib}/[artifact]-[revision].[ext]" sync="true" />
  </target>

  <target name="build" depends="init">
    <javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
      <classpath refid="libraries" />
    </javac>
  </target>

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

  <target name="rebuild" depends="clean, build" />

  <target name="test" depends="build">
    <junit fork="true" haltonfailure="true">
      <classpath refid="master" />
      <formatter type="plain" usefile="false" />
      <batchtest>
        <fileset refid="tests" />
      </batchtest>
    </junit>
  </target>

  <target name="run" depends="build">
    <java classpathref="master" fork="true" classname="net.lightstone.Server" />
  </target>

  <target name="doc" depends="build">
    <javadoc sourcepath="${src}" classpathref="master" destdir="${doc}" access="private" windowtitle="Lightstone Documentation">
      <doclet name="org.jboss.apiviz.APIviz" pathref="libraries">
        <param name="-sourceclasspath" value="${bin}" />
        <param name="-author" />
        <param name="-version" />
        <param name="-use" />
        <param name="-nopackagediagram" />
      </doclet>
      <doctitle><![CDATA[<h1>Lightstone Documentation</h1>]]></doctitle>
      <link href="http://download.oracle.com/javase/6/docs/api/" />
      <link href="http://docs.jboss.org/netty/3.2/api/" />
      <link href="http://jruby.org/apidocs/" />
    </javadoc>
  </target>
</project>

<commit_msg>Added a property for the main-class in the build.xml file.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="lightstone" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
  <property name="src" location="src" />
  <property name="test" location="test" />
  <property name="bin" location="bin" />
  <property name="lib" location="lib" />
  <property name="doc" location="doc" />
  <property name="main-class" value="net.lightstone.Server" />

  <path id="binaries">
    <pathelement path="${bin}" />
  </path>

  <path id="libraries">
    <fileset dir="${lib}">
      <include name="*.jar" />
    </fileset>
  </path>

  <path id="master">
    <path refid="binaries" />
    <path refid="libraries" />
  </path>

  <fileset id="sources" dir="${src}">
    <include name="**/*.java" />
  </fileset>

  <fileset id="tests" dir="${bin}">
    <include name="**/*Test.class" />
  </fileset>

  <target name="init">
    <mkdir dir="${bin}" />
    <mkdir dir="${lib}" />
  </target>

  <target name="resolve" depends="init">
    <ivy:retrieve pattern="${lib}/[artifact]-[revision].[ext]" sync="true" />
  </target>

  <target name="build" depends="init">
    <javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
      <classpath refid="libraries" />
    </javac>
  </target>

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

  <target name="rebuild" depends="clean, build" />

  <target name="test" depends="build">
    <junit fork="true" haltonfailure="true">
      <classpath refid="master" />
      <formatter type="plain" usefile="false" />
      <batchtest>
        <fileset refid="tests" />
      </batchtest>
    </junit>
  </target>

  <target name="run" depends="build">
    <java classpathref="master" fork="true" classname="${main-class}" />
  </target>

  <target name="doc" depends="build">
    <javadoc sourcepath="${src}" classpathref="master" destdir="${doc}" access="private" windowtitle="Lightstone Documentation">
      <doclet name="org.jboss.apiviz.APIviz" pathref="libraries">
        <param name="-sourceclasspath" value="${bin}" />
        <param name="-author" />
        <param name="-version" />
        <param name="-use" />
        <param name="-nopackagediagram" />
      </doclet>
      <doctitle><![CDATA[<h1>Lightstone Documentation</h1>]]></doctitle>
      <link href="http://download.oracle.com/javase/6/docs/api/" />
      <link href="http://docs.jboss.org/netty/3.2/api/" />
      <link href="http://jruby.org/apidocs/" />
    </javadoc>
  </target>
</project>


{'fraction_non_alphanumeric': 0.2230981474182105, 'fraction_numerical': 0.0031533307055577452, 'mean_word_length': 3.499113475177305, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 2, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1390280', 'n_tokens_mistral': 1763, 'n_tokens_neox': 1698, 'n_words': 316}