<commit_before><?xml version="1.0" encoding="UTF-8"?>

<project name="zstack-agent builder" basedir="../">
    <property name="agent.bdir" location="${build.dir}/zstack-agent" />
    <property name="agent.ansible.dir" location="${ansible.dir}/zstack-agent/" />
    <property name="agent.plugin.ansible.dir" location="${ansible.dir}/zstack-agent/plugins/" />

    <target name="build-zstack-agent" >
        <makeDir dir="${agent.bdir}" />

        <checkProperty property="agent.source" />
        <checkFile file="${agent.source}" />

        <delete dir="${agent.source}/target" />

        <exec executable="make" dir="${agent.source}" failonerror="true">
            <arg value="clean" />
        </exec>

        <exec executable="make" dir="${agent.source}" failonerror="true">
            <arg value="package" />
        </exec>

        <copy todir="${agent.bdir}/">
            <fileset dir="${agent.source}/target/package">
                <exclude name="**/*~" />
                <include name="**/*" />
            </fileset>
        </copy>
    </target>

    <target name="assemble-agent-server">
        <makeDir dir="${agent.ansible.dir}/server" />

        <copy todir="${agent.ansible.dir}/server">
            <fileset dir="${agent.bdir}/server">
                <include name="**/*" />
            </fileset>
        </copy>
    </target>

    <target name="assemble-agent-collectd">
        <makeDir dir="${agent.plugin.ansible.dir}/collectd" />

        <copy todir="${agent.plugin.ansible.dir}/collectd">
            <fileset dir="${agent.bdir}/plugins/collectd">
                <include name="**/*" />
            </fileset>
        </copy>
    </target>
</project>
<commit_msg>fix building zstack-agent, if this folder is missing.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="zstack-agent builder" basedir="../">
    <property name="agent.bdir" location="${build.dir}/zstack-agent" />
    <property name="agent.ansible.dir" location="${ansible.dir}/zstack-agent/" />
    <property name="agent.plugin.ansible.dir" location="${ansible.dir}/zstack-agent/plugins/" />

    <target name="build-zstack-agent" if="build_war_flag">
        <makeDir dir="${agent.bdir}" />

        <checkProperty property="agent.source" />
        <checkFile file="${agent.source}" />

        <delete dir="${agent.source}/target" />

        <exec executable="make" dir="${agent.source}" failonerror="true">
            <arg value="clean" />
        </exec>

        <exec executable="make" dir="${agent.source}" failonerror="true">
            <arg value="package" />
        </exec>

        <copy todir="${agent.bdir}/">
            <fileset dir="${agent.source}/target/package">
                <exclude name="**/*~" />
                <include name="**/*" />
            </fileset>
        </copy>
    </target>

    <target name="assemble-agent-server">
        <makeDir dir="${agent.ansible.dir}/server" />

        <copy todir="${agent.ansible.dir}/server">
            <fileset dir="${agent.bdir}/server">
                <include name="**/*" />
            </fileset>
        </copy>
    </target>

    <target name="assemble-agent-collectd">
        <makeDir dir="${agent.plugin.ansible.dir}/collectd" />

        <copy todir="${agent.plugin.ansible.dir}/collectd">
            <fileset dir="${agent.bdir}/plugins/collectd">
                <include name="**/*" />
            </fileset>
        </copy>
    </target>
</project>

{'fraction_non_alphanumeric': 0.20317460317460317, 'fraction_numerical': 0.0017316017316017316, 'mean_word_length': 2.29467680608365, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 2, '>': 83, 'https://': 0, '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': '5699477', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1020, 'n_words': 164}