<commit_before><project name="som" basedir="." default="compile">

    <property name="src.dir"     value="src"/>
    <property name="src_gen.dir" value="src_gen"/>
    <property name="lib.dir"     value="libs" />
    <property name="truffle.dir" value="${lib.dir}/truffle" />
    <property name="truffle.build" value="${truffle.dir}/mxbuild/dists" />
    <property name="junit.version" value="4.12" />
    <property name="checkstyle.version" value="6.17" />

    <property name="build.dir"   value="build"/>
    <property name="classes.dir" value="${build.dir}/classes"/>

    <path id="project.classpath">
        <pathelement location="${classes.dir}" />
        <pathelement location="tests/" />
        <pathelement location="${lib.dir}/junit-${junit.version}.jar" />
        <pathelement location="${lib.dir}/hamcrest-core-1.3.jar" />
        <pathelement location="${lib.dir}/websocket/dist/websocket.jar" />
        <pathelement location="${lib.dir}/minimal-json/build/minimal-json.jar" />
        <pathelement location="${lib.dir}/coveralls-truffle/coveralls-truffle.jar" />
        <pathelement location="${truffle.build}/truffle-api.jar" />
        <pathelement location="${truffle.build}/truffle-debug.jar" />
        <pathelement location="${truffle.build}/truffle-dsl-processor.jar" />
        <pathelement location="${truffle.build}/truffle-tck.jar" />
    </path>

    <target name="clean" description="Remove build directories and generated code">
        <delete dir="${build.dir}"/>
        <delete dir="${src_gen.dir}"/>
    </target>
    
    <target name="clobber" description="Do clean, and also clean truffle build" depends="clean">
        <exec executable="../mx/mx" dir="${truffle.dir}">
            <arg value="clean"/>
        </exec>
    </target>
    
    <target name="check-core-lib-available">
        <available file="core-lib/.git" property="core-lib.present"/>
    </target>
    <target name="core-lib" depends="check-core-lib-available"
            unless="core-lib.present">
      <exec executable="git">
        <arg value="submodule" />
        <arg value="update" />
        <arg value="--init" />
      </exec>
    </target>

    <target name="truffle-libs" >
        <exec executable="../mx/mx" dir="${truffle.dir}">
            <arg value="build"/>
        </exec>
    </target>
    
    <target name="websocket-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/websocket" target="jar" failonerror="true" />
    </target>

    <target name="coveralls-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/coveralls-truffle" target="jar" failonerror="true" />
    </target>
    
    <target name="minimal-json-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/minimal-json" target="jar" failonerror="true" />
    </target>
    
    <target name="libs" depends="core-lib,truffle-libs,websocket-lib,minimal-json-lib,coveralls-lib">
        <get src="https://repo1.maven.org/maven2/junit/junit/${junit.version}/junit-${junit.version}.jar"
            usetimestamp="true"
            dest="${lib.dir}/junit-${junit.version}.jar" />
        <get src="https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
            usetimestamp="true"
            dest="${lib.dir}/hamcrest-core-1.3.jar" />
        <get src="https://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.jar"
            usetimestamp="true"
            dest="${lib.dir}/jline-2.11.jar" />
    </target>

    <target name="checkstyle-jar">
        <get src="http://iweb.dl.sourceforge.net/project/checkstyle/checkstyle/${checkstyle.version}/checkstyle-${checkstyle.version}-all.jar"
            usetimestamp="true"
            dest="${lib.dir}/checkstyle-${checkstyle.version}-all.jar" />
    </target>
    
    <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" classpath="${lib.dir}/checkstyle-${checkstyle.version}-all.jar" />
    
    <target name="checkstyle" depends="checkstyle-jar" description="Check Code with Checkstyle">
        <checkstyle config=".checkstyle_checks.xml">
          <fileset dir="src" includes="**/*.java"/>
          <formatter type="plain"/>
        </checkstyle>
    </target><commit_msg>Move checkstyle taskdef into target to avoid warning<commit_after><project name="som" basedir="." default="compile">

    <property name="src.dir"     value="src"/>
    <property name="src_gen.dir" value="src_gen"/>
    <property name="lib.dir"     value="libs" />
    <property name="truffle.dir" value="${lib.dir}/truffle" />
    <property name="truffle.build" value="${truffle.dir}/mxbuild/dists" />
    <property name="junit.version" value="4.12" />
    <property name="checkstyle.version" value="6.17" />

    <property name="build.dir"   value="build"/>
    <property name="classes.dir" value="${build.dir}/classes"/>

    <path id="project.classpath">
        <pathelement location="${classes.dir}" />
        <pathelement location="tests/" />
        <pathelement location="${lib.dir}/junit-${junit.version}.jar" />
        <pathelement location="${lib.dir}/hamcrest-core-1.3.jar" />
        <pathelement location="${lib.dir}/websocket/dist/websocket.jar" />
        <pathelement location="${lib.dir}/minimal-json/build/minimal-json.jar" />
        <pathelement location="${lib.dir}/coveralls-truffle/coveralls-truffle.jar" />
        <pathelement location="${truffle.build}/truffle-api.jar" />
        <pathelement location="${truffle.build}/truffle-debug.jar" />
        <pathelement location="${truffle.build}/truffle-dsl-processor.jar" />
        <pathelement location="${truffle.build}/truffle-tck.jar" />
    </path>

    <target name="clean" description="Remove build directories and generated code">
        <delete dir="${build.dir}"/>
        <delete dir="${src_gen.dir}"/>
    </target>
    
    <target name="clobber" description="Do clean, and also clean truffle build" depends="clean">
        <exec executable="../mx/mx" dir="${truffle.dir}">
            <arg value="clean"/>
        </exec>
    </target>
    
    <target name="check-core-lib-available">
        <available file="core-lib/.git" property="core-lib.present"/>
    </target>
    <target name="core-lib" depends="check-core-lib-available"
            unless="core-lib.present">
      <exec executable="git">
        <arg value="submodule" />
        <arg value="update" />
        <arg value="--init" />
      </exec>
    </target>

    <target name="truffle-libs" >
        <exec executable="../mx/mx" dir="${truffle.dir}">
            <arg value="build"/>
        </exec>
    </target>
    
    <target name="websocket-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/websocket" target="jar" failonerror="true" />
    </target>

    <target name="coveralls-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/coveralls-truffle" target="jar" failonerror="true" />
    </target>
    
    <target name="minimal-json-lib" depends="core-lib">
        <!-- depends on core-lib to initialize all submodules -->
        <subant buildpath="libs/minimal-json" target="jar" failonerror="true" />
    </target>
    
    <target name="libs" depends="core-lib,truffle-libs,websocket-lib,minimal-json-lib,coveralls-lib">
        <get src="https://repo1.maven.org/maven2/junit/junit/${junit.version}/junit-${junit.version}.jar"
            usetimestamp="true"
            dest="${lib.dir}/junit-${junit.version}.jar" />
        <get src="https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
            usetimestamp="true"
            dest="${lib.dir}/hamcrest-core-1.3.jar" />
        <get src="https://repo1.maven.org/maven2/jline/jline/2.11/jline-2.11.jar"
            usetimestamp="true"
            dest="${lib.dir}/jline-2.11.jar" />
    </target>

    <target name="checkstyle-jar">
        <get src="http://iweb.dl.sourceforge.net/project/checkstyle/checkstyle/${checkstyle.version}/checkstyle-${checkstyle.version}-all.jar"
            usetimestamp="true"
            dest="${lib.dir}/checkstyle-${checkstyle.version}-all.jar" />
    </target>
    
    <target name="checkstyle" depends="checkstyle-jar" description="Check Code with Checkstyle">
        <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" classpath="${lib.dir}/checkstyle-${checkstyle.version}-all.jar" />
        <checkstyle config=".checkstyle_checks.xml">
          <fileset dir="src" includes="**/*.java"/>
          <formatter type="plain"/>
        </checkstyle>
    </target>
{'fraction_non_alphanumeric': 0.18693490054249548, 'fraction_numerical': 0.006555153707052441, 'mean_word_length': 2.88967032967033, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 6, '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': '5024279', 'n_tokens_mistral': 2819, 'n_tokens_neox': 2772, 'n_words': 410}