<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="com.vasileff.ceylon.xmath" default="all">
    <property environment="env"/>
    <property name="ceylon.home" value="${env.CEYLON_HOME}"/>
    <property name="ceylon.ant.lib" value="${ceylon.home}/lib/ceylon-ant.jar"/>
    <property name="source.encoding" value="UTF-8"/>

    <path id="ant-tasks">
        <pathelement location="${ceylon.ant.lib}"/>
    </path>
    <typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/>

    <!-- directories -->
    <property name="out.repo" location="${basedir}/modules"/>
    <property name="ceylon.repo.dir" location="${user.home}/.ceylon/repo" />

    <moduleset id="modules.xmath.jvm">
        <module name="com.vasileff.ceylon.xmath"/>
        <module name="test.com.vasileff.ceylon.xmath.jvm"/>
        <module name="test.com.vasileff.ceylon.xmath.common"/>
    </moduleset>

    <moduleset id="modules.xmath.js">
        <module name="com.vasileff.ceylon.xmath"/>
        <module name="test.com.vasileff.ceylon.xmath.common"/>
    </moduleset>

    <target name="all" depends="compile, compile-js, doc"/>

    <target name="compile">
        <ceylon-compile encoding="${source.encoding}">
            <moduleset refid="modules.xmath.jvm"/>
        </ceylon-compile>
    </target>

    <target name="compile-js">
        <ceylon-compile-js encoding="${source.encoding}">
            <moduleset refid="modules.xmath.js"/>
        </ceylon-compile-js>
    </target>

    <target name="test" depends="compile">
        <ceylon-test report="true">
            <moduleset refid="modules.xmath.jvm"/>
        </ceylon-test>
    </target>

    <target name="test-js" depends="compile-js">
        <ceylon-test-js report="true">
            <moduleset refid="modules.xmath.js"/>
        </ceylon-test-js>
    </target>

    <target name="doc">
        <ceylon-doc
                encoding="${source.encoding}"
                includesourcecode="true">
            <moduleset refid="modules.xmath.jvm"/>
        </ceylon-doc>
    </target>

    <target name="publish" depends="all"
            description="Copies the SDK modules to the user's repository">
        <copy todir="${ceylon.repo.dir}" overwrite="true">
            <fileset dir="${out.repo}">
                <include name="com/vasileff/ceylon/xmath/**"/>
            </fileset>
        </copy>
    </target>

    <target name="clean">
        <delete dir="modules"/>
    </target>
</project><commit_msg>add publish-herd to build script<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="com.vasileff.ceylon.xmath" default="all">
    <property environment="env"/>
    <property name="ceylon.home" value="${env.CEYLON_HOME}"/>
    <property name="ceylon.ant.lib" value="${ceylon.home}/lib/ceylon-ant.jar"/>
    <property name="source.encoding" value="UTF-8"/>

    <path id="ant-tasks">
        <pathelement location="${ceylon.ant.lib}"/>
    </path>
    <typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/>

    <!-- directories -->
    <property name="out.repo" location="${basedir}/modules"/>
    <property name="ceylon.repo.dir" location="${user.home}/.ceylon/repo" />

    <moduleset id="modules.jvm">
        <module name="com.vasileff.ceylon.xmath"/>
        <module name="test.com.vasileff.ceylon.xmath.jvm"/>
        <module name="test.com.vasileff.ceylon.xmath.common"/>
    </moduleset>

    <moduleset id="modules.js">
        <module name="com.vasileff.ceylon.xmath"/>
        <module name="test.com.vasileff.ceylon.xmath.common"/>
    </moduleset>

    <target name="all" depends="compile, compile-js, doc"/>

    <target name="compile">
        <ceylon-compile encoding="${source.encoding}">
            <moduleset refid="modules.jvm"/>
        </ceylon-compile>
    </target>

    <target name="compile-js">
        <ceylon-compile-js encoding="${source.encoding}">
            <moduleset refid="modules.js"/>
        </ceylon-compile-js>
    </target>

    <target name="test" depends="compile">
        <ceylon-test report="true">
            <moduleset refid="modules.jvm"/>
        </ceylon-test>
    </target>

    <target name="test-js" depends="compile-js">
        <ceylon-test-js report="true">
            <moduleset refid="modules.js"/>
        </ceylon-test-js>
    </target>

    <target name="doc">
        <ceylon-doc
                encoding="${source.encoding}"
                includesourcecode="true">
            <moduleset refid="modules.jvm"/>
        </ceylon-doc>
    </target>

    <target name="publish" depends="all"
            description="Copies the SDK modules to the user's repository">
        <copy todir="${ceylon.repo.dir}" overwrite="true">
            <fileset dir="${out.repo}">
                <include name="com/vasileff/ceylon/xmath/**"/>
            </fileset>
        </copy>
    </target>

    <target name="publish-herd">
        <fail message="Please specify a target Herd upload repo url with -Dherd.repo=..." unless="herd.repo"/>
        <fail message="Please specify a target Herd user name with -Dherd.user=..." unless="herd.user"/>
        <fail message="Please specify a target Herd password with -Dherd.pass=..." unless="herd.pass"/>
        <ceylon-compile
                encoding="${source.encoding}"
                out="${herd.repo}"
                user="${herd.user}"
                pass="${herd.pass}">
            <moduleset refid="modules.jvm"/>
        </ceylon-compile>
        <ceylon-compile-js
                encoding="${source.encoding}"
                out="${herd.repo}"
                user="${herd.user}"
                pass="${<PASSWORD>}">
            <moduleset refid="modules.js"/>
        </ceylon-compile-js>
        <ceylon-doc
                encoding="${source.encoding}"
                includesourcecode="true"
                out="${herd.repo}"
                user="${herd.user}"
                pass="${<PASSWORD>}">
            <moduleset refid="modules.jvm"/>
        </ceylon-doc>
    </target>

    <target name="clean">
        <delete dir="modules"/>
    </target>
</project>
{'fraction_non_alphanumeric': 0.18137254901960784, 'fraction_numerical': 0.00130718954248366, 'mean_word_length': 2.379900607399227, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 2, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '586816', 'n_tokens_mistral': 1919, 'n_tokens_neox': 1860, 'n_words': 310}