<commit_before><project name="org.svetovid.lib" default="help">


    <!-- Load the environment variables -->
    <property environment="env" />

    <!-- link to use antcontrib -->
    <taskdef resource="net/sf/antcontrib/antlib.xml" />

    <!-- Version of Java to use -->
    <property name="java.source.version" value="1.7" />
    <property name="java.target.version" value="1.7" />
    <property name="java.bootstrap.classpath" location="${env.JAVA_HOME}/lib/rt.jar" />
    <property name="java.api.link" value="http://download.oracle.com/javase/8/docs/api/" />

    <!-- Folders where the source files reside -->
    <property name="src.dir" value="src" />
    <property name="res.dir" value="res" />
    <property name="ressrc.dir" value="ressrc" />
    <property name="docsrc.dir" value="doc" />

    <!-- Folder where the compiled binaries should be placed -->
    <property name="bin.dir" value="bin" />

    <!-- Folder where the documentation is collected -->
    <property name="doc.dir" value="gendoc" />

    <!-- Folder where the generated Java documentation should be placed -->
    <property name="apidoc.dir" value="${doc.dir}/api" />

    <!-- Folder where the generated Java documentation should be placed -->
    <property name="htmldoc.dir" value="${doc.dir}/html" />

    <!-- Folder to hold packed library and documantation ready to be distriuted to users -->
    <property name="dist.dir" value="dist" />


    <target name="help" depends=""
            description="Shows the list of supported tasks">

        <echo>You should specify the task to be executed:</echo>
        <echo/>
        <echo>  compile          - Compile the source code into '${bin.dir}'</echo>
        <echo>  compile.res      - Compile the resources into '${res.dir}'</echo>
        <echo>  build            - Build the library into '${bin.dir}'</echo>
        <echo>  generate.apidoc  - Generate the API documentation into '${apidoc.dir}'</echo>
        <echo>  generate.htmldoc - Compile the documentation into '${htmldoc.dir}'</echo>
        <echo>  pack.jar         - Pack binaries in a jar file into '${dist.dir}'</echo>
        <echo>  pack.doc         - Pack documentation in a zip file into '${dist.dir}'</echo>
        <echo>  pack             - Pack binaries and documentation into '${dist.dir}'</echo>
        <echo>  fix.src          - Fix tabs and line endings in source files</echo>
        <echo>  fix.res          - Fix tabs and line endings in resource sources</echo>
        <echo>  clean            - Delete all generated files and folders</echo>
        <echo/>

        <input message="Would you like to build and pack the project?"
               validargs="y,n"
               defaultvalue="y"
               addproperty="choice" />
        <condition property="abort">
            <equals arg1="n" arg2="${choice}"/>
        </condition>
        <fail if="abort">Build aborted by user.</fail>
        <antcall target="pack.jar"/>

    </target>


    <target name="compile" depends=""
            description="Compile the source code from ${src.dir} into ${bin.dir}">

        <delete dir="${bin.dir}" />
        <mkdir dir="${bin.dir}" />
        <javac srcdir="${src.dir}"
               destdir="${bin.dir}"
               source="${java.source.version}"
               target="${java.target.version}"
               bootclasspath="${java.bootstrap.classpath}"
               includeAntRuntime="no" />

    </target>


    <target name="compile.res.properties" depends=""
            description="Compile .properties files from ${ressrc.dir} into ${res.dir}">

        <property name="restmp.dir" value="${res.dir}-tmp" />
        <mkdir dir="${restmp.dir}" />
        <native2ascii encoding="utf-8"
                      src="${ressrc.dir}"
                      dest="${restmp.dir}"
                      includes="**/*" />
        <fixcrlf srcdir="${restmp.dir}" eol="lf" />
        <copy todir="${res.dir}">
            <fileset dir="${restmp.dir}" />
        </copy>
        <delete dir="${restmp.dir}" />

    </target>


    <target name="compile.res.images" depends=""
            description="Convert svg to png images from ${ressrc.dir} into ${res.dir}">

    </target>


    <target name="compile.res" depends="compile.res.properties, compile.res.images"<commit_msg>Build.xml change temporary folder path<commit_after><project name="org.svetovid.lib" default="help">


    <!-- Load the environment variables -->
    <property environment="env" />

    <!-- link to use antcontrib -->
    <taskdef resource="net/sf/antcontrib/antlib.xml" />

    <!-- Version of Java to use -->
    <property name="java.source.version" value="1.7" />
    <property name="java.target.version" value="1.7" />
    <property name="java.bootstrap.classpath" location="${env.JAVA_HOME}/lib/rt.jar" />
    <property name="java.api.link" value="http://download.oracle.com/javase/8/docs/api/" />

    <!-- Folders where the source files reside -->
    <property name="src.dir" value="src" />
    <property name="res.dir" value="res" />
    <property name="ressrc.dir" value="ressrc" />
    <property name="docsrc.dir" value="doc" />

    <!-- Folder where the compiled binaries should be placed -->
    <property name="bin.dir" value="bin" />

    <!-- Folder where the documentation is collected -->
    <property name="doc.dir" value="gendoc" />

    <!-- Folder where the generated Java documentation should be placed -->
    <property name="apidoc.dir" value="${doc.dir}/api" />

    <!-- Folder where the generated Java documentation should be placed -->
    <property name="htmldoc.dir" value="${doc.dir}/html" />

    <!-- Folder to hold packed library and documantation ready to be distriuted to users -->
    <property name="dist.dir" value="dist" />


    <target name="help" depends=""
            description="Shows the list of supported tasks">

        <echo>You should specify the task to be executed:</echo>
        <echo/>
        <echo>  compile          - Compile the source code into '${bin.dir}'</echo>
        <echo>  compile.res      - Compile the resources into '${res.dir}'</echo>
        <echo>  build            - Build the library into '${bin.dir}'</echo>
        <echo>  generate.apidoc  - Generate the API documentation into '${apidoc.dir}'</echo>
        <echo>  generate.htmldoc - Compile the documentation into '${htmldoc.dir}'</echo>
        <echo>  pack.jar         - Pack binaries in a jar file into '${dist.dir}'</echo>
        <echo>  pack.doc         - Pack documentation in a zip file into '${dist.dir}'</echo>
        <echo>  pack             - Pack binaries and documentation into '${dist.dir}'</echo>
        <echo>  fix.src          - Fix tabs and line endings in source files</echo>
        <echo>  fix.res          - Fix tabs and line endings in resource sources</echo>
        <echo>  clean            - Delete all generated files and folders</echo>
        <echo/>

        <input message="Would you like to build and pack the project?"
               validargs="y,n"
               defaultvalue="y"
               addproperty="choice" />
        <condition property="abort">
            <equals arg1="n" arg2="${choice}"/>
        </condition>
        <fail if="abort">Build aborted by user.</fail>
        <antcall target="pack.jar"/>

    </target>


    <target name="compile" depends=""
            description="Compile the source code from ${src.dir} into ${bin.dir}">

        <delete dir="${bin.dir}" />
        <mkdir dir="${bin.dir}" />
        <javac srcdir="${src.dir}"
               destdir="${bin.dir}"
               source="${java.source.version}"
               target="${java.target.version}"
               bootclasspath="${java.bootstrap.classpath}"
               includeAntRuntime="no" />

    </target>


    <target name="compile.res.properties" depends=""
            description="Compile .properties files from ${ressrc.dir} into ${res.dir}">

        <property name="tmpresprop.dir" value=".tmp/${res.dir}/properties" />
        <mkdir dir="${tmpresprop.dir}" />
        <native2ascii encoding="utf-8"
                      src="${ressrc.dir}"
                      dest="${tmpresprop.dir}"
                      includes="**/*.properties" />
        <fixcrlf srcdir="${tmpresprop.dir}" eol="lf" />
        <copy todir="${res.dir}">
            <fileset dir="${tmpresprop.dir}" />
        </copy>
        <delete dir="${tmpresprop.dir}" />

    </target>


    <target name="compile.res.images" depends=""
            description="Convert svg to png images from ${ressrc.dir} into ${res.dir}">

    </target>


    <target name="compile.res" depends="compile.res.properties, compile.res.images"
{'fraction_non_alphanumeric': 0.16190695532012897, 'fraction_numerical': 0.0020727775218793184, 'mean_word_length': 2.306052531404644, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '159904', 'n_tokens_mistral': 2512, 'n_tokens_neox': 2401, 'n_words': 643}